/*
Theme Name: GhannouShop
Theme URI: https://ghannoushop.com
Author: GhannouShop
Description: Thème sur mesure pour GhannouShop, boutique d'import France vers Tunisie. Compatible WooCommerce.
Version: 1.0
Text Domain: ghannoushop
*/

:root{
  --sable:    #F5EFE3;
  --sable-2:  #EDE5D5;
  --bordeaux: #8B1A1A;
  --bordeaux-h:#A82020;
  --or:       #C9942A;
  --encre:    #1C1612;
  --gris:     #6B6560;
  --blanc:    #FFFFFF;
  --ligne:    rgba(28,22,18,0.12);
}

/* reset */
*{margin:0;padding:0;box-sizing:border-box;}
body{background:var(--sable);color:var(--encre);font-family:'Inter',sans-serif;line-height:1.6;font-size:15px;}
h1,h2,h3,h4{font-family:'Playfair Display',serif;}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}

.bg-arabesque{
  background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9942A' stroke-width='0.6' opacity='0.18'%3E%3Ccircle cx='30' cy='30' r='18'/%3E%3Cpath d='M30 12 L30 48 M12 30 L48 30 M17.5 17.5 L42.5 42.5 M42.5 17.5 L17.5 42.5'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size:60px 60px;
}

/* ─── TOP BAR ─── */
.topbar{
  background:var(--bordeaux);color:#fff;font-size:13px;
  display:flex;justify-content:center;gap:48px;padding:9px 32px;flex-wrap:wrap;
}
.topbar span{display:flex;align-items:center;gap:7px;opacity:.9;}
.topbar svg{width:16px;height:16px;flex-shrink:0;}

/* ─── HEADER ─── */
header{background:var(--blanc);border-bottom:1px solid var(--ligne);position:sticky;top:0;z-index:30;}
.header-main{max-width:1280px;margin:0 auto;padding:14px 32px;display:flex;align-items:center;gap:24px;}
.logo{display:flex;align-items:center;gap:12px;flex-shrink:0;}
.logo-icon{width:56px;height:auto;object-fit:contain;}
.logo-text{font-family:'Playfair Display',serif;font-size:20px;font-weight:600;line-height:1.1;}
.logo-text span{display:block;font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--or);font-family:'Inter',sans-serif;font-weight:500;}
.search{flex:1;max-width:480px;display:flex;border:1px solid var(--ligne);border-radius:6px;position:relative;}
.search input{flex:1;padding:10px 16px;border:none;outline:none;font-size:14px;background:var(--sable);border-radius:6px 0 0 6px;}
.search button{padding:0 18px;background:var(--bordeaux);border:none;cursor:pointer;color:#fff;display:flex;align-items:center;border-radius:0 6px 6px 0;}
.search button svg{width:18px;height:18px;}
.header-actions{display:flex;align-items:center;gap:28px;margin-left:auto;flex-shrink:0;}
.header-action{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;color:var(--gris);cursor:pointer;}
.header-action svg{width:22px;height:22px;}
.header-action.cart{position:relative;}
.cart-badge{position:absolute;top:-6px;right:-8px;background:var(--bordeaux);color:#fff;border-radius:50%;width:18px;height:18px;font-size:11px;display:flex;align-items:center;justify-content:center;font-weight:600;}

/* ─── NAV ─── */
nav.main-nav{background:var(--blanc);border-bottom:1px solid var(--ligne);}
.nav-inner{max-width:1280px;margin:0 auto;padding:0 32px;display:flex;align-items:center;gap:0;flex-wrap:wrap;}
.nav-inner ul{list-style:none;display:flex;flex-wrap:wrap;}
.nav-inner a{font-size:14px;font-weight:500;padding:13px 18px;display:block;border-bottom:2px solid transparent;}
.nav-inner a:hover,.nav-inner .current-menu-item a{color:var(--bordeaux);border-bottom-color:var(--bordeaux);}

/* ─── HERO ─── */
.hero{
  background:linear-gradient(135deg,#EDE1C8 0%,#E8D8B0 50%,#DFC99A 100%);
  position:relative;overflow:hidden;
}
.hero.bg-arabesque{background-color:#EDE1C8;}
.hero-inner{max-width:1280px;margin:0 auto;padding:60px 32px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px;position:relative;z-index:2;}

.arche-bg{display:none;}
.arche-img{
  position:relative;z-index:2;width:100%;
}
.arche-img img{width:100%;height:auto;display:block;}

.hero-tag{display:inline-block;background:var(--bordeaux);color:#fff;font-size:12px;letter-spacing:1.5px;text-transform:uppercase;padding:6px 14px;border-radius:3px;margin-bottom:20px;}
.hero h1{font-size:46px;font-weight:700;line-height:1.15;color:var(--encre);margin-bottom:10px;}
.hero h1 em{font-style:italic;color:var(--bordeaux);}
.hero p{color:var(--gris);max-width:400px;margin-bottom:28px;}
.hero-btns{display:flex;gap:12px;flex-wrap:wrap;}
.btn-fill{display:inline-block;padding:13px 28px;background:var(--bordeaux);color:#fff;border-radius:6px;font-weight:600;font-size:14px;}
.btn-fill:hover{background:var(--bordeaux-h);}
.btn-outline{display:inline-block;padding:12px 28px;border:1.5px solid var(--encre);color:var(--encre);border-radius:6px;font-weight:600;font-size:14px;}
.btn-outline:hover{background:var(--encre);color:#fff;}

/* ─── REASSURANCE STRIP ─── */
.strip{background:var(--blanc);border-top:1px solid var(--ligne);border-bottom:1px solid var(--ligne);}
.strip-inner{max-width:1280px;margin:0 auto;padding:18px 32px;display:flex;justify-content:center;gap:48px;flex-wrap:wrap;}
.strip-item{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:500;}
.strip-item svg{width:20px;height:20px;color:var(--bordeaux);}

/* ─── SECTION TITRE ─── */
.section-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:28px;flex-wrap:wrap;gap:8px;}
.section-head h2{font-size:24px;font-weight:600;}
.section-head a{font-size:13px;color:var(--bordeaux);font-weight:600;}
.section-head a:hover{text-decoration:underline;}

/* ─── CATÉGORIES ─── */
.categories{padding:56px 32px;max-width:1280px;margin:0 auto;}
.cat-scroll{display:flex;gap:16px;overflow-x:auto;padding-bottom:8px;}
.cat-scroll::-webkit-scrollbar{height:4px;}
.cat-scroll::-webkit-scrollbar-thumb{background:var(--ligne);}
.cat-item{flex-shrink:0;width:150px;display:flex;flex-direction:column;align-items:center;gap:10px;cursor:pointer;}
.cat-icon{width:120px;height:120px;background:var(--sable-2);border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid transparent;transition:border-color .2s;overflow:hidden;}
.cat-icon svg{width:32px;height:32px;color:var(--bordeaux);}
.cat-icon img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
.cat-item:hover .cat-icon{border-color:var(--bordeaux);}
.cat-item span{font-size:13px;font-weight:500;text-align:center;}

/* ─── PRODUITS ─── */
.products{padding:0 32px 56px;max-width:1280px;margin:0 auto;}
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.prod-card{background:var(--blanc);border-radius:10px;overflow:hidden;border:1px solid var(--ligne);position:relative;}
.prod-card:hover{box-shadow:0 4px 20px rgba(0,0,0,0.1);}
.prod-badge{position:absolute;top:12px;left:12px;background:var(--bordeaux);color:#fff;font-size:12px;font-weight:700;padding:4px 9px;border-radius:20px;z-index:2;}
.prod-img{aspect-ratio:1/1;background:linear-gradient(135deg,#EDE1C8,#C9A060);display:flex;align-items:center;justify-content:center;color:rgba(28,22,18,0.35);font-size:13px;overflow:hidden;}
.prod-img img{width:100%;height:100%;object-fit:cover;}
.prod-info{padding:14px;}
.prod-name{font-size:14px;font-weight:500;margin-bottom:8px;}
.prod-price{display:flex;align-items:baseline;gap:8px;}
.prod-price .curr{font-size:16px;font-weight:700;color:var(--bordeaux);}
.prod-price .old{font-size:13px;color:var(--gris);text-decoration:line-through;}

/* ─── PARRAINAGE + CARTE CADEAU ─── */
.panels{background:var(--blanc);border-top:1px solid var(--ligne);border-bottom:1px solid var(--ligne);}
.panels-inner{max-width:1280px;margin:0 auto;padding:60px 32px;display:grid;grid-template-columns:1fr 1fr;gap:50px;}
.panel-card{background:var(--sable);border-radius:12px;padding:36px;border:1px solid var(--ligne);}
.panel-card .tag{font-size:12px;font-weight:700;color:var(--or);text-transform:uppercase;letter-spacing:1.5px;margin-bottom:12px;}
.panel-card h3{font-size:24px;font-weight:600;margin-bottom:12px;}
.panel-card p{color:var(--gris);margin-bottom:22px;font-size:14px;}
.ref-steps{display:flex;align-items:center;gap:8px;margin-bottom:22px;flex-wrap:wrap;}
.ref-step{background:var(--blanc);border:1px solid var(--ligne);border-radius:6px;padding:10px 16px;font-size:13px;font-weight:500;text-align:center;}
.ref-step b{display:block;font-size:16px;color:var(--bordeaux);}
.ref-arrow{color:var(--or);font-size:18px;flex-shrink:0;}
.giftcard{width:100%;aspect-ratio:2/1;border-radius:10px;background:linear-gradient(135deg,var(--bordeaux),#5C1010);padding:24px;display:flex;flex-direction:column;justify-content:space-between;margin-bottom:20px;position:relative;overflow:hidden;}
.giftcard::before{content:'';position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9942A' stroke-width='0.7' opacity='0.3'%3E%3Ccircle cx='30' cy='30' r='18'/%3E%3Cpath d='M30 12 L30 48 M12 30 L48 30 M17.5 17.5 L42.5 42.5 M42.5 17.5 L17.5 42.5'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/svg%3E");background-size:60px 60px;}
.gc-brand{color:rgba(255,255,255,0.9);font-size:13px;letter-spacing:2px;text-transform:uppercase;position:relative;}
.gc-center{position:relative;text-align:center;}
.gc-center .gc-amount{color:#fff;font-family:'Playfair Display',serif;font-size:32px;font-weight:700;}
.gc-center .gc-label{color:rgba(255,255,255,0.7);font-size:12px;}
.gc-valid{color:rgba(255,255,255,0.6);font-size:12px;position:relative;}

/* ─── LIVRAISON ─── */
.delivery{padding:56px 32px;max-width:1280px;margin:0 auto;}
.delivery-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:28px;}
.contact-cards{grid-template-columns:repeat(3,1fr);}
.ship-card{border:2px solid var(--ligne);border-radius:10px;padding:28px;background:var(--blanc);display:flex;align-items:flex-start;gap:18px;}
.ship-card.active{border-color:var(--bordeaux);background:#FBF5F5;}
.ship-radio{width:20px;height:20px;border-radius:50%;border:2px solid var(--bordeaux);flex-shrink:0;margin-top:3px;display:flex;align-items:center;justify-content:center;}
.ship-card.active .ship-radio::after{content:'';width:10px;height:10px;border-radius:50%;background:var(--bordeaux);}
.ship-info h4{font-size:17px;font-weight:600;margin-bottom:4px;}
.ship-price{font-size:16px;font-weight:700;color:var(--bordeaux);}
.ship-delay{font-size:13px;color:var(--gris);}

/* ─── COMMENT ÇA MARCHE ─── */
.how-it-works{background:var(--sable-2);border-top:1px solid var(--ligne);border-bottom:1px solid var(--ligne);padding:60px 32px;}
.how-inner{max-width:1280px;margin:0 auto;}
.how-head{text-align:center;margin-bottom:48px;}
.how-head h2{font-size:24px;font-weight:600;}
.how-head p{color:var(--gris);margin-top:8px;font-size:14px;}
.how-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center;}
.how-step{padding:0 16px;}
.how-num{width:56px;height:56px;border-radius:50%;background:var(--bordeaux);color:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;font-size:22px;}
.how-step h4{font-size:15px;font-weight:600;margin-bottom:8px;}
.how-step p{font-size:13px;color:var(--gris);}

/* ─── FOOTER ─── */
footer{background:var(--encre);color:#fff;padding:60px 32px 0;}
.footer-top{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:40px;padding-bottom:40px;border-bottom:1px solid rgba(255,255,255,0.1);}
.footer-brand .logo-text{color:#fff;font-size:18px;}
.footer-brand .logo-text span{color:var(--or);}
.footer-brand p{font-size:14px;opacity:0.6;margin-top:14px;max-width:260px;line-height:1.7;}
footer h5{font-size:13px;letter-spacing:1.5px;text-transform:uppercase;color:var(--or);margin-bottom:16px;}
footer ul{list-style:none;}
footer li{margin-bottom:10px;}
footer a{font-size:14px;opacity:0.7;}
footer a:hover{opacity:1;color:var(--or);}
.footer-bottom{max-width:1280px;margin:0 auto;padding:20px 0;display:flex;justify-content:space-between;font-size:13px;opacity:0.5;flex-wrap:wrap;gap:8px;}

/* ─── WOOCOMMERCE : harmonisation avec le thème ─── */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price{color:var(--bordeaux);}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit{
  background:var(--bordeaux)!important;color:#fff!important;border-radius:6px!important;font-weight:600!important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover{background:var(--bordeaux-h)!important;}
.woocommerce-page-inner{max-width:1280px;margin:0 auto;padding:40px 32px;}
.woocommerce-page .page-title,
.woocommerce h1.page-title,
.woocommerce-products-header__title,
.woocommerce-products-header,
.wp-block-post-title,
.page-header,
.entry-header{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
  position:static!important;
  font-family:'Playfair Display',serif!important;
  font-size:28px!important;
  font-weight:600!important;
  color:var(--encre)!important;
  margin:24px 0 4px!important;
  padding:0!important;
  z-index:auto!important;
}
.woocommerce-info{
  background:var(--sable-2)!important;
  border:1px solid var(--ligne)!important;
  color:var(--encre)!important;
  border-radius:8px!important;
}

/* ─── RESPONSIVE ─── */
@media(max-width:960px){
  .hero-inner,.panels-inner,.delivery-cards,.footer-top{grid-template-columns:1fr;}
  .prod-grid{grid-template-columns:repeat(2,1fr);}
  .how-steps{grid-template-columns:repeat(2,1fr);}
  .arche-wrap{display:none;}
  .hero h1{font-size:32px;}
  .topbar{flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start;gap:20px;font-size:12px;-webkit-overflow-scrolling:touch;}
  .topbar::-webkit-scrollbar{display:none;}
  .header-main{flex-wrap:wrap;padding:10px 20px;gap:12px;}
  .search{order:3;flex:1 1 100%;max-width:none;}
  .nav-inner{flex-wrap:nowrap!important;overflow-x:auto;justify-content:flex-start;-webkit-overflow-scrolling:touch;}
  .nav-inner ul{flex-wrap:nowrap;}
  .nav-inner a{white-space:nowrap;padding:12px 14px;}
}

.wpcf7-form p{margin-bottom:16px;text-align:left;}
.wpcf7-form label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--encre);}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea{
  width:100%;padding:11px 14px;border:1px solid var(--ligne);border-radius:6px;background:var(--sable);font-family:'Inter',sans-serif;font-size:14px;color:var(--encre);
}
.wpcf7-form textarea{min-height:120px;resize:vertical;}
.wpcf7-form input:focus, .wpcf7-form textarea:focus{outline:none;border-color:var(--bordeaux);}
.wpcf7-form input[type="submit"]{
  background:var(--bordeaux);color:#fff;border:none;padding:13px 28px;border-radius:6px;font-weight:600;font-size:14px;cursor:pointer;
}
.wpcf7-form input[type="submit"]:hover{background:var(--bordeaux-h);}
.wpcf7-spinner{margin-left:10px;}
.wpcf7-not-valid-tip{color:var(--bordeaux);font-size:12px;margin-top:4px;}
.wpcf7-response-output{border-radius:6px;font-size:13px;margin-top:16px!important;}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp{
  from{opacity:0;transform:translateY(24px);}
  to{opacity:1;transform:translateY(0);}
}
.hero-tag,.hero h1,.hero p,.hero-btns{opacity:0;animation:fadeInUp .7s ease forwards;}
.hero-tag{animation-delay:.05s;}
.hero h1{animation-delay:.15s;}
.hero p{animation-delay:.28s;}
.hero-btns{animation-delay:.4s;}
.arche-img{opacity:0;animation:fadeInUp .8s ease forwards;animation-delay:.2s;}

.fade-in{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease;}
.fade-in.is-visible{opacity:1;transform:translateY(0);}

@media (prefers-reduced-motion: reduce){
  .hero-tag,.hero h1,.hero p,.hero-btns,.arche-img,.fade-in{animation:none!important;transition:none!important;opacity:1!important;transform:none!important;}
}

/* ─── RECHERCHE EN DIRECT ─── */
.search-results{
  position:absolute;top:calc(100% + 6px);left:0;right:0;
  background:var(--blanc);border:1px solid var(--ligne);border-radius:8px;
  box-shadow:0 12px 32px rgba(0,0,0,0.14);
  z-index:50;max-height:420px;overflow-y:auto;display:none;
}
.search-results.active{display:block;}
.search-result-item{display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--ligne);}
.search-result-item:last-child{border-bottom:none;}
.search-result-item:hover{background:var(--sable);}
.search-result-item img{width:44px;height:44px;object-fit:cover;border-radius:6px;flex-shrink:0;background:var(--sable-2);}
.search-result-name{font-size:13px;font-weight:500;flex:1;color:var(--encre);}
.search-result-price{font-size:13px;white-space:nowrap;text-align:right;}
.search-price-old{font-size:12px;color:var(--gris);text-decoration:line-through;margin-right:6px;}
.search-price-new{font-weight:700;color:var(--bordeaux);}
.search-empty,.search-loading{padding:14px;font-size:13px;color:var(--gris);text-align:center;}
.search-see-all{display:block;text-align:center;padding:10px 14px;font-size:13px;font-weight:600;color:var(--bordeaux);border-top:1px solid var(--ligne);}
.search-see-all:hover{background:var(--sable);}

/* ─── FICHE PRODUIT ─── */
.product-hero{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;margin-top:12px;}
.product-gallery{position:sticky;top:90px;}
.product-gallery img{border-radius:12px;}
.woocommerce-product-gallery__image{border-radius:12px;overflow:hidden;border:1px solid var(--ligne);background:#fff;}
.woocommerce-product-gallery__image img{width:100%;height:auto;display:block;margin:0;}
.woocommerce-product-gallery__wrapper{margin:0;}
.woocommerce-product-gallery{position:relative;}
.woocommerce-product-gallery .onsale{display:none;}
.flex-control-thumbs{display:flex;gap:10px;margin-top:12px;list-style:none;flex-wrap:wrap;}
.flex-control-thumbs li{width:64px;height:64px;}
.flex-control-thumbs img{width:64px;height:64px;object-fit:cover;border-radius:8px;border:2px solid var(--ligne);cursor:pointer;opacity:.7;}
.flex-control-thumbs img.flex-active,.flex-control-thumbs img:hover{opacity:1;border-color:var(--bordeaux);}

.product-summary-col .product_title{font-size:30px;margin-bottom:8px;}
.product-summary-col .star-rating{margin-bottom:12px;color:var(--or);}
.product-summary-col .price{font-size:24px;font-weight:700;color:var(--bordeaux);display:block;margin-bottom:16px;}
.product-summary-col .price ins{text-decoration:none;}
.product-summary-col .price del{font-size:16px;color:var(--gris);font-weight:400;margin-right:8px;}
.product-summary-col .woocommerce-product-details__short-description{color:var(--gris);margin-bottom:20px;}
.product-summary-col form.cart{margin-bottom:24px;display:flex;gap:12px;align-items:center;}
.product-summary-col .quantity input{width:60px;padding:12px;border:1px solid var(--ligne);border-radius:6px;text-align:center;font-size:14px;}
.product_meta{font-size:13px;color:var(--gris);margin-bottom:24px;display:block;}

.product-trust-badges{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:24px 0;padding:20px;background:var(--sable-2);border-radius:10px;}
.trust-badge{display:flex;align-items:flex-start;gap:10px;}
.trust-badge svg{width:20px;height:20px;color:var(--bordeaux);flex-shrink:0;margin-top:2px;}
.trust-badge strong{display:block;font-size:13px;font-weight:600;color:var(--encre);}
.trust-badge span{display:block;font-size:12px;color:var(--gris);margin-top:2px;}

.product-full-description{border-top:1px solid var(--ligne);padding-top:24px;}
.product-full-description h3{font-size:18px;margin-bottom:12px;}
.product-full-description p{color:var(--gris);margin-bottom:12px;line-height:1.7;}

.product-reviews-section{border-top:1px solid var(--ligne);margin-top:56px;padding-top:40px;}
.product-reviews-section h2{font-size:22px;margin-bottom:20px;}
.product-reviews-section .commentlist{list-style:none;}
.product-reviews-section .comment{border-bottom:1px solid var(--ligne);padding:18px 0;}
.product-reviews-section .star-rating{color:var(--or);margin-bottom:6px;}
.woocommerce-Reviews{display:flex;flex-direction:column;}
#comments{order:2;}
#review_form_wrapper{order:1;margin-bottom:32px;}
.product-reviews-section #review_form_wrapper{background:var(--sable-2);padding:24px;border-radius:10px;}
.product-reviews-section .comment-form-rating label,
.product-reviews-section .comment-form-comment label,
.product-reviews-section .comment-form-author label,
.product-reviews-section .comment-form-email label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;}
.product-reviews-section #comment,
.product-reviews-section input[type="text"],
.product-reviews-section input[type="email"]{
  width:100%;padding:11px 14px;border:1px solid var(--ligne);border-radius:6px;background:var(--blanc);font-family:'Inter',sans-serif;font-size:14px;margin-bottom:16px;
}
.product-reviews-section .form-submit input{
  background:var(--bordeaux);color:#fff;border:none;padding:13px 28px;border-radius:6px;font-weight:600;font-size:14px;cursor:pointer;
}

@media(max-width:960px){
  .product-hero{grid-template-columns:1fr;gap:28px;}
  .product-gallery{position:static;}
  .product-trust-badges{grid-template-columns:1fr;}
}

/* ─── LIGHTBOX GALERIE PERSONNALISÉ ─── */
.gs-lightbox{position:fixed;inset:0;background:rgba(10,8,6,0.6);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);z-index:9999;display:none;flex-direction:column;align-items:center;justify-content:center;}
.gs-lightbox.active{display:flex;}
.gs-lb-stage{max-width:90vw;max-height:75vh;display:flex;align-items:center;justify-content:center;}
.gs-lb-img{max-width:90vw;max-height:75vh;object-fit:contain;border-radius:8px;background:#fff;}
.gs-lb-close{position:absolute;top:20px;right:24px;background:none;border:none;color:#fff;font-size:32px;cursor:pointer;line-height:1;}
.gs-lb-counter{position:absolute;top:24px;left:24px;color:#fff;font-size:14px;opacity:.8;}
.gs-lb-prev,.gs-lb-next{
  position:absolute;top:50%;transform:translateY(-50%);
  background:rgba(255,255,255,0.1);border:none;color:#fff;
  width:48px;height:48px;border-radius:50%;font-size:20px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s;
}
.gs-lb-prev{left:24px;}
.gs-lb-next{right:24px;}
.gs-lb-prev:hover,.gs-lb-next:hover{background:rgba(255,255,255,0.25);}
.gs-lb-thumbs{display:flex;gap:10px;margin-top:24px;max-width:90vw;overflow-x:auto;padding-bottom:4px;}
.gs-lb-thumb{width:56px;height:56px;object-fit:cover;border-radius:6px;cursor:pointer;opacity:.5;border:2px solid transparent;transition:opacity .2s,border-color .2s;flex-shrink:0;}
.gs-lb-thumb:hover{opacity:.8;}
.gs-lb-thumb.active{opacity:1;border-color:var(--or);}
@media(max-width:600px){
  .gs-lb-prev,.gs-lb-next{width:40px;height:40px;font-size:16px;}
  .gs-lb-prev{left:8px;}
  .gs-lb-next{right:8px;}
}

/* ─── MON COMPTE ─── */
.woocommerce-account .woocommerce-page-inner{max-width:1280px;}
.woocommerce-MyAccount-content:has(.gs-dashboard) > p{display:none;}

/* Connexion / Inscription */
.woocommerce-account .u-columns{display:flex;gap:32px;flex-wrap:wrap;}
.woocommerce-form-login,
.woocommerce-form-register{
  flex:1;min-width:280px;
  background:var(--blanc);border:1px solid var(--ligne);border-radius:12px;
  padding:32px;
}
.woocommerce-form-login-toggle,.woocommerce-form-register-toggle{margin-bottom:16px;}
.woocommerce-form-login h2,.woocommerce-form-register h2,.woocommerce-account h2{
  font-size:20px;margin-bottom:20px;color:var(--encre);
}
.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row,
.woocommerce-EditAccountForm .form-row,
.woocommerce-address-fields .form-row{margin-bottom:16px;}
.woocommerce-form-login label,
.woocommerce-form-register label,
.woocommerce-EditAccountForm label,
.woocommerce-address-fields label{
  display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--encre);
}
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="password"],
.woocommerce-form-register input[type="email"],
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields select{
  width:100%;padding:11px 14px;border:1px solid var(--ligne);border-radius:6px;
  background:var(--sable);font-family:'Inter',sans-serif;font-size:14px;color:var(--encre);
}
.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus,
.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus{outline:none;border-color:var(--bordeaux);}
.woocommerce-form-login .woocommerce-form-login__rememberme{display:flex;align-items:center;gap:8px;font-size:13px;margin-bottom:16px;}
.woocommerce-form-login .lost_password{font-size:13px;margin-top:12px;}
.woocommerce-form-login .lost_password a,
.woocommerce-LostPassword a{color:var(--bordeaux);font-weight:600;}
.woocommerce-form-login button:not(.show-password-input),
.woocommerce-form-register button:not(.show-password-input),
.woocommerce-EditAccountForm button:not(.show-password-input),
.woocommerce-address-fields button:not(.show-password-input),
.woocommerce-ResetPassword button:not(.show-password-input){
  background:var(--bordeaux)!important;color:#fff!important;border:none;
  padding:13px 28px;border-radius:6px;font-weight:600;font-size:14px;cursor:pointer;width:100%;
}
.show-password-input{background:none!important;border:none!important;width:auto!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;padding:4px!important;color:var(--gris)!important;}
.password-input{position:relative;display:block!important;}
.woocommerce-form-login button:hover,
.woocommerce-form-register button:hover{background:var(--bordeaux-h)!important;}
.woocommerce-privacy-policy-text{font-size:12px;color:var(--gris);margin-bottom:16px;}

/* Navigation Mon compte -> barre d'onglets */
.woocommerce-MyAccount-navigation{margin-bottom:28px;}
.woocommerce-MyAccount-navigation ul{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;}
.woocommerce-MyAccount-navigation li{margin:0;}
.woocommerce-MyAccount-navigation li a{
  display:block;padding:10px 18px;border-radius:20px;font-size:13px;font-weight:600;
  background:var(--sable-2);color:var(--encre);border:1px solid transparent;
}
.woocommerce-MyAccount-navigation li a:hover{border-color:var(--bordeaux);}
.woocommerce-MyAccount-navigation li.is-active a{background:var(--bordeaux);color:#fff;}

.woocommerce-MyAccount-content{
  background:var(--blanc);border:1px solid var(--ligne);border-radius:12px;padding:32px;
}
.woocommerce-MyAccount-content p{margin-bottom:14px;color:var(--gris);}
.woocommerce-MyAccount-content mark{background:none;color:var(--encre);font-weight:600;}
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-account .woocommerce-message{
  background:var(--sable-2)!important;border:1px solid var(--ligne)!important;
  color:var(--encre)!important;border-radius:8px;padding:16px 20px;margin-bottom:20px;
  list-style:none;display:block;
}
.woocommerce-account .woocommerce-message::before{display:none;}

/* Tableau des commandes */
.woocommerce-orders-table{width:100%;border-collapse:collapse;font-size:15px;}
.woocommerce-orders-table thead th{
  text-align:left;padding:16px 16px;border-bottom:2px solid var(--ligne);
  font-size:13px;text-transform:uppercase;letter-spacing:.5px;color:var(--gris);
}
.woocommerce-orders-table tbody td{padding:20px 16px;border-bottom:1px solid var(--ligne);}
.woocommerce-orders-table .button{font-size:13px!important;padding:10px 20px!important;}

/* Adresses */
.woocommerce-Addresses{display:flex;gap:28px;flex-wrap:wrap;}
.woocommerce-Address{
  flex:1;min-width:280px;background:var(--sable-2);border-radius:14px;padding:32px;
}
.woocommerce-Address-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px;flex-wrap:wrap;}
.woocommerce-Address-title h2{font-size:18px;margin:0;}
.woocommerce-Address-title a.edit{font-size:13px;font-weight:600;color:var(--bordeaux);white-space:nowrap;}
.woocommerce-Address address{font-style:normal;color:var(--gris);line-height:1.9;font-size:15px;}

/* Détails du compte */
.woocommerce-EditAccountForm fieldset{border:1px solid var(--ligne);border-radius:8px;padding:20px;margin-top:20px;}
.woocommerce-EditAccountForm legend{font-size:13px;font-weight:600;padding:0 8px;}

/* Layout général : nav en colonne à gauche */
body.woocommerce-account .woocommerce{display:flex;gap:28px;align-items:flex-start;flex-wrap:wrap;}
.woocommerce-MyAccount-navigation{flex:0 0 260px;margin-bottom:0;}
.woocommerce-MyAccount-content{flex:1;min-width:280px;}

.woocommerce-MyAccount-navigation ul{flex-direction:column;gap:4px;}
.woocommerce-MyAccount-navigation li a{
  display:flex;align-items:center;gap:12px;background:none;border-radius:10px;
  padding:12px 14px;font-size:14px;font-weight:500;color:var(--encre);border:none;
}
.woocommerce-MyAccount-navigation li a:hover{background:var(--sable-2);}
.woocommerce-MyAccount-navigation li.is-active a{background:var(--sable-2);color:var(--bordeaux);font-weight:600;}

.woocommerce-MyAccount-navigation li a::before{
  content:'';display:inline-block;width:18px;height:18px;flex-shrink:0;
  background-color:currentColor;
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain;
}
.woocommerce-MyAccount-navigation-link--dashboard a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l9 7h-3v10h-4v-6h-4v6H6V10H3z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l9 7h-3v10h-4v-6h-4v6H6V10H3z'/%3E%3C/svg%3E");}
.woocommerce-MyAccount-navigation-link--orders a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7l8-4 8 4v10l-8 4-8-4z'/%3E%3Cpath d='M4 7l8 4 8-4M12 11v10' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7l8-4 8 4v10l-8 4-8-4z'/%3E%3C/svg%3E");}
.woocommerce-MyAccount-navigation-link--edit-address a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8 2 5 5.5 5 9.5c0 6 7 12.5 7 12.5s7-6.5 7-12.5C19 5.5 16 2 12 2zm0 10a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8 2 5 5.5 5 9.5c0 6 7 12.5 7 12.5s7-6.5 7-12.5C19 5.5 16 2 12 2zm0 10a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E");}
.woocommerce-MyAccount-navigation-link--edit-account a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-7 8-7s8 3 8 7z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-7 8-7s8 3 8 7z'/%3E%3C/svg%3E");}
.woocommerce-MyAccount-navigation-link--customer-logout a::before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 3h4a2 2 0 012 2v14a2 2 0 01-2 2h-4v-2h4V5h-4zm-2 6l-4-4-1.4 1.4L9.2 8H3v2h6.2l-1.6 1.6L9 13z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 3h4a2 2 0 012 2v14a2 2 0 01-2 2h-4v-2h4V5h-4zm-2 6l-4-4-1.4 1.4L9.2 8H3v2h6.2l-1.6 1.6L9 13z'/%3E%3C/svg%3E");}

.gs-nav-promo{
  margin-top:16px;background:var(--sable-2);border-radius:12px;padding:20px;
}
.gs-nav-promo strong{display:block;font-size:15px;margin-bottom:2px;}
.gs-nav-promo span{display:block;font-size:13px;color:var(--gris);margin-bottom:14px;}
.gs-nav-promo .btn-fill{font-size:13px;padding:9px 18px;}

/* Tableau de bord */
.gs-dashboard h2{font-size:32px;margin-bottom:6px;}
.gs-dashboard-sub{color:var(--gris);margin-bottom:32px;font-size:15px;}
.gs-dashboard-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-bottom:24px;}
.gs-stat-card{background:var(--blanc);border:1px solid var(--ligne);border-radius:14px;padding:26px;}
.gs-stat-top{display:flex;align-items:center;gap:16px;margin-bottom:22px;}
.gs-stat-icon{width:56px;height:56px;border-radius:50%;background:var(--sable-2);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.gs-stat-icon svg{width:24px;height:24px;color:var(--bordeaux);}
.gs-stat-num{font-family:'Playfair Display',serif;font-size:34px;font-weight:700;line-height:1;}
.gs-stat-label{font-size:14px;color:var(--gris);margin-top:4px;}
.gs-stat-link{display:block;font-size:14px;font-weight:600;color:var(--bordeaux);border-top:1px solid var(--ligne);padding-top:16px;}

.gs-dashboard-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px;}
.gs-card{background:var(--blanc);border:1px solid var(--ligne);border-radius:14px;padding:28px;}
.gs-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;}
.gs-card-head h3{font-size:18px;}
.gs-status-badge{background:var(--sable-2);color:var(--bordeaux);font-size:13px;font-weight:600;padding:6px 14px;border-radius:20px;}
.gs-order-preview{display:flex;align-items:center;gap:16px;margin-bottom:20px;}
.gs-order-preview img{width:72px;height:72px;object-fit:cover;border-radius:10px;background:var(--sable-2);}
.gs-order-item-name{font-size:15px;font-weight:500;margin-bottom:6px;}
.gs-order-item-price{font-size:15px;font-weight:700;color:var(--bordeaux);}
.gs-address-preview{font-style:normal;color:var(--gris);font-size:15px;line-height:1.8;margin-bottom:20px;}
.gs-card-link{display:block;font-size:14px;font-weight:600;color:var(--bordeaux);border-top:1px solid var(--ligne);padding-top:16px;}
.gs-empty{color:var(--gris);font-size:14px;margin-bottom:20px;}

.gs-dashboard-trust{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;background:var(--sable-2);border-radius:14px;padding:26px;}
.gs-trust-item{display:flex;align-items:center;gap:12px;}
.gs-trust-item svg{width:22px;height:22px;color:var(--bordeaux);flex-shrink:0;}
.gs-trust-item strong{display:block;font-size:14px;}
.gs-trust-item span{display:block;font-size:13px;color:var(--gris);}


/* ─── MON COMPTE : ajustements finaux ─── */
.woocommerce-account .woocommerce-page-inner{padding-top:32px;max-width:1400px;}
.woocommerce-account h1.page-title,
.woocommerce-account .page-title{font-size:28px!important;margin-bottom:24px!important;}
.woocommerce-MyAccount-navigation{flex:0 0 260px;}
.woocommerce-MyAccount-navigation li a{padding:12px 16px;font-size:14px;}
.woocommerce-MyAccount-navigation li a::before{width:18px;height:18px;}
.gs-nav-promo{padding:20px;}
.gs-nav-promo strong{font-size:15px;}
.gs-nav-promo span{font-size:13px;margin-bottom:14px;}
.gs-nav-promo .btn-fill{font-size:13px;padding:9px 18px;}

@media(max-width:900px){
  .woocommerce-MyAccount-content{padding:24px;}
  .woocommerce-account .woocommerce-page-inner{padding-top:24px;}
  .woocommerce-MyAccount-navigation{flex:1 1 100%;}
  .gs-dashboard-stats,.gs-dashboard-cards{grid-template-columns:1fr;}
  .gs-dashboard-trust{grid-template-columns:1fr 1fr;}
}

/* ─── MES INFORMATIONS : cartes ─── */
.woocommerce-EditAccountForm{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px;align-items:start;}
.woocommerce-EditAccountForm label{margin-bottom:6px;}
.woocommerce-EditAccountForm .woocommerce-Input,
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="date"],
.woocommerce-EditAccountForm input[type="tel"],
.woocommerce-EditAccountForm input[type="email"]{
  padding:11px 14px!important;font-size:14px!important;border-radius:6px!important;
}
.gs-account-card-head{display:flex;align-items:center;gap:10px;margin-bottom:20px;grid-column:1/-1;}
.gs-account-card-head svg{width:20px;height:20px;color:var(--bordeaux);}
.gs-account-card-head h3{font-size:18px;}
.woocommerce-EditAccountForm .form-row-first{grid-column:1;}
.woocommerce-EditAccountForm .form-row-last{grid-column:2;}
.woocommerce-EditAccountForm .form-row-wide{grid-column:1/-1;}
.woocommerce-EditAccountForm fieldset{background:var(--sable-2);border:none;border-radius:12px;padding:22px;margin-top:24px;order:99;grid-column:1/-1;}
.woocommerce-EditAccountForm > p:not(.form-row-first):not(.form-row-last){grid-column:1/-1;}
.woocommerce-EditAccountForm fieldset legend{
  display:flex;align-items:center;gap:8px;font-size:16px;font-family:'Playfair Display',serif;
  font-weight:600;color:var(--encre);padding:0;margin-bottom:16px;width:100%;
}
.woocommerce-EditAccountForm fieldset legend::before{
  content:'';display:inline-block;width:18px;height:18px;flex-shrink:0;
  background-color:var(--bordeaux);
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 1112 0v3h1a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8a2 2 0 012-2zm2 0h8V7a4 4 0 10-8 0z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 10V7a6 6 0 1112 0v3h1a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8a2 2 0 012-2zm2 0h8V7a4 4 0 10-8 0z'/%3E%3C/svg%3E");
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;
}