/* Heritage Parfums - Modern Cart Styles */

/* === CART HEADER === */
.cart-header {
    background: linear-gradient(135deg, var(--guerlain-cream), var(--guerlain-light-gray));
    padding: 8rem 0 4rem;
    margin-top: 80px;
}

.header-content {
    text-align: center;
}

.header-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--guerlain-black);
    margin-bottom: 1rem;
}

.breadcrumb {
    color: var(--guerlain-text-gray);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--guerlain-text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--guerlain-gold);
}

.breadcrumb span {
    margin: 0 0.5rem;
}

/* === CART SECTION === */
.cart-section {
    padding: 4rem 0;
    background: var(--guerlain-white);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* === CART ITEMS === */
.cart-items {
    background: var(--guerlain-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: var(--guerlain-light-gray);
    border-bottom: 1px solid var(--guerlain-border);
}

.cart-header-row h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--guerlain-black);
    margin: 0;
}

.clear-cart-btn {
    background: none;
    border: 1px solid var(--guerlain-text-gray);
    color: var(--guerlain-text-gray);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

/* === CART ITEM === */
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1rem;
    padding: 2rem;
    border-bottom: 1px solid var(--guerlain-border);
    align-items: center;
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background: rgba(212, 175, 55, 0.02);
}

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

/* Promotions dans le panier */
.item-promotion {
    margin-top: 0.5rem;
    padding: 0.3rem 0;
}

.promo-badge-cart {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    display: inline-block;
}

.original-price-small-cart {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
}
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid var(--guerlain-border);
    align-items: center;
    transition: all 0.3s ease;
}

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

.cart-item:hover {
    background: rgba(212, 175, 55, 0.02);
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--guerlain-cream);
}

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

.item-info h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--guerlain-black);
    margin-bottom: 0.5rem;
}

.item-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.item-type,
.item-size {
    background: var(--guerlain-light-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--guerlain-text-gray);
}

.item-category {
    color: var(--guerlain-gold);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
}
/* === QUANTITY CONTROLS === */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--guerlain-light-gray);
    border-radius: 25px;
    padding: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--guerlain-white);
    color: var(--guerlain-text-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.qty-btn:hover {
    background: var(--guerlain-gold);
    color: var(--guerlain-white);
    transform: scale(1.1);
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
    color: var(--guerlain-black);
}

/* === ITEM PRICE === */
.item-price {
    text-align: right;
}

.unit-price {
    font-size: 0.9rem;
    color: var(--guerlain-text-gray);
    margin-bottom: 0.25rem;
}

.total-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--guerlain-black);
}

/* === ITEM ACTIONS === */
.remove-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: transparent;
    color: var(--guerlain-text-gray);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: scale(1.1);
}

/* === CART SUMMARY === */
.cart-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: var(--guerlain-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.summary-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--guerlain-black);
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--guerlain-border);
    color: var(--guerlain-text-gray);
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.shipping {
    position: relative;
}

.free-shipping {
    display: block;
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 500;
    margin-top: 0.25rem;
}

.free-text {
    color: #28a745;
    font-weight: 500;
}

.free-shipping-notice {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #155724;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.free-shipping-notice i {
    color: #28a745;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 0 0;
    margin-top: 1rem;
    border-top: 2px solid var(--guerlain-gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--guerlain-black);
}
/* === CHECKOUT ACTIONS === */
.checkout-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-checkout {
    background: linear-gradient(135deg, var(--guerlain-gold), var(--guerlain-dark-gold));
    border: none;
    color: var(--guerlain-white);
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
    color: var(--guerlain-white);
    text-decoration: none;
}

.btn-continue {
    background: transparent;
    border: 2px solid var(--guerlain-gold);
    color: var(--guerlain-gold);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-continue:hover {
    background: var(--guerlain-gold);
    color: var(--guerlain-white);
    transform: translateY(-2px);
    text-decoration: none;
}

/* === TRUST BADGES === */
.trust-badges {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--guerlain-border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trust-item:last-child {
    margin-bottom: 0;
}

.trust-item i {
    color: var(--guerlain-gold);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.trust-item strong {
    font-weight: 500;
    color: var(--guerlain-black);
    font-size: 0.9rem;
}

.trust-item small {
    display: block;
    color: var(--guerlain-text-gray);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

/* === EMPTY CART === */
.empty-cart {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: var(--guerlain-white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.empty-cart-icon {
    font-size: 5rem;
    color: var(--guerlain-border);
    margin-bottom: 2rem;
    opacity: 0.5;
}

.empty-cart h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--guerlain-black);
    margin-bottom: 1rem;
}

.empty-cart p {
    color: var(--guerlain-text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.empty-cart-actions {
    margin-bottom: 3rem;
}

.btn-discover {
    background: linear-gradient(135deg, var(--guerlain-gold), var(--guerlain-dark-gold));
    border: none;
    color: var(--guerlain-white);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-discover:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
    color: var(--guerlain-white);
    text-decoration: none;
}

/* === SUGGESTED PRODUCTS === */
.suggested-products {
    margin-top: 3rem;
}

.suggested-products h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--guerlain-black);
    margin-bottom: 2rem;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.suggestion-card {
    background: var(--guerlain-light-gray);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.suggestion-image {
    height: 200px;
    overflow: hidden;
}

.suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.suggestion-card:hover .suggestion-image img {
    transform: scale(1.1);
}

.suggestion-info {
    padding: 1.5rem;
    text-align: center;
}

.suggestion-info h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--guerlain-black);
    margin-bottom: 0.5rem;
}

.suggestion-info p {
    color: var(--guerlain-text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.suggestion-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--guerlain-gold);
}
/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr auto;
        gap: 1rem;
    }
    
    .item-controls,
    .item-actions {
        grid-column: 2 / 4;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
    }
    
    .item-price {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .cart-header {
        padding: 6rem 0 3rem;
        margin-top: 60px;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .cart-section {
        padding: 2rem 0;
    }
    
    .cart-header-row {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .item-image {
        justify-self: center;
        margin-bottom: 1rem;
    }
    
    .item-info {
        text-align: center;
    }
    
    .item-meta {
        justify-content: center;
    }
    
    .item-controls {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .item-price {
        text-align: center;
        margin-top: 1rem;
    }
    
    .item-actions {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .summary-card {
        padding: 1.5rem;
    }
    
    .empty-cart {
        padding: 3rem 1rem;
    }
    
    .empty-cart h2 {
        font-size: 2rem;
    }
    
    .empty-cart-icon {
        font-size: 4rem;
    }
}

@media (max-width: 576px) {
    .cart-header {
        padding: 5rem 0 2rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .cart-item {
        padding: 1rem;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
    }
    
    .summary-card {
        padding: 1rem;
    }
    
    .summary-card h3 {
        font-size: 1.3rem;
    }
    
    .btn-checkout,
    .btn-continue {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .trust-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .trust-item i {
        font-size: 1.5rem;
    }
    
    .suggestions-grid {
        grid-template-columns: 1fr;
    }
}

/* === ANIMATIONS === */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    animation: slideIn 0.3s ease-out;
}

.summary-card {
    animation: slideIn 0.4s ease-out;
}

.empty-cart {
    animation: slideIn 0.5s ease-out;
}

/* === LOADING STATES === */
.cart-item.loading {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.cart-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--guerlain-border);
    border-top-color: var(--guerlain-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === NOTIFICATION STYLES === */
.notification {
    backdrop-filter: blur(10px);
    border-left: 4px solid;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.qty-btn:focus,
.remove-btn:focus,
.clear-cart-btn:focus,
.btn-checkout:focus,
.btn-continue:focus {
    outline: 2px solid var(--guerlain-gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cart-item {
        border: 2px solid var(--guerlain-black);
    }
    
    .summary-card {
        border: 2px solid var(--guerlain-black);
    }
}