/* ==========================================================================
   MODERN DESIGN SYSTEM (Mission 2)
   Style: Clean, Premium, Animated
   Context: Les Pépites d'Isae
   ========================================================================== */

/* 1. VARIABLES & BASICS */
:root {
    --gold: #C19A6B;
    /* Original: #C5A065 */
    --gold-light: #D4B28C;
    --black: #1A1A1A;
    --grey-text: #4B5563;
    --white: #FFFFFF;
    --off-white: #F9F9F9;
    --font-heading: "Playfair Display", serif;
    --font-body: "Lato", sans-serif;
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--off-white);
    color: var(--grey-text);
    overflow-x: hidden;
}

.text-gold {
    color: var(--gold) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--black);
    letter-spacing: -0.02em;
}

/* 2. ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes microZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s var(--transition-medium) forwards;
}

/* 3. BUTTONS (Premium Pill Shape) */
.button,
button,
input[type="submit"],
.wp-block-button__link {
    background: var(--black) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition-medium) !important;
    border: 2px solid transparent !important;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    background: var(--gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(193, 154, 107, 0.3);
}

/* Secondary Button (Ghost) */
.btn-secondary {
    background: transparent !important;
    color: var(--black) !important;
    border: 1px solid var(--black) !important;
}

.btn-secondary:hover {
    background: var(--black) !important;
    color: var(--white) !important;
}

/* Luxury Shadows & Effects */
.shadow-luxury {
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.08), 0 18px 36px -18px rgba(0, 0, 0, 0.1);
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(193, 154, 107, 0.4);
}

/* 4. PRODUCT CARDS (Clean & Interactive) */
.product-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
    transform: translateY(-5px);
}

.carousel-wrapper img {
    transition: opacity 0.6s ease-in-out, transform 1s ease-in-out;
}

.product-card:hover .carousel-wrapper img.active {
    transform: scale(1.08);
}

.product-card .price ins {
    text-decoration: none;
}

.product-card .price del {
    font-size: 0.8em;
    opacity: 0.6;
    margin-right: 5px;
}

.woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-top: 1rem;
    color: var(--black);
}

.price {
    font-family: var(--font-body);
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
}

/* 5. HEADER (Glassmorphism) */
.site-header {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* 6. CART & CHECKOUT (Consistency) */
/* 6. CART & CHECKOUT (Consistency & Fixes) */
.woocommerce-cart {
    background-color: var(--white);
}

.woocommerce-cart .woocommerce {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    /* Flex fallback */
    flex-wrap: wrap;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .woocommerce-cart .woocommerce {
        display: grid;
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.woocommerce-cart .woocommerce-cart-form {
    background: white;
    border-radius: 12px;
    /* No shadow on container to avoid double shadow with table */
}

.cart-collaterals {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.woocommerce-checkout #order_review,
.woocommerce-checkout #customer_details {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 16px;
}

/* 7. BADGES */
.onsale {
    background: var(--black) !important;
    color: var(--white) !important;
    font-size: 0.7rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px !important;
    min-height: auto !important;
    min-width: auto !important;
    padding: 4px 10px !important;
    line-height: normal !important;
    top: 15px !important;
    left: 15px !important;
}

/* 8. FOOTER */
.site-footer {
    background: var(--black);
    color: rgba(255, 255, 255, 0.7);
}

.site-footer h2,
.site-footer h3 {
    color: var(--white);
}