/* ===========================
   SELECT VARIATIONS (premium)
   =========================== */
.woocommerce div.product form.cart .variations select{
  appearance:none;
  width:100%;
  height:46px;
  padding:0 40px 0 16px;
  font-size:15px;
  font-weight:400;
  background:#fff;
  border:1px solid #e7e1dc;
  border-radius:14px;
  box-shadow:0 4px 12px rgba(0,0,0,.03);
  transition:all .2s ease;
}
.woocommerce div.product form.cart .variations select:hover{border-color:#d9cfc9}
.woocommerce div.product form.cart .variations select:focus{
  outline:none;
  border-color:#B03A3A;
  box-shadow:0 0 0 2px rgba(176,58,58,.12);
}

/* Quantité (produit) */
.single-product .quantity .qty,
.single-product .quantity button{
  border-radius:10px !important;
  border-color:#e6dfda !important;
}

/* ===========================
   BOUTONS ELEMENTOR (global)
   =========================== */
.elementor-button{
  transition:transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  border:1px solid transparent;
}
.elementor-button:hover{transform:translateY(-2px)}
.elementor-button:focus-visible{
  outline:2px solid rgba(255,255,255,.7);
  outline-offset:3px;
}
.btn-outline .elementor-button{
  background-color:rgba(255,255,255,.06) !important;
  backdrop-filter:blur(2px);
  border:1px solid #fff !important;
  color:#fff !important;
}
.btn-outline .elementor-button:hover{
  background-color:#fff !important;
  color:#222 !important;
  border-color:#fff !important;
}

/* ===========================
   BOUTON "VOIR LE PANIER" (Woo)
   =========================== */
.single-product .added_to_cart,
.woocommerce a.added_to_cart{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:46px;
  padding:0 22px;
  background:transparent;
  border:1px solid #d9cfc9;
  border-radius:12px;
  color:#6b5f59;
  font-weight:500;
  text-decoration:none;
  transition:all .2s ease;
}
.single-product .added_to_cart:hover,
.woocommerce a.added_to_cart:hover{
  border-color:#B03A3A;
  color:#B03A3A;
  background:rgba(176,58,58,.05);
  transform:translateY(-1px);
}

/* ===========================
   PRODUIT (Woo natif) – PRO
   =========================== */
body.single-product{background:#fff}
.single-product .site-main{padding-top:14px}

.single-product .woocommerce-breadcrumb{
  font-size:13px;
  opacity:.75;
  margin:0 0 12px !important;
}

/* Galerie */
.single-product .woocommerce-product-gallery{
  background: linear-gradient(180deg, #f2efec 0%, #ede9e6 100%);
  padding:14px !important;
  border-radius:14px;
  box-shadow:0 14px 34px rgba(0,0,0,.06);
}
.single-product .woocommerce-product-gallery img{
  border-radius:12px;
  max-height:520px;
  width:100%;
  object-fit:contain;
}

/* Summary */
.single-product .summary{
  background:transparent !important;
  padding:0 0 0 40px !important;
  box-shadow:none !important;
}

/* Titre + prix */
.single-product h1.product_title{
  font-size:32px !important;
  line-height:1.18 !important;
  font-weight:600;
  margin:0 0 10px !important;
}
.single-product .summary .price{
  font-size:22px !important;
  font-weight:600;
  margin:0 0 14px !important;
}

/* Description courte */
.single-product .woocommerce-product-details__short-description p{
  margin:0 0 10px !important;
  line-height:1.7;
  opacity:.92;
}

/* Séparateur */
.single-product .summary hr{
  border:0;
  height:1px;
  background:rgba(0,0,0,.08);
  margin:16px 0 !important;
}

/* Labels variations */
.single-product .variations label{
  font-size:12px;
  letter-spacing:.03em;
  text-transform:uppercase;
  font-weight:600;
  opacity:.85;
}

/* Sticky achat desktop */
@media (min-width: 992px){
  .single-product .summary{position:sticky; top:96px;}
}

/* Tabs */
.single-product .woocommerce-tabs{margin-top:38px}
.single-product .woocommerce-tabs ul.tabs{border-bottom:1px solid rgba(0,0,0,.08)}
.single-product .woocommerce-tabs ul.tabs li a{
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
  text-transform:uppercase;
  opacity:.75;
}
.single-product .woocommerce-tabs ul.tabs li.active a{opacity:1}
.single-product .woocommerce-tabs .panel{
  line-height:1.85;
  padding-top:26px !important;
  padding-bottom:26px !important;
}
.single-product .woocommerce-tabs h2{
  font-size:22px;
  margin-top:34px;
}

/* Related hover */
.single-product .related.products .product{
  transition:transform .25s ease, box-shadow .25s ease;
}
.single-product .related.products .product:hover{
  transform:translateY(-6px);
  box-shadow:0 16px 30px rgba(0,0,0,.08);
}

/* ==========================
   PAQUET CADEAU (panier)
   -> version GRID uniquement (doublons supprimés)
   ========================== */

/* Ligne totaux */
.woocommerce-cart .cc-giftwrap-row th{
  vertical-align:top;
  padding-top:18px;
  white-space:nowrap;
}
.woocommerce-cart .cc-giftwrap-row td{
  padding-top:16px;
  padding-bottom:16px;
}
.woocommerce-cart .cc-giftwrap-form{width:100%}

/* Checkbox + texte : grille propre */
.woocommerce-cart .cc-giftwrap-check{
  display:grid !important;
  grid-template-columns:18px 1fr;
  align-items:center;
  gap:12px;
  margin:0;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  border-radius:0 !important;
  box-shadow:none !important;
  cursor:pointer;
}
.woocommerce-cart .cc-giftwrap-check input[type="checkbox"]{
  margin:0 !important;
  width:16px;
  height:16px;
}
.woocommerce-cart .cc-giftwrap-check > span{
  display:flex !important;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin:0 !important;
  text-align:left !important;
  white-space:normal;
}
.woocommerce-cart .cc-giftwrap-check strong{
  display:inline;
  white-space:nowrap;
  font-weight:600;
}
.woocommerce-cart .cc-giftwrap-price{
  white-space:nowrap;
  opacity:.75;
  font-weight:600;
}

/* Note + textarea */
.woocommerce-cart .cc-giftwrap-note{
  margin-top:12px !important;
  padding-top:12px;
  border-top:1px dashed rgba(0,0,0,.12);
}
.woocommerce-cart .cc-giftwrap-note-label{
  display:block;
  font-size:13px;
  opacity:.8;
  margin:0 0 6px;
}
.woocommerce-cart .cc-giftwrap-note textarea{
  width:100% !important;
  max-width:100% !important;
  min-height:84px;
  border-radius:12px;
  padding:10px 12px;
  resize:vertical;
}

/* Actions */
.woocommerce-cart .cc-giftwrap-actions{
  margin-top:10px;
  display:flex;
  justify-content:flex-end;
}
.woocommerce-cart .cc-giftwrap-actions .button{
  border-radius:10px;
  padding:10px 14px;
  min-height:42px;
}

/* Mobile */
@media (max-width: 520px){
  .woocommerce-cart .cc-giftwrap-check strong{white-space:normal;}
  .woocommerce-cart .cc-giftwrap-check > span{flex-wrap:wrap;}
}

/* ==========================
   OVERLAY LOADING PANIER
   ========================== */
.cc-cart-loading{
  position:fixed;
  inset:0;
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(3px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}
.cc-cart-loading.active{
  opacity:1;
  pointer-events:all;
}
.cc-cart-spinner{
  width:38px;
  height:38px;
  border-radius:50%;
  border:3px solid rgba(0,0,0,.15);
  border-top-color:#8f2d2d;
  animation:ccSpin .8s linear infinite;
}
@keyframes ccSpin{to{transform:rotate(360deg)}}

/* ==========================
   CATÉGORIES (tuiles)
   ========================== */
.woocommerce ul.products li.product-category a{
  position:relative !important;
  display:block !important;
}
.woocommerce ul.products li.product-category img{
  width:100% !important;
  aspect-ratio:4 / 3 !important;
  object-fit:cover !important;
  border-radius:16px !important;
  filter:saturate(1.02) contrast(1.02) !important;
}
.woocommerce ul.products li.product-category h2{
  position:absolute !important;
  left:14px !important;
  right:14px !important;
  bottom:14px !important;
  margin:0 !important;
  padding:10px 12px !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.85) !important;
  backdrop-filter:blur(6px) !important;
  font-size:16px !important;
  font-weight:700 !important;
  text-align:center !important;
}
.woocommerce ul.products{gap:26px !important;}
.product-category .count{display:none !important;}

/* ==========================
   SOUS-CATÉGORIES (grille)
   ========================== */
.cc-subcats{margin:10px 0 25px;}
.cc-subcats-title,
.cc-products-title{
  text-align:center;
  font-size:22px;
  margin:10px 0 22px;
}
.cc-subcats-title{font-size:18px; margin:0 0 12px;}

.cc-subcats-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:14px;
}
.cc-subcat{
  display:flex;
  flex-direction:column;
  gap:8px;
  text-decoration:none;
  background:#fff;
  border-radius:14px;
  padding:10px;
  box-shadow:0 8px 20px rgba(0,0,0,.05);
  transition:transform .2s ease, box-shadow .2s ease;
}
.cc-subcat:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(0,0,0,.08);
}
.cc-subcat-img img{
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  border-radius:12px;
  display:block;
}
.cc-subcat-name{
  font-size:13px;
  font-weight:600;
  text-align:center;
  line-height:1.2;
}
@media (max-width: 1200px){
  .cc-subcats-grid{grid-template-columns:repeat(4, minmax(0, 1fr));}
}
@media (max-width: 768px){
  .cc-subcats-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
}

/* ==========================
   ARCHIVES (layout)
   ========================== */
.post-type-archive-product main .ct-container{grid-template-columns:1fr !important;}
.post-type-archive-product #sidebar{display:none !important;}
.archive .hero-section{
  background:#fff;
  padding:0;
  text-align:center;
  position:relative;
}
.post-type-archive ul.products{
  grid-template-columns:repeat(3, 1fr);
  row-gap:60px;
}
.cc-cta-full{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  margin-top:80px;
}
.post-type-archive-product .ct-container,
.tax-product_cat .ct-container,
.tax-product_tag .ct-container{padding-bottom:0;}

/* ==========================
   CART “CARDS”
   ========================== */
.woocommerce-cart table.shop_table thead{display:none!important}
.woocommerce-cart table.shop_table,
.woocommerce-cart table.shop_table tbody,
.woocommerce-cart table.shop_table tr,
.woocommerce-cart table.shop_table td{
  border:0!important;
  background:transparent!important;
}
.woocommerce-cart tr.cart_item > td{padding:0!important}

.cc-cart-card{
  display:grid;
  grid-template-columns:96px 1fr auto;
  gap:18px;
  align-items:center;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:18px;
  margin:0 0 14px 0;
  box-shadow:0 18px 50px rgba(0,0,0,.06);
}
.cc-cart-thumb img{
  width:96px;
  height:96px;
  object-fit:cover;
  border-radius:16px;
  box-shadow:0 16px 40px rgba(0,0,0,.10);
}
.cc-cart-title a{
  color:#1b1b1b;
  font-weight:750;
  text-decoration:none;
  font-size:15px;
  line-height:1.25;
}
.cc-cart-meta{margin-top:8px;color:rgba(0,0,0,.55);font-size:13px}
.cc-cart-actions{display:flex;gap:14px;align-items:center}
.cc-cart-price{font-weight:900;color:#1b1b1b;white-space:nowrap}
.cc-cart-remove a{
  width:36px;height:36px;line-height:36px;
  border-radius:12px;
  background:rgba(0,0,0,.04);
  color:rgba(0,0,0,.7)!important;
}
.cc-cart-remove a:hover{background:rgba(176,58,58,.12);color:#B03A3A!important}

.cc-totals-reassurance{
  display:grid;
  gap:6px;
  margin:12px 0 8px;
  padding:12px;
  border-radius:14px;
  background:rgba(0,0,0,.03);
  color:rgba(0,0,0,.65);
  font-size:13px;
}
@media (max-width:768px){
  .cc-cart-card{
    grid-template-columns:80px 1fr;
    grid-template-rows:auto auto;
    align-items:start;
  }
  .cc-cart-actions{grid-column:1 / -1;justify-content:space-between}
  .cc-cart-thumb img{width:80px;height:80px;border-radius:14px}
  
  
.post-type-archive ul.products{
  grid-template-columns:repeat(1, 1fr);
  row-gap:60px;
}
}

/* =========================
   PANIER — LUXE (layout + totals)
   ========================= */
@media (min-width: 992px){
  body.woocommerce-cart .woocommerce{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 500px;
    gap:28px;
    align-items:start;
  }
  body.woocommerce-cart .woocommerce > form.woocommerce-cart-form{grid-column:1;}
  body.woocommerce-cart .woocommerce > .cart-collaterals{grid-column:2; margin:0 !important;}
  body.woocommerce-cart .cart-collaterals .cart_totals{position:sticky; top:110px;}
}

/* Carte Totaux */
body.woocommerce-cart .cart-collaterals .cart_totals{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:22px;
  box-shadow:0 22px 60px rgba(0,0,0,.06);
}
body.woocommerce-cart .cart_totals > h2{
  font-size:14px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
  margin:0 0 14px 0;
}
body.woocommerce-cart .cart_totals table.shop_table,
body.woocommerce-cart .cart_totals table.shop_table tr,
body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td{
  border:0 !important;
}
body.woocommerce-cart .cart_totals table.shop_table tr{
  border-bottom:1px solid rgba(0,0,0,.08) !important;
}
body.woocommerce-cart .cart_totals table.shop_table tr:last-child{border-bottom:0 !important;}
body.woocommerce-cart .cart_totals table.shop_table th{
  color:rgba(0,0,0,.70);
  font-weight:700;
}
body.woocommerce-cart .cart_totals table.shop_table td{font-weight:800;}
body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td{
  font-size:16px;
  font-weight:950;
}
body.woocommerce-cart .cc-totals-reassurance{
  background:rgba(0,0,0,.03);
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
  padding:12px 14px;
  margin:12px 0 14px 0;
}
body.woocommerce-cart .cc-totals-reassurance div{display:flex;align-items:center;gap:8px;}

body.woocommerce-cart .woocommerce-shipping-methods li{
  background:rgba(0,0,0,.02);
  border:1px solid rgba(0,0,0,.06);
  border-radius:12px;
  padding:12px;
  margin:10px 0;
}
body.woocommerce-cart .woocommerce-shipping-methods input[type="radio"]{
  accent-color:#B03A3A;
  transform:scale(1.05);
  margin-right:8px;
}

/* CTA checkout */
body.woocommerce-cart .wc-proceed-to-checkout{margin-top:16px;}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{
  width:100%;
  border-radius:14px !important;
  padding:16px !important;
  background:#B03A3A !important;
  border:1px solid #B03A3A !important;
  font-weight:900 !important;
  letter-spacing:1px;
  text-transform:uppercase;
  box-shadow:0 18px 40px rgba(176,58,58,.22);
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover{
  filter:brightness(.92);
  transform:translateY(-2px);
}
body.woocommerce-cart .cart_totals label{font-weight:700;}

/* =========================
   CART — Coupon premium card
   ========================= */
.woocommerce-cart .cc-cart-coupon{
  margin:18px 0 0;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  padding:18px;
  box-shadow:0 18px 50px rgba(0,0,0,.06);
  max-width:740px;
}
.woocommerce-cart .cc-cart-coupon::before{
  content:"Code promo";
  display:block;
  font-size:12px;
  font-weight:900;
  letter-spacing:.9px;
  text-transform:uppercase;
  color:rgba(0,0,0,.65);
  margin-bottom:10px;
}
.woocommerce-cart .cc-cart-coupon .coupon{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
  margin:0;
}
.woocommerce-cart .cc-cart-coupon input#coupon_code{
  height:46px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  padding:0 14px;
  box-shadow:0 8px 20px rgba(0,0,0,.04);
}
.woocommerce-cart .cc-cart-coupon input#coupon_code:focus{
  outline:none;
  border-color:rgba(176,58,58,.55);
  box-shadow:0 0 0 4px rgba(176,58,58,.10);
}
.woocommerce-cart .cc-cart-coupon button[name="apply_coupon"]{
  height:46px;
  border-radius:8px;
  padding:0 18px;
  background:#B03A3A;
  border:1px solid #B03A3A;
  color:#fff;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
  box-shadow:0 14px 34px rgba(176,58,58,.20);
}
.woocommerce-cart .cc-cart-coupon button[name="apply_coupon"]:hover{
  filter:brightness(.93);
  transform:translateY(-1px);
}
@media (max-width: 640px){
  .woocommerce-cart .cc-cart-coupon .coupon{grid-template-columns:1fr;}
  .woocommerce-cart .cc-cart-coupon button[name="apply_coupon"]{width:100%;}
}

/* Cache le coupon natif dans la ligne actions (si encore présent) */
.woocommerce-cart td.actions{
  display:flex;
  justify-content:flex-end;
  padding-top:10px !important;
}
.woocommerce-cart td.actions .coupon{display:none !important;}

/* Message Woo */
.woocommerce-cart .woocommerce-message{
  border:1px solid rgba(0,0,0,.08) !important;
  border-left:4px solid rgba(176,58,58,.55) !important;
  border-radius:16px !important;
  background:rgba(255,255,255,.75) !important;
  box-shadow:0 16px 40px rgba(0,0,0,.05);
}