/* Tawhid : habillage cinématique des pages WooCommerce (boutique, catégories, produit, panier, commande).
   Chargé seulement sur les pages WooCommerce. Les couleurs se changent ici. */
:root{
  --tm-bg:#0a1214; --tm-surface:#111c1f; --tm-ink:#efe6d6; --tm-muted:#a8b3b0;
  --tm-gold:#e8b05a; --tm-teal:#5fb3a8; --tm-line:rgba(239,230,214,.18);
  --tm-display:"Cormorant Garamond",Georgia,serif; --tm-body:"Instrument Sans",system-ui,sans-serif;
}
body.tm-woo{margin:0;background:var(--tm-bg)!important;color:var(--tm-ink);font-family:var(--tm-body);padding-top:64px}
body.tm-woo #page,body.tm-woo .site,body.tm-woo .site-content,body.tm-woo #content,body.tm-woo .ast-container,
body.tm-woo #primary,body.tm-woo #main,body.tm-woo .ast-woocommerce-container,body.tm-woo .ast-article-single,
body.tm-woo .ast-separate-container #primary,body.tm-woo .ast-separate-container .ast-article-post,
body.tm-woo .ast-separate-container .ast-article-single,body.tm-woo .ast-separate-container .comments-area{background:transparent!important;box-shadow:none!important}
body.tm-woo #masthead,body.tm-woo .ast-mobile-header-wrap,body.tm-woo .main-header-bar-wrap,body.tm-woo .ast-above-header-wrap,body.tm-woo .ast-below-header-wrap,body.tm-woo #ast-mobile-header{display:none!important}
body.tm-woo .site-content>.ast-container,body.tm-woo .ast-container{max-width:1120px;padding-left:20px;padding-right:20px}
body.tm-woo #secondary,body.tm-woo .widget-area{display:none!important}
body.tm-woo #primary{width:100%!important;margin:0!important;padding:0!important}
body.tm-woo a{color:var(--tm-gold)}
body.tm-woo h1,body.tm-woo h2,body.tm-woo h3,body.tm-woo h4{font-family:var(--tm-display);color:var(--tm-ink);letter-spacing:-.01em}
body.tm-woo p,body.tm-woo li,body.tm-woo label,body.tm-woo td,body.tm-woo th{color:var(--tm-ink)}
body.tm-woo .woocommerce-breadcrumb,body.tm-woo .woocommerce-breadcrumb a,body.tm-woo .woocommerce-result-count,body.tm-woo .term-description p{color:var(--tm-muted)!important}

/* barre du haut */
.tm-bar{position:fixed;top:0;left:0;right:0;z-index:9999;height:64px;background:#000;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 20px}
body.admin-bar .tm-bar{top:32px}
@media(max-width:782px){body.admin-bar .tm-bar{top:46px}}
.tm-brand{font:700 1.5rem/1 var(--tm-display);color:var(--tm-ink)!important;text-decoration:none}
.tm-brand i{font-style:normal;color:var(--tm-gold)}
.tm-nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap;justify-content:flex-end}
.tm-nav a{color:var(--tm-ink)!important;text-decoration:none;font:500 .9rem/1 var(--tm-body)}
.tm-nav a:hover{color:var(--tm-gold)!important}
@media(max-width:640px){.tm-nav{gap:12px}.tm-nav a{font-size:.8rem}.tm-bar{padding:0 14px}.tm-brand{font-size:1.25rem}}

/* titres de page et de catégorie */
body.tm-woo .woocommerce-products-header{padding:24px 0 8px}
body.tm-woo .woocommerce-products-header__title,body.tm-woo h1.page-title,body.tm-woo h1.entry-title,body.tm-woo .product_title{font-size:clamp(2.6rem,6vw,4.4rem);line-height:.98;margin:0 0 16px}
body.tm-woo .term-description{max-width:36rem;margin-bottom:12px}
body.tm-woo .woocommerce-ordering select{background:var(--tm-surface);color:var(--tm-ink);border:1.5px solid var(--tm-line);border-radius:4px;padding:8px 10px}

/* grille de produits (boutique et catégories) */
body.tm-woo ul.products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px;margin:24px 0 48px!important;padding:0}
body.tm-woo ul.products::before,body.tm-woo ul.products::after{display:none!important}
body.tm-woo ul.products li.product{float:none!important;width:auto!important;margin:0!important;padding:0 0 16px!important;background:var(--tm-surface);border:1px solid var(--tm-line);border-radius:6px;overflow:hidden;display:flex;flex-direction:column;text-align:left}
body.tm-woo ul.products li.product a img{width:100%;aspect-ratio:1/1;object-fit:contain;margin:0!important;background:radial-gradient(70% 70% at 50% 40%,#1f3a3c,#0c1517)}
body.tm-woo ul.products li.product .woocommerce-loop-product__title{font:700 1.5rem/1.05 var(--tm-display);padding:14px 16px 0!important;color:var(--tm-ink)}
body.tm-woo ul.products li.product .price{padding:8px 16px 0;font:700 1.5rem/1 var(--tm-display);color:var(--tm-gold)!important}
body.tm-woo ul.products li.product .button{margin:12px 16px 0;align-self:flex-start}
body.tm-woo ul.products li.product .ast-woo-product-category,body.tm-woo ul.products li.product .ast-woo-shop-product-description{padding:6px 16px 0;color:var(--tm-muted)}

/* boutons */
body.tm-woo .button,body.tm-woo button.button,body.tm-woo a.button,body.tm-woo input.button,body.tm-woo .single_add_to_cart_button,
body.tm-woo .wc-block-components-button,body.tm-woo .wp-element-button,body.tm-woo #place_order{
  background:var(--tm-gold)!important;color:#1a1205!important;border:0!important;border-radius:3px!important;padding:14px 22px!important;font:700 .95rem/1 var(--tm-body)!important;text-decoration:none!important;cursor:pointer}
body.tm-woo .button:hover,body.tm-woo .single_add_to_cart_button:hover,body.tm-woo #place_order:hover{background:#f3c47e!important}
body.tm-woo .button.alt,body.tm-woo .button.disabled{opacity:1}

/* page produit */
body.tm-woo.single-product div.product{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;padding-top:20px}
body.tm-woo.single-product div.product div.images,body.tm-woo.single-product div.product div.summary,body.tm-woo.single-product div.product .woocommerce-product-gallery{float:none!important;width:100%!important;margin:0!important}
body.tm-woo.single-product div.product .woocommerce-tabs,body.tm-woo.single-product div.product .related,body.tm-woo.single-product div.product .upsells,body.tm-woo.single-product div.product .ast-related-posts-wrapper{grid-column:1 / -1}
@media(max-width:860px){body.tm-woo.single-product div.product{grid-template-columns:1fr;gap:24px}}
body.tm-woo .woocommerce-product-gallery__wrapper{background:radial-gradient(70% 70% at 50% 40%,#1f3a3c,#0c1517);border:1px solid var(--tm-line);border-radius:6px;overflow:hidden}
body.tm-woo .woocommerce-product-gallery__image img{width:100%;height:auto;object-fit:contain}
body.tm-woo .flex-control-thumbs{display:flex;gap:10px;margin:12px 0 0!important;padding:0;list-style:none}
body.tm-woo .flex-control-thumbs li{width:72px!important;float:none!important;border:1px solid var(--tm-line);border-radius:4px;overflow:hidden}
body.tm-woo div.product p.price,body.tm-woo div.product span.price{font:700 2.6rem/1 var(--tm-display);color:var(--tm-gold)!important;margin:0 0 18px}
body.tm-woo div.product .woocommerce-product-details__short-description{color:var(--tm-muted);max-width:34rem;margin-bottom:22px}
body.tm-woo div.product form.cart{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
body.tm-woo .quantity .qty,body.tm-woo input.qty{background:var(--tm-surface);color:var(--tm-ink);border:1.5px solid var(--tm-line);border-radius:3px;height:48px;width:72px;text-align:center}
body.tm-woo .product_meta{border-top:1px solid var(--tm-line);padding-top:14px;color:var(--tm-muted);font-size:.9rem}
body.tm-woo .product_meta span,body.tm-woo .product_meta a{color:var(--tm-muted)}
.tm-trust{list-style:none;margin:20px 0 10px;padding:16px 0 0;border-top:1px solid var(--tm-line);display:grid;gap:8px}
.tm-trust li{color:var(--tm-ink);padding-left:22px;position:relative}
.tm-trust li::before{content:"";position:absolute;left:0;top:.55em;width:10px;height:10px;border-radius:50%;background:var(--tm-teal)}
.tm-ask{margin:6px 0 18px;font-size:.95rem}
body.tm-woo .woocommerce-tabs ul.tabs{border-bottom:1px solid var(--tm-line);padding:0;margin:0 0 20px}
body.tm-woo .woocommerce-tabs ul.tabs::before{border-color:var(--tm-line)!important}
body.tm-woo .woocommerce-tabs ul.tabs li{background:transparent!important;border:0!important}
body.tm-woo .woocommerce-tabs ul.tabs li a{color:var(--tm-muted)!important;font-weight:500}
body.tm-woo .woocommerce-tabs ul.tabs li.active a{color:var(--tm-gold)!important}
body.tm-woo .woocommerce-tabs .panel{background:transparent;border:0;padding:0;margin:0 0 32px}
body.tm-woo .related.products>h2,body.tm-woo .upsells.products>h2{font-size:2rem;margin:24px 0 0}

/* messages, formulaires, tableaux, panier, commande */
body.tm-woo .woocommerce-message,body.tm-woo .woocommerce-info,body.tm-woo .woocommerce-error{background:var(--tm-surface)!important;color:var(--tm-ink)!important;border-top-color:var(--tm-gold)!important}
body.tm-woo .woocommerce-message::before,body.tm-woo .woocommerce-info::before{color:var(--tm-gold)!important}
body.tm-woo table.shop_table,body.tm-woo table.shop_table td,body.tm-woo table.shop_table th{border-color:var(--tm-line)!important;background:transparent!important;color:var(--tm-ink)}
body.tm-woo .cart_totals,body.tm-woo .woocommerce-checkout-review-order,body.tm-woo #order_review{background:var(--tm-surface);border:1px solid var(--tm-line);border-radius:6px;padding:16px}
body.tm-woo .woocommerce form .form-row input.input-text,body.tm-woo .woocommerce form .form-row textarea,body.tm-woo .woocommerce form .form-row select,
body.tm-woo input[type=text],body.tm-woo input[type=email],body.tm-woo input[type=tel],body.tm-woo input[type=number],body.tm-woo input[type=password],body.tm-woo textarea,body.tm-woo select,
body.tm-woo .select2-container--default .select2-selection--single{background:var(--tm-surface)!important;color:var(--tm-ink)!important;border:1.5px solid var(--tm-line)!important;border-radius:4px!important;min-height:44px}
body.tm-woo .select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--tm-ink)!important}
body.tm-woo .woocommerce-checkout #payment,body.tm-woo .woocommerce-checkout #payment div.payment_box{background:var(--tm-surface)!important;color:var(--tm-ink)!important;border-radius:6px}
body.tm-woo .woocommerce-checkout #payment ul.payment_methods{border-color:var(--tm-line)!important}
body.tm-woo .woocommerce-checkout #payment div.payment_box::before{display:none}
/* blocs Panier et Commande (WooCommerce récent) */
body.tm-woo .wp-block-woocommerce-cart,body.tm-woo .wp-block-woocommerce-checkout{color:var(--tm-ink)}
body.tm-woo .wc-block-components-text-input input,body.tm-woo .wc-block-components-text-input textarea,body.tm-woo .wc-block-components-select-control__select,body.tm-woo .wc-block-components-combobox .wc-block-components-combobox-control input{background:var(--tm-surface)!important;color:var(--tm-ink)!important;border:1.5px solid var(--tm-line)!important}
body.tm-woo .wc-block-components-text-input label,body.tm-woo .wc-block-components-form .wc-block-components-text-input.is-active label{color:var(--tm-muted)!important}
body.tm-woo .wc-block-components-totals-wrapper,body.tm-woo .wc-block-cart-items td,body.tm-woo .wc-block-cart-items th{border-color:var(--tm-line)!important}
body.tm-woo .wc-block-components-product-name,body.tm-woo .wc-block-components-order-summary-item__description{color:var(--tm-ink)!important}
body.tm-woo .wc-block-components-radio-control__option,body.tm-woo .wc-block-components-radio-control-accordion-option{border-color:var(--tm-line)!important;background:var(--tm-surface)}
body.tm-woo .wc-block-components-checkout-step__title,body.tm-woo .wc-block-cart__totals-title{font-family:var(--tm-display);font-size:1.6rem}

/* pied de page */
body.tm-woo .site-footer,body.tm-woo footer.site-footer,body.tm-woo .ast-small-footer,body.tm-woo .site-below-footer-wrap,body.tm-woo .site-primary-footer-wrap{background:#000!important;color:var(--tm-muted)!important}
body.tm-woo .site-footer a{color:var(--tm-muted)!important}

/* structure du thème */
.tm-main{max-width:1120px;margin:0 auto;padding:24px 20px 64px}
.tm-foot{background:#000;color:var(--tm-muted);text-align:center;padding:28px 20px;font-size:.9rem}
.tm-foot a{color:var(--tm-muted)!important}
body.tm-woo .woocommerce-products-header,body.tm-woo .tm-main h1.entry-title{padding-top:8px}
