/*
Theme Name: HafrikShop Theme
Theme URI: https://hafrik.com
Author: Hafrik
Description: Atelier — a classic, editorial fashion storefront for WooCommerce. Didone display type, portrait product photography, quiet black-and-white interface with an indigo accent. Mobile-first.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 8.0
WC requires at least: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vela-store
Tags: e-commerce, woocommerce, fashion, editorial, responsive
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --paper: #ffffff;
  --mist: #f3f2ef;        /* image wells, panels */
  --line: #e3e1dc;        /* hairlines */
  --line-strong: #c9c6bf;
  --ink: #000000;
  --graphite: #5b5853;    /* secondary text, 7:1 on white */
  --faint: #8a8680;
  --indigo: #1f2d52;      /* accent: focus, active, links */
  --oxblood: #7a1f2b;     /* sale */
  --success: #2e6b40;
  --error: #9b1c1c;

  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Bodoni MT', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;

  --step--1: 0.8125rem;   /* 13 */
  --step-0: 0.9375rem;    /* 15 */
  --step-1: 1.125rem;     /* 18 */
  --step-2: 1.5rem;       /* 24 */
  --step-3: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  --step-5: clamp(2.75rem, 1.4rem + 6vw, 6.5rem);

  --track-caps: 0.14em;
  --container: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(56px, 8vw, 120px);
  --header-h: 64px;
  --bottom-nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 280ms;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.15; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.hp-field { position: absolute; left: -9999px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Type utilities
   ========================================================================== */
.page-title { font-family: var(--serif); font-size: var(--step-4); letter-spacing: -0.01em; line-height: 1.05; }
.page-title--xl { font-size: var(--step-5); }
.section-title { font-family: var(--serif); font-size: var(--step-3); letter-spacing: -0.01em; }
.panel-heading { font-family: var(--sans); font-size: var(--step--1); font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; }

.link-underline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.06em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size var(--dur) var(--ease);
}
.link-underline:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ==========================================================================
   Buttons & forms
   ========================================================================== */
.btn,
.button,
.woocommerce-button,
.wc-block-components-button:not(.is-link),
button.single_add_to_cart_button,
#place_order,
.checkout-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  font-family: var(--sans); font-size: var(--step--1); font-weight: 500;
  letter-spacing: var(--track-caps); text-transform: uppercase; line-height: 1;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  border-radius: 0; cursor: pointer; text-align: center;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover, .button:hover, .woocommerce-button:hover, #place_order:hover, .checkout-button:hover,
button.single_add_to_cart_button:hover, .wc-block-components-button:not(.is-link):hover { background: var(--indigo); border-color: var(--indigo); color: var(--paper); }
.btn:disabled, .button:disabled, .btn.is-loading { opacity: .55; cursor: progress; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; padding-inline: 12px; }
.btn-ghost:hover { background: transparent; color: var(--indigo); border-color: transparent; text-decoration: underline; }
.btn-lg { min-height: 56px; padding-inline: 36px; }
.btn-sm { min-height: 40px; padding-inline: 16px; }
.btn-block { width: 100%; }

label { display: block; font-size: var(--step--1); font-weight: 500; margin-bottom: 6px; }
.required { color: var(--oxblood); text-decoration: none; border: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"],
input[type="search"], input[type="url"], input[type="date"], select, textarea,
.select2-container .select2-selection--single {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 0;
  font-size: 16px; line-height: 1.3; transition: border-color var(--dur) var(--ease);
  appearance: none; -webkit-appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--graphite); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); vertical-align: middle; margin-right: 8px; }
::placeholder { color: var(--faint); opacity: 1; }

/* Select2 (WooCommerce country / state) */
.select2-container .select2-selection--single { display: flex; align-items: center; height: auto; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.3; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 50%; transform: translateY(-50%); right: 10px; }
.select2-dropdown { border: 1px solid var(--ink); border-radius: 0; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--ink); }
.select2-search--dropdown .select2-search__field { min-height: 40px; }

/* ==========================================================================
   Announcement + header
   ========================================================================== */
.announcement {
  background: var(--ink); color: var(--paper); text-align: center;
  font-size: 12px; letter-spacing: 0.08em; padding: 9px var(--gutter); line-height: 1.4;
}
.announcement a { text-decoration: underline; text-underline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color var(--dur) var(--ease); }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.header-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 16px; }
.header-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; color: var(--ink); transition: color var(--dur) var(--ease);
}
.icon-btn:hover { color: var(--indigo); }
.cart-count {
  position: absolute; top: 5px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--ink); color: var(--paper);
  font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
}

.site-logo { display: block; justify-self: center; text-align: center; line-height: 1; }
.site-logo .custom-logo { max-height: 40px; width: auto; }
.wordmark {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.875rem);
  letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap;
  font-variation-settings: "opsz" 96;
}
.wordmark--sm { font-size: 1.125rem; }

.primary-nav { display: none; }
.primary-nav .nav-list { display: flex; gap: 28px; }
.primary-nav .nav-list > li { position: relative; }
.primary-nav .nav-list > li > a {
  display: block; padding: 22px 0; font-size: 12.5px; font-weight: 500;
  letter-spacing: var(--track-caps); text-transform: uppercase; position: relative;
}
.primary-nav .nav-list > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 16px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.primary-nav .nav-list > li > a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after { transform: scaleX(1); }
.primary-nav .sub-menu {
  position: absolute; top: 100%; left: -20px; min-width: 220px; padding: 12px 0;
  background: var(--paper); border: 1px solid var(--line); list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 8px 20px; font-size: var(--step-0); }
.primary-nav .sub-menu a:hover { color: var(--indigo); }

@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: none; }
  .primary-nav { display: block; }
}
@media (max-width: 699px) {
  .hide-sm { display: none; }
  .header-bar { gap: 4px; }
}

/* Header search */
.header-search { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity var(--dur) var(--ease); }
.header-search.is-open { opacity: 1; }
.search-form-inline { display: flex; align-items: center; gap: 12px; height: 72px; }
.search-form-inline input[type="search"] { border: 0; border-bottom: 1px solid var(--ink); box-shadow: none; font-family: var(--serif); font-size: var(--step-2); padding-inline: 0; }
.search-form-inline input[type="search"]:focus { box-shadow: none; }

/* ==========================================================================
   Panels (menu, bag, filters)
   ========================================================================== */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity var(--dur) var(--ease); }
.overlay.is-open { opacity: 1; }

.side-panel {
  position: fixed; top: 0; bottom: 0; z-index: 100; width: min(420px, 92vw);
  background: var(--paper); display: flex; flex-direction: column;
  transition: transform 360ms var(--ease);
}
.side-panel--left { left: 0; transform: translateX(-100%); }
.side-panel--right { right: 0; transform: translateX(100%); }
.side-panel.is-open { transform: none; }
.side-panel-head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 12px 0 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.side-panel-body { flex: 1; overflow-y: auto; padding: 24px; overscroll-behavior: contain; }

.mobile-nav .nav-list { list-style: none; padding: 0; }
.mobile-nav .nav-list > li > a { display: block; padding: 10px 0; font-family: var(--serif); font-size: 1.875rem; line-height: 1.2; }
.mobile-nav .nav-list > li > a:hover { color: var(--indigo); }
.mobile-nav .sub-menu { list-style: none; padding: 0 0 8px 2px; }
.mobile-nav .sub-menu a { display: block; padding: 6px 0; color: var(--graphite); }
.mobile-cats { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.mobile-cats ul { list-style: none; padding: 0; margin-top: 12px; }
.mobile-cats a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mobile-cats a span { color: var(--faint); font-size: var(--step--1); }
.mobile-extras { list-style: none; padding: 0; margin-top: 32px; }
.mobile-extras a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--graphite); }
.mobile-extras a:hover { color: var(--ink); }

/* Bag drawer */
.drawer-title { font-family: var(--serif); font-size: var(--step-2); }
.drawer-count { font-family: var(--sans); font-size: var(--step-0); color: var(--faint); }
.drawer-body { padding-top: 8px; }
.drawer-empty { padding: 64px 0; text-align: center; color: var(--graphite); }
.drawer-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity var(--dur); }
.drawer-item.is-busy { opacity: .4; pointer-events: none; }
.drawer-item-img { background: var(--mist); aspect-ratio: 3 / 4; overflow: hidden; }
.drawer-item-img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item-name { display: block; font-weight: 500; line-height: 1.35; }
.drawer-item-meta { color: var(--graphite); font-size: var(--step--1); margin-top: 4px; }
.drawer-item-remove { margin-top: 10px; font-size: 12px; color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; }
.drawer-item-remove:hover { color: var(--oxblood); }
.drawer-item-price { font-size: var(--step-0); white-space: nowrap; }
.drawer-footer { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; flex-shrink: 0; }
.drawer-total { display: flex; justify-content: space-between; font-size: var(--step-1); font-weight: 500; }
.drawer-note { font-size: var(--step--1); color: var(--graphite); margin-bottom: 6px; }

/* Toasts */
.toast-stack { position: fixed; left: 50%; bottom: calc(24px + var(--bottom-nav-h)); transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
@media (min-width: 1000px) { .toast-stack { bottom: 32px; } }
.toast { background: var(--ink); color: var(--paper); padding: 14px 18px; font-size: var(--step--1); text-align: center; opacity: 0; transform: translateY(8px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-error { background: var(--error); }

/* ==========================================================================
   Bottom nav (mobile)
   ========================================================================== */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(10px);
}
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 10.5px; letter-spacing: 0.04em; }
.bottom-nav-item.is-active, .bottom-nav-item:hover { color: var(--ink); }
.bottom-nav-bag { position: relative; }
.mobile-cart-count { position: absolute; top: -5px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--ink); color: var(--paper); font-style: normal; font-size: 9.5px; font-weight: 600; line-height: 16px; text-align: center; }
body { padding-bottom: var(--bottom-nav-h); }
body.woocommerce-checkout { padding-bottom: 0; }
@media (min-width: 1000px) {
  .bottom-nav { display: none; }
  body { padding-bottom: 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.hero-media { position: relative; background: var(--mist); aspect-ratio: 4 / 5; max-height: 68svh; width: 100%; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption {
  position: absolute; left: var(--gutter); bottom: 20px;
  padding: 6px 10px; background: var(--paper); color: var(--ink);
  font-size: 11px; font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; line-height: 1;
}
.hero-monogram { display: grid; place-items: center; height: 100%; font-family: var(--serif); font-size: clamp(12rem, 40vw, 34rem); line-height: 1; color: var(--paper); font-variation-settings: "opsz" 96; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 96px) var(--gutter); }
.hero-title { font-family: var(--serif); font-size: clamp(2.75rem, 0.9rem + 4.6vw, 5.5rem); line-height: .96; letter-spacing: -0.02em; font-variation-settings: "opsz" 96; }
.hero-title span { display: block; }
.hero-title span + span { margin-top: .04em; }
.hero-desc { max-width: 40ch; margin-top: clamp(20px, 3vw, 32px); font-size: var(--step-1); line-height: 1.55; color: var(--graphite); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero-route { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); justify-content: start; gap: 32px; margin-top: clamp(40px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--line); max-width: 460px; }
.hero-route dt { font-size: 12px; color: var(--faint); }
.hero-route dd { font-family: var(--serif); font-size: var(--step-1); }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(calc(100svh - var(--header-h) - 36px), 900px); }
  .hero-media { aspect-ratio: auto; height: 100%; max-height: none; }
  .hero-copy { padding-inline: clamp(40px, 6vw, 104px); }
}

/* Hero entrance — the page's single orchestrated moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-title span { animation: rise 900ms var(--ease) both; }
  .hero-title span:nth-child(2) { animation-delay: 90ms; }
  .hero-title span:nth-child(3) { animation-delay: 180ms; }
  .hero-desc, .hero-actions, .hero-route { animation: fade 900ms 320ms var(--ease) both; }
  .hero-media img { animation: settle 1400ms var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 40px); }

/* Categories rail */
.section--cats { padding-bottom: calc(var(--section) * .6); }
.cat-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62%, 1fr); gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter); padding-bottom: 8px; scrollbar-width: none;
  max-width: var(--container); margin-inline: auto;
}
.cat-rail::-webkit-scrollbar { display: none; }
@media (min-width: 600px) { .cat-rail { grid-auto-columns: minmax(36%, 1fr); } }
@media (min-width: 1000px) { .cat-rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.cat-tile { scroll-snap-align: start; display: block; }
.cat-tile-img { display: block; aspect-ratio: 4 / 5; background: var(--mist); overflow: hidden; }
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.cat-tile:hover .cat-tile-img img { transform: scale(1.03); }
.cat-tile-initial { display: grid; place-items: center; height: 100%; font-family: var(--serif); font-size: 7rem; color: var(--line-strong); }
.cat-tile-name { display: block; margin-top: 14px; font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; }
.cat-tile-count { display: block; color: var(--graphite); font-size: var(--step--1); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) var(--gap); }
@media (min-width: 1000px) {
  .product-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.empty-note { padding: 32px; background: var(--mist); color: var(--graphite); }

/* Product card */
.product-card { position: relative; min-width: 0; }
.card-media { position: relative; background: var(--mist); aspect-ratio: 3 / 4; overflow: hidden; }
.card-img { display: block; height: 100%; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 500ms var(--ease), transform 1200ms var(--ease); }
.card-img .card-img-alt { opacity: 0; }
@media (hover: hover) {
  .product-card.has-alt:hover .card-img-alt { opacity: 1; }
  .product-card:not(.has-alt):hover .card-img-main { transform: scale(1.03); }
}
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 9px; background: var(--paper); color: var(--ink);
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; line-height: 1;
}
.card-badge.is-sale { background: var(--oxblood); color: var(--paper); }
.card-badge.is-soldout { background: var(--ink); color: var(--paper); }
.card-quick {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  font-size: 12px; font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.card-quick-label { display: none; }
.card-quick--link { display: none; }
.card-quick:hover { background: var(--ink); color: var(--paper); }
.card-quick.is-loading { opacity: .6; }
@media (hover: hover) and (min-width: 1000px) {
  .card-quick, .card-quick--link {
    display: flex; left: 0; right: 0; bottom: 0; width: auto; height: 48px; border-radius: 0;
    background: rgba(255, 255, 255, .94); transform: translateY(100%);
    transition: transform var(--dur) var(--ease), background-color var(--dur), color var(--dur);
  }
  .card-quick-label { display: inline; }
  .product-card:hover .card-quick, .card-quick:focus-visible { transform: none; }
}
.card-body { padding-top: 14px; }
.card-cat { font-size: 12px; color: var(--faint); margin-bottom: 2px; }
.card-title { font-family: var(--sans); font-size: var(--step-0); font-weight: 400; line-height: 1.4; }
.card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease); }
.card-title a:hover { background-size: 100% 1px; }
.card-title a::after { content: ""; position: absolute; inset: 0 0 auto 0; aspect-ratio: 3 / 4; z-index: 1; }
.card-price { margin-top: 4px; font-size: var(--step-0); }
.card-rating { margin-top: 6px; }

/* Prices */
.price-current, .price-current .amount { font-weight: 500; }
.price-sale { color: var(--oxblood); }
.price-original, del { color: var(--faint); font-weight: 400; margin-left: 8px; }
ins { text-decoration: none; }
.price-current del { margin-left: 0; margin-right: 6px; }
.price-current ins { color: var(--oxblood); }

/* Stars */
.stars { --size: 13px; display: inline-block; width: calc(var(--size) * 5); height: var(--size); vertical-align: -1px;
  background: linear-gradient(90deg, var(--ink) var(--rating, 0%), var(--line-strong) var(--rating, 0%));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
}
.stars-count { margin-left: 6px; font-size: 12px; color: var(--graphite); }

/* Editorial band */
.editorial { display: grid; grid-template-columns: 1fr; background: var(--ink); color: var(--paper); }
.editorial-copy { padding: clamp(56px, 9vw, 128px) var(--gutter); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.editorial-title { font-family: var(--serif); font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.01em; max-width: 14ch; }
.editorial-title span { display: block; }
.editorial-title span + span { color: rgba(255, 255, 255, .62); }
.editorial-copy p { max-width: 42ch; margin: 24px 0 32px; color: rgba(255, 255, 255, .78); font-size: var(--step-1); }
.editorial-media { position: relative; min-height: 360px; overflow: hidden; }
.editorial-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.editorial-monogram { display: grid; place-items: center; height: 100%; min-height: 360px; font-family: var(--serif); font-size: clamp(14rem, 30vw, 28rem); line-height: 1; color: rgba(255, 255, 255, .08); border-left: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 900px) {
  .editorial { grid-template-columns: 1fr 1fr; }
  .editorial-copy { padding-inline: clamp(40px, 7vw, 120px); }
  .editorial-media { min-height: 620px; }
}

/* Services */
.services { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: 1fr; }
.service { display: flex; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service .icon { flex-shrink: 0; margin-top: 2px; }
.service-title { font-family: var(--sans); font-size: var(--step-0); font-weight: 500; line-height: 1.4; }
.service-text { color: var(--graphite); font-size: var(--step--1); margin-top: 4px; max-width: 34ch; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } .service:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .service { padding: 40px 28px; border-bottom: 0; border-left: 1px solid var(--line); }
  .service:first-child { border-left: 0; padding-left: 0; }
}
.services--compact { border: 0; margin: 28px 0 8px; }
.services--compact .services-grid { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.services--compact .service { padding: 0; border: 0; align-items: center; gap: 10px; }
.services--compact .service-title { font-size: var(--step--1); font-weight: 400; color: var(--graphite); }

/* Powered by */
.powered { background: var(--mist); padding-block: clamp(40px, 5vw, 64px); }
.powered-inner { display: grid; gap: 12px; align-items: center; }
.powered-name { font-family: var(--serif); font-size: var(--step-2); letter-spacing: 0.12em; }
.powered-text { color: var(--graphite); max-width: 60ch; }
@media (min-width: 900px) { .powered-inner { grid-template-columns: auto 1fr; gap: 64px; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--paper); margin-top: 0; }
.site-footer a:hover { color: rgba(255, 255, 255, .7); }
.footer-newsletter { border-bottom: 1px solid rgba(255, 255, 255, .14); padding-block: clamp(48px, 6vw, 80px); }
.newsletter-grid { display: grid; gap: 24px; align-items: end; }
.newsletter-title { font-family: var(--serif); font-size: var(--step-3); }
.newsletter-desc { color: rgba(255, 255, 255, .7); margin-top: 8px; max-width: 46ch; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 0; position: relative; }
.newsletter-form input[type="email"] { background: transparent; color: var(--paper); border: 0; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-inline: 0; }
.newsletter-form input[type="email"]:focus { border-bottom-color: var(--paper); box-shadow: 0 1px 0 var(--paper); }
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .5); }
.newsletter-form .btn { border-radius: 0; }
.newsletter-status { grid-column: 1 / -1; min-height: 1.5em; margin-top: 10px; font-size: var(--step--1); color: rgba(255, 255, 255, .85); }
.newsletter-status.is-error { color: #f3b6b6; }
@media (min-width: 900px) { .newsletter-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; padding-block: clamp(48px, 6vw, 72px); }
.footer-brand { grid-column: 1 / -1; }
.footer-tagline { font-family: var(--serif); font-size: var(--step-2); line-height: 1.25; max-width: 18ch; }
.footer-email { display: inline-block; margin-top: 16px; color: rgba(255, 255, 255, .75); }
.footer-social { display: flex; gap: 6px; margin-top: 20px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.footer-social a:hover { border-color: var(--paper); color: var(--paper); }
.footer-col-title { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 10px; }
@media (min-width: 900px) {
  .footer-main { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}
.footer-masthead { overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 24px; }
.wordmark--giant { display: block; font-size: clamp(2.5rem, 11.5vw, 11rem); letter-spacing: 0.04em; line-height: .9; text-align: center; color: rgba(255, 255, 255, .92); white-space: nowrap; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 32px; font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ==========================================================================
   Page heads, breadcrumb, content
   ========================================================================== */
.page-head { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(24px, 3vw, 40px); }
.page-head--narrow { max-width: calc(760px + var(--gutter) * 2); }
.page-intro { margin-top: 14px; color: var(--graphite); max-width: 60ch; font-size: var(--step-1); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--faint); margin-bottom: 16px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--graphite); }

.page-body { max-width: calc(760px + var(--gutter) * 2); padding-bottom: var(--section); }
.page-body--wide { max-width: var(--container); }

.entry-content { font-size: var(--step-1); line-height: 1.7; color: #262422; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-family: var(--serif); font-size: var(--step-3); margin-top: 1.8em; color: var(--ink); }
.entry-content h3 { font-family: var(--serif); font-size: var(--step-2); margin-top: 1.6em; color: var(--ink); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:hover { color: var(--indigo); }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { font-family: var(--serif); font-size: var(--step-2); line-height: 1.35; border-left: 1px solid var(--ink); padding-left: 24px; }
.entry-content img { margin-block: 1.5em; }
.entry-content--lead > p:first-child { font-family: var(--serif); font-size: var(--step-2); line-height: 1.4; color: var(--ink); }
.about-figure { margin-bottom: var(--section); }
.about-figure img { width: 100%; max-height: 80vh; object-fit: cover; }
.admin-note { margin-top: 24px; padding: 12px 16px; background: var(--mist); color: var(--graphite); font-size: var(--step--1); }

/* FAQ */
.faq-list { display: grid; margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-family: var(--sans); font-size: var(--step-1); font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 300; font-size: 1.5em; line-height: .8; transition: transform var(--dur) var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 22px; color: var(--graphite); margin: 0; font-size: var(--step-0); max-width: 62ch; }
.help-box { margin-top: 56px; padding: clamp(28px, 4vw, 48px); background: var(--mist); }
.help-box h2 { font-family: var(--serif); font-size: var(--step-3); }
.help-box p { color: var(--graphite); margin-top: 8px; }
.help-box .hero-actions { margin-top: 24px; }

/* Contact */
.contact-layout { display: grid; gap: 48px; padding-bottom: var(--section); }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.contact-list dd { color: var(--graphite); }
.contact-list a:hover { color: var(--ink); text-decoration: underline; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: 96px; } }
@media (max-width: 520px) { .contact-list > div { grid-template-columns: 1fr; gap: 4px; } }

/* Posts */
.post-grid { display: grid; gap: 48px var(--gap); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-card-img { display: block; aspect-ratio: 4 / 5; background: var(--mist); overflow: hidden; margin-bottom: 16px; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-date { font-size: 12px; color: var(--faint); }
.post-card-title { font-family: var(--serif); font-size: var(--step-2); margin: 6px 0 8px; }
.post-card-excerpt { color: var(--graphite); }

/* Empty states */
.empty-state { text-align: center; padding: 72px 0; max-width: 520px; margin-inline: auto; }
.empty-state--page { padding-block: clamp(72px, 12vw, 160px); }
.empty-state .icon { margin: 0 auto 20px; }
.empty-state h1, .empty-state h2 { font-family: var(--serif); font-size: var(--step-3); }
.empty-state p { color: var(--graphite); margin: 12px auto 28px; }
.empty-state .hero-actions { justify-content: center; }
.not-found-num { font-family: var(--serif); font-size: clamp(6rem, 22vw, 14rem); line-height: .9; color: var(--mist); -webkit-text-stroke: 1px var(--line-strong); }
.search-form-page { display: flex; gap: 8px; max-width: 420px; margin-inline: auto; }

/* Pagination */
.pagination { margin-top: clamp(48px, 6vw, 80px); display: flex; justify-content: center; }
.pagination ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.pagination a, .pagination span.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border: 1px solid transparent; }
.pagination a:hover { border-color: var(--line-strong); }
.pagination .current { border-color: var(--ink); }

/* ==========================================================================
   Shop archive
   ========================================================================== */
.cat-tabs { border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.cat-tabs ul { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.cat-tabs ul::-webkit-scrollbar { display: none; }
.cat-tabs a { display: block; padding: 12px 0; white-space: nowrap; color: var(--graphite); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.cat-tabs a:hover { color: var(--ink); }
.cat-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }

.shop-layout { display: grid; gap: 48px; padding-bottom: var(--section); }
.shop-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.shop-count { color: var(--graphite); font-size: var(--step--1); margin-right: auto; }
.shop-sort select { min-height: 40px; width: auto; border-color: transparent; padding-left: 8px; font-size: var(--step--1); background-color: transparent; }
.shop-sort select:hover { border-color: var(--line-strong); }
.woocommerce-ordering { margin: 0; }

.shop-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; width: min(360px, 88vw); background: var(--paper); overflow-y: auto; transform: translateX(-100%); transition: transform 360ms var(--ease); }
.shop-sidebar.is-open { transform: none; }
@media (max-width: 999px) { .shop-sidebar:not(.is-open) { visibility: hidden; transition: transform 360ms var(--ease), visibility 0s 360ms; } }
.shop-sidebar-head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 12px 0 24px; border-bottom: 1px solid var(--line); }
.filter-block { padding: 24px; }
.filter-title { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; margin-bottom: 12px; }
.filter-list { list-style: none; padding: 0; }
.filter-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; color: var(--graphite); }
.filter-list a:hover, .filter-list a[aria-current] { color: var(--ink); }
.filter-list a[aria-current] span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.filter-count { color: var(--faint); font-size: var(--step--1); }
.filter-widgets .widget + .widget { margin-top: 28px; }
.widget-title { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; margin-bottom: 12px; }
.widget ul { list-style: none; padding: 0; }
.widget li { padding: 6px 0; }

@media (min-width: 1000px) {
  .shop-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .shop-sidebar { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; z-index: auto; width: auto; transform: none; overflow: visible; max-height: none; }
  .shop-sidebar-head, #filter-overlay, .filter-toggle { display: none !important; }
  .filter-block { padding: 0 0 32px; }
}

/* ==========================================================================
   Single product
   ========================================================================== */
.product-page { padding-top: clamp(16px, 2vw, 28px); }
.product-page > .breadcrumb { margin-bottom: 20px; }
.product-layout { display: grid; gap: 28px; }
@media (min-width: 1000px) {
  .product-layout { grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); gap: clamp(40px, 5vw, 88px); align-items: start; }
}

.gallery { position: relative; margin-inline: calc(var(--gutter) * -1); }
.gallery-main { position: relative; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; background: var(--mist); aspect-ratio: 3 / 4; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; padding-top: 14px; }
.gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background-color var(--dur); }
.gallery-dots span.is-active { background: var(--ink); }
@media (min-width: 1000px) {
  .gallery { margin-inline: 0; }
  .gallery-track { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; }
  .gallery-slide:first-child { grid-column: 1 / -1; }
  .gallery:not(.is-multi) .gallery-track { grid-template-columns: 1fr; }
  .gallery-dots { display: none; }
}
.gallery-main > .card-badge { top: 16px; left: 16px; }

.product-summary { min-width: 0; }
@media (min-width: 1000px) { .summary-inner { position: sticky; top: calc(var(--header-h) + 24px); } }
.summary-cat { display: inline-block; font-size: var(--step--1); color: var(--graphite); margin-bottom: 8px; }
.summary-cat:hover { color: var(--ink); text-decoration: underline; }
.product-title { font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1.08; letter-spacing: -0.01em; }
.summary-price { margin-top: 14px; font-size: var(--step-1); }
.summary-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--step--1); color: var(--graphite); }
.summary-rating:hover { color: var(--ink); }
.summary-short { margin-top: 20px; color: var(--graphite); }
.summary-short > * + * { margin-top: .6em; }

.atc-form { margin-top: 28px; }
.variant { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.variant-label { display: flex; gap: 8px; margin-bottom: 10px; font-size: var(--step--1); font-weight: 500; padding: 0; }
.variant-chosen { font-weight: 400; color: var(--graphite); }
.variant.is-missing .variant-label { color: var(--oxblood); }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn { min-width: 52px; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); font-size: var(--step--1); transition: border-color var(--dur), background-color var(--dur), color var(--dur); }
.size-btn:hover { border-color: var(--ink); }
.size-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.swatch { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--swatch, var(--mist)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.swatch::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid transparent; transition: border-color var(--dur); }
.swatch:hover::after { border-color: var(--line-strong); }
.swatch.is-active::after { border-color: var(--ink); }
.is-unavailable { opacity: .45; }
.size-btn.is-unavailable { text-decoration: line-through; }
.variant.is-missing .size-btn, .variant.is-missing .swatch { box-shadow: inset 0 0 0 1px var(--oxblood); }
.variant-message { min-height: 1.4em; font-size: var(--step--1); color: var(--oxblood); margin: -8px 0 12px; }

.atc-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.atc-btn[aria-disabled="true"] { background: var(--graphite); border-color: var(--graphite); }
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); height: 56px; }
.qty-btn { width: 44px; display: grid; place-items: center; }
.qty-btn:hover { color: var(--indigo); }
.qty-stepper .quantity { display: flex; }
.qty-stepper input[type="number"] { width: 44px; min-height: 0; height: 100%; padding: 0; border: 0; text-align: center; -moz-appearance: textfield; box-shadow: none; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper--sm { height: 40px; }
.qty-stepper--sm .qty-btn { width: 36px; }

.summary-help { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: var(--step--1); color: var(--graphite); }
.summary-help:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.soldout-block { margin-top: 28px; display: grid; gap: 12px; }
.soldout-title { font-family: var(--serif); font-size: var(--step-2); }
.wc-atc-default { margin-top: 28px; }
.wc-atc-default form.cart { display: flex; flex-wrap: wrap; gap: 10px; }
.wc-atc-default .group_table td { padding: 8px 0; }

.accordion { margin-top: 32px; border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: var(--step--1); font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .icon { transition: transform var(--dur) var(--ease); }
.accordion-item[open] summary .icon { transform: rotate(180deg); }
.accordion-body { padding-bottom: 24px; color: var(--graphite); font-size: var(--step-0); }
.accordion-body.entry-content { font-size: var(--step-0); color: var(--graphite); }
.spec-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--ink); }

.section--related { padding-bottom: var(--section); }

.sticky-atc {
  position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); z-index: 39;
  display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter);
  background: var(--paper); border-top: 1px solid var(--line);
  transform: translateY(120%); transition: transform var(--dur) var(--ease);
}
.sticky-atc.is-visible { transform: none; }
.sticky-atc-info { min-width: 0; flex: 1; display: grid; }
.sticky-atc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--step--1); }
.sticky-atc-price { font-size: var(--step--1); }
@media (min-width: 1000px) { .sticky-atc { display: none; } }

/* Reviews (WooCommerce markup) */
.reviews-body .woocommerce-Reviews-title, .reviews-body #reply-title { font-family: var(--serif); font-size: var(--step-2); color: var(--ink); margin-bottom: 16px; }
.reviews-body .commentlist { list-style: none; padding: 0; }
.reviews-body .comment_container { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.reviews-body .avatar { border-radius: 50%; }
.reviews-body .meta { font-size: var(--step--1); }
.reviews-body .comment-form > p { margin-top: 14px; }
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1em; overflow: hidden; font-size: 13px; line-height: 1; }
.star-rating::before { content: "★★★★★"; position: absolute; color: var(--line-strong); letter-spacing: .08em; }
.star-rating span { position: absolute; top: 0; left: 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; left: 0; color: var(--ink); letter-spacing: .08em; }
p.stars a { display: inline-block; width: 1.2em; overflow: hidden; color: transparent; position: relative; font-size: 20px; }
p.stars a::before { content: "☆"; position: absolute; left: 0; top: 0; color: var(--ink); }
p.stars:hover a::before, p.stars.selected a::before { content: "★"; }
p.stars a:hover ~ a::before, p.stars.selected a.active ~ a::before { content: "☆"; }

/* ==========================================================================
   WooCommerce notices
   ========================================================================== */
.woocommerce-notices-wrapper:not(:empty) { max-width: var(--container); margin: 16px auto 0; padding-inline: var(--gutter); }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; margin: 0 0 16px; border-left: 2px solid var(--ink); background: var(--mist); font-size: var(--step-0);
}
.woocommerce-error { border-left-color: var(--error); color: var(--error); display: block; }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-message { border-left-color: var(--success); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 36px; padding-inline: 16px; background: transparent; color: var(--ink); }
.woocommerce-message .button:hover, .woocommerce-info .button:hover { background: var(--ink); color: var(--paper); }
.woocommerce-info a:not(.button), .woocommerce-message a:not(.button) { text-decoration: underline; }

/* ==========================================================================
   Cart, checkout, account (flow pages)
   ========================================================================== */
.flow-page { padding-top: clamp(28px, 4vw, 48px); padding-bottom: var(--section); }
.flow-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(24px, 3vw, 40px); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.flow-head--center { flex-direction: column; align-items: center; text-align: center; border-bottom: 0; }
.flow-sub { color: var(--graphite); }
.flow-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .flow-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(40px, 5vw, 80px); align-items: start; }
  .flow-summary { position: sticky; top: calc(var(--header-h) + 24px); }
}
.summary-card { background: var(--mist); padding: clamp(20px, 3vw, 32px); }

/* Cart */
.cart-list { border-top: 1px solid var(--line); }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .cart-row { grid-template-columns: 128px 1fr auto; gap: 24px; } }
.cart-thumb { background: var(--mist); aspect-ratio: 3 / 4; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-family: var(--serif); font-size: var(--step-1); line-height: 1.25; }
.cart-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-variation dl.variation { display: grid; grid-template-columns: auto 1fr; gap: 0 6px; margin-top: 6px; font-size: var(--step--1); color: var(--graphite); }
.cart-variation dd p { margin: 0; }
.cart-unit { font-size: var(--step--1); color: var(--graphite); margin-top: 4px; }
.cart-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.cart-remove { color: var(--graphite); font-weight: 400; letter-spacing: 0; }
.cart-remove:hover { color: var(--oxblood); }
.cart-line { font-weight: 500; white-space: nowrap; }
.cart-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; }
.coupon { display: flex; gap: 0; flex: 1 1 280px; max-width: 420px; }
.coupon input { border-right: 0; }
.cart-update[disabled] { opacity: .45; }
.continue-link { margin-top: 20px; }

.cart_totals h2 { font-family: var(--serif); font-size: var(--step-2); margin-bottom: 16px; }
.cart_totals table, .woocommerce-checkout-review-order-table { font-size: var(--step-0); }
.cart_totals th, .cart_totals td, .woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 12px 0; border-bottom: 1px solid var(--line-strong); text-align: left; vertical-align: top; font-weight: 400; }
.cart_totals td, .woocommerce-checkout-review-order-table td:last-child, .woocommerce-checkout-review-order-table th:last-child { text-align: right; }
.cart_totals .order-total th, .cart_totals .order-total td, .woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { border-bottom: 0; font-size: var(--step-1); font-weight: 500; padding-top: 16px; }
.woocommerce-shipping-methods { list-style: none; padding: 0; text-align: right; }
.woocommerce-shipping-methods li { margin-bottom: 6px; }
.woocommerce-shipping-methods label { display: inline; font-weight: 400; }
.woocommerce-shipping-destination, .shipping-calculator-button { font-size: var(--step--1); color: var(--graphite); }
.shipping-calculator-form { margin-top: 12px; text-align: left; }
.wc-proceed-to-checkout { margin-top: 20px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; }

/* Checkout */
.checkout-step + .checkout-step { margin-top: 48px; }
.step-title { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: var(--step-2); margin-bottom: 20px; }
.step-num { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--sans); font-size: var(--step--1); font-weight: 500; flex-shrink: 0; }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3:not(#ship-to-different-address), .woocommerce-additional-fields h3 { display: none; }
#ship-to-different-address { font-family: var(--sans); font-size: var(--step-0); font-weight: 500; margin-bottom: 16px; }
#ship-to-different-address label { display: flex; align-items: center; font-size: var(--step-0); }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper, .woocommerce-account-fields, .woocommerce-additional-fields__field-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px;
}
.form-row { grid-column: 1 / -1; margin: 0; }
@media (min-width: 600px) { .form-row-first { grid-column: 1; } .form-row-last { grid-column: 2; } }
.form-row .optional { color: var(--faint); font-weight: 400; }
.form-row.woocommerce-invalid input, .form-row.woocommerce-invalid select { border-color: var(--error); }
.form-row .description { font-size: var(--step--1); color: var(--graphite); margin-top: 4px; }
.woocommerce-additional-fields { margin-top: 32px; }
.woocommerce-form-login-toggle, .woocommerce-form-coupon-toggle { margin-bottom: 8px; }
.checkout_coupon, .woocommerce-form-login { padding: 20px; border: 1px solid var(--line); margin-bottom: 24px; display: grid; gap: 12px; }

#payment { margin-top: 24px; }
#payment .wc_payment_methods { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
#payment .wc_payment_method { padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
#payment .wc_payment_method > label { display: inline; font-size: var(--step-0); font-weight: 500; }
#payment .wc_payment_method img { display: inline-block; max-height: 22px; vertical-align: middle; margin-left: 6px; }
#payment .payment_box { margin-top: 10px; padding: 14px; background: var(--paper); font-size: var(--step--1); color: var(--graphite); }
#payment .place-order { margin-top: 20px; display: grid; gap: 14px; }
.woocommerce-terms-and-conditions-wrapper { font-size: var(--step--1); color: var(--graphite); }
#place_order { width: 100%; min-height: 56px; }
.blockUI.blockOverlay { background: rgba(255, 255, 255, .6) !important; }

/* Thank you */
.thankyou-hero { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 56px); }
.thankyou-hero p { color: var(--graphite); margin-top: 14px; font-size: var(--step-1); }
.thankyou-hero .hero-actions { justify-content: center; }
.success-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border: 1px solid var(--ink); border-radius: 50%; }
.order-meta { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.order-meta > div { padding: 20px 16px; }
.order-meta dt { font-size: 12px; color: var(--faint); }
.order-meta dd { font-family: var(--serif); font-size: var(--step-1); margin-top: 4px; }
@media (min-width: 800px) { .order-meta { grid-template-columns: repeat(4, 1fr); } .order-meta > div + div { border-left: 1px solid var(--line); } }
.thankyou-details { max-width: 820px; margin-inline: auto; }
.woocommerce-order-details__title, .woocommerce-column__title { font-family: var(--serif); font-size: var(--step-2); margin: 32px 0 16px; }
.woocommerce-table--order-details th, .woocommerce-table--order-details td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce-table--order-details td:last-child, .woocommerce-table--order-details tfoot td { text-align: right; }
.woocommerce-customer-details address { font-style: normal; line-height: 1.7; padding: 20px; background: var(--mist); }
.woocommerce-columns--addresses { display: grid; gap: 24px; }
@media (min-width: 700px) { .woocommerce-columns--addresses { grid-template-columns: 1fr 1fr; } }
.thankyou-continue { text-align: center; margin-top: 48px; }

/* Account */
.account-layout { display: grid; gap: 32px; }
@media (min-width: 1000px) { .account-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; } }
.account-nav ul { list-style: none; padding: 0; display: flex; gap: 24px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.account-nav a { display: block; padding: 10px 0; white-space: nowrap; color: var(--graphite); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.account-nav a:hover { color: var(--ink); }
.account-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
@media (min-width: 1000px) {
  .account-nav ul { display: grid; gap: 0; border: 0; border-top: 1px solid var(--line); }
  .account-nav li { border-bottom: 1px solid var(--line); }
  .account-nav a { padding: 14px 0; border: 0; margin: 0; }
  .account-nav a[aria-current] { font-weight: 500; }
}
.account-content h2, .account-content h3 { font-family: var(--serif); font-size: var(--step-2); margin-bottom: 16px; }
.account-content > p { color: var(--graphite); }
.account-content form { display: grid; gap: 16px; }
.account-content fieldset { border: 1px solid var(--line); padding: 20px; display: grid; gap: 14px; }
.account-content legend { font-weight: 500; padding: 0 6px; }
.dashboard-hello { font-family: var(--serif); font-size: var(--step-3); margin-bottom: 24px !important; }
.dashboard-last { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 20px; background: var(--mist); margin-bottom: 24px; }
.dashboard-last:hover { background: #ebe9e5; }
.dashboard-label { font-size: 12px; color: var(--faint); width: 100%; }
.dashboard-order { font-family: var(--serif); font-size: var(--step-2); }
.dashboard-total { margin-left: auto; font-weight: 500; }
.status-pill { padding: 4px 10px; border: 1px solid var(--line-strong); font-size: 12px; }
.status-completed { border-color: var(--success); color: var(--success); }
.status-processing, .status-on-hold { border-color: var(--indigo); color: var(--indigo); }
.status-failed, .status-cancelled { border-color: var(--error); color: var(--error); }
.dashboard-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.dashboard-links a { display: grid; gap: 4px; padding: 22px; border: 1px solid var(--line); transition: border-color var(--dur); }
.dashboard-links a:hover { border-color: var(--ink); }
.dashboard-links .icon { margin-bottom: 10px; }
.dashboard-links small { color: var(--graphite); }
.dashboard-logout { margin-top: 28px; }
.woocommerce-orders-table { font-size: var(--step--1); }
.woocommerce-orders-table th, .woocommerce-orders-table td { padding: 14px 8px 14px 0; border-bottom: 1px solid var(--line); text-align: left; }
.woocommerce-orders-table .button { min-height: 34px; padding-inline: 14px; font-size: 11px; background: transparent; color: var(--ink); margin: 2px; }
@media (max-width: 700px) {
  .woocommerce-orders-table thead { display: none; }
  .woocommerce-orders-table tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .woocommerce-orders-table td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; }
  .woocommerce-orders-table td::before { content: attr(data-title); color: var(--faint); }
}
.woocommerce-Addresses { display: grid; gap: 24px; }
@media (min-width: 700px) { .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-Address { padding: 20px; background: var(--mist); }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; }
.woocommerce-Address-title a { font-size: var(--step--1); text-decoration: underline; }
.woocommerce-Address address { font-style: normal; color: var(--graphite); }

/* Auth */
.auth-page .flow-head { margin-bottom: 32px; }
.account-auth { display: grid; gap: 24px; max-width: 980px; margin-inline: auto; }
@media (min-width: 860px) { .account-auth { grid-template-columns: 1fr 1fr; gap: 0; } .account-auth-card + .account-auth-card { border-left: 0; } }
.account-auth-card { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); }
.account-auth-card--register { background: var(--mist); border-color: var(--mist); }
.account-auth-title { font-family: var(--serif); font-size: var(--step-2); }
.account-auth-desc { color: var(--graphite); margin: 6px 0 24px; }
.account-auth form { display: grid; gap: 16px; }
.account-auth-actions { display: grid; gap: 16px; }
.account-remember { display: flex; align-items: center; font-weight: 400; }
.account-lost-password a { font-size: var(--step--1); text-decoration: underline; text-underline-offset: 3px; color: var(--graphite); }
.account-register-note { font-size: var(--step--1); color: var(--graphite); }
.woocommerce-privacy-policy-text { font-size: 12px; color: var(--graphite); }
.woocommerce-password-strength { font-size: 12px; margin-top: 6px; }
.show-password-input { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.password-input { position: relative; display: block; }

/* WooCommerce Blocks (if cart/checkout pages use blocks) */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { max-width: var(--container); margin-inline: auto; padding: clamp(28px, 4vw, 48px) var(--gutter) var(--section); }
.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--serif) !important; text-transform: none !important; font-weight: 400 !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: 0 !important; }

/* Fallback wrapper */
.wc-fallback { padding-top: 32px; }

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .site-header, .announcement, .bottom-nav, .site-footer, .sticky-atc, .toast-stack { display: none !important; }
  body { padding: 0; }
}
