.custom-size-options .size-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    margin-right: 6px;
}

.custom-size-options .size-box.selected {
    border-color: #000;
    background: #000;
    color: #fff;
}

.brt-size-section {
    margin-bottom: 10px;
}

.brt-size-label {
    font-weight: 600;
    margin-bottom: 6px;
}

.brt-product-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    flex-wrap: wrap;
}

.brt-product-action-row .brt-add-and-wishlist {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 767px) {
  .brt-product-action-row .brt-add-and-wishlist {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .brt-product-action-row {
    flex-wrap: nowrap;
  }
  .brt-product-action-row .brt-add-and-wishlist {
    flex: 1 1 1;
  }
}

.brt-product-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0px;
}

.brt-product-qty-minus,
.brt-product-qty-plus {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #f1f0ec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brt-product-qty-input {
    width: 60px !important;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    display: inline-block;
    background: #f1f0ec;
}

.brt-product-add-btn {
    flex: 1;
    max-width: 375px;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    transition: opacity .2s ease, filter .2s ease;
}

.brt-product-add-btn.is-inactive {
    filter: grayscale(1);
    opacity: .7;
    pointer-events: none;
}

.brt-product-wishlist-row {
    margin-top: 10px;
}

.brt-wishlist {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}

.brt-wishlist .wishlist-button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    position: relative;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.brt-wishlist .wishlist-button .wishlist-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brt-wishlist .wishlist-button svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* PDP form layout: new line after size, left aligned */
.product-template-default form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
}

/* Remove extra margins; we rely on gap */
.product-template-default form.cart button.button {
    margin-right: 0 !important;
}
        /* Базовые стили для демонстрации */
        .brt-mini-cart {
            display: flex;
            flex-direction: column;
            height: 100%;
            width: 100%;
            max-width: 400px;
            background: white;
            border-radius: 0px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 12px;
        }

        .brt-cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .brt-cart-title {
            font-size: 18px;
            font-weight: 600;
            margin: 0;
        }

        .brt-cart-count {
            display: block;
        }

        .brt-cart-content {
            margin-bottom: 20px;
            overflow-y: auto;
        }

        .brt-empty-cart {
            text-align: center;
    padding: 20px 12px;
            color: #666;
            display: flex;
    height: 100%;
    vertical-align: middle;
    flex-direction: column;
    justify-content: center;
        }

        .brt-cart-items {
            display: flex;
            flex-direction: column;
    gap: 10px;
        }

.brt-cart-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 0px;
    background: #f1f0ec;
}

.brt-cart-item-top {
    display: flex;
    align-items: center;
}

.brt-cart-item-title {
    font-weight: 600;
    font-size: 14px;
}

.brt-cart-item-size-value {
    font-weight: 500;
}

.brt-cart-item-bottom {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
}

.brt-cart-item-media {
    width: 90px;
}

.brt-cart-item-image {
    width: 90px;
    height: auto;
    object-fit: cover;
    border-radius: 0px;
    display: block;
    aspect-ratio: 3 / 4;
}

        .brt-no-image {
            width: 60px;
            height: 60px;
            background: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 0px;
            font-size: 24px;
            aspect-ratio: 3 / 4;
        }

        .brt-cart-item-details {
    display: none;
        }
.brt-cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brt-label {
    color: #666;
}

.brt-cart-item-price-row,
.brt-cart-item-quantity-row,
.brt-cart-item-total-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brt-price-regular {
    color: #999;
}

.brt-cart-item-quantity-row {
    gap: 6px;
}

.brt-qty-controls {
    display: inline-flex;
    gap: 0px;
    max-width: 170px;
    align-items: center;
}

        .brt-cart-item-name {
            font-weight: 500;
            font-size: 14px;
            line-height: 1.3;
        }

        .brt-cart-item-price {
            color: #333;
            font-weight: 600;
            font-size: 14px;
        }

        .brt-cart-item-quantity {
            display: flex;
            align-items: center;
            gap: 8px;
        }

.brt-qty-minus, .brt-qty-plus {
    width: 36px;
    height: 36px;
            border: 1px solid #ddd;
            background: #f1f0ec;
            border-radius: 0px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
    font-size: 16px;
            font-weight: 600;
    min-width: 40px;
        }

        .brt-qty-minus:hover, .brt-qty-plus:hover {
            background: #f5f5f5;
            border-color: #252525;
        }

.brt-qty-input {
    width: 70px;
    min-width: 40px;
    height: 36px;
            text-align: center;
            border: 1px solid #ddd;
            border-radius: 0px;
            font-size: 14px;
            background: #f1f0ec;
        }

        .brt-cart-item-total {
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }

.brt-remove-item {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #f1f0ec;
    color: #000;
    border-radius: 0px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.brt-icon-trash {
    pointer-events: none;
}

.brt-remove-item:hover {
    background: #f5f5f5;
    border-color: #252525;
}

/* inline size error */
.brt-size-error {
    margin-top: 8px;
    color: #b71c1c;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 3px;
}

        .brt-free-shipping-info {
            margin-bottom: 20px;
            padding: 15px;
            background: #f1f0ec;
            border-radius: 0px;
            border-left: 4px solid #e2e1dd;
        }

        .bt-free-shipping-content p {
            margin: 0 0 10px 0;
            font-size: 14px;
            line-height: 1.4;
        }

        .bt-amount-left {
            color: #323232;
            font-weight: 600;
        }

        .bt-free-shipping-text {
            color: #111111;
            font-weight: 600;
        }

        .bt-free-shipping-achieved {
            color: #2b2b2b;
            font-weight: 600;
            margin: 0;
        }

        .bt-progress-bar-container {
            width: 100%;
            height: 8px;
            background: #e9ecef;
            border-radius: 0px;
            overflow: hidden;
        }

        .bt-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #474747, #000000);
            transition: width 0.3s ease;
        }

        .brt-cart-summary {
            margin-top: auto;
            padding: 15px 0;
            border-top: 1px solid #eee;
        }

        .brt-cart-subtotal-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .brt-cart-subtotal-label {
            font-size: 16px;
            font-weight: 500;
        }

        .brt-cart-subtotal {
            font-size: 18px;
            font-weight: 600;
            color: #000000;
        }

        .brt-cart-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .brt-btn {
            padding: 12px 20px;
            border: none;
            border-radius: 0px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            transition: all 0.2s ease;
        }

        .brt-btn-primary {
            background: #000000;
            color: white;
        }

        .brt-btn-primary:hover {
            box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
            color: white;
        }

        .brt-btn-secondary {
            background: transparent;
            color: #050505;
            border: 1px solid #000000;
        }

        .brt-btn-secondary:hover {
            box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
            color: white;
        }

.brt-add-to-cart-button {
    display: inline-flex;
    align-items: center  !important;
    gap: 8px;
    padding: 10px 16px  !important;
    border: none;
    background: #000 !important;
    color: #fff  !important;
    font-weight: 400  !important;
    font-variation-settings: 'wght' 600;
    font-size: 14px  !important;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 0px;
    text-transform: uppercase;
}

.brt-add-to-cart-button:hover {
    background: #333  !important;
}

.brt-add-to-cart-button .brt-cart-icon {
    width: 40px;
    height: 40px;
    fill: #fff;
}

.brt-add-to-cart-mini {
    padding: 6px 10px;
    font-size: 12px;
}

.brt-add-to-cart-icon {
    background: transparent !important;
    padding: 6px !important;
    color: #000 !important;
    min-width: 0 !important;
    margin-top: 0 !important;
}

.brt-add-to-cart-icon:hover {
    background: #fff !important;
}

.brt-add-to-cart-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

.brt-add-to-cart-button.added {
    color: #2b2b2b;
    background: #fff;
}
