/* Стили для страницы корзины */
.cart-title {
    text-align: center;
    margin: 25px 0 30px 0;
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 600;
    color: #000000;
    letter-spacing: -1.5px;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Пустая корзина */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-cart-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.continue-shopping-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 22px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.continue-shopping-btn:hover {
    background: #333333;
    color: white;
    text-decoration: none;
    transform: scale(1.02);
}

/* Список товаров в корзине */
.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    gap: 20px;
    transition: all 0.3s ease;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    margin-top: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item-name {
    font-size: 30px;
    font-weight: 400;
    color: #000000;
    margin: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #000000;
    background: #000000;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 200;
    transition: all 0.2s ease;
    user-select: none;
}

.quantity-btn:hover {
    background: #333333;
    border-color: #333333;
}

.quantity-btn.minus {
    background: #ffffff;
    color: #000000;
}

.quantity-display {
    width: 30px;
    height: 30px;
    border: none;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 400;
    user-select: none;
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
}

.cart-item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    align-self: flex-start;
    gap: 5px;
    min-width: 120px;
    flex-shrink: 0;
}

.total-price {
    font-size: 26px;
    font-weight: 400;
    color: #000000;
}

/* Дополнительные опции */
.cart-options {
    margin: 30px 0;
}

.comment-section {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    background-color: #E2E8E7;
    border-radius: 24px;
}

.comment-input {
    flex: 1;
    width: 100%;
    padding: 20px;
    font-size: 20px;
    font-weight: 400;
    font-family: 'Onest', sans-serif;
    color: #000000;
    background-color: transparent;
    border: none;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    resize: none;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.4;
}

.comment-input::-webkit-scrollbar {
    display: none;
}

.comment-input {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.comment-input::placeholder {
    color: #999;
    font-weight: 200;
}

.promotions-section {
    margin-bottom: 15px;
}

.promotions-text {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.delivery-section {
    margin-bottom: 20px;
}

.delivery-text {
    font-size: 1rem;
    color: #000000;
    font-weight: 400;
}

/* Разделитель */
.cart-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

/* Кнопка оформления заказа */
.cart-checkout {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.checkout-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Onest', sans-serif;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
    min-width: 200px;
    justify-content: space-between;
}

.checkout-btn:hover {
    background: #333333;
    transform: scale(1.02);
}

.checkout-text {
    font-weight: 400;
}

.checkout-total {
    font-weight: 400;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .cart-title {
        font-size: clamp(20px, 6vw, 32px);
        margin: 20px 0 25px 0;
        padding: 0 10px;
    }
    
    .empty-cart {
        padding: 60px 15px;
    }
    
    .empty-cart-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .empty-cart-message {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .continue-shopping-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .cart-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 0;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .cart-item-content {
        flex: 1;
        gap: 12px;
    }
    
    .cart-item-name {
        font-size: 1rem;
        text-align: left;
    }
    
    .cart-item-controls {
        flex: 1;
        min-width: 0;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .quantity-controls {
        gap: 0;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .quantity-display {
        width: 40px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .cart-item-price {
        font-size: 0.9rem;
    }
    
    .cart-item-total {
        align-items: flex-end;
        min-width: 100px;
        flex-direction: column;
        justify-content: flex-start;
        flex-shrink: 0;
    }
    
    .total-price {
        font-size: 1rem;
    }
    
    .comment-section {
        margin-bottom: 15px;
    }
    
    .comment-input {
        padding: 15px;
        font-size: 16px;
    }
    
    .delivery-section {
        margin-bottom: 15px;
    }
    
    .delivery-text {
        font-size: 0.9rem;
    }
    
    .cart-divider {
        margin: 15px 0;
    }
    
    .cart-checkout {
        margin-top: 20px;
    }
    
    .checkout-btn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cart-title {
        font-size: clamp(18px, 7vw, 28px);
        margin: 15px 0 20px 0;
        padding: 0 5px;
    }
    
    .empty-cart {
        padding: 40px 10px;
    }
    
    .empty-cart-icon {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .empty-cart-message {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .continue-shopping-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .cart-item {
        padding: 12px 0;
        gap: 12px;
        flex-direction: row;
        align-items: flex-start;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
    
    .cart-item-content {
        flex: 1;
        gap: 10px;
    }
    
    .cart-item-name {
        font-size: 0.9rem;
        text-align: left;
    }
    
    .cart-item-controls {
        flex: 1;
        min-width: 0;
        gap: 10px;
    }
    
    .quantity-btn {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .quantity-display {
        width: 35px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .cart-item-price {
        font-size: 0.85rem;
    }
    
    .cart-item-total {
        align-items: flex-end;
        min-width: 90px;
        flex-direction: column;
        justify-content: flex-start;
        flex-shrink: 0;
    }
    
    .total-price {
        font-size: 0.9rem;
    }
    
    .comment-input {
        padding: 12px;
        font-size: 14px;
    }
    
    .delivery-text {
        font-size: 0.85rem;
    }
    
    .checkout-btn {
        padding: 15px 25px;
        font-size: 1rem;
    }
}
