

/* Start:/bitrix/templates/modern_market/components/bitrix/sale.basket.basket/modern_basket/style.css?177078339513958*/
/* Modern Basket Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

.basket-page {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 2rem 0;
}

.basket-page * {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.basket-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.basket-items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Basket Item - Horizontal Card */
.basket-item {
    display: grid;
    grid-template-columns: 120px 1fr 130px 150px 50px;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 1rem;
    background: white !important;
    border-bottom: 1px solid #e5e7eb !important;
    transition: background 0.2s;
}

.basket-item:hover {
    background: #f9fafb;
}

.basket-item:first-child {
    border-top: 1px solid #e5e7eb;
}

/* Image */
.basket-item-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.basket-item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.basket-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f9fafb;
    border-radius: 8px;
}

/* Info Section */
.basket-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.basket-item-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
}

.basket-item-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.basket-item-name a:hover {
    color: #C21F39;
}

.basket-item-article {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.basket-item-props {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.basket-item-prop {
    display: block;
}

.basket-item-price {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-top: 0.5rem;
}

.basket-item-price-value {
    font-size: 0.875rem !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
}

.basket-item-price-label {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
}

/* Quantity Controls */
.basket-item-quantity {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

/* Цена за единицу под количеством на десктопе */
.basket-item-quantity::after {
    content: attr(data-unit-price);
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    width: 100%;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    width: fit-content;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: white;
    color: #6b7280;
    font-size: 1.375rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0.9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.quantity-btn:hover {
    background: #f9fafb;
    color: #1f2937;
}

.quantity-btn:active {
    background: #f3f4f6;
}

.quantity-input,
.basket-quantity-input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    background: white;
}

.quantity-input:focus,
.basket-quantity-input:focus {
    outline: none;
    background: #f9fafb;
}

/* Hide number input arrows */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button,
.basket-quantity-input::-webkit-outer-spin-button,
.basket-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Sum */
.basket-item-sum {
    min-width: 150px;
    text-align: right;
    padding-right: 1.5rem;
}

.basket-item-sum-value {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    display: block !important;
    white-space: nowrap;
}

/* Actions */
.basket-item-actions {
    display: flex;
    align-items: center;
}

.basket-item-remove {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.basket-item-remove:hover {
    background: #fef2f2;
    color: #ef4444;
}

.basket-item-remove:active {
    transform: scale(0.95);
}

/* Basket Actions */
.basket-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.basket-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Order Summary */
.basket-order-summary {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.basket-order-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #1f2937;
}

.basket-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.basket-order-row:last-of-type {
    border-bottom: none;
}

.basket-order-label {
    font-size: 0.9375rem !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
}

.basket-order-value {
    font-size: 0.9375rem !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
}

.basket-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 1rem;
    margin-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

.basket-order-total .basket-order-label,
.basket-order-total-label {
    font-size: 1.125rem !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
}

.basket-order-total .basket-order-value,
.basket-order-summary .basket-order-total .basket-order-value,
.basket-order-total-value,
#basket-total-sum {
    font-size: 1.5rem !important;
    color: #1f2937 !important;
    font-weight: 800 !important;
}

.basket-order-btn,
.basket-order-summary .basket-order-btn,
a.basket-order-btn,
button.basket-order-btn,
.basket-checkout-button,
a.basket-checkout-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #C21F39, #a51a30) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1.5rem;
    box-shadow: 0 4px 14px rgba(194, 31, 57, 0.3) !important;
    text-decoration: none !important;
    display: block !important;
}

.basket-order-btn:hover,
.basket-order-summary .basket-order-btn:hover,
a.basket-order-btn:hover,
button.basket-order-btn:hover,
.basket-checkout-button:hover,
a.basket-checkout-button:hover {
    background: linear-gradient(135deg, #a51a30, #871527) !important;
    box-shadow: 0 6px 20px rgba(194, 31, 57, 0.4) !important;
    transform: translateY(-1px);
}

.basket-order-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Empty Basket */
.basket-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.basket-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.basket-empty p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 2rem 0;
}

.basket-empty a {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #C21F39, #a51a30);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.2s;
}

.basket-empty a:hover {
    background: linear-gradient(135deg, #a51a30, #871527);
    transform: translateY(-1px);
}

/* Desktop: скрываем цену за шт в блоке info (показываем только под количеством) */
.basket-item-info .basket-item-price {
    display: none;
}

/* Desktop: sum внутри info скрыт, показываем отдельной колонкой */
.basket-item > .basket-item-info > .basket-item-sum {
    display: none !important;
}

/* Desktop: показываем sum как отдельную колонку */
.basket-item-sum-desktop {
    display: block;
    min-width: 150px;
    text-align: right;
    padding-right: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .basket-content {
        grid-template-columns: 1fr;
    }

    .basket-order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .basket-content {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }

    .basket-item {
        display: grid;
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem 1rem;
        padding: 1rem 0.75rem;
    }

    /* Фото - верхний левый угол */
    .basket-item-image {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 100px;
        height: 100px;
        align-self: start;
    }

    /* Информация (цена, название, артикул) - справа от фото */
    .basket-item-info {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .basket-item-name {
        font-size: 0.9375rem;
        line-height: 1.3;
    }

    .basket-item-article {
        font-size: 0.75rem;
        margin-top: 0;
    }

    /* Показываем общую стоимость в инфо-блоке на мобильных */
    .basket-item-info .basket-item-price {
        display: none !important;
    }

    /* Показываем блок суммы в инфо-блоке на мобильных */
    .basket-item > .basket-item-info > .basket-item-sum {
        display: block !important;
        text-align: left !important;
        padding-right: 0 !important;
        min-width: auto !important;
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
        order: -1;
    }

    .basket-item > .basket-item-info > .basket-item-sum .basket-item-sum-value {
        font-size: 1.125rem !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        display: block !important;
    }

    /* Прячем десктопную версию sum на мобильных */
    .basket-item-sum-desktop {
        display: none !important;
    }

    /* Нижняя строка: количество + удалить */
    .basket-item-quantity {
        grid-column: 1 / 2;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        align-self: end;
        align-items: center;
    }

    .quantity-controls {
        border-radius: 6px;
    }

    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
        font-weight: 300;
    }

    .quantity-input,
    .basket-quantity-input {
        width: 45px;
        height: 36px;
        font-size: 0.9375rem;
    }

    /* Цена за единицу под количеством */
    .basket-item-quantity::after {
        content: attr(data-unit-price);
        font-size: 0.75rem;
        color: #6b7280;
        text-align: center;
    }

    /* Кнопка удалить - справа внизу */
    .basket-item-actions {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        align-self: end;
    }

    .basket-item-remove {
        width: 36px;
        height: 36px;
    }

    /* Убираем правый отступ у summary */
    .basket-order-summary {
        border-radius: 8px;
        padding: 1rem;
    }

    .basket-order-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .basket-item {
        grid-template-columns: 90px 1fr;
        gap: 0.625rem 0.75rem;
        padding: 0.875rem 0.5rem;
    }

    .basket-item-image {
        width: 90px;
        height: 90px;
    }

    .basket-item-name {
        font-size: 0.875rem;
    }

    .basket-item-article {
        font-size: 0.6875rem;
    }

    .basket-item-price-value {
        font-size: 0.9375rem !important;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 1.125rem;
        font-weight: 300;
    }

    .quantity-input,
    .basket-quantity-input {
        width: 40px;
        height: 32px;
        font-size: 0.875rem;
    }

    .basket-item-remove {
        width: 32px;
        height: 32px;
    }

    .basket-order-summary {
        padding: 0.875rem;
    }
}

/* End */
/* /bitrix/templates/modern_market/components/bitrix/sale.basket.basket/modern_basket/style.css?177078339513958 */
