/* Стили для страницы корзины */
.cart-hero {
    background: var(--background-light);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.cart-hero h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cart-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

.cart-section {
    padding: 3rem 0;
    background: var(--background-light);
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background: var(--background);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--background-light);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.cart-item-details p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-volume {
    color: var(--text-lighter);
    font-size: 0.8rem;
    font-weight: 500;
}

.cart-item-price {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--background);
    color: var(--text-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.clear-cart-btn {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.clear-cart-btn:hover {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
    transform: translateY(-1px);
}

.clear-cart-btn {
    width: 100%;
    text-align: center;
}

.quantity-input {
    width: 100px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.remove-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 200;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.remove-btn:hover {
    color: #ff4444;
}

.cart-summary {
    background: var(--background);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.summary-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.continue-shopping {
    text-align: center;
    margin-top: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-lighter);
}

.empty-cart h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.empty-cart p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Адаптивность для корзины */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        grid-template-areas: 
            "image details"
            "image price"
            "controls remove";
        gap: 0.5rem;
    }

    .cart-item-image {
        grid-area: image;
        width: 80px;
        height: 80px;
    }

    .cart-item-details {
        grid-area: details;
    }

    .cart-item-price {
        grid-area: price;
        text-align: left;
    }

    .quantity-controls {
        grid-area: controls;
    }

    .remove-btn {
        grid-area: remove;
        justify-self: end;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 480px) {
    .cart-hero {
        padding: 2rem 1rem;
    }

    .cart-hero h1 {
        font-size: 2rem;
    }

    .cart-items, .cart-summary {
        padding: 1.5rem;
    }
}