/* ==========================================================================
   Be Active At Home - habillage premium (finitions, WooCommerce, PDP, motion)
   Faible specificite pour rester surchargeable par le design system.
   ========================================================================== */

:root {
  --baah-forest: #3e4a3b;
  --baah-olive: #545c4c;
  --baah-sage: #9ca396;
  --baah-terra: #b27f63;
  --baah-terra-dark: #9c6a50;
  --baah-ecru: #f7f8f7;
  --baah-mist: #edf2ec;
  --baah-line: rgba(62, 74, 59, .12);
  --baah-radius: 16px;
  --baah-shadow: 0 24px 50px -30px rgba(62, 74, 59, .45);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

a, .wp-element-button, .button,
.woocommerce ul.products li.product,
.woocommerce div.product form.cart .button,
.woocommerce-product-gallery__image img {
  transition: color .25s ease, background-color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, opacity .35s ease;
}

/* Pas d'espace parasite entre les blocs de premier niveau (header / main / footer).
   Chaque section gere son propre padding. */
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
.wp-site-blocks > main > * + * { margin-block-start: 0 !important; }

/* ------------------------------- Header --------------------------------- */
.baah-site-header { position: sticky; top: 0; z-index: 200; }
/* Pas d'espace parasite entre le bandeau d'annonce et la barre de navigation. */
.baah-site-header > * + * { margin-block-start: 0 !important; }
.baah-announce {
  background: var(--baah-forest); color: #eef2ec;
  font-size: .8rem; letter-spacing: .04em; text-align: center;
  padding: .5rem 1rem;
}
.baah-announce p { margin: 0; }
.baah-header { border-bottom: 1px solid var(--baah-line); }
.baah-nav-link { margin: 0; font-size: .98rem; font-weight: 500; }
.baah-nav-link a { text-decoration: none; }
.baah-nav-link a:hover { color: var(--baah-terra); }
.wp-block-site-title a { text-decoration: none; }

/* ---------------------------- Eyebrow / kicker -------------------------- */
.baah-eyebrow {
  text-transform: uppercase; letter-spacing: .22em;
  font-size: .78rem !important; font-weight: 600; margin: 0 0 .35rem;
}

/* ------------------------------- Hero ----------------------------------- */
.baah-hero { position: relative; }
.baah-hero-media { position: relative; }

/* Produits qui flottent autour de l'image du hero */
.baah-float {
  position: absolute; z-index: 3; width: 132px; background: #fff;
  border-radius: 16px; padding: 10px 10px 8px; text-decoration: none;
  box-shadow: 0 22px 45px -20px rgba(62, 74, 59, .5);
  display: block; transition: transform .3s ease, box-shadow .3s ease;
}
.baah-float:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 28px 55px -20px rgba(62, 74, 59, .55); }
.baah-float img { width: 100%; border-radius: 10px; display: block; background: var(--baah-ecru); }
.baah-float .fp { display: block; margin-top: 7px; font-size: .82rem; font-weight: 600; color: var(--baah-forest); text-align: center; }
.baah-float-1 { top: 4%; left: -9%; animation: baah-floaty 5s ease-in-out infinite; }
.baah-float-2 { bottom: 5%; right: -9%; animation: baah-floaty 5.8s ease-in-out infinite .9s; }
@keyframes baah-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@media (prefers-reduced-motion: reduce) { .baah-float { animation: none !important; } }
@media (max-width: 981px) { .baah-float { width: 104px; } .baah-float-1 { left: -2%; } .baah-float-2 { right: -2%; } }
@media (max-width: 600px) { .baah-float { display: none; } }
.baah-hero-media::before {
  content: ""; position: absolute; inset: 14% -5% -6% 20%;
  border-radius: var(--baah-radius);
  background: var(--baah-mist); z-index: 0;
}
@media (max-width: 781px) { .baah-hero-media::before { display: none; } }
.baah-hero-img { position: relative; z-index: 1; margin: 0; }
.baah-hero-img img {
  width: 100%; height: auto; border-radius: var(--baah-radius);
  object-fit: cover; box-shadow: var(--baah-shadow); aspect-ratio: 4/5;
}

/* --------------------------- Sections generiques ------------------------ */
.baah-section h2, .baah-cta h2 { text-align: center; }
.baah-kicker-center { text-align: center; }

/* ------------------------- Grille produits (home + archive) ------------- */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important; margin: 0 !important;
}
/* WooCommerce ajoute des pseudo-elements clearfix qui deviennent des cases
   fantomes dans une grille CSS : on les supprime. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after { content: none !important; display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important;
  text-align: center; background: #fff; border-radius: var(--baah-radius);
  padding: 1.1rem 1.1rem 1.5rem; box-shadow: 0 1px 0 var(--baah-line);
  position: relative; overflow: hidden;
  display: flex !important; flex-direction: column;
}
/* Bouton toujours en bas de carte -> boutons alignes entre eux */
.woocommerce ul.products li.product .button { margin-top: auto !important; }
.woocommerce ul.products li.product .price { margin-bottom: .25rem; }
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px); box-shadow: var(--baah-shadow);
}
.woocommerce ul.products li.product a img {
  border-radius: 12px; margin-bottom: 1.1rem; background: var(--baah-ecru);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.03); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.02rem; font-weight: 600; color: var(--baah-forest);
  padding: .2rem 0 .4rem; line-height: 1.35;
}
.woocommerce ul.products li.product .price {
  color: var(--baah-olive) !important; font-weight: 600; font-size: 1.05rem;
}
.woocommerce ul.products li.product .price del { opacity: .5; font-weight: 400; }
.woocommerce ul.products li.product .button { margin-top: 1rem; }

@media (max-width: 900px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem !important; }
}
@media (max-width: 560px) {
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr !important; }
}

/* ------------------------------- Boutons -------------------------------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce .button,
.woocommerce #respond input#submit, .woocommerce div.product form.cart .button,
.woocommerce-page a.button, .woocommerce-page button.button,
.woocommerce .single_add_to_cart_button {
  background-color: var(--baah-forest); color: #fff; border-radius: 999px;
  font-weight: 600; padding: .85em 1.9em; border: none; line-height: 1.2;
  letter-spacing: .01em; box-shadow: none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .button:hover,
.woocommerce #respond input#submit:hover, .woocommerce div.product form.cart .button:hover,
.woocommerce-page a.button:hover, .woocommerce-page button.button:hover,
.woocommerce .single_add_to_cart_button:hover {
  background-color: var(--baah-terra); color: #fff; transform: translateY(-1px);
}
.woocommerce a.added_to_cart { margin-left: .5rem; align-self: center; text-decoration: underline; }

/* ======================= FICHE PRODUIT (PDP) ============================= */
/* Fil d'Ariane cadre a la meme largeur que le contenu (plus colle a gauche). */
.baah-pdp .woocommerce-breadcrumb {
  max-width: 1200px; width: 100%; box-sizing: border-box;
  margin: 0 auto 1.25rem !important; padding: 0 1.25rem;
  color: var(--baah-sage);
}
.baah-pdp .woocommerce-breadcrumb a { color: var(--baah-olive); }

.single-product div.product {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 3.5rem;
  align-items: start; max-width: 1200px; margin: 0 auto;
  padding: var(--wp--preset--spacing--50, 3rem) 1.25rem;
}
.single-product .woocommerce-product-gallery { margin: 0 !important; width: 100% !important; float: none !important; }
.single-product .woocommerce-product-gallery__wrapper { border-radius: var(--baah-radius); overflow: hidden; }
.single-product .woocommerce-product-gallery__image img { border-radius: var(--baah-radius); background: var(--baah-ecru); }
.single-product .flex-control-thumbs { margin-top: 1rem; display: flex; gap: .75rem; }
.single-product .flex-control-thumbs li { width: 72px !important; }
.single-product .flex-control-thumbs img { border-radius: 10px; opacity: .6; }
.single-product .flex-control-thumbs img.flex-active,
.single-product .flex-control-thumbs img:hover { opacity: 1; outline: 2px solid var(--baah-sage); }

.single-product div.product .summary.entry-summary {
  margin: 0 !important; width: 100% !important; float: none !important;
}
.single-product .product_title.entry-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.1; margin-bottom: .5rem;
}
.single-product div.product p.price,
.single-product div.product .summary .price {
  color: var(--baah-forest); font-weight: 600; font-size: 1.6rem; margin: .25rem 0 1.25rem;
}
.single-product .woocommerce-product-details__short-description { color: var(--baah-olive); line-height: 1.7; margin-bottom: 1.5rem; }
.single-product div.product form.cart { margin-bottom: 1.5rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
/* Selecteur de quantite moderne (stepper) */
.single-product div.product form.cart .quantity {
  display: inline-flex !important; align-items: center; height: 52px; flex: 0 0 auto;
  border: 1px solid var(--baah-line); border-radius: 999px; background: #fff; overflow: hidden;
  width: auto !important;
}
.single-product div.product form.cart .quantity .baah-qty-btn { flex: 0 0 auto; }
.baah-qty-btn {
  border: none; background: transparent; width: 46px; height: 100%;
  font-size: 1.3rem; color: var(--baah-forest); cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease;
}
.baah-qty-btn:hover { background: var(--baah-mist); color: var(--baah-terra); }
.single-product div.product form.cart .quantity input.qty {
  width: 40px !important; height: 100% !important; border: none !important; border-radius: 0 !important;
  text-align: center; font-weight: 600; color: var(--baah-forest); background: transparent; padding: 0 !important;
  -moz-appearance: textfield; box-shadow: none !important;
}
.single-product div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product div.product form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.single-product div.product form.cart .single_add_to_cart_button { flex: 1; min-width: 200px; height: 52px; }
.single-product .product_meta { font-size: .85rem; color: var(--baah-sage); border-top: 1px solid var(--baah-line); padding-top: 1rem; }
.single-product .product_meta a { color: var(--baah-olive); }

/* Bloc de reassurance sous le bouton (injecte via functions.php) */
.baah-assurance { list-style: none; margin: 1.5rem 0 0; padding: 1.25rem 1.35rem; background: var(--baah-mist); border-radius: var(--baah-radius); display: grid; gap: .95rem; }
.baah-assurance li { display: flex; align-items: center; gap: .75rem; font-size: .92rem; color: var(--baah-olive); margin: 0; }
.baah-assurance li svg { flex: 0 0 auto; }
.baah-assurance li strong { color: var(--baah-forest); font-weight: 600; }

/* Onglets description */
.woocommerce-tabs { max-width: 1200px; margin: 0 auto; padding: var(--wp--preset--spacing--50, 3rem) 1.25rem; grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 1.5rem; display: flex; gap: .5rem; flex-wrap: wrap; border: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent; border: 1px solid var(--baah-line); border-radius: 999px;
  padding: 0; margin: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--baah-olive); font-weight: 500; padding: .55em 1.3em; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--baah-forest); border-color: var(--baah-forest); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs .panel { color: var(--baah-olive); line-height: 1.8; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }

/* Produits lies */
.woocommerce .related.products, .woocommerce .upsells.products {
  grid-column: 1 / -1; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem var(--wp--preset--spacing--60, 4.5rem);
}
.woocommerce .related.products > h2, .woocommerce .upsells.products > h2 { text-align: center; margin-bottom: 2rem; }

@media (max-width: 860px) {
  .single-product div.product { grid-template-columns: 1fr; gap: 2rem; }
  .single-product div.product .summary.entry-summary { position: static; }
}

/* Barre d'achat collante mobile */
.baah-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: #fff; border-top: 1px solid var(--baah-line);
  box-shadow: 0 -10px 30px -20px rgba(62,74,59,.4);
  display: none; align-items: center; gap: 1rem; padding: .7rem 1rem;
  transform: translateY(110%); transition: transform .35s ease;
}
.baah-buybar.show { transform: translateY(0); }
.baah-buybar .bp { font-weight: 600; color: var(--baah-forest); }
.baah-buybar .bt { flex: 1; }
.baah-buybar button {
  width: 100%; background: var(--baah-forest); color: #fff; border: none;
  border-radius: 999px; padding: .85em 1rem; font-weight: 600; font-size: 1rem;
}
@media (max-width: 860px) { .single-product .baah-buybar { display: flex; } }

/* --------------------------- Archive / Boutique ------------------------- */
.woocommerce-shop main,
.post-type-archive-product main,
.tax-product_cat main {
  padding-top: var(--wp--preset--spacing--50, 3rem) !important;
  padding-bottom: var(--wp--preset--spacing--60, 4.5rem) !important;
}
.wc-block-breadcrumbs, .woocommerce-breadcrumb { margin-bottom: 1.25rem !important; }
.woocommerce-products-header__title, .wp-block-query-title { margin-bottom: .25rem; }
.woocommerce-result-count { color: var(--baah-sage); margin-bottom: 1.5rem; }
.woocommerce .woocommerce-ordering select,
.woocommerce-ordering select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: 1px solid var(--baah-line);
  border-radius: 999px;
  padding: .7em 2.8em .7em 1.3em;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233e4a3b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1em center;
  background-size: 14px;
  font-family: inherit; font-size: .95rem; font-weight: 500;
  color: var(--baah-forest); cursor: pointer;
  box-shadow: 0 1px 2px rgba(62, 74, 59, .06);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.woocommerce .woocommerce-ordering select:hover,
.woocommerce-ordering select:hover { border-color: var(--baah-sage); }
.woocommerce .woocommerce-ordering select:focus,
.woocommerce-ordering select:focus {
  outline: none; border-color: var(--baah-forest);
  box-shadow: 0 0 0 3px rgba(156, 163, 150, .35);
}

/* ------------------------------ Footer ---------------------------------- */
.baah-foot-link { margin: .35rem 0; font-size: .95rem; }
.baah-foot-link a { color: #dfe6dc; text-decoration: none; }
.baah-foot-link a:hover { color: #fff; }

/* --------------------------- Avis / temoignages ------------------------- */
.baah-quote {
  background: #fff; border-radius: var(--baah-radius); padding: 1.75rem;
  box-shadow: 0 1px 0 var(--baah-line); height: 100%;
}
.baah-quote p { margin: 0 0 1rem; color: var(--baah-forest); font-size: 1.05rem; line-height: 1.6; }
.baah-quote cite { color: var(--baah-sage); font-style: normal; font-weight: 600; font-size: .9rem; }
.baah-stars { color: var(--baah-terra); letter-spacing: .1em; margin-bottom: .5rem; }

/* ------------------------------ Lookbook -------------------------------- */
.baah-look img { border-radius: var(--baah-radius); width: 100%; height: 100%; object-fit: cover; }

/* --------------------- Icones de reassurance ---------------------------- */
.baah-ticon { text-align: center; margin-bottom: .6rem; line-height: 0; }
.baah-ticon svg { display: inline-block; }

/* ------------------------- Section Fait en France ----------------------- */
.baah-france-map { max-width: 440px; margin: 0 auto; }
.baah-france-svg { width: 100%; height: auto; overflow: visible; display: block; }
.baah-france-svg .baah-pulse {
  opacity: .3; transform-box: fill-box; transform-origin: center;
  animation: baah-pulse 2.6s ease-out infinite;
}
@keyframes baah-pulse {
  0% { transform: scale(.4); opacity: .5; }
  100% { transform: scale(2.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .baah-france-svg .baah-pulse { animation: none; opacity: .25; } }
.baah-fr-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.baah-fr-tags .baah-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid var(--baah-line); border-radius: 999px;
  padding: .5em 1.1em; font-size: .85rem; font-weight: 500; color: var(--baah-forest);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.baah-fr-tags .baah-tag::after {
  content: "i"; font-family: Georgia, serif; font-style: italic; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--baah-mist); color: var(--baah-olive); font-size: .72rem; line-height: 1;
}
.baah-fr-tags .baah-tag:hover, .baah-fr-tags .baah-tag:focus {
  border-color: var(--baah-sage); box-shadow: 0 6px 14px -8px rgba(62,74,59,.35); transform: translateY(-1px);
}

/* ---------------------- Visuel plateforme (section communaute) ---------- */
.baah-platform-img { margin: 0; }
.baah-platform-img img {
  width: 100%; height: auto;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, .32));
}

/* ============================ Vague 1 ==================================== */

/* Note Google dans le hero */
.baah-google {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.6rem;
  background: #fff; border: 1px solid var(--baah-line); border-radius: 999px;
  padding: .5rem 1.05rem; box-shadow: 0 2px 8px rgba(62,74,59,.07);
}
.baah-google .baah-stars { color: #f6a609; letter-spacing: .04em; font-size: .95rem; }
.baah-google-txt { font-size: .9rem; color: var(--baah-forest); }
.baah-google-txt strong { font-weight: 700; }

/* 3e produit flottant */
.baah-float-3 { top: 8%; right: -7%; animation: baah-floaty 6.2s ease-in-out infinite .5s; }

/* Icone panier dans l'en-tete */
.baah-cart-link a { display: inline-flex; align-items: center; gap: .4rem; }

/* Infobulles pastilles Fait en France */
.baah-tag { position: relative; cursor: help; }
.baah-tip {
  position: absolute; bottom: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(8px) scale(.97);
  width: 258px; max-width: 74vw; background: #fff; color: var(--baah-olive);
  font-size: .85rem; font-weight: 400; line-height: 1.55; text-transform: none; letter-spacing: normal;
  text-align: left; padding: .95rem 1.1rem; border-radius: 16px; border: 1px solid var(--baah-line);
  opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease;
  z-index: 30; pointer-events: none;
  box-shadow: 0 26px 48px -20px rgba(62, 74, 59, .4);
}
.baah-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-top: -7px;
  width: 14px; height: 14px; background: #fff;
  border-right: 1px solid var(--baah-line); border-bottom: 1px solid var(--baah-line);
  transform: translateX(-50%) rotate(45deg);
}
.baah-tag:hover .baah-tip, .baah-tag:focus .baah-tip {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1);
}

/* Titre de la section France a gauche */
.baah-france h2 { text-align: left; }

/* Carrousel d'avis Google */
.baah-reviews-head { text-align: center; margin-bottom: 2.5rem; }
.baah-reviews-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 600; color: var(--baah-forest); margin: .25rem 0 .8rem; letter-spacing: -.02em; }
.baah-google-rating { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--baah-olive); }
.baah-google-rating .baah-stars { color: #f6a609; }
.baah-reviews-marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.baah-reviews-track {
  display: flex; width: max-content; padding: .75rem 0 1rem;
  animation: baah-marquee 90s linear infinite;
}
.baah-reviews-marquee:hover .baah-reviews-track { animation-play-state: paused; }
@keyframes baah-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .baah-reviews-track { animation: none; }
  .baah-reviews-marquee { overflow-x: auto; }
}
.baah-review {
  flex: 0 0 330px; max-width: 330px; margin-right: 1.25rem; background: #fff;
  border: 1px solid var(--baah-line); border-radius: var(--baah-radius); padding: 1.5rem;
}
.baah-review-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.baah-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--baah-mist);
  color: var(--baah-forest); font-weight: 600; font-size: .9rem; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.baah-review-id { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.baah-review-id strong { font-weight: 600; color: var(--baah-forest); font-size: .93rem; }
.baah-review-date { font-size: .78rem; color: var(--baah-sage); }
.baah-review .baah-stars { color: #f6a609; font-size: .95rem; letter-spacing: .05em; margin-bottom: .5rem; display: block; }
.baah-review p { margin: 0; color: var(--baah-olive); line-height: 1.6; font-size: .93rem; }

/* ============================ Vague 2 : bandeau plateforme =============== */
.baah-platform-bar { box-shadow: 0 26px 55px -28px rgba(0, 0, 0, .6); }
.baah-platform-inner { display: flex; align-items: center; gap: 1.6rem; }
.baah-platform-thumb { width: 128px; height: auto; flex: 0 0 auto; filter: drop-shadow(0 12px 22px rgba(0,0,0,.14)); }
.baah-platform-text { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.baah-platform-text strong { color: var(--baah-forest); font-weight: 600; font-size: 1.08rem; }
.baah-platform-text span { color: var(--baah-olive); font-size: .92rem; line-height: 1.5; }
.baah-platform-btn {
  flex: 0 0 auto; background: var(--baah-forest); color: #fff; text-decoration: none;
  padding: .75em 1.5em; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: background-color .25s ease;
}
.baah-platform-btn:hover { background: var(--baah-terra); color: #fff; }
@media (max-width: 720px) {
  .baah-platform-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .baah-platform-text { align-items: center; }
}

/* ============================ Vague 3 : panier + notices ================= */
/* Fini le vert fluo sur les messages "ajoute au panier" */
.woocommerce-message,
.woocommerce-info,
.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-info {
  background-color: var(--baah-mist) !important;
  border: 1px solid var(--baah-sage) !important;
  border-radius: 12px !important;
  color: var(--baah-forest) !important;
}
.woocommerce-message::before { color: var(--baah-sage) !important; }
.wc-block-components-notice-banner.is-success > svg,
.wc-block-components-notice-banner.is-info > svg { fill: var(--baah-forest) !important; }
.woocommerce-message a.button { background: var(--baah-forest) !important; }

/* Panier (blocs WooCommerce) */
.wc-block-cart, .wp-block-woocommerce-cart { color: var(--baah-forest); }
.wc-block-cart__submit-button,
.wc-block-components-button.contained,
.wc-block-components-checkout-place-order-button {
  background: var(--baah-forest) !important; color: #fff !important;
  border-radius: 999px !important; font-weight: 600 !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-button.contained:hover { background: var(--baah-terra) !important; }
.wc-block-components-product-price__value,
.wc-block-components-totals-item__value,
.wc-block-cart-item__total-price-and-sale-badge-wrapper { color: var(--baah-forest); font-weight: 600; }
.wc-block-cart-items__header, .wc-block-cart-item__product { color: var(--baah-forest); }
.wc-block-components-totals-item { color: var(--baah-olive); }
.wc-block-cart__sidebar .wc-block-components-totals-wrapper,
.wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
  background: var(--baah-ecru); border-radius: var(--baah-radius); border: 1px solid var(--baah-line);
}
.wc-block-components-quantity-selector { border-radius: 999px !important; border-color: var(--baah-line) !important; }
.wc-block-components-product-metadata { color: var(--baah-olive); }
/* Panier classique (si shortcode) */
.woocommerce table.shop_table { border-radius: var(--baah-radius); border-color: var(--baah-line); overflow: hidden; }
.woocommerce table.shop_table th { color: var(--baah-forest); }
.woocommerce .cart_totals h2 { color: var(--baah-forest); }

/* ============================ Vague suivante ============================ */
/* Pastille "Brodé à Hossegor" flottante sur l'image du hero */
.baah-hero-flag {
  position: absolute; z-index: 4; bottom: 6%; left: 6%;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .96); border-radius: 999px; padding: .5rem .95rem;
  font-size: .85rem; font-weight: 600; color: var(--baah-forest);
  box-shadow: 0 14px 28px -14px rgba(62, 74, 59, .55);
}
.baah-hero-flag svg { flex: 0 0 auto; border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
@media (max-width: 600px) { .baah-hero-flag { display: none; } }

/* Messages d'erreur WooCommerce a la charte (fini le bandeau rouge moche) */
.woocommerce-error,
.wc-block-components-notice-banner.is-error {
  background-color: #f6ece6 !important;
  border: 1px solid var(--baah-terra) !important;
  border-radius: 12px !important;
  color: #7a4d38 !important;
  box-shadow: none !important;
}
.woocommerce-error { list-style: none !important; padding: 1em 1.25em !important; }
.woocommerce-error li { color: #7a4d38; }
.woocommerce-error::before { color: var(--baah-terra) !important; }
.wc-block-components-notice-banner.is-error > svg { fill: var(--baah-terra) !important; }

/* ===================== Fiche produit restructuree ======================= */
.baah-details h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: var(--baah-forest); margin-bottom: 1rem; text-align: left; }
.baah-details h3 { font-size: 1.15rem; font-weight: 600; color: var(--baah-forest); margin: 1.9rem 0 .8rem; }
.baah-details-desc { color: var(--baah-olive); line-height: 1.8; }
.baah-details-table { width: 100%; border-collapse: collapse; border: 1px solid var(--baah-line); border-radius: var(--baah-radius); overflow: hidden; }
.baah-details-table th, .baah-details-table td { text-align: left; padding: .85rem 1.15rem; border-bottom: 1px solid var(--baah-line); font-size: .95rem; }
.baah-details-table tr:last-child th, .baah-details-table tr:last-child td { border-bottom: none; }
.baah-details-table th { background: var(--baah-mist); color: var(--baah-forest); font-weight: 600; width: 42%; }
.baah-details-table td { color: var(--baah-olive); }

.baah-other-row { display: flex; gap: 3rem; align-items: center; }
.baah-other-head { flex: 0 0 27%; }
.baah-other-head h2 { text-align: left; margin: 0 0 .75rem; color: var(--baah-forest); }
.baah-other-head p { color: var(--baah-olive); margin: 0 0 1.25rem; line-height: 1.6; }
.baah-other-link { font-weight: 600; color: var(--baah-forest); text-decoration: none; border-bottom: 2px solid var(--baah-terra); padding-bottom: 2px; }
.baah-other-link:hover { color: var(--baah-terra); }
.baah-other-grid { flex: 1; min-width: 0; }
.baah-other-products ul.products {
  grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem !important; justify-content: initial;
}
@media (max-width: 860px) {
  .baah-other-row { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .baah-other-head { flex: none; }
  .baah-other-head h2 { text-align: center; }
  .baah-other-head p, .baah-other-head .baah-other-link { text-align: center; display: block; }
}

/* Miniatures galerie : de l'air sous la photo principale */
.single-product .woocommerce-product-gallery .flex-control-thumbs { margin-top: 1.4rem !important; }

/* Stock faible */
.stock.baah-lowstock, p.baah-lowstock, .baah-lowstock { color: var(--baah-terra) !important; font-weight: 600; }

/* Details (attributs) dans le bloc d'achat */
.baah-summary-details { margin: 1.25rem 0 0; }
.baah-summary-details h3 { font-size: 1.05rem; font-weight: 600; color: var(--baah-forest); margin: 0 0 .6rem; }
.baah-summary-details .baah-details-table th { width: 48%; }
.single-product .summary .woocommerce-product-details__short-description p { margin: 0 0 .8rem; }

/* Details produit depliable (accordeon natif) */
.baah-detoggle { margin: 1.35rem 0 0; border: 1px solid var(--baah-line); border-radius: var(--baah-radius); overflow: hidden; background: #fff; }
.baah-detoggle summary {
  cursor: pointer; list-style: none; padding: .95rem 1.15rem; font-weight: 600;
  color: var(--baah-forest); display: flex; align-items: center; justify-content: space-between;
  transition: background-color .2s ease;
}
.baah-detoggle summary:hover { background: var(--baah-ecru); }
.baah-detoggle summary::-webkit-details-marker { display: none; }
.baah-detoggle summary::after {
  content: ""; width: 9px; height: 9px; flex: 0 0 auto; margin-left: 1rem;
  border-right: 2px solid var(--baah-olive); border-bottom: 2px solid var(--baah-olive);
  transform: rotate(45deg); transition: transform .25s ease;
}
.baah-detoggle[open] summary::after { transform: rotate(-135deg); }
.baah-detoggle .baah-details-table { border: none; border-radius: 0; border-top: 1px solid var(--baah-line); }

/* ==================== Stepper quantite generalise ====================== */
.baah-qty-wrap {
  display: inline-flex !important; align-items: center; height: 48px; flex: 0 0 auto;
  border: 1px solid var(--baah-line); border-radius: 999px; background: #fff; overflow: hidden; width: auto !important;
}
.baah-qty-wrap .baah-qty-btn { flex: 0 0 auto; width: 42px; }
.baah-qty-wrap input.qty {
  width: 40px !important; height: 100% !important; border: none !important; border-radius: 0 !important;
  text-align: center; font-weight: 600; color: var(--baah-forest); background: transparent; padding: 0 !important;
  -moz-appearance: textfield; box-shadow: none !important; min-height: 0 !important;
}
.baah-qty-wrap input.qty::-webkit-outer-spin-button,
.baah-qty-wrap input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ============================ PANIER (refonte pro) ====================== */
body.woocommerce-cart .woocommerce {
  display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 2.5rem;
  align-items: start; max-width: 1150px; margin: 0 auto;
}
body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
@media (max-width: 900px) { body.woocommerce-cart .woocommerce { grid-template-columns: 1fr; } }

body.woocommerce-cart .woocommerce-cart-form { margin: 0; }
body.woocommerce-cart table.cart {
  border: 1px solid var(--baah-line) !important; border-radius: var(--baah-radius); overflow: hidden;
  border-collapse: separate !important; border-spacing: 0; background: #fff; width: 100%; margin: 0;
}
body.woocommerce-cart table.cart thead th {
  background: var(--baah-ecru); color: var(--baah-forest); font-weight: 600; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .05em; padding: .9rem 1rem; border: none; text-align: left;
}
body.woocommerce-cart table.cart thead th.product-remove,
body.woocommerce-cart table.cart thead th.product-thumbnail { font-size: 0; }
body.woocommerce-cart table.cart td {
  border: none !important; border-top: 1px solid var(--baah-line) !important; padding: 1.1rem 1rem; vertical-align: middle; background: #fff;
}
body.woocommerce-cart table.cart td.product-thumbnail img { width: 72px; height: auto; border-radius: 10px; background: var(--baah-ecru); }
body.woocommerce-cart table.cart td.product-name a { color: var(--baah-forest); font-weight: 600; text-decoration: none; }
body.woocommerce-cart table.cart td.product-name a:hover { color: var(--baah-terra); }
body.woocommerce-cart table.cart .product-price, body.woocommerce-cart table.cart .product-subtotal { color: var(--baah-forest); font-weight: 600; }
body.woocommerce-cart table.cart td.product-remove { text-align: center; width: 44px; }
body.woocommerce-cart table.cart td.product-remove a {
  color: var(--baah-forest) !important; font-size: 0; display: inline-flex; width: 26px; height: 26px;
  border-radius: 50%; align-items: center; justify-content: center; background: var(--baah-mist);
  transition: background-color .2s ease, color .2s ease; line-height: 1;
}
body.woocommerce-cart table.cart td.product-remove a::before { content: "\00d7"; font-size: 1.15rem; }
body.woocommerce-cart table.cart td.product-remove a:hover { background: var(--baah-terra); color: #fff !important; }
body.woocommerce-cart table.cart td.actions { background: var(--baah-ecru); padding: 1.1rem 1rem; }
body.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: .6rem; align-items: center; }
body.woocommerce-cart #coupon_code { border-radius: 999px !important; border: 1px solid var(--baah-line) !important; padding: .65em 1.1em !important; height: auto !important; min-width: 160px; }

body.woocommerce-cart .cart-collaterals { width: 100% !important; float: none !important; margin: 0; }
body.woocommerce-cart .cart-collaterals .cross-sells { display: none; }
body.woocommerce-cart .cart_totals {
  width: 100% !important; float: none !important; background: #fff; border: 1px solid var(--baah-line);
  border-radius: var(--baah-radius); padding: 1.6rem; position: sticky; top: 110px;
}
body.woocommerce-cart .cart_totals h2 { margin-top: 0; font-size: 1.2rem; color: var(--baah-forest); }
body.woocommerce-cart .cart_totals table { border: none !important; margin: 0; }
body.woocommerce-cart .cart_totals table th, body.woocommerce-cart .cart_totals table td {
  border: none !important; border-top: 1px solid var(--baah-line) !important; padding: .8rem 0; color: var(--baah-olive); font-weight: 500;
}
body.woocommerce-cart .cart_totals table tr:first-child th, body.woocommerce-cart .cart_totals table tr:first-child td { border-top: none !important; }
body.woocommerce-cart .cart_totals .order-total th, body.woocommerce-cart .cart_totals .order-total td { color: var(--baah-forest); font-size: 1.15rem; font-weight: 700; }
body.woocommerce-cart .wc-proceed-to-checkout { padding: 1.25rem 0 0; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: block; width: 100%; text-align: center; font-size: 1rem; padding: 1em; }
