/*
Theme Name: Les Pépites d'Isae
Theme URI: https://lespepitesdisae.com
Author: Gemini
Description: Un thème WordPress sur-mesure, chic et moderne pour une boutique de mode.
Version: 2.0
Text Domain: les-pepites-isae
*/

/* ==========================================================================
   1. VARIABLES & RESET (Centralisation)
   ========================================================================== */
:root {
    /* Couleurs */
    --color-gold: #C5A065;
    --color-gold-hover: #A68249;
    --color-dark: #1A1A1A;
    --color-light: #F9F9F9;
    --color-white: #FFFFFF;
    --color-text: #4B5563;
    /* Gris neutre */
    --color-border: #E5E7EB;

    /* Polices */
    --font-serif: "Playfair Display", serif;
    --font-sans: "Lato", sans-serif;
    --font-script: "Great Vibes", cursive;

    /* Layout */
    --container-width: 1280px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-light);
    margin: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--color-dark);
    margin-top: 0;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (Responsive)
   ========================================================================== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-title {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.site-title .text-gold {
    color: var(--color-gold);
}

/* Icons */
.header-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 1.2rem;
    color: var(--color-dark);
}

.header-icons a:hover {
    color: var(--color-gold);
}

.cart-count {
    background: var(--color-gold);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    right: -10px;
}

.icon-link {
    position: relative;
}

/* Menu Desktop */
.main-navigation {
    border-top: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.main-navigation ul {
    display: flex;
    gap: 2.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.main-navigation a {
    font-family: var(--font-serif);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--color-text);
}

.main-navigation a:hover {
    color: var(--color-gold);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Header */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    /* Cacher menu desktop */
    .menu-toggle {
        display: block;
    }

    /* Afficher burger */
    .site-title {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   3. LAYOUT & GRID SYSTEM (Tailwind-like)
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Grids */
@media (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   4. COMPONENTS (Cartes, Boutons)
   ========================================================================== */

/* Product Card */
.product-card {
    background: var(--color-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    /* Arrondi */
    overflow: hidden;
    position: relative;
}

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

.product-card__image {
    position: relative;
    padding-bottom: 125%;
    /* Ratio portrait */
    overflow: hidden;
}

.product-card__image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
    /* Zoom au survol */
}

/* Quick View Button (Apparition) */
.product-card__actions {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .product-card__actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-view {
    background: var(--color-white);
    color: var(--color-dark);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.btn-quick-view:hover {
    background: var(--color-gold);
    color: white;
}

/* Badges */
.onsale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-gold);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

/* Infos Produit */
.product-card__body {
    padding: 1rem;
    text-align: center;
}

.woocommerce-loop-product__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.price {
    color: var(--color-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

.price del {
    color: #999;
    font-size: 0.9rem;
    margin-right: 5px;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--color-dark);
    color: #CCC;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-title {
    color: white;
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-title.gold-text {
    color: var(--color-gold);
    font-size: 1.5rem;
    font-family: var(--font-script);
}

.footer-menu {
    padding: 0;
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   6. WOOCOMMERCE PAGES
   ========================================================================== */
.woocommerce-products-header__title {
    text-align: center;
    margin: 3rem 0 1rem;
    font-size: 2.5rem;
}

.shop-layout {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.shop-sidebar {
    flex: 0 0 250px;
}

.shop-results {
    flex: 1;
}

@media (max-width: 900px) {
    .shop-layout {
        flex-direction: column;
    }

    .shop-sidebar {
        display: none;
    }

    /* Cacher sidebar sur mobile */
}

/* ==========================================================================
   7. FEATURES "LA REDOUTE" (Slide-out & Sticky)
   ========================================================================== */

/* Slide-out Cart */
.side-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    transition: 0.3s;
}

.side-cart.open {
    visibility: visible;
}

.side-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: 0.3s;
}

.side-cart.open .side-cart-overlay {
    opacity: 1;
}

.side-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.side-cart.open .side-cart-panel {
    transform: translateX(0);
}

.side-cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Free Shipping Bar */
.free-shipping-widget {
    padding: 1rem;
    background: #f0fdf4;
    border-bottom: 1px solid #dcfce7;
}

.fsw-message {
    color: #166534;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.fsw-bar-bg {
    height: 6px;
    background: #dcfce7;
    border-radius: 3px;
    overflow: hidden;
}

.fsw-bar-fill {
    height: 100%;
    background: var(--color-gold);
    width: 0;
    transition: width 0.5s ease;
}

/* Sticky Mobile Add-to-Cart */
.sticky-product-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
    /* Hidden by default on desktop */
}

.sticky-product-bar.visible {
    transform: translateY(0);
}

.spb-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.spb-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.spb-info img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.spb-btn {
    background: var(--color-dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px) {
    .sticky-product-bar {
        display: block;
    }

    /* Show on mobile */
}

/* ==========================================================================
   8. ACCOUNT PAGE (MON COMPTE PREMIUM)
   ========================================================================== */

/* Layout Principal (Sidebar + Content) */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar Navigation */
.woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid #F3F4F6;
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    font-weight: 500;
    color: var(--color-dark);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

/* Icons (using generic ASCII/content for now, assuming FA classes added in JS or standard WP structure) */
/* We will style active state nicely */

.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--color-dark);
    color: var(--color-gold);
    border-left: 4px solid var(--color-gold);
    padding-left: 21px;
    /* Compensate border */
}

.woocommerce-MyAccount-navigation li a:hover:not(.is-active a) {
    background: #FAFAFA;
    color: var(--color-gold);
    padding-left: 30px;
    /* Slide effect */
}

/* Content Area */
.woocommerce-MyAccount-content {
    flex: 1;
    background: var(--color-white);
    padding: 0;
    /* Let inner content handle padding */
    border-radius: 12px;
}

/* Form Styles */
.woocommerce-form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.woocommerce-Input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F9FAFB;
    transition: all 0.3s;
}

.woocommerce-Input:focus {
    border-color: var(--color-gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(197, 160, 101, 0.1);
    outline: none;
}

/* Buttons */
.woocommerce-Button {
    background: var(--color-dark);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.woocommerce-Button:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Account */
@media (max-width: 900px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   9. CHECKOUT PAGE (COMMANDE ÉPURÉE)
   ========================================================================== */

.woocommerce-checkout .woocommerce {
    max-width: 1100px;
    margin: 0 auto;
}

/* Coupures et Titres */
.woocommerce-checkout h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
    padding-bottom: 5px;
}

/* Layout 2 colonnes */
#customer_details {
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .woocommerce-checkout form.checkout {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 60px;
        align-items: flex-start;
    }
}

/* Formulaire de facturation */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-row-wide {
    grid-column: span 2;
}

.woocommerce-checkout .form-row label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.woocommerce-checkout .input-text {
    border-radius: 10px !important;
    border: 1px solid #E5E7EB !important;
    padding: 12px 15px !important;
    background: #F9FAFB !important;
}

.woocommerce-checkout .input-text:focus {
    border-color: var(--color-gold) !important;
    background: white !important;
}

/* Résumé de commande (Right Sidebar Style) */
#order_review_heading {
    display: none;
}

/* On cache le titre moche */

#order_review {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #F3F4F6;
}

.shop_table.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.shop_table thead {
    display: none;
}

/* Cache le header de table */

.shop_table tr {
    border-bottom: 1px solid #F3F4F6;
}

.shop_table td {
    padding: 15px 0;
    font-size: 0.95rem;
}

.product-name {
    color: var(--color-dark);
    font-weight: 500;
}

.product-total,
.cart-subtotal .amount,
.order-total .amount {
    text-align: right;
    font-weight: bold;
    color: var(--color-dark);
}

.order-total {
    border-top: 2px solid var(--color-dark);
}

.order-total th,
.order-total td {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    padding-top: 20px !important;
}

.order-total .amount {
    color: var(--color-gold);
}

/* Paiement */
#payment {
    background: transparent !important;
    margin-top: 20px;
}

#payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
}

#payment div.payment_box {
    background: #F9FAFB !important;
    border-radius: 10px;
    font-size: 0.85rem !important;
    color: #666 !important;
}

#payment div.payment_box::before {
    display: none !important;
}

/* Bouton Commander */
#place_order {
    width: 100%;
    background: var(--color-dark) !important;
    color: white !important;
    padding: 18px !important;
    border-radius: 40px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-top: 20px !important;
    transition: 0.3s !important;
    border: none !important;
}

#place_order:hover {
    background: var(--color-gold) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 101, 0.2);
}

/* ==========================================================================
   LUXURY INTERACTIONS (CSS Base)
   ========================================================================== */

/* Magnetic Button Base */
.btn-magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Scroll Reveal Base */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Container */
.parallax-container {
    overflow: hidden;
    position: relative;
}

.parallax-bg {
    will-change: transform;
}


/* ==========================================================================
   SINGLE PRODUCT PAGE STYLES (Refinement)
   ========================================================================== */

/* Typography & Layout */
.single-product div.product .product_title {
    font-size: 2.5rem;
    /* Larger Title */
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    letter-spacing: 1px;
}

.single-product div.product .price {
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-weight: 700;
}

.single-product div.product .woocommerce-product-details__short-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2.5rem;
}

/* Add to Cart Area */
.single-product div.product form.cart {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.single-product div.product form.cart .button {
    background: var(--color-dark);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.single-product div.product form.cart .button:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 101, 0.3);
}

/* Meta Data */
.single-product .product_meta {
    font-size: 0.9rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

/* Fix Card Buttons Visibility */
/* Ensure the image container is tall enough relative to the button position */
/* ensure overflow doesn't clip if calculations are off */

/* ==========================================================================
   CART QUANTITY STYLES
   ========================================================================== */
.woocommerce-cart .quantity {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 50px;
    padding: 5px;
    width: fit-content;
}

.woocommerce-cart .quantity input[type="number"] {
    background: transparent;
    border: none;
    text-align: center;
    width: 40px;
    font-weight: bold;
    color: var(--color-dark);
    -moz-appearance: textfield;
    appearance: textfield;
}

.woocommerce-cart .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce-cart .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================================================
   CART MODERNIZATION (FINAL ROBUST)
   ========================================================================== */

/* Container */
.cart-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Table Reset */
table.shop_table.cart {
    border-collapse: separate !important;
    border-spacing: 0 15px !important;
    background: transparent !important;
    border: none !important;
    width: 100%;
}

/* Headers */
table.shop_table.cart th {
    font-family: var(--font-serif, serif);
    color: #6b7280;
    /* gray-500 */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border: none !important;
    padding: 15px !important;
}

/* Rows (The Cards) */
table.shop_table.cart tr.cart_item td {
    background: #ffffff;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 20px 15px !important;
    vertical-align: middle;
}

/* Rounded Edges for Rows */
table.shop_table.cart tr.cart_item td:first-child {
    border-left: 1px solid #e5e7eb !important;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

table.shop_table.cart tr.cart_item td:last-child {
    border-right: 1px solid #e5e7eb !important;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Product Image */
table.shop_table.cart .product-thumbnail img {
    border-radius: 8px;
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Product Name */
table.shop_table.cart .product-name a {
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: var(--font-serif, serif);
    transition: color 0.3s;
}

table.shop_table.cart .product-name a:hover {
    color: var(--color-gold, #C5A065);
}

/* Price & Subtotal */
table.shop_table.cart .product-price,
table.shop_table.cart .product-subtotal {
    font-weight: 600;
    font-size: 1rem;
    color: #374151;
}

table.shop_table.cart .product-subtotal {
    color: var(--color-gold, #C5A065);
    font-size: 1.15rem;
}

/* Remove Button */
table.shop_table.cart .product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #fee2e2;
    color: #ef4444 !important;
    border-radius: 50%;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

table.shop_table.cart .product-remove a.remove:hover {
    background: #ef4444;
    color: white !important;
}

/* Quantity Centers */
table.shop_table.cart .product-quantity {
    text-align: center;
}

table.shop_table.cart .quantity {
    display: inline-flex;
    margin: 0 auto;
}

/* Responsive Fixes - Ensure it doesn't break on mobile */
@media (max-width: 768px) {

    table.shop_table.cart,
    table.shop_table.cart tbody,
    table.shop_table.cart tr,
    table.shop_table.cart td {
        display: block;
        width: 100%;
        text-align: center;
    }

    table.shop_table.cart tr {
        margin-bottom: 20px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        padding: 15px;
        border: 1px solid #e5e7eb;
    }

    table.shop_table.cart td {
        border: none !important;
        padding: 10px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    table.shop_table.cart thead {
        display: none;
    }

    table.shop_table.cart .product-thumbnail {
        justify-content: center;
    }

    table.shop_table.cart .product-remove {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    table.shop_table.cart tr {
        position: relative;
    }
}

/* ==========================================================================
   UI UPDATES (Requested Changes)
   ========================================================================== */

/* 1. Footer Improvements */
footer.bg-dark {
    padding-top: 10% !important;
    /* +10% padding */
}

footer .fab {
    font-size: 1.65rem !important;
    /* +10% icon size (was 1.5rem) */
}

/* 2. Category Buttons & Titles Size (+10%) */
.product-card-3d .font-serif.text-lg,
.product-card .font-serif.text-lg {
    font-size: 1.25rem !important;
    /* +~10% from 1.125rem */
}

/* 3. Bravo ! Livraison Gratuite Size */
.free-shipping-bar {
    font-size: 1.1rem !important;
    /* +10% */
}

/* 4. Search Bar Alignment */
#search-dropdown {
    top: 120% !important;
    /* Adjust to align better if needed */
    right: -10px !important;
}

/* 5. Modern Button (Replacment for Magnet) */
.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.btn-modern:hover {
    transform: scale(1.05);
    /* Modern scale effect */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 6. Empty Orders State (to be used in new template) */
.empty-orders-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fdfbf7;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

.empty-orders-icon {
    font-size: 4rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

/* ==========================================================================
   MIGRATED STYLES FROM HEADER.PHP
   ========================================================================== */
/* Custom Styles for Effects (From Preview) */
.product-card {
    transition: all 0.4s ease-out;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.product-image {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.quick-view-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #1A1A1A;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    white-space: nowrap;
}

.product-card:hover .quick-view-btn {
    bottom: 20px;
    opacity: 1;
}

.quick-view-btn:hover {
    background: #C5A065;
    color: white;
}

/* Lightbox/Carousel */
#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

#lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    background: white;
    padding: 20px;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    display: flex;
    gap: 30px;
    position: relative;
}

@media (max-width: 768px) {
    .lightbox-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Animations supplementaires (From Preview) */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* ==========================================================================
   LEGAL PAGES STYLE (Modern & Editorial)
   ========================================================================== */
.legal-wrapper {
    max-width: 750px;
    margin: 60px auto 100px;
    font-family: 'Lato', Helvetica, Arial, sans-serif;
    color: #4a4a4a;
    line-height: 1.8;
    font-size: 16px;
}

.legal-wrapper h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: #111;
    letter-spacing: -0.5px;
    position: relative;
}

.legal-wrapper h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #d4af37;
    margin: 25px auto 0;
}

.legal-wrapper h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    color: #222;
    margin-top: 50px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.legal-wrapper h4 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-wrapper p {
    margin-bottom: 24px;
    text-align: justify;
}

.legal-wrapper ul {
    margin-bottom: 30px;
    padding-left: 20px;
    list-style: none;
}

.legal-wrapper li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.legal-wrapper li::before {
    content: '•';
    color: #d4af37;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
}

.legal-wrapper strong {
    color: #111;
    font-weight: 700;
}

.legal-wrapper a {
    color: #111;
    text-decoration: underline;
    transition: color 0.3s;
}

.legal-wrapper a:hover {
    color: #d4af37;
}

.address-box {
    text-align: center;
    border: 1px solid #eee;
    padding: 30px;
    margin: 40px 0;
    background-color: #fafafa;
    border-radius: 4px;
}