/* TABLEAU MAROC — PRODUCT GLOBAL V1 | Phases 1–4 on every WooCommerce product */
body.tm-global-product{--tm-ink:#342b24;--tm-gold:#a78041;--tm-paper:#fffdf8;--tm-line:#e7ddcf;--tm-muted:#77685b}
body.tm-global-product *{box-sizing:border-box}

/* ===== PHASE 1 — GLOBAL PRODUCT LAYOUT ===== */
body.tm-global-product main>.tm-wrap.tm-section,
body.tm-global-product .site-main,
body.tm-global-product #primary{max-width:1280px}
body.tm-global-product div.product{width:100%;min-width:0}
body.tm-global-product div.product div.images.woocommerce-product-gallery{float:left!important;width:53%!important;max-width:53%!important;margin:0 3% 26px 0!important;min-width:0!important}
body.tm-global-product div.product div.summary,
body.tm-global-product div.product .summary.entry-summary{float:right!important;width:44%!important;max-width:44%!important;margin:0 0 26px!important;min-width:0!important}
body.tm-global-product .woocommerce-product-gallery__wrapper{width:100%!important;max-width:100%!important;margin:0!important}
body.tm-global-product .woocommerce-product-gallery__image,
body.tm-global-product .woocommerce-product-gallery__image a{width:100%!important;max-width:100%!important;overflow:hidden!important;border-radius:16px!important}
body.tm-global-product .woocommerce-product-gallery__image img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;object-fit:contain!important;border-radius:16px!important}
body.tm-global-product .woocommerce-product-gallery .flex-control-thumbs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;width:100%!important;margin:9px 0 0!important;padding:0!important;list-style:none!important;overflow:visible!important}
body.tm-global-product .woocommerce-product-gallery .flex-control-thumbs li{float:none!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important}
body.tm-global-product .woocommerce-product-gallery .flex-control-thumbs img{display:block!important;width:100%!important;height:76px!important;object-fit:cover!important;border:1px solid #e1d6c7!important;border-radius:9px!important;opacity:.72!important}
body.tm-global-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.tm-global-product .woocommerce-product-gallery .flex-control-thumbs img:hover{opacity:1!important;border-color:var(--tm-gold)!important}
body.tm-global-product .woocommerce-tabs,
body.tm-global-product .related.products,
body.tm-global-product .upsells.products{clear:both!important;width:100%!important}

/* ===== PHASE 2 — DIMENSIONS / BUYING AREA ===== */
body.tm-global-product .tm-variation-pills{display:none!important}
body.tm-global-product.tmglob-ready form.variations_form table.variations select{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
body.tm-global-product form.variations_form table.variations{width:100%!important;margin:12px 0 14px!important;border:0!important}
body.tm-global-product form.variations_form table.variations tr{border:0!important}
body.tm-global-product form.variations_form table.variations th.label{width:105px!important;padding:10px 12px 10px 0!important;vertical-align:top!important;text-align:left!important;font-size:13px!important;font-weight:800!important;color:var(--tm-ink)!important}
body.tm-global-product form.variations_form table.variations td.value{padding:5px 0 10px!important;position:relative!important}
body.tm-global-product .tmp2-options,
body.tm-global-product .tmglob-options{display:flex!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important;margin:0!important}
body.tm-global-product button.tmp2-option,
body.tm-global-product button.tmglob-option{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;min-width:118px!important;margin:0!important;padding:9px 13px!important;border:1px solid #d7c7ad!important;border-radius:999px!important;background:var(--tm-paper)!important;color:var(--tm-ink)!important;box-shadow:none!important;font:800 12px/1.15 Arial,sans-serif!important;cursor:pointer!important;transition:.15s ease!important}
body.tm-global-product button.tmp2-option:hover:not(:disabled),
body.tm-global-product button.tmglob-option:hover:not(:disabled){border-color:var(--tm-gold)!important;transform:translateY(-1px)!important}
body.tm-global-product button.tmp2-option.is-active,
body.tm-global-product button.tmglob-option.is-active{border-color:var(--tm-ink)!important;background:var(--tm-ink)!important;color:#fff!important;box-shadow:0 0 0 1px var(--tm-ink)!important}
body.tm-global-product button.tmp2-option:disabled,
body.tm-global-product button.tmglob-option:disabled{opacity:.35!important;text-decoration:line-through!important;cursor:not-allowed!important}
body.tm-global-product form.variations_form .reset_variations{display:inline-block!important;margin-top:8px!important;font-size:11px!important;color:var(--tm-muted)!important}
body.tm-global-product .single_variation .woocommerce-variation-price{display:none!important}
body.tm-global-product .woocommerce-variation-add-to-cart,
body.tm-global-product .woocommerce-variation-add-to-cart.variations_button,
body.tm-global-product form.cart:not(.variations_form){display:grid!important;grid-template-columns:110px minmax(0,1fr)!important;gap:10px!important;align-items:stretch!important;width:100%!important;margin-top:8px!important}
body.tm-global-product form.cart:not(.variations_form)>.tm-ar-entry,
body.tm-global-product form.cart:not(.variations_form)>.tmglob-ar-placeholder{grid-column:1/-1!important}
body.tm-global-product .quantity{display:grid!important;grid-template-columns:32px 44px 32px!important;align-items:center!important;justify-content:center!important;width:110px!important;min-width:110px!important;height:48px!important;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid #d8cbb8!important;border-radius:12px!important;background:var(--tm-paper)!important}
body.tm-global-product .quantity input.qty{display:block!important;width:44px!important;min-width:44px!important;height:46px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:center!important;color:var(--tm-ink)!important;font-weight:800!important;-moz-appearance:textfield!important}
body.tm-global-product .quantity input.qty::-webkit-inner-spin-button,body.tm-global-product .quantity input.qty::-webkit-outer-spin-button{-webkit-appearance:none!important;margin:0!important}
body.tm-global-product button.tmp2-qty,
body.tm-global-product button.tmglob-qty{display:flex!important;align-items:center!important;justify-content:center!important;width:32px!important;min-width:32px!important;height:46px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--tm-ink)!important;box-shadow:none!important;font:700 21px/1 Arial,sans-serif!important;cursor:pointer!important}
body.tm-global-product button.tmp2-qty:hover,body.tm-global-product button.tmglob-qty:hover{background:#f3ecdf!important}
body.tm-global-product .single_add_to_cart_button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:48px!important;margin:0!important;padding:12px 22px!important;border:0!important;border-radius:12px!important;background:var(--tm-ink)!important;color:#fff!important;box-shadow:none!important;font:800 15px/1.2 Arial,sans-serif!important;text-transform:none!important}
body.tm-global-product .single_add_to_cart_button:hover{background:#241d18!important}
body.tm-global-product .single_add_to_cart_button.disabled,body.tm-global-product .single_add_to_cart_button:disabled{opacity:.48!important;cursor:not-allowed!important}
body.tm-global-product .tmp2-payment-note,
body.tm-global-product .tmglob-payment-note{grid-column:1/-1!important;display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;padding-top:1px!important;color:#5f5348!important;font-size:12px!important;font-weight:700!important}
body.tm-global-product .tmp2-payment-note:before,
body.tm-global-product .tmglob-payment-note:before{content:'✓';display:inline-grid;place-items:center;width:17px;height:17px;border:1px solid var(--tm-gold);border-radius:50%;color:var(--tm-gold);font-size:11px}

/* ===== PHASE 3 — AR + TRUST ===== */
body.tm-global-product .tm-product-trust{display:none!important}
body.tm-global-product .tm-ar-entry{width:100%!important;margin:12px 0 10px!important;clear:both!important}
body.tm-global-product form.cart .tm-ar-entry{grid-column:1/-1!important;display:block!important;width:100%!important;margin:12px 0 10px!important}
body.tm-global-product button.tm-ar-open{appearance:none!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-height:58px!important;gap:11px!important;margin:0!important;padding:10px 13px!important;border:1px solid #d8c8ae!important;border-radius:13px!important;background:var(--tm-paper)!important;color:var(--tm-ink)!important;box-shadow:0 3px 12px rgba(52,43,36,.05)!important;text-align:left!important;transform:none!important}
body.tm-global-product button.tm-ar-open:hover{border-color:var(--tm-gold)!important;background:#fbf5ea!important;transform:translateY(-1px)!important}
body.tm-global-product button.tm-ar-open .tm-ar-icon{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;min-width:36px!important;margin:0!important;border-radius:10px!important;background:var(--tm-ink)!important;color:#fff!important;font-size:17px!important}
body.tm-global-product button.tm-ar-open strong{display:block!important;color:var(--tm-ink)!important;font:800 13px/1.15 Arial,sans-serif!important}
body.tm-global-product button.tm-ar-open small{display:block!important;margin-top:3px!important;color:var(--tm-muted)!important;font:500 10.5px/1.25 Arial,sans-serif!important}
body.tm-global-product .tmp3-trust,
body.tm-global-product .tmglob-trust{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:10px 0 9px!important;padding:0!important;clear:both!important}
body.tm-global-product .tmp3-trust-item,
body.tm-global-product .tmglob-trust-item{display:flex!important;align-items:center!important;min-width:0!important;gap:7px!important;padding:8px!important;border:1px solid var(--tm-line)!important;border-radius:12px!important;background:var(--tm-paper)!important;box-shadow:0 2px 8px rgba(52,43,36,.035)!important}
body.tm-global-product .tmp3-trust-icon,
body.tm-global-product .tmglob-trust-icon{display:grid!important;place-items:center!important;width:27px!important;height:27px!important;min-width:27px!important;border-radius:50%!important;background:#f3eadc!important;color:#8d6b35!important}
body.tm-global-product .tmp3-trust-icon svg,
body.tm-global-product .tmglob-trust-icon svg{display:block!important;width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
body.tm-global-product .tmp3-trust-item strong,
body.tm-global-product .tmglob-trust-item strong{display:block!important;margin:0!important;color:var(--tm-ink)!important;font:800 10.8px/1.2 Arial,sans-serif!important}
body.tm-global-product .tmp3-trust-item small,
body.tm-global-product .tmglob-trust-item small{display:block!important;margin-top:2px!important;color:var(--tm-muted)!important;font:500 9.8px/1.22 Arial,sans-serif!important}
body.tm-global-product .summary .product_title{margin-bottom:8px!important;letter-spacing:-.015em!important}
body.tm-global-product .summary>.price,body.tm-global-product .summary>p.price{margin:4px 0 8px!important;color:var(--tm-gold)!important}
body.tm-global-product .product_meta{margin-top:12px!important;padding-top:9px!important;border-top:1px solid #eee5d9!important;color:var(--tm-muted)!important;font-size:10.5px!important}
body.tm-global-product .product_meta a{color:var(--tm-muted)!important;text-decoration:none!important}

/* ===== PHASE 4 — CONTENT / FAQ / MOBILE ===== */
body.tm-global-product .woocommerce-tabs,body.tm-global-product .woocommerce-Tabs-panel,body.tm-global-product .woocommerce-product-details__short-description,body.tm-global-product .entry-content{min-width:0}
body.tm-global-product .woocommerce-Tabs-panel,body.tm-global-product .woocommerce-product-details__short-description{overflow-wrap:anywhere;word-break:normal}
body.tm-global-product .woocommerce-Tabs-panel img,body.tm-global-product .woocommerce-product-details__short-description img,body.tm-global-product .entry-content img{max-width:100%!important;height:auto!important}
body.tm-global-product .woocommerce-Tabs-panel iframe,body.tm-global-product .entry-content iframe,body.tm-global-product .woocommerce-Tabs-panel video,body.tm-global-product .entry-content video{max-width:100%}
body.tm-global-product .tm-p4-faq,body.tm-global-product .tmglob-faq{clear:both;width:100%;margin:28px auto 8px;padding:0 16px;box-sizing:border-box}
body.tm-global-product .tm-p4-faq__inner,body.tm-global-product .tmglob-faq__inner{max-width:1180px;margin:0 auto;border:1px solid rgba(166,126,53,.22);border-radius:16px;background:#fffaf2;padding:24px;box-sizing:border-box}
body.tm-global-product .tm-p4-faq__eyebrow,body.tm-global-product .tmglob-faq__eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;color:#a6792d;margin-bottom:4px}
body.tm-global-product .tm-p4-faq h2,body.tm-global-product .tmglob-faq h2{margin:0 0 16px!important;font-size:clamp(22px,2vw,30px)!important;line-height:1.2!important}
body.tm-global-product .tm-p4-faq details,body.tm-global-product .tmglob-faq details{border-top:1px solid rgba(55,43,32,.12);margin:0;padding:0}
body.tm-global-product .tm-p4-faq details:first-of-type,body.tm-global-product .tmglob-faq details:first-of-type{border-top:0}
body.tm-global-product .tm-p4-faq summary,body.tm-global-product .tmglob-faq summary{cursor:pointer;list-style:none;font-weight:800;padding:15px 34px 15px 0;position:relative}
body.tm-global-product .tm-p4-faq summary::-webkit-details-marker,body.tm-global-product .tmglob-faq summary::-webkit-details-marker{display:none}
body.tm-global-product .tm-p4-faq summary::after,body.tm-global-product .tmglob-faq summary::after{content:'+';position:absolute;right:4px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#f2e6d2;color:#3b3027;font-size:18px;line-height:1}
body.tm-global-product .tm-p4-faq details[open] summary::after,body.tm-global-product .tmglob-faq details[open] summary::after{content:'−'}
body.tm-global-product .tm-p4-faq__answer,body.tm-global-product .tmglob-faq__answer{padding:0 34px 16px 0;color:#5c5045;line-height:1.65}
/* Hide the old Phase 4 sticky; Global V1 owns the sticky bar everywhere. */
body.tm-global-product .tm-p4-sticky{display:none!important}
body.tm-global-product .tmglob-sticky{display:none}

@media(max-width:1050px){
 body.tm-global-product .tmp3-trust,body.tm-global-product .tmglob-trust{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.tm-global-product .tmp3-trust-item:last-child,body.tm-global-product .tmglob-trust-item:last-child{grid-column:1/-1!important}
}
@media(max-width:800px){
 body.tm-global-product div.product div.images.woocommerce-product-gallery,
 body.tm-global-product div.product div.summary,
 body.tm-global-product div.product .summary.entry-summary{float:none!important;width:100%!important;max-width:100%!important;margin:0 0 20px!important}
 body.tm-global-product .woocommerce-product-gallery .flex-control-thumbs{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 body.tm-global-product .woocommerce-product-gallery .flex-control-thumbs img{height:64px!important}
 body.tm-global-product form.variations_form table.variations,body.tm-global-product form.variations_form table.variations tbody,body.tm-global-product form.variations_form table.variations tr,body.tm-global-product form.variations_form table.variations th,body.tm-global-product form.variations_form table.variations td{display:block!important;width:100%!important}
 body.tm-global-product form.variations_form table.variations th.label{padding:4px 0 6px!important}
 body.tm-global-product .tmp2-options,body.tm-global-product .tmglob-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 body.tm-global-product button.tmp2-option,body.tm-global-product button.tmglob-option{width:100%!important;min-width:0!important;min-height:44px!important;padding:9px 8px!important}
 body.tm-global-product .woocommerce-variation-add-to-cart,body.tm-global-product .woocommerce-variation-add-to-cart.variations_button,body.tm-global-product form.cart:not(.variations_form){grid-template-columns:104px minmax(0,1fr)!important;gap:8px!important}
 body.tm-global-product .quantity{width:104px!important;min-width:104px!important;grid-template-columns:30px 44px 30px!important}
 body.tm-global-product button.tmp2-qty,body.tm-global-product button.tmglob-qty{width:30px!important;min-width:30px!important}
 body.tm-global-product .tmp3-trust,body.tm-global-product .tmglob-trust{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin:9px 0 8px!important}
 body.tm-global-product .tmp3-trust-item:last-child,body.tm-global-product .tmglob-trust-item:last-child{grid-column:1/-1!important}
}
@media(max-width:767px){
 body.tm-global-product{padding-bottom:84px}
 body.tm-global-product .woocommerce-tabs ul.tabs{display:none!important}
 body.tm-global-product .woocommerce-tabs .panel{display:none!important;margin:0!important;padding:0 14px 16px!important;border:0!important;overflow-x:auto}
 body.tm-global-product .woocommerce-tabs .panel.tmglob-panel-open{display:block!important}
 body.tm-global-product .tmglob-mobile-tab-title{width:100%;appearance:none;border:0;border-top:1px solid rgba(45,36,29,.14);background:#fff;color:#2d241d;text-align:left;padding:15px 42px 15px 14px;font-size:15px;font-weight:800;position:relative;cursor:pointer}
 body.tm-global-product .tmglob-mobile-tab-title::after{content:'+';position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:20px;font-weight:500}
 body.tm-global-product .tmglob-mobile-tab-title[aria-expanded="true"]::after{content:'−'}
 body.tm-global-product .woocommerce-tabs{border:1px solid rgba(45,36,29,.12);border-radius:12px;overflow:hidden;background:#fff}
 body.tm-global-product .tm-p4-faq,body.tm-global-product .tmglob-faq{margin-top:20px;padding:0 12px}
 body.tm-global-product .tm-p4-faq__inner,body.tm-global-product .tmglob-faq__inner{padding:18px 16px;border-radius:14px}
 body.tm-global-product .tmglob-sticky{position:fixed;left:10px;right:10px;bottom:10px;z-index:9997;display:flex;align-items:center;gap:10px;padding:8px;border:1px solid rgba(60,47,36,.15);border-radius:15px;background:rgba(255,250,242,.97);box-shadow:0 12px 36px rgba(29,22,17,.20);backdrop-filter:blur(10px);transform:translateY(140%);opacity:0;pointer-events:none;transition:transform .22s ease,opacity .22s ease}
 body.tm-global-product .tmglob-sticky.is-show{transform:translateY(0);opacity:1;pointer-events:auto}
 body.tm-global-product .tmglob-sticky__price{min-width:82px;padding-left:4px;color:#9d7025;font-weight:900;font-size:15px;line-height:1.15}
 body.tm-global-product .tmglob-sticky__price small{display:block;color:#756a60;font-size:10px;font-weight:600;margin-bottom:2px}
 body.tm-global-product .tmglob-sticky__button{flex:1;min-height:46px;border:0;border-radius:11px;padding:10px 14px;background:#372c24;color:#fff;font-weight:900;font-size:14px;cursor:pointer}
 body.tm-global-product .tmglob-sticky__button.is-disabled{background:#a9a39d}
}

 body.tm-global-product .tmglob-sticky__button:empty::before{content:attr(data-label);color:#fff!important;font-weight:900!important;font-size:14px!important}
@media(max-width:520px){body.tm-global-product .tmp3-trust,body.tm-global-product .tmglob-trust{grid-template-columns:1fr!important}body.tm-global-product .tmp3-trust-item:last-child,body.tm-global-product .tmglob-trust-item:last-child{grid-column:auto!important}}
@media(max-width:390px){
 body.tm-global-product .woocommerce-variation-add-to-cart,body.tm-global-product .woocommerce-variation-add-to-cart.variations_button,body.tm-global-product form.cart:not(.variations_form){grid-template-columns:1fr!important}
 body.tm-global-product .quantity{width:100%!important;min-width:100%!important;grid-template-columns:42px 1fr 42px!important}
 body.tm-global-product .quantity input.qty{width:100%!important;min-width:0!important}
 body.tm-global-product button.tmp2-qty,body.tm-global-product button.tmglob-qty{width:42px!important;min-width:42px!important}
}

/* V1.3.3: Commander label hardening against other CTA plugins/theme CSS. */
body.tm-global-product .tmglob-sticky__button{font-size:14px!important;color:#fff!important;text-indent:0!important;line-height:1.2!important;opacity:1!important;visibility:visible!important;}
body.tm-global-product .tmglob-sticky__button .tmglob-sticky__button-label{display:inline!important;visibility:visible!important;opacity:1!important;color:#fff!important;font-size:14px!important;font-weight:900!important;line-height:1.2!important;text-indent:0!important;position:relative!important;z-index:3!important;}
body.tm-global-product .tmglob-sticky__button:empty::before{content:attr(data-label)!important;display:inline!important;visibility:visible!important;opacity:1!important;color:#fff!important;font-size:14px!important;font-weight:900!important;}


/* V1.4.2 — direct checkout CTA: strong premium contrast under Ajouter au panier */
body.tm-global-product .tmglob-direct-checkout{
  grid-column:1/-1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:48px!important;
  margin:0!important;
  padding:12px 22px!important;
  border:2px solid #8b6117!important;
  border-radius:12px!important;
  background:#a9781f!important;
  color:#fff!important;
  box-shadow:0 7px 18px rgba(139,97,23,.24)!important;
  font:900 15px/1.2 Arial,sans-serif!important;
  text-transform:none!important;
  cursor:pointer!important;
}
body.tm-global-product .tmglob-direct-checkout:hover{background:#8b6117!important;color:#fff!important;transform:translateY(-1px)!important;box-shadow:0 10px 22px rgba(139,97,23,.30)!important}
body.tm-global-product .tmglob-direct-checkout.is-disabled,
body.tm-global-product .tmglob-direct-checkout:disabled{opacity:.48!important;cursor:not-allowed!important}
body.tm-global-product .tmglob-direct-checkout.is-loading{opacity:.7!important}
