/* ThermaDeco — boutique & galerie. CSS only: no WooCommerce state alterations. */
:root {
 --td-ink:#1d2630;
 --td-cream:#faf7f0;
 --td-sand:#efe9de;
 --td-gold:#b89557;
 --td-gold-dark:#876731;
 --td-line:#e8e3d9;
}
body { -webkit-font-smoothing:antialiased; }
body.woocommerce-page, body.post-type-archive-product, body.single-product { background:#fffdf9; }
/* WooCommerce archive typography */
.woocommerce .woocommerce-products-header, .woocommerce-page .woocommerce-products-header { max-width:1180px; margin:0 auto 24px; }
.woocommerce .woocommerce-products-header__title.page-title, .woocommerce-page .woocommerce-products-header__title.page-title {
 font-size:clamp(2rem,4vw,3.7rem); line-height:1.12; letter-spacing:-.035em; color:var(--td-ink); margin-bottom:18px;
}
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { color:#625e57; font-size:.9rem; }
.woocommerce .woocommerce-ordering select { padding:10px 30px 10px 12px; border-radius:9px; border:1px solid var(--td-line); background:#fff; max-width:100%; }
/* Cards: design can safely apply to both shop and homepage shortcodes. */
.woocommerce ul.products, .woocommerce-page ul.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:26px; margin-top:24px; }
.woocommerce ul.products:before, .woocommerce ul.products:after { display:none!important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
 box-sizing:border-box; width:auto!important; float:none!important; margin:0!important; min-width:0;
 border:1px solid var(--td-line); border-radius:14px; background:#fff; overflow:hidden;
 box-shadow:0 5px 24px rgba(29,38,48,.045); transition:transform .2s ease,box-shadow .2s ease;
 padding:0 0 18px!important;
}
.woocommerce ul.products li.product:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(29,38,48,.105); }
.woocommerce ul.products li.product a img { width:100%; aspect-ratio:1/1; object-fit:cover; margin:0 0 17px!important; background:#f8f6f1; }
.woocommerce ul.products li.product h2.woocommerce-loop-product__title, .woocommerce ul.products li.product .woocommerce-loop-product__title {
 font-size:1.04rem!important; line-height:1.45!important; font-weight:650!important; color:var(--td-ink); padding:0 16px!important; margin:0 0 8px!important;
}
.woocommerce ul.products li.product .price { padding:0 16px!important; color:#614e33!important; font-size:1.05rem!important; font-weight:700!important; }
.woocommerce ul.products li.product .price del { font-size:.82em; opacity:.65; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .added_to_cart {
 display:inline-flex!important; max-width:calc(100% - 32px); margin:8px 16px 0!important; box-sizing:border-box;
 background:var(--td-ink)!important; color:#fff!important; border:1px solid var(--td-ink)!important;
 border-radius:8px!important; padding:12px 16px!important; font-size:.87rem!important; line-height:1.2!important;
 text-decoration:none; white-space:normal; text-align:center;
}
.woocommerce ul.products li.product .button:hover { background:var(--td-gold-dark)!important; border-color:var(--td-gold-dark)!important; }
.woocommerce span.onsale { background:var(--td-gold-dark)!important; color:white!important; border-radius:5px!important; min-width:0!important; min-height:0!important; padding:6px 10px!important; line-height:1.4!important; top:12px!important; left:12px!important; }
/* Single products: photographs, hierarchy, and safe purchase affordances. */
.single-product .product.type-product { max-width:1180px; margin-inline:auto; }
.single-product .woocommerce-product-gallery { border-radius:14px; overflow:hidden; background:var(--td-cream); }
.single-product .woocommerce-product-gallery img { border-radius:10px; }
.single-product .product_title.entry-title { font-size:clamp(1.9rem,3.4vw,3.2rem); line-height:1.15; color:var(--td-ink); letter-spacing:-.03em; }
.single-product div.product p.price, .single-product div.product span.price { color:#80612f!important; font-weight:700; font-size:1.5rem; }
.single-product .woocommerce-product-details__short-description { line-height:1.75; color:#494842; }
.single-product div.product form.cart .button, .woocommerce a.button.checkout, .woocommerce button.button.alt, .woocommerce input.button.alt {
 background:var(--td-ink)!important; color:white!important; border-radius:8px!important; padding:14px 22px!important;
}
.single-product div.product form.cart .button:hover { background:var(--td-gold-dark)!important; }
.single-product .quantity .qty { border:1px solid var(--td-line); border-radius:8px; padding:10px 4px; }
.single-product .woocommerce-tabs { margin-top:34px; }
.single-product .woocommerce-tabs ul.tabs li { border-radius:8px 8px 0 0!important; }
.td-redesign-intro {
 clear:both; background:var(--td-cream); border:1px solid var(--td-line); border-radius:14px;
 padding:24px 28px; margin:16px 0 26px; color:var(--td-ink);
}
.td-redesign-eyebrow { display:block; font-size:11px; font-weight:700; letter-spacing:.17em; color:var(--td-gold-dark); margin-bottom:8px; }
.td-redesign-intro h2 { font-size:clamp(1.35rem,2vw,2rem); letter-spacing:-.02em; margin:0 0 8px; }
.td-redesign-intro p { margin:0 0 12px; max-width:75ch; }
.td-redesign-intro-links { display:flex; flex-wrap:wrap; gap:16px; }
.td-redesign-intro-links a, .td-redesign-product-help a { color:#705529; font-weight:650; text-decoration:underline; text-underline-offset:3px; }
.td-redesign-product-help { clear:both; background:var(--td-cream); border-left:3px solid var(--td-gold); margin:23px 0; padding:15px 18px; font-size:.9rem; line-height:1.5; }
.td-redesign-product-help p { margin:5px 0 7px; }
/* Gallery enhancement: scope to gallery/archive context; do not override plugin lightboxes. */
body.page-gamme .entry-content h1, body.page-gamme .page-title,
body.td-gamme .entry-content h1, body.td-gamme .page-title { font-size:clamp(2rem,4vw,3.6rem); letter-spacing:-.035em; color:var(--td-ink); }
body.page-gamme .wp-block-gallery img, body.page-gamme .gallery img,
body.td-gamme .wp-block-gallery img { border-radius:9px; }
body.page-gamme .wp-block-gallery .wp-block-image, body.page-gamme .gallery-item { overflow:hidden; border-radius:9px; }
body.page-gamme .gallery a:focus-visible, .woocommerce a:focus-visible, .woocommerce button:focus-visible { outline:3px solid var(--td-gold)!important; outline-offset:3px; }
/* Responsive without modifying checkout/cart controls */
@media (max-width:1060px) {
 .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
}
@media (max-width:780px) {
 .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:.95rem!important; }
 .woocommerce ul.products li.product .button { padding:10px 12px!important; font-size:.79rem!important; }
 .td-redesign-intro { padding:20px; }
}
@media (max-width:430px) {
 .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
 .woocommerce ul.products li.product h2.woocommerce-loop-product__title { padding:0 11px!important; }
 .woocommerce ul.products li.product .price { padding:0 11px!important; }
 .woocommerce ul.products li.product .button, .woocommerce ul.products li.product .added_to_cart { margin:8px 11px 0!important; max-width:calc(100% - 22px); }
}
@media (prefers-reduced-motion:reduce) {
 .woocommerce ul.products li.product { transition:none; }
 .woocommerce ul.products li.product:hover { transform:none; }
}

/* Curated gallery theme view — targeted selectors, avoids touching overlays and checkout. */
body.td-gamme { background:#fffdf9; }
body.td-gamme .thermadeco-gallery,
body.td-gamme .td-gallery,
body.td-gamme .td-galerie,
body.td-gamme .gallery-container { max-width:1260px; margin-left:auto; margin-right:auto; }
body.td-gamme .gallery-grid a,
body.td-gamme .td-gallery-grid a,
body.td-gamme .thermadeco-gallery-grid a,
body.td-gamme .artwork-card { border-radius:12px; overflow:hidden; }
body.td-gamme .gallery-grid img,
body.td-gamme .td-gallery-grid img,
body.td-gamme .thermadeco-gallery-grid img,
body.td-gamme .artwork-card img { width:100%; height:auto; border-radius:10px; transition:transform .2s ease; }
body.td-gamme .gallery-grid a:hover img,
body.td-gamme .td-gallery-grid a:hover img,
body.td-gamme .thermadeco-gallery-grid a:hover img { transform:scale(1.025); }
body.td-gamme .gallery-filters button,
body.td-gamme .td-gallery-filter button,
body.td-gamme .collection-filters button { border-radius:8px; }
body.td-gamme .gallery-filters button:focus-visible,
body.td-gamme .td-gallery-filter button:focus-visible { outline:3px solid var(--td-gold); outline-offset:2px; }
@media(prefers-reduced-motion:reduce){body.td-gamme .gallery-grid img,body.td-gamme .td-gallery-grid img,body.td-gamme .thermadeco-gallery-grid img{transition:none;}}
