/*
Theme Name: Atelier
Theme URI: https://example.com/atelier
Author: Anas
Description: Minimal luxury WooCommerce theme for electronics stores. Multilingual (English, Français, Deutsch) with a built-in language switcher and a configurable accent color.
Version: 1.3.1
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: atelier
Tags: e-commerce, woocommerce, minimal, translation-ready
WC requires at least: 8.0
*/

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --tile: #eeebe4;
  --ink: #121212;
  --muted: #6d6a63;
  --line: #e2ddd3;
  --dark: #0d0d0d;
  --dark-2: #1a1a1a;
  --on-dark: #f3f0ea;
  --on-dark-muted: #a19d95;
  --accent: #b08d57; /* overridden by the Customizer */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Surfaces that change per style preset (see bottom of file) */
  --hero-bg: #0d0d0d;
  --hero-ink: #f3f0ea;
  --hero-muted: #a19d95;
  --hero-line: rgba(255, 255, 255, .1);
  --feature-bg: #1a1a1a;
  --feature-ink: #f3f0ea;
  --feature-muted: #a19d95;
  --art-bg: linear-gradient(135deg, #222, #0b0b0b);
  --art-line: rgba(255, 255, 255, .14);
  --cta-bg: #f3f0ea;
  --cta-ink: #121212;
  --footer-bg: #0d0d0d;
  --head-font: var(--serif);
  --head-weight: 400;
  --head-tracking: -.01em;
  --radius: 0px;
  --radius-lg: 0px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease), opacity .2s var(--ease); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--head-font); font-weight: var(--head-weight); line-height: 1.12; letter-spacing: var(--head-tracking); margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.eyebrow {
  display: inline-block; font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.4rem;
}
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.wc-block-components-button:not(.is-link), .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 30px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover, .wp-block-button__link:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.btn--light { background: var(--cta-bg); color: var(--cta-ink); border-color: var(--cta-bg); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { opacity: .45; padding: 0 30px; }

/* ---------- Announcement ---------- */
.announce { background: var(--dark); color: var(--on-dark-muted); font-size: 12px; letter-spacing: .06em; }
.announce__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 38px; padding-block: 4px; }

/* ---------- Language switcher ---------- */
.lang-switch { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; font: 500 11px/1 var(--sans); letter-spacing: .14em; }
.lang-switch a { display: block; padding: 6px 7px; opacity: .6; }
.lang-switch a:hover, .lang-switch a[aria-current="true"] { opacity: 1; color: inherit; }
.lang-switch a[aria-current="true"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .25); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; gap: 24px; }
.brand { justify-self: start; }
.brand__name { font: 400 1.65rem/1 var(--head-font); letter-spacing: .02em; }
.brand .custom-logo { max-height: 44px; width: auto; }
.primary-nav .menu { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 8px 0; position: relative; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { transform: scaleX(1); }
.primary-nav a:hover { color: var(--ink); }
.primary-nav .sub-menu { display: none; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; background: none; border: 0; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 10px/17px var(--sans); text-align: center; }
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.nav-toggle { display: none; width: 42px; height: 42px; background: none; border: 0; cursor: pointer; padding: 12px 10px; }
.nav-toggle span:not(.screen-reader-text) { display: block; height: 1px; background: var(--ink); margin: 6px 0; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.search-bar { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.search-bar.is-open { display: block; }
.search-bar form { display: flex; gap: 0; padding: 18px 0; }
.search-bar input[type="search"] { flex: 1; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="number"], select, textarea,
.woocommerce form .form-row .input-text, .woocommerce form .form-row select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  font: 400 15px/1.4 var(--sans); transition: border-color .2s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
label { font-size: 13px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; min-height: min(82vh, 760px); padding-block: 90px; }
.hero h1 { color: var(--hero-ink); max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__lead { color: var(--hero-muted); font-size: 1.08rem; max-width: 44ch; margin-bottom: 2.4rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: end; }
.orb {
  position: absolute; inset: 8%; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .35), transparent 22%),
    radial-gradient(circle at 70% 75%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 55%),
    radial-gradient(circle at 50% 50%, #2a2a2a, #090909 70%);
  box-shadow: inset -30px -40px 80px rgba(0, 0, 0, .7), 0 60px 120px -40px color-mix(in srgb, var(--accent) 55%, transparent);
  animation: float 9s ease-in-out infinite;
}
.ring { position: absolute; inset: 0; border: 1px solid var(--hero-line); border-radius: 50%; }
.ring--2 { inset: -9%; opacity: .5; }
.ring::after { content: ""; position: absolute; top: 12%; left: 82%; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-head h2 { margin: 0; }
.link-arrow { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 6px; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(var(--cat-cols, 5), minmax(0, 1fr)); gap: 14px; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; padding: 22px; background: var(--tile); overflow: hidden; border-radius: var(--radius-lg); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile__mono { position: absolute; top: 18px; left: 22px; font: italic 400 4.2rem/1 var(--head-font); color: color-mix(in srgb, var(--ink) 10%, transparent); }
.cat-tile__name { position: relative; font: 400 1.35rem/1.1 var(--head-font); }
.cat-tile__count { position: relative; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.cat-tile:has(img) .cat-tile__name, .cat-tile:has(img) .cat-tile__count { color: #fff; }
.cat-tile:has(img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0, 0, 0, .55)); }
.cat-tile:has(img) .cat-tile__name, .cat-tile:has(img) .cat-tile__count { z-index: 1; }
/* Tile showing a product packshot (no category photo): whole product, dark text. */
.cat-tile--product img { inset: 0 0 auto 0; height: 66%; object-fit: contain; padding: 12% 12% 0; mix-blend-mode: multiply; }
.cat-tile--product .cat-tile__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.cat-tile--product::after { display: none; }
.cat-tile.cat-tile--product .cat-tile__name { color: var(--ink); }
.cat-tile.cat-tile--product .cat-tile__count { color: var(--muted); }

/* Value props */
.values { border-block: 1px solid var(--line); background: var(--surface); }
.values__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.value { display: flex; gap: 16px; align-items: flex-start; padding: 34px 26px; }
.value + .value { border-inline-start: 1px solid var(--line); }
.value svg { flex: none; width: 26px; height: 26px; color: var(--accent); }
.value strong { display: block; font: 400 1.08rem/1.25 var(--head-font); margin-bottom: 4px; }
.value span { font-size: 13px; color: var(--muted); }

/* Editorial */
.editorial { background: var(--feature-bg); color: var(--feature-ink); }
.editorial__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.editorial__art { aspect-ratio: 5 / 4; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 55%), var(--art-bg); position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.editorial__art::before { content: ""; position: absolute; inset: 18% 26%; border: 1px solid var(--art-line); border-radius: 22px; }
.editorial__art::after { content: ""; position: absolute; left: 50%; bottom: 24%; width: 28%; height: 1px; transform: translateX(-50%); background: var(--accent); }
.editorial h2 { color: var(--feature-ink); }
.editorial p { color: var(--feature-muted); }

/* ---------- Products grid (WooCommerce loop) ---------- */
.woocommerce ul.products, .woocommerce-page ul.products {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; margin: 0; padding: 0;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important; padding: 0; position: relative; text-align: start;
}
.woocommerce ul.products li.product a img {
  aspect-ratio: 1; object-fit: cover; margin: 0 0 18px; padding: 0;
  background: var(--tile); border-radius: var(--radius-lg); transition: transform .6s var(--ease);
}
.woocommerce ul.products li.product a:hover img { transform: scale(1.025); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font: 400 15px/1.4 var(--sans); padding: 0; margin: 0 0 6px; color: var(--ink);
  /* Marketplace titles can be 200 characters: keep cards tidy at 2 lines. */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.8em;
}
.card-brand { display: block; margin-bottom: 4px; font: 500 10px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.woocommerce ul.products li.product .price { display: block; font: 400 1.05rem/1.3 var(--head-font); color: var(--ink); margin-bottom: 14px; }
.woocommerce ul.products li.product .price del { color: var(--muted); opacity: 1; margin-inline-end: 6px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--accent); }
/* Equal-height cards: buttons line up even when a name wraps to two lines. */
.woocommerce ul.products li.product { display: flex; flex-direction: column; }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { flex: 1; }
.woocommerce ul.products li.product .button {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 46px; margin: 4px 0 0; padding: 0 16px;
  background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 11px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-align: center;
}
.woocommerce ul.products li.product .button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.woocommerce ul.products li.product .button.loading { opacity: .55; }
.woocommerce ul.products li.product .button.loading::after,
.woocommerce ul.products li.product .button.added::after { display: none; }
/* The drawer opens after adding, so WooCommerce's extra "View cart" link is not needed. */
.woocommerce ul.products li.product .added_to_cart { display: none !important; }
@media (max-width: 640px) { .woocommerce ul.products li.product .button { min-height: 44px; padding: 0 8px; letter-spacing: .08em; } }
.woocommerce span.onsale {
  top: 14px; left: 14px; right: auto; min-width: 0; min-height: 0; padding: 7px 10px; margin: 0;
  background: var(--ink); color: #fff; border-radius: 0; font: 500 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--accent); }

/* ---------- Shop archive ---------- */
.wc-wrap { padding-block: 48px 110px; }
.woocommerce .woocommerce-breadcrumb { font-size: 12px; letter-spacing: .08em; color: var(--muted); margin: 0 0 28px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-products-header__title.page-title, .wc-wrap .page-title { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.woocommerce .woocommerce-result-count { font-size: 13px; color: var(--muted); margin: 10px 0 36px; }
.woocommerce .woocommerce-ordering { margin-bottom: 36px; }
.woocommerce .woocommerce-ordering select { min-height: 42px; padding: 8px 36px 8px 14px; width: auto; }
.woocommerce nav.woocommerce-pagination { margin-top: clamp(48px, 6vw, 72px); text-align: center; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { min-width: 42px; padding: 12px; border: 1px solid var(--line); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Single product ---------- */
/* Show the photos at once (WooCommerce fades the gallery in once its script has run). */
.woocommerce div.product div.images.woocommerce-product-gallery { opacity: 1 !important; transition: none !important; }
.woocommerce div.product div.images .flex-control-thumbs img { aspect-ratio: 1; object-fit: contain; background: var(--surface); }
.woocommerce div.product div.images img { background: var(--tile); }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { background: var(--tile); }
.woocommerce div.product .product_title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: .3em; overflow-wrap: anywhere; }
.woocommerce div.product .product_title.is-long { font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.25; }
.woocommerce div.product .product_title.is-very-long { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.3; }
.woocommerce div.product .woocommerce-product-details__short-description ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { aspect-ratio: 1; object-fit: contain; background: var(--surface); }
.accordion__body ul { padding-inline-start: 1.1em; display: grid; gap: 12px; }
.accordion__body li strong { color: var(--ink); font-weight: 500; }
.woocommerce div.product p.price, .woocommerce div.product span.price { font: 400 1.6rem/1.2 var(--head-font); color: var(--ink); margin-bottom: 1.4rem; }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--accent); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); margin-bottom: 2rem; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.6rem; }
/* WooCommerce's clearfix pseudo-elements become empty flex items (+12px gap) in a flex form. */
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { content: none; display: none; }
.woocommerce div.product form.cart div.quantity { margin: 0; }
.woocommerce .quantity .qty { width: 78px; min-height: 50px; text-align: center; }
.woocommerce div.product form.cart .button { flex: 1; min-width: 220px; }
.product-assurance { list-style: none; margin: 0 0 2rem; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 13px; color: var(--muted); }
.product-assurance li { display: flex; gap: 10px; align-items: center; }
.product-assurance svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.woocommerce div.product .product_meta { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.woocommerce div.product .woocommerce-tabs { clear: both; padding-top: 70px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 30px; border-bottom: 1px solid var(--line); display: flex; gap: 34px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 0 0 16px; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 760px; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { background: none !important; border-bottom: 1px solid var(--line); padding: 14px 0; font-style: normal; }
.related.products, .upsells.products { padding-top: 80px; }
.related.products > h2, .upsells.products > h2 { font-size: 2rem; margin-bottom: 36px; }

/* ---------- Notices ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border: 1px solid var(--line); border-inline-start: 2px solid var(--accent); background: var(--surface); color: var(--ink); border-radius: 0; font-size: 14px;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent); }
.woocommerce-error { border-inline-start-color: #a33; }

/* ---------- Cart / checkout / account ---------- */
.woocommerce table.shop_table { border: 0; border-radius: 0; border-collapse: collapse; }
.woocommerce table.shop_table th { font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top: 1px solid var(--line); padding: 18px 12px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order { background: var(--surface); padding: 30px; border: 1px solid var(--line); }
.woocommerce-checkout #payment { background: var(--surface); border-radius: 0; border: 1px solid var(--line); }
.woocommerce-checkout #payment div.payment_box { background: var(--tile); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--tile); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--accent); }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: 0 !important; }

/* ---------- Pages ---------- */
.page-wrap { padding-block: 60px 110px; }
.page-header { padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content a { border-bottom: 1px solid var(--accent); }
.empty-state { text-align: center; padding-block: 120px; }
.empty-state .huge { font: italic 400 clamp(5rem, 14vw, 10rem)/1 var(--head-font); color: var(--accent); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--on-dark-muted); font-size: 14px; }
.site-footer a:hover { color: var(--on-dark); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 80px 60px; }
.footer__brand .brand__name { color: var(--on-dark); display: inline-block; margin-bottom: 18px; }
.footer__brand p { max-width: 34ch; }
.footer__title { font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark); margin: 6px 0 22px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; letter-spacing: .04em; }
.footer__secure { display: inline-flex; align-items: center; gap: 8px; }
.footer__secure svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value:nth-child(3) { border-inline-start: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; min-height: 64px; gap: 8px; }
  .nav-toggle { display: block; }
  .brand { justify-self: center; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 24px; }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { flex-direction: column; gap: 0; }
  .primary-nav .menu a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .header-actions .icon-btn--account { display: none; }
  .hero__inner { grid-template-columns: 1fr; padding-block: 64px 72px; min-height: 0; }
  .hero__visual { max-width: 300px; justify-self: center; order: -1; }
  .editorial__inner { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .announce__text { font-size: 11px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .values__grid { grid-template-columns: 1fr; }
  .value + .value { border-inline-start: 0; border-top: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr; padding-block: 56px 40px; }
  .woocommerce div.product form.cart .button { min-width: 0; }
}

/* ==========================================================
   Shopping UX: drawer, cards, product page, checkout
   ========================================================== */

body.is-locked { overflow: hidden; }
.btn--block { width: 100%; }
.btn.loading, .button.loading { opacity: .6; pointer-events: none; }
.form-error { flex-basis: 100%; margin: 4px 0 0; padding: 10px 14px; border-inline-start: 2px solid #a33; background: color-mix(in srgb, #a33 7%, var(--surface)); font-size: 14px; }

/* Chips (shop categories, search suggestions) */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 28px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; letter-spacing: .02em; background: var(--surface); white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.shop-toolbar .woocommerce-result-count, .shop-toolbar .woocommerce-ordering { float: none; margin: 0 !important; }
.search-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 20px; }
.search-suggest > span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-inline-end: 6px; }

/* Product cards */
.card-media { position: relative; margin-bottom: 16px; overflow: hidden; border-radius: var(--radius-lg); background: var(--tile); }
.woocommerce ul.products li.product .card-media img { margin: 0; border-radius: 0; }
/* Packshots (product on white): show the whole product, never cropped, and let the
   white melt into the tile colour. Lifestyle photos simply sit on the same tile. */
.woocommerce ul.products li.product .card-media.is-packshot img,
.card-media.is-packshot .card-alt { object-fit: contain; padding: 8%; background: transparent; mix-blend-mode: multiply; }
.card-media .card-alt { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s var(--ease); }
@media (hover: hover) { li.product:hover .card-media .card-alt { opacity: 1; } }
.badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.summary .badges { position: static; margin-bottom: 14px; }
.badge { display: inline-block; padding: 6px 9px; font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; background: var(--surface); color: var(--ink); border-radius: calc(var(--radius) * .6); }
.badge--sale { background: var(--accent); color: #fff; }
.badge--soldout { background: var(--ink); color: #fff; }
.woocommerce ul.products li.product .outofstock .card-media img { opacity: .55; }

/* Quantity stepper (product page, cart page) */
.quantity.has-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.quantity.has-stepper .qty { border: 0 !important; width: 48px !important; min-height: 48px; padding: 0; text-align: center; -moz-appearance: textfield; background: transparent; }
.quantity.has-stepper .qty::-webkit-outer-spin-button, .quantity.has-stepper .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 44px; border: 0; background: none; font-size: 18px; color: var(--ink); cursor: pointer; }
.qty-btn:hover { color: var(--accent); }

/* Quantity + button on one row for every product type */
.woocommerce div.product .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.woocommerce div.product .woocommerce-variation-add-to-cart .button { flex: 1; min-width: 0; }

/* Variation buttons */
.woocommerce div.product form.cart .variations { margin-bottom: 18px; width: 100%; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: start; }
.woocommerce div.product form.cart .variations label { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); display: block; margin: 8px 0 12px; }
select.has-swatches { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.swatch { min-height: 44px; min-width: 56px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 400 14px/1 var(--sans); cursor: pointer; transition: border-color .2s var(--ease); }
.swatch:hover { border-color: var(--ink); }
.swatch[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch.is-unavailable { color: var(--muted); text-decoration: line-through; opacity: .6; }
.woocommerce div.product form.cart .reset_variations { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.woocommerce div.product .woocommerce-variation-price { margin: 8px 0 14px; }
.woocommerce div.product p.stock { font-size: 13px; color: var(--muted); }
.woocommerce div.product p.stock.out-of-stock { color: #a33; }

/* Single product layout */
.woocommerce div.product div.images { margin-bottom: 40px; }
.woocommerce div.product div.images .flex-control-thumbs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto !important; float: none !important; }
.woocommerce div.product div.images .flex-control-thumbs img { background: var(--tile); border-radius: var(--radius); opacity: .55; transition: opacity .2s var(--ease); }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; }
@media (min-width: 861px) {
  .product-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
  /* #content: WooCommerce's own "#content div.product div.summary { width: 48% }" must not shrink the grid cells. */
  .woocommerce div.product .product-main div.images, .woocommerce div.product .product-main div.summary,
  .woocommerce #content div.product .product-main div.images, .woocommerce #content div.product .product-main div.summary { float: none; width: auto; margin: 0; }
  .woocommerce div.product .product-main div.summary { position: sticky; top: 110px; }
}
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 14px; font-size: 13px; }

.delivery-estimate { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.delivery-estimate svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.delivery-estimate strong { display: block; font-weight: 500; font-size: 15px; }
.delivery-estimate span { font-size: 13px; color: var(--muted); }
.product-assurance { border-top: 0; padding-top: 0; }
.product-assurance a { border-bottom: 1px solid currentColor; }

/* Product details accordion */
.product-accordion { clear: both; max-width: 820px; padding-top: 56px; }
.accordion { border-top: 1px solid var(--line); }
.accordion:last-of-type { border-bottom: 1px solid var(--line); }
.accordion__title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; font: 400 1.3rem/1.2 var(--head-font); }
.accordion__title::-webkit-details-marker { display: none; }
.accordion__title::after { content: "+"; font: 300 24px/1 var(--sans); color: var(--muted); transition: transform .25s var(--ease); }
.accordion[open] .accordion__title::after { transform: rotate(45deg); }
.accordion__body { padding: 0 0 28px; color: var(--muted); }
.accordion__body > h2:first-child { display: none; }
.accordion__body table.shop_attributes { margin: 0; }

/* Sticky buy bar */
.sticky-buy { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.sticky-buy.is-visible { transform: none; }
.sticky-buy__inner { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.sticky-buy__img { width: 48px; height: 48px; object-fit: cover; background: var(--tile); border-radius: var(--radius); }
.sticky-buy__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-buy__name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__price { font: 400 15px/1.3 var(--head-font); }
.sticky-buy__price del { color: var(--muted); }
.sticky-buy__price ins { text-decoration: none; color: var(--accent); }
.sticky-buy__btn { min-width: 0; }

/* Cart drawer */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(10, 10, 10, .45); opacity: 0; transition: opacity .3s var(--ease); }
.drawer__panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--bg); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .35); transform: translateX(100%); transition: transform .32s var(--ease); outline: none; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.4rem; margin: 0; }
.drawer-count { font: 400 14px/1 var(--sans); color: var(--muted); }
.drawer__status { margin: 0; padding: 0 24px; font-size: 13px; color: var(--accent); }
.drawer__status:not(:empty) { padding-top: 12px; }
.drawer__body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.drawer__body .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; }
.ship-progress { padding: 16px 24px 0; font-size: 13px; }
.ship-progress p { margin: 0 0 8px; }
.ship-progress__bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.ship-progress__bar span { display: block; height: 100%; background: var(--accent); transition: width .4s var(--ease); }
.drawer-items { list-style: none; margin: 0; padding: 8px 24px; flex: 1; }
.drawer-item { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity .2s var(--ease); }
.drawer-item.is-busy { opacity: .45; pointer-events: none; }
.drawer-item__img img { width: 84px; height: 84px; object-fit: cover; background: var(--tile); border-radius: var(--radius); }
.drawer-item__top { display: flex; justify-content: space-between; gap: 12px; }
.drawer-item__name { font-size: 14px; line-height: 1.4; }
.drawer-item__price { font: 400 15px/1.4 var(--head-font); white-space: nowrap; }
.drawer-item dl.variation { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.drawer-item dl.variation dt, .drawer-item dl.variation dd { display: inline; margin: 0; }
.drawer-item dl.variation dd p { display: inline; margin: 0; }
.drawer-item__actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stepper__btn { width: 36px; height: 36px; border: 0; background: none; font-size: 16px; color: var(--ink); cursor: pointer; }
.stepper__btn:disabled { opacity: .3; cursor: default; }
.stepper__value { min-width: 24px; text-align: center; font-size: 14px; }
.drawer-item__remove { border: 0; background: none; padding: 6px 0; font-size: 12px; letter-spacing: .06em; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.drawer-item__remove:hover { color: var(--ink); }
.drawer-foot { position: sticky; bottom: 0; padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.drawer-total strong { font: 400 1.35rem/1 var(--head-font); }
.drawer-note { margin: 0 0 16px; font-size: 12px; color: var(--muted); }
.drawer-link { display: block; text-align: center; margin-top: 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.drawer-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.drawer-secure svg { width: 14px; height: 14px; color: var(--accent); }
.drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 48px 24px; text-align: center; }
.drawer-empty svg { width: 40px; height: 40px; color: var(--muted); }

/* WooCommerce's own widget CSS also targets the drawer list (floats, clearfix
   pseudo-elements, 32px images, bold links). Scope under #cart-drawer to win. */
#cart-drawer ul.drawer-items { list-style: none; margin: 0; padding: 8px 24px; }
#cart-drawer li.drawer-item { display: grid; padding: 18px 0; margin: 0; }
#cart-drawer li.drawer-item::before, #cart-drawer li.drawer-item::after { content: none; display: none; }
#cart-drawer li.drawer-item img { float: none; width: 84px; height: 84px; margin: 0; object-fit: cover; box-shadow: none; }
#cart-drawer li.drawer-item a { display: inline; font-weight: 400; }
#cart-drawer li.drawer-item a.drawer-item__img { display: block; }

/* Single product: the drawer confirms the add, so hide WooCommerce's extra link and tick. */
.woocommerce div.product form.cart .added_to_cart { display: none !important; }
.woocommerce div.product form.cart .button.added::after,
.woocommerce div.product form.cart .button.loading::after { display: none; }

/* Hero with the owner's own image */
.hero--image .hero__visual { aspect-ratio: 4 / 5; max-width: 480px; }
@media (max-width: 860px) { .hero--image .hero__visual { aspect-ratio: 16 / 10; max-width: none; } }
.hero__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); }
.editorial__art--image::before, .editorial__art--image::after { display: none; }
.editorial__art--image img { width: 100%; height: 100%; object-fit: cover; }

/* Focused checkout */
.site-header--focused { position: static; }
.site-header--focused .site-header__inner { min-height: 72px; }
.focused-back { justify-self: start; font-size: 13px; color: var(--muted); }
.focused-secure { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.focused-secure svg { width: 15px; height: 15px; color: var(--accent); }
.site-footer--focused .footer__bottom { border-top: 0; }
.is-focused-checkout .page-header { border: 0; margin-bottom: 16px; padding-bottom: 0; }
.is-focused-checkout .page-header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* Block cart & checkout polish */
.wc-block-components-text-input input, .wc-block-components-text-input textarea, .wc-blocks-components-select .wc-blocks-components-select__select { border-radius: var(--radius) !important; border-color: var(--line) !important; background: var(--surface) !important; }
.wc-block-components-text-input.is-active input, .wc-block-components-text-input input:focus { border-color: var(--ink) !important; box-shadow: none !important; }
.wc-block-checkout__actions .wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button { width: 100%; min-height: 56px; }
.wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block, .wc-block-components-totals-wrapper { border-color: var(--line) !important; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-radius: var(--radius) !important; }
.wc-block-components-title.wc-block-components-title { font-family: var(--head-font); font-weight: var(--head-weight); }

/* Mobile navigation panel */
.nav-extra { display: none; }
.nav-overlay { position: fixed; inset: 0; z-index: 44; background: rgba(10, 10, 10, .4); }
.nav-overlay[hidden] { display: none; }

@media (max-width: 860px) {
  /* backdrop-filter would trap the fixed menu panel inside the header */
  .site-header { backdrop-filter: none; background: var(--bg); }
  .primary-nav { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; inset-inline-end: auto; width: min(340px, 86vw); z-index: 45; display: flex !important; flex-direction: column; padding: 76px 24px 24px; border: 0; background: var(--bg); transform: translateX(-100%); transition: transform .32s var(--ease); overflow-y: auto; visibility: hidden; }
  .primary-nav.is-open { transform: none; visibility: visible; }
  .primary-nav .menu a { font: 400 1.4rem/1.2 var(--head-font); letter-spacing: 0; text-transform: none; padding: 16px 0; }
  .primary-nav a::after { display: none; }
  .nav-extra { display: flex; flex-direction: column; gap: 18px; margin-top: auto; padding-top: 28px; }
  .nav-extra > a { display: flex; align-items: center; gap: 10px; font-size: 14px; }
  .nav-extra svg { width: 18px; height: 18px; }
  .nav-extra .lang-switch { gap: 4px; margin-inline-start: -10px; }
  .nav-extra .lang-switch a { padding: 10px; font-size: 13px; letter-spacing: .1em; }
  .nav-toggle { position: relative; z-index: 46; }
  .lang-switch--top { display: none; }
  .announce__inner { justify-content: center; text-align: center; }
  .shop-toolbar { flex-direction: row-reverse; flex-wrap: wrap; }
  .shop-toolbar .woocommerce-result-count { font-size: 12px; }
  .focused-back { font-size: 0; }
  .focused-back::first-letter { font-size: 18px; }
  .focused-secure { font-size: 0; }
  .focused-secure svg { width: 18px; height: 18px; }
  .woocommerce div.product form.cart .button { flex: 1; padding: 0 16px; letter-spacing: .1em; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .drawer__panel, .drawer__overlay, .sticky-buy, .primary-nav, .card-media .card-alt { transition: none; }
}

/* ==========================================================
   Style presets — chosen per store with THEME_STYLE in the
   store config, or in Appearance → Customize → Atelier store.
   Noir is the default (tokens at the top of this file).
   ========================================================== */

/* Ivoire — light, warm, gallery-like */
body.style-ivoire {
  --bg: #faf7f2; --surface: #ffffff; --tile: #f1ece3; --ink: #1c1915; --muted: #776f63; --line: #e7e0d4;
  --dark: #1f1b16;
  --hero-bg: #efe8dc; --hero-ink: #1c1915; --hero-muted: #6c6458; --hero-line: rgba(28, 25, 21, .14);
  --feature-bg: #f1ece3; --feature-ink: #1c1915; --feature-muted: #6c6458;
  --art-bg: linear-gradient(140deg, #e9e1d3, #d4c7b1); --art-line: rgba(28, 25, 21, .16);
  --cta-bg: #1c1915; --cta-ink: #ffffff;
  --footer-bg: #1f1b16;
  --head-font: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Iowan Old Style", Georgia, serif;
}
body.style-ivoire .hero .btn--ghost:hover { color: #fff; }

/* Graphite — modern, technical, soft corners */
body.style-graphite {
  --bg: #f3f4f6; --surface: #ffffff; --tile: #e8eaee; --ink: #0e1116; --muted: #5d6470; --line: #dcdfe5;
  --dark: #0b0d10;
  --hero-bg: radial-gradient(1100px 620px at 78% 42%, #1c2431 0%, #0b0d10 62%);
  --hero-ink: #f2f4f7; --hero-muted: #9aa3af; --hero-line: rgba(255, 255, 255, .09);
  --feature-bg: #12151a; --feature-ink: #f2f4f7; --feature-muted: #9aa3af;
  --art-bg: linear-gradient(140deg, #1f2733, #0b0d10);
  --cta-bg: #f2f4f7; --cta-ink: #0e1116;
  --footer-bg: #0b0d10;
  --head-font: var(--sans); --head-weight: 600; --head-tracking: -.035em;
  --radius: 10px; --radius-lg: 18px;
}
body.style-graphite .hero h1 em, body.style-graphite .cat-tile__mono, body.style-graphite .empty-state .huge { font-style: normal; }
body.style-graphite .brand__name { font-weight: 700; letter-spacing: -.04em; }

/* Émeraude — deep green and gold, heritage luxury */
body.style-emeraude {
  --bg: #f6f4ee; --surface: #ffffff; --tile: #ebe7dc; --ink: #13241f; --muted: #5f6d67; --line: #dedbd0;
  --dark: #0b1d18;
  --hero-bg: #0c1f1a; --hero-ink: #f1ece0; --hero-muted: #a8b4ac; --hero-line: rgba(241, 236, 224, .12);
  --feature-bg: #11302a; --feature-ink: #f1ece0; --feature-muted: #b3bfb7;
  --art-bg: linear-gradient(140deg, #1a4237, #0a1915); --art-line: rgba(241, 236, 224, .16);
  --cta-bg: #f1ece0; --cta-ink: #13241f;
  --footer-bg: #0a1915;
}

/* Category carousel (home page, more than 5 categories): swipe on touch,
   arrows and drag with a mouse, snaps to a tile. */
.section-head__actions { display: flex; align-items: center; gap: 22px; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; transition: background .2s, color .2s, opacity .2s, border-color .2s; }
.rail-btn svg { width: 18px; height: 18px; }
.rail-btn:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rail-btn:disabled { opacity: .3; cursor: default; }
.cat-rail { --per: 5.4; --gap: 14px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; cursor: grab; }
.cat-rail::-webkit-scrollbar { display: none; }
.cat-rail > .cat-tile { scroll-snap-align: start; }
.cat-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.cat-rail.is-dragging .cat-tile { pointer-events: none; }
.cat-rail:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.cat-rail .cat-tile__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@media (max-width: 1080px) { .cat-rail { --per: 3.4; } }
@media (max-width: 640px) {
  .cat-rail { --per: 2.2; --gap: 10px; margin-right: calc(-1 * var(--gutter, 20px)); padding-right: var(--gutter, 20px); scroll-padding-left: 0; }
  .cat-rail .cat-tile { padding: 16px; }
  .cat-rail .cat-tile__name { font-size: 1.05rem; }
  .rail-nav { display: none; }
}

/* Delivery timeline (Track your order, My account → Orders). */
.order-timeline { margin: 32px 0 40px; padding: 28px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--radius-lg, 16px); }
.order-timeline h2 { margin: 0 0 6px; font-size: 1.4rem; }
.order-timeline__lead { margin: 0 0 18px; color: var(--muted); }
.order-timeline__lead--done { color: var(--ink); }
.order-timeline__steps { list-style: none; margin: 18px 0 0; padding: 0; }
.order-timeline__step { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 16px; padding-bottom: 22px; }
.order-timeline__step:last-child { padding-bottom: 0; }
.order-timeline__step::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.order-timeline__step:last-child::before { display: none; }
.order-timeline__step.is-done::before { background: var(--ink); }
.order-timeline__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface, #fff); box-sizing: border-box; }
.order-timeline__step.is-done .order-timeline__dot { background: var(--ink); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; }
.order-timeline__step.is-current .order-timeline__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.order-timeline__title { margin: 0; font-weight: 600; line-height: 22px; }
.order-timeline__step.is-upcoming .order-timeline__title { color: var(--muted); font-weight: 400; }
.order-timeline__text { margin: 2px 0 0; }
.order-timeline__date { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .order-timeline { padding: 20px; } }
.woocommerce .order-info mark, .woocommerce-order-details mark, .woocommerce-MyAccount-content mark { background: none; color: var(--ink); font-weight: 600; padding: 0; }

/* Hero mosaic of real product photos (atelier_hero_visual = "products"). */
.hero__visual--mosaic { aspect-ratio: auto; max-width: 540px; }
.hero-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hero-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 1; padding: 14px 16px; background: #f4f5f7; border-radius: var(--radius-lg, 16px); overflow: hidden; color: #121212; transition: transform .5s var(--ease, ease); }
.hero-tile:nth-child(2) { transform: translateY(28px); }
.hero-tile:nth-child(4) { transform: translateY(28px); }
.hero-tile img { position: absolute; inset: 0 0 auto; width: 100%; height: 78%; object-fit: contain; padding: 12% 12% 0; mix-blend-mode: multiply; transition: transform .6s var(--ease, ease); }
.hero-tile:hover img { transform: scale(1.06); }
.hero-tile__name { position: relative; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 860px) {
  .hero__visual--mosaic { max-width: 420px; order: 0; }
  .hero-mosaic { gap: 10px; }
  .hero-tile:nth-child(2), .hero-tile:nth-child(4) { transform: translateY(16px); }
  .hero-tile__name { font-size: 10px; letter-spacing: .08em; }
}
