* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #FBF7EF;
    color: #2B2620;
    line-height: 1.6;
}

h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; margin: 0 0 12px; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.section { padding: 70px 0; }

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: #7A7266;
    max-width: 560px;
    margin: 0 auto 40px;
}

.gold-text { color: #B8860B; }

.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 999px;
    background: #B8860B;
    color: #fff;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: #96700a; transform: translateY(-1px); }
.btn-outline {
    background: transparent;
    color: #B8860B;
    border: 1.5px solid #B8860B;
}
.btn-outline:hover { background: #EFE3C8; }
.btn-block { width: 100%; }
.btn-small { padding: 8px 18px; font-size: 0.85rem; }

/* Header */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #E7DCC0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1180px;
    margin: 0 auto;
}
.logo {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.7rem;
    letter-spacing: 0.02em;
    color: #2B2620;
}
.logo span { color: #B8860B; }

nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
    font-size: 0.92rem;
    color: #2B2620;
    position: relative;
    padding: 4px 0;
}
nav.main-nav a:hover { color: #B8860B; }

.header-actions { display: flex; align-items: center; gap: 18px; }

/* Bouton Panier */
.cart-btn {
    position: relative;
    background: #F3EAD5;
    border: 1px solid #E7DCC0;
    border-radius: 50%;
    width: 44px; 
    height: 44px;
    padding: 0;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}
.cart-btn:hover {
    background: #EFE3C8;
    border-color: #B8860B;
    transform: scale(1.04);
}
.cart-icon {
    width: 20px;
    height: 20px;
    stroke: #2B2620;
    transition: stroke .2s ease;
}
.cart-btn:hover .cart-icon {
    stroke: #B8860B;
}
.cart-count {
    position: absolute;
    top: -2px; 
    right: -2px;
    background: #B8860B;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px; 
    height: 18px;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #2B2620; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #F3EAD5 0%, #FBF7EF 60%, #fff 100%);
    padding: 90px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border: 1px solid #D4AF37;
    border-radius: 50%;
    opacity: 0.25;
}
.hero::before { width: 340px; height: 340px; top: -140px; left: -100px; }
.hero::after { width: 240px; height: 240px; bottom: -110px; right: -60px; }
.hero-content { position: relative; max-width: 680px; margin: 0 auto; }
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: #B8860B;
    margin-bottom: 14px;
    display: block;
}
.hero h1 {
    font-size: 2.6rem;
    line-height: 1.25;
    margin-bottom: 18px;
}
.hero p {
    color: #7A7266;
    font-size: 1.05rem;
    margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* À propos */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-visual {
    background: #EFE3C8;
    border-radius: 14px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-style: italic;
    color: #B8860B;
    font-size: 1.6rem;
    text-align: center;
    padding: 30px;
}
.about-text p { color: #7A7266; margin-bottom: 16px; }

/* Catégories */
.categories-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 40px;
    scrollbar-width: thin;
}
.category-pill {
    flex: 0 0 auto;
    padding: 10px 22px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid #E7DCC0;
    font-size: 0.88rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
}
.category-pill:hover { border-color: #B8860B; color: #B8860B; }
.category-pill.active {
    background: #B8860B;
    border-color: #B8860B;
    color: #fff;
}

/* Grille produits */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 26px;
}
.product-card {
    background: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(43, 38, 32, 0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(184, 134, 11, 0.16); }
.product-img {
    aspect-ratio: 1/1;
    background: #F3EAD5;
    overflow: hidden;
    position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

/* Vidéo produit */
.video-badge {
   position: absolute;
   top: 10px;
   right: 10px;
   background: rgba(43,38,32,0.65);
   color: #fff;
   font-size: 0.68rem;
   padding: 4px 9px 4px 7px;
   border-radius: 999px;
   display: flex;
   align-items: center;
   gap: 4px;
   backdrop-filter: blur(2px);
   z-index: 2;
   pointer-events: none;
}
.product-video {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   opacity: 0;
   transition: opacity .3s ease;
   pointer-events: none;
}
.product-video.playing {
   opacity: 1;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #2B2620;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s ease, background .2s ease;
}
.product-img:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: #fff; }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

.gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(43,38,32,0.2);
    transition: background .2s ease, transform .2s ease;
}
.gallery-dot.active {
    background: #B8860B;
    border-color: #B8860B;
    transform: scale(1.2);
}
.product-info { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #B8860B;
    margin-bottom: 6px;
}
.product-name { font-size: 1.02rem; margin-bottom: 6px; font-family: Georgia, serif; }
.product-desc {
    font-size: 0.85rem;
    color: #7A7266;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Variantes de couleur */
.variant-swatches {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.variant-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    outline: 1px solid #E7DCC0;
    cursor: pointer;
    padding: 0;
    transition: outline-color .15s ease, transform .15s ease;
}
.variant-swatch:hover { transform: scale(1.12); }
.variant-swatch.selected { outline: 2px solid #B8860B; outline-offset: 1px; }
.variant-swatch.out-of-stock { opacity: 0.35; cursor: not-allowed; position: relative; }
.variant-swatch.out-of-stock::after {
    content: "";
    position: absolute;
    top: 50%; left: -2px; right: -2px;
    height: 1.5px;
    background: #a33;
    transform: rotate(-45deg);
}
.variant-selected-name {
    font-size: 0.76rem;
    color: #7A7266;
    margin-bottom: 10px;
    margin-top: -4px;
}
.product-price { font-weight: 600; font-size: 1.05rem; }
.price-original {
    text-decoration: line-through;
    color: #7A7266;
    font-weight: 400;
    font-size: 0.85rem;
    margin-right: 8px;
}
.price-sale { color: #c0392b; font-weight: 700; }

.sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c0392b;
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}
.product-stock { font-size: 0.72rem; color: #7A7266; margin-top: 4px; }
.product-stock.low { color: #c0392b; }
.add-to-cart {
    background: #F3EAD5;
    border: 1px solid #E7DCC0;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all .2s ease;
}
.add-to-cart:hover { background: #B8860B; border-color: #B8860B; color: #fff; }
.add-to-cart:disabled { opacity: 0.5; cursor: not-allowed; }

.empty-note { text-align: center; color: #7A7266; padding: 40px 0; }

/* Panier */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(43,38,32,0.4);
    z-index: 200;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
    position: fixed;
    top: 0; right: -420px;
    width: 100%; max-width: 400px;
    height: 100%;
    background: #fff;
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right .3s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.1);
}
.cart-drawer.open { right: 0; }
.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #E7DCC0;
}
.cart-header h3 { font-family: Georgia, serif; margin: 0; }
.close-btn { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: #7A7266; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #E7DCC0; }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #F3EAD5; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-price { font-size: 0.82rem; color: #7A7266; }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-control button {
    width: 24px; height: 24px; border-radius: 50%; border: 1px solid #E7DCC0;
    background: #fff; cursor: pointer; font-size: 0.9rem; line-height: 1;
}
.remove-item { background:none;border:none;color:#c0392b;font-size:0.78rem;cursor:pointer;margin-top:6px; }
.cart-footer { padding: 20px 22px; border-top: 1px solid #E7DCC0; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 16px; }
.cart-empty { text-align: center; color: #7A7266; padding: 60px 0; }

/* Modales */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(43,38,32,0.45);
    z-index: 300;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
    background: #fff;
    border-radius: 14px;
    width: 100%; max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}
.modal-box h3 { font-family: Georgia, serif; margin-bottom: 20px; }
.modal-close { position: absolute; top: 18px; right: 20px; background:none;border:none;font-size:1.4rem;cursor:pointer;color:#7A7266; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; margin-bottom: 6px; color: #2B2620; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #E7DCC0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.92rem;
    background: #FBF7EF;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: #B8860B;
}
.order-summary {
    background: #FBF7EF;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 0.88rem;
}
.order-summary-row { display: flex; justify-content: space-between; padding: 4px 0; }
.order-summary-total { font-weight: 600; border-top: 1px solid #E7DCC0; margin-top: 8px; padding-top: 10px; }
.order-summary-discount { color: #c0392b; }

.promo-box { display: flex; gap: 10px; margin-bottom: 6px; }
.promo-box input {
    flex: 1;
    padding: 10px 13px;
    border: 1px solid #E7DCC0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.88rem;
    background: #FBF7EF;
    text-transform: uppercase;
}
.promo-message { font-size: 0.82rem; margin: 6px 0 14px; }
.promo-message.success { color: #276b3e; }
.promo-message.error { color: #a33; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 16px; }
.alert-success { background: #e9f7ef; color: #276b3e; }
.alert-error { background: #fdecea; color: #a33; }

#paypal-button-container { margin-top: 10px; }

/* Contact */
.contact-section { background: #F3EAD5; }
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.contact-info h2 { margin-bottom: 14px; }
.contact-info p { color: #7A7266; margin-bottom: 20px; }
.contact-detail { margin-bottom: 12px; font-size: 0.92rem; }
.contact-detail strong { color: #B8860B; }

/* Suivi de commande */
.track-banner {
    background: #FFFFFF;
    border: 1px dashed #D4AF37;
    border-radius: 14px;
    padding: 26px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.track-banner p { margin: 0; color: #7A7266; }

/* Footer */
footer.site-footer {
    background: #2B2620;
    color: #E9E2D0;
    padding: 50px 0 26px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-logo { font-family: Georgia, serif; font-style: italic; font-size: 1.4rem; margin-bottom: 12px; color: #fff; }
.footer-grid p, .footer-grid a { color: #C9C0AA; font-size: 0.88rem; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; font-family: Georgia, serif; }
.footer-col a { display: block; margin-bottom: 10px; }
.footer-col a:hover { color: #D4AF37; }
.footer-bottom {
    border-top: 1px solid #423b30;
    padding-top: 20px;
    text-align: center;
    font-size: 0.78rem;
    color: #8d8470;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #2B2620;
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.86rem;
    z-index: 400;
    opacity: 0;
    transition: all .25s ease;
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
    .about, .contact-wrap, .footer-grid { grid-template-columns: 1fr; }
    .footer-grid { gap: 28px; }
}

@media (max-width: 720px) {
    nav.main-nav { display: none; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .section { padding: 50px 0; }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) and (min-width: 601px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .products-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        align-items: stretch; 
    }

    .product-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
    }

    .product-info {
        padding: 10px;
        display: flex;
        flex-direction: column;
        flex-grow: 1; 
    }

    .product-category {
        font-size: 0.62rem;
        margin-bottom: 3px;
        color: #b58d3d; 
        font-weight: 600;
        text-transform: uppercase;
    }

    .product-name {
        font-size: 0.82rem;
        margin-bottom: 3px;
        line-height: 1.25;
        font-weight: 700;
    }

    .product-desc {
        display: none;
    }

.variant-swatches {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        margin-bottom: 4px;
        padding: 4px 2px; /
        scrollbar-width: none;
    }
    .variant-swatches::-webkit-scrollbar { display: none; }

    .variant-swatch {
        width: 16px;
        height: 16px;
        border-radius: 50%; 
        flex-shrink: 0;
        box-sizing: border-box; 
        border: 1px solid rgba(0, 0, 0, 0.15); 
    }
    
    .variant-selected-name {
        display: block;
        font-size: 0.65rem;
        color: #666;
        margin-bottom: 6px;
    }

    .product-footer {
        margin-top: auto; 
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .price-container {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .price-original {
        font-size: 0.72rem;
        color: #888;
        text-decoration: line-through;
    }

    .product-price {
        font-size: 0.85rem;
        font-weight: 700;
        color: #c0392b; /* Rouge promo */
    }

    .product-stock {
        font-size: 0.68rem;
        color: #777;
    }

    .add-to-cart {
        padding: 8px 12px;
        font-size: 0.76rem;
        width: 100%;
        background-color: #f5eedc; 
        color: #111;
        border: none;
        border-radius: 20px; 
        font-weight: 500;
        cursor: pointer;
    }
}

    .category-pill {
    color: #b58d3d !important;       
    border: 1px solid #e2d1b3;        
    background-color: #ffffff;        
    cursor: pointer;
}

    .category-pill.active {
    background-color: #b58d3d !important; 
    color: #ffffff !important;            
    border-color: #b58d3d;
}


nav.main-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid #E7DCC0;
    gap: 14px;
}