/* ===================================================================
   LIAR & CO. — Fine Watches & Jewellery
   Design system ported from the approved static prototype into the
   Kadence child theme. Class names match the prototype 1:1 wherever the
   theme templates output them; sections below marked "WP/WooCommerce"
   adapt native markup (loops, tabs, Cart/Checkout blocks, forms) that the
   prototype didn't need to account for.
   =================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper:      #FAF7F0;
  --paper-2:    #EEE7D7;
  --card:       #FFFFFF;
  --ink:        #14120D;
  --ink-2:      #322E27;
  --muted:      #544F46;
  --hair:       #D6CCB6;
  --hair-2:     #E4DAC5;

  --gilt:       #9B7331;
  --gilt-deep:  #6C4F1D;
  --gilt-wash:  #EFE5CF;
  --gilt-bright:#E6CE9E;
  --ring-static:rgba(155,115,49,0.55);

  --noir:       #121016;
  --noir-2:     #09080B;
  --on-noir:    rgba(255,255,255,0.84);

  --flag:       #A5372A;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-sm: 3px;
  --r-lg: 14px;
  --pill: 999px;

  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 68px);
  --shadow: 0 24px 60px -30px rgba(27,26,23,0.35);
  --shadow-soft: 0 14px 40px -22px rgba(27,26,23,0.28);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .5s;
  --dur-fast: .22s;

  --header-h: 68px;
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.85rem); letter-spacing: -0.02em; }
h3 { font-size: 1.28rem; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding: clamp(50px, 7.5vw, 100px) 0; }
.section--tight { padding: clamp(36px, 5vw, 62px) 0; }
.band-noir { background: var(--noir); color: var(--on-noir); border-block: 1px solid #000; }
.band-noir h1, .band-noir h2, .band-noir h3 { color: #fff; }
.band-alt { background: var(--paper-2); border-block: 1px solid var(--hair); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gilt);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gilt); display: inline-block; }
.band-noir .eyebrow { color: #C9AC7E; }
.band-noir .eyebrow::before { background: #C9AC7E; }
.center .eyebrow::before { display: none; }

.lede { color: var(--muted); font-size: 1.03rem; max-width: 52ch; }
.band-noir .lede { color: var(--on-noir); }
.section-head { max-width: 640px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn, .wc-block-components-button, .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--bd); border-radius: var(--r-sm);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:hover, .wc-block-components-button:hover { transform: translateY(-2px); background: var(--gilt-deep); border-color: var(--gilt-deep); box-shadow: 0 12px 26px -14px rgba(108,79,29,0.6); color:#fff; }
.btn--line { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--line:hover { --bg: var(--gilt-deep); --fg: #fff; --bd: var(--gilt-deep); }
.btn--light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--light:hover { --bg: var(--gilt-bright); --fg: var(--ink); --bd: var(--gilt-bright); }
.btn--ghost {
  --bg: transparent; --fg: var(--ink); --bd: transparent;
  padding: 6px 0; border-radius: 0; border-bottom: 2px solid var(--gilt);
  letter-spacing: 0.1em;
}
.btn--ghost:hover { transform: none; background: transparent; border-color: var(--gilt-deep); color: var(--gilt-deep); box-shadow: none; }
.btn--pill { border-radius: var(--pill); padding-inline: 32px; }
.btn--sm { padding: 10px 18px; font-size: 0.68rem; }
.btn--block { width: 100%; }
.btn:disabled, .wc-block-components-button:disabled { opacity: 0.4; pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--hair); background: color-mix(in srgb, var(--paper) 97%, transparent); }
.site-header__bar {
  max-width: var(--wrap); margin-inline: auto; padding: 0 var(--pad);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  font-family: var(--font-display); font-size: 1.24rem; letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand b { font-weight: 400; }
.main-nav__list { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav__list > li { display: contents; }
.main-nav__list a {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-2); padding: 6px 0; position: relative; display: inline-block;
}
.main-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gilt); transition: right var(--dur) var(--ease);
}
.main-nav__list a:hover::after, .main-nav__list a[aria-current="page"]::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: none; border: 0; color: var(--ink); border-radius: var(--pill);
  transition: background var(--dur-fast) var(--ease);
}
.icon-btn:hover { background: var(--gilt-wash); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.count-badge, .dot {
  position: absolute; top: 4px; right: 3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--gilt); color: #fff;
  font-family: var(--font-body); font-size: 0.6rem; font-weight: 700; line-height: 16px;
  text-align: center; border-radius: var(--pill);
  display: none;
}
.count-badge.is-shown, .dot.is-shown { display: block; }
.nav-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 1.7; fill: none; }
.nav-mobile-extra { display: none; }

.header-search { border-bottom: 1px solid var(--hair); background: var(--paper); }
.header-search__form { display: flex; align-items: center; gap: 10px; padding: 14px var(--pad); }
.header-search__form svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 1.6; flex-shrink: 0; }
.header-search__form input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: inherit; padding: 8px 0; }
.header-search__close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); padding: 0 6px; }

@media (max-width: 940px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--hair);
    padding: 8px var(--pad) 22px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav__list a { padding: 15px 2px; border-bottom: 1px solid var(--hair-2); font-size: 0.9rem; }
  .main-nav__list a::after { display: none; }
  .nav-mobile-extra { display: block; }
  .nav-mobile-cta { color: var(--gilt) !important; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  .brand { font-size: 1.06rem; }
}

/* ---------- home hero ---------- */
.hero { border-bottom: 1px solid var(--hair); background: linear-gradient(180deg, var(--card), var(--paper-2)); }
.hero__inner { max-width: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: 1.04fr 0.96fr; align-items: stretch; min-height: calc(100svh - var(--header-h)); }
.hero__copy { padding: clamp(40px, 6vw, 96px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.hero__copy h1 { margin-bottom: 22px; }
.hero__copy h1 em { font-style: italic; color: var(--gilt-deep); }
.hero__actions, .btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__actions { margin-top: 34px; }

@media (max-width: 560px) {
  .hero__actions, .btn-row, .product__cta { flex-direction: column; align-items: center; width: 100%; }
  .hero__actions .btn, .btn-row .btn, .product__cta .btn { width: 100%; max-width: 300px; flex: 0 0 auto; }
}
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 40px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); }
.hero__trust li { display: flex; align-items: center; gap: 9px; }
.hero__trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gilt); }
.hero__media { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; background: var(--paper-2); }
.hero__media figure { margin: 0; overflow: hidden; border-radius: var(--r-sm); animation: hero-drop 1s var(--ease) both; }
.hero__media figure:nth-child(1) { --hd-rot: -7deg; animation-delay: 0.05s; }
.hero__media figure:nth-child(2) { --hd-rot: 6deg;  animation-delay: 0.18s; }
.hero__media figure:nth-child(3) { --hd-rot: -5deg; animation-delay: 0.30s; }
@keyframes hero-drop {
  from { opacity: 0; transform: rotate(var(--hd-rot, -6deg)) translateY(26px) scale(1.03); }
  55%  { opacity: 1; }
  to   { opacity: 1; transform: rotate(0) translateY(0) scale(1); }
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media figure:first-child { grid-row: span 2; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { grid-template-columns: 1fr 1fr; aspect-ratio: 3/2; }
  .hero__media figure:first-child { grid-row: auto; }
}
@media (max-width: 460px) { .hero__media { aspect-ratio: 1/1; } }

/* ---------- product card ---------- */
.grid { display: grid; gap: 34px 26px; grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid, .grid--4, .grid--2 { grid-template-columns: 1fr; } }

.pcard { position: relative; display: flex; flex-direction: column; transition: transform .5s var(--ease); }
.pcard:hover { transform: translateY(-6px); }
.pcard__media {
  position: relative; display: block; aspect-ratio: 4/5; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--hair); border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
}
.pcard:hover .pcard__media { border-color: var(--gilt); box-shadow: 0 32px 54px -30px rgba(20,18,13,0.45); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__flag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 2px; background: var(--ink); color: #fff;
}
.pcard__flag[data-flag="Limited"] { background: var(--flag); }
.pcard__flag[data-flag="New"] { background: var(--gilt-deep); }

.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: var(--pill);
  border: 1px solid var(--hair);
  background: color-mix(in srgb, #fff 88%, transparent);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.fav-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.fav-btn:hover { background: #fff; }
.fav-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.fav-btn.is-active svg { fill: currentColor; }

.pcard__add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.pcard:hover .pcard__add, .pcard:focus-within .pcard__add { opacity: 1; transform: none; }
@media (hover: none) { .pcard__add { opacity: 1; transform: none; } }

.pcard__body { padding: 15px 2px 0; margin-top: 14px; border-top: 1px solid var(--hair); }
.pcard__cat { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gilt); font-weight: 700; }
.pcard__name { font-size: 1.14rem; margin: 7px 0 4px; }
.pcard__name a:hover { color: var(--gilt-deep); }
.pcard__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.price, .pcard__row .woocommerce-Price-amount { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); font-weight: 500; }
.price del, .woocommerce-Price-amount del { opacity: .5; text-decoration: line-through; font-size: .85em; }
.price ins, .woocommerce-Price-amount ins { text-decoration: none; }
.pcard__gender { font-size: 0.72rem; color: var(--muted); }

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--r-sm); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 34%, rgba(16,15,18,0.82)); }
.tile__cap { position: absolute; inset: auto 0 0 0; padding: 20px 18px; z-index: 2; color: #fff; }
.tile__cap h3 { color: #fff; font-size: 1.3rem; }
.tile__cap span { font-size: 0.74rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.8); }
@media (max-width: 560px) { .tile__cap span { display: none; } .tile__cap h3 { font-size: 1.16rem; } }

/* ---------- split / editorial ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 74px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { overflow: hidden; border-radius: var(--r-sm); }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split__body .btn { margin-top: 26px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } .split__media img { aspect-ratio: 16/11; } }

.feature-list { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list svg { flex-shrink: 0; width: 22px; height: 22px; stroke: var(--gilt); fill: none; stroke-width: 1.6; margin-top: 2px; }
.feature-list strong { display: block; font-weight: 600; }
.feature-list span { color: var(--muted); font-size: 0.92rem; }
.band-noir .feature-list span { color: var(--on-noir); }

/* ---------- stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r-sm); overflow: hidden; }
.band-noir .stat-row { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.14); }
.stat { background: var(--paper); padding: 30px 20px; text-align: center; }
.band-noir .stat { background: var(--noir); }
.stat b { font-family: var(--font-display); font-size: 2.1rem; font-weight: 400; display: block; }
.stat span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.band-noir .stat span { color: var(--on-noir); }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr 1fr; } }

/* ---------- value cards / numbered steps ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.value-card { border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 28px 24px; background: var(--card); }
.value-card svg { width: 24px; height: 24px; stroke: var(--gilt); fill: none; stroke-width: 1.6; }
.value-card h3 { font-size: 1.16rem; margin: 12px 0 6px; }
.value-card p { color: var(--muted); font-size: 0.9rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step-card { border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 26px 22px; background: var(--card); }
.step-card::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-display); font-size: 1.7rem; color: var(--gilt); display: block; margin-bottom: 10px; }
.step-card h3 { font-size: 1.06rem; }
.step-card p { font-size: 0.87rem; color: var(--muted); margin-top: 6px; }
.band-noir .step-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.14); }
.band-noir .step-card h3 { color: #fff; }
.band-noir .step-card p { color: var(--on-noir); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--card); border: 1px solid var(--hair-2); border-radius: var(--r-sm); padding: 30px; }
.quote .stars { color: var(--gilt); letter-spacing: 3px; font-size: 0.82rem; }
.quote p { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; margin: 12px 0 18px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.84rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gilt-wash); color: var(--gilt-deep); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.82rem; }
.quote figcaption b { display: block; font-weight: 600; }
.quote figcaption span { color: var(--muted); }
.fineprint { margin-top: 22px; font-size: 0.78rem; color: var(--muted); text-align: center; }

/* ---------- cta band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-sm); }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,15,18,0.86), rgba(16,15,18,0.45)); }
.cta-band__in { position: relative; z-index: 2; padding: clamp(48px, 8vw, 96px) var(--pad); max-width: 620px; color: #fff; }
.cta-band__in h2 { color: #fff; }
.cta-band__in p { color: rgba(255,255,255,0.82); margin: 14px 0 26px; }

/* ---------- page hero (interior) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--noir); color: #fff; text-align: center; padding: clamp(58px, 9vw, 104px) 0; border-bottom: 1px solid #000; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.26; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 54ch; margin: 16px auto 0; }
.page-hero .eyebrow { color: var(--gilt-bright); }
.page-hero .eyebrow::before { display: none; }

/* ---------- media hero ---------- */
.media-hero { position: relative; overflow: hidden; min-height: clamp(360px, 58vh, 540px); display: flex; align-items: flex-end; border-bottom: 1px solid var(--hair); }
.media-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.media-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,8,11,0.20) 0%, rgba(9,8,11,0.55) 55%, rgba(9,8,11,0.88) 100%); }
.media-hero .wrap { position: relative; z-index: 1; padding-block: clamp(30px, 5vw, 56px); color: #fff; }
.media-hero h1 { color: #fff; }
.media-hero p { color: rgba(255,255,255,0.86); max-width: 52ch; margin-top: 14px; }
.media-hero .eyebrow { color: var(--gilt-bright); }
.media-hero .eyebrow::before { background: var(--gilt-bright); }

.breadcrumb { font-size: 0.76rem; color: var(--muted); margin-bottom: 26px; letter-spacing: 0.02em; }
.breadcrumb a:hover { color: var(--gilt-deep); }

/* ===================================================================
   SHOP
   =================================================================== */
.shop-head { padding: clamp(40px, 6vw, 68px) 0 34px; border-bottom: 1px solid var(--hair); }
.shop-head h1 { margin-bottom: 14px; }
.shop-head__grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 940px) { .shop-head__grid { grid-template-columns: minmax(0,1fr) 296px; gap: 40px; } }

.box-promo { position: relative; overflow: hidden; border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--noir); color: #fff; }
.box-promo__img { width: 100%; height: 148px; object-fit: cover; opacity: 0.82; }
.box-promo__body { padding: 16px 20px 20px; }
.box-promo__body .eyebrow { color: var(--gilt-bright); margin-bottom: 8px; }
.box-promo__body .eyebrow::before { background: var(--gilt-bright); }
.box-promo__body h3 { color: #fff; font-size: 1.32rem; }
.box-promo__body p { color: rgba(255,255,255,0.74); font-size: 0.84rem; margin: 6px 0 14px; }
.shop-search { display: flex; align-items: center; gap: 10px; max-width: 460px; margin-top: 22px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--pill); padding: 5px 6px 5px 16px; }
.shop-search:focus-within { border-color: var(--gilt); }
.shop-search svg { width: 17px; height: 17px; stroke: var(--muted); fill: none; stroke-width: 1.7; flex-shrink: 0; }
.shop-search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; padding: 10px 0; font: inherit; }
.shop-search .btn { border-radius: var(--pill); flex-shrink: 0; }

.shop-layout { display: grid; grid-template-columns: 1fr; gap: 30px; padding-top: 34px; align-items: start; }
@media (min-width: 940px) { .shop-layout { grid-template-columns: 250px minmax(0,1fr); gap: 44px; } }

.filter-toggle { display: flex; width: 100%; margin-bottom: 4px; }
@media (min-width: 940px) { .filter-toggle { display: none; } }

.filters { border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 6px 20px; background: var(--card); }
@media (min-width: 940px) { .filters { position: sticky; top: calc(var(--header-h) + 14px); } }
.filters.is-collapsed { display: none; }
@media (min-width: 940px) { .filters.is-collapsed { display: block; } }
.filter-group { padding: 20px 0; border-bottom: 1px solid var(--hair-2); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group h4 { font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.filter-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 0.88rem; color: var(--ink-2); cursor: pointer; }
.filter-opt input { accent-color: var(--gilt-deep); width: 15px; height: 15px; }
.filters select { width: 100%; border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 10px 12px; background: var(--card); font: inherit; font-size: 0.88rem; color: var(--ink); }
.filters select:focus { outline: 0; border-color: var(--gilt); }
.filter-clear { margin: 16px 0 12px; }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; margin-bottom: 28px; border-bottom: 1px solid var(--hair); }
.results-bar .count { font-size: 0.86rem; color: var(--muted); }
.sort-select { border: 1px solid var(--hair); border-radius: var(--pill); padding: 9px 16px; background: var(--card); font: inherit; font-size: 0.8rem; color: var(--ink-2); }
.shop-layout .grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1180px) { .shop-layout .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shop-layout .grid { grid-template-columns: 1fr; } }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--gilt-wash); border: 1px solid transparent; border-radius: var(--pill); padding: 6px 14px; font-size: 0.78rem; color: var(--ink-2); }
a.chip:hover { border-color: var(--gilt); }
.chip[data-remove]::after { content: "×"; font-size: 0.95rem; line-height: 1; }

.empty-state { text-align: center; padding: 72px 20px; color: var(--muted); grid-column: 1/-1; }

/* pagination (WP paginate_links) */
.page-numbers { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; list-style: none; padding: 0; }
.page-numbers li { display: contents; }
.page-numbers .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--hair); border-radius: var(--r-sm); font-size: .82rem; color: var(--ink-2); }
.page-numbers .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.page-numbers a.page-numbers:hover { border-color: var(--gilt); }

/* ===================================================================
   PRODUCT
   =================================================================== */
.product { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
@media (max-width: 920px) { .product { grid-template-columns: 1fr; } }
.gallery__main { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); background: var(--paper-2); border: 1px solid var(--hair-2); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.gallery__thumbs button { padding: 0; border: 1px solid var(--hair); border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; background: var(--paper-2); }
.gallery__thumbs button.is-active { border-color: var(--gilt); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.product__info h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 8px 0 12px; }
.product__price { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.product__price .woocommerce-Price-amount { font-family: var(--font-display); }
.product__summary { color: var(--ink-2); margin: 16px 0 22px; }

/* WooCommerce native form.cart / quantity stepper */
.product__cta, form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; align-items: center; }
form.cart .button, .single_add_to_cart_button { flex: 1 1 200px; }
.quantity { display: inline-flex; align-items: center; border: 1px solid var(--hair); border-radius: var(--r-sm); overflow: hidden; }
.quantity .qty { width: 48px; height: 46px; text-align: center; border: 0; background: var(--card); font: inherit; -moz-appearance: textfield; }
.quantity .qty::-webkit-inner-spin-button, .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.liar-qty-btn { width: 42px; height: 46px; background: var(--card); border: 0; font-size: 1.1rem; color: var(--ink-2); }
.liar-qty-btn:hover { background: var(--gilt-wash); }
table.variations { width: 100%; margin: 14px 0; }
table.variations td { padding: 6px 0; }
table.variations select { width: 100%; border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 10px 12px; font: inherit; background: var(--card); }
.woocommerce-variation-price .price { font-family: var(--font-display); }
.reset_variations { font-size: .78rem; color: var(--muted); text-decoration: underline; margin-left: 10px; }

.assurance { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--gilt-wash); border-radius: var(--r-sm); }
.assurance div { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; }
.assurance svg { flex-shrink: 0; width: 18px; height: 18px; stroke: var(--gilt-deep); fill: none; stroke-width: 1.6; margin-top: 2px; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--hair-2); font-size: 0.9rem; vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 40%; }

/* WooCommerce native product tabs, restyled to match .tabs design */
.woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--hair); margin: 0 0 24px; padding: 0; list-style: none; }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a {
  display: inline-block; padding: 12px 18px; margin-bottom: -1px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--gilt); }
.woocommerce-tabs .woocommerce-Tabs-panel table.shop_attributes { width: 100%; border-collapse: collapse; }
.woocommerce-tabs .woocommerce-Tabs-panel table.shop_attributes th,
.woocommerce-tabs .woocommerce-Tabs-panel table.shop_attributes td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--hair-2); font-size: .9rem; }
.woocommerce-tabs .woocommerce-Tabs-panel table.shop_attributes th { color: var(--muted); font-weight: 500; width: 40%; }
.woocommerce-Reviews .comment-form input, .woocommerce-Reviews .comment-form textarea { border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 10px 12px; font: inherit; }

/* related products keep WooCommerce's own ul.products wrapper; make it act like .grid */
ul.products { display: grid; gap: 34px 26px; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 0; }
@media (max-width: 1000px) { ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { ul.products { grid-template-columns: 1fr; } }

/* ===================================================================
   BUILD-A-BOX (shared classes with the plugin's frontend view)
   =================================================================== */
.box-layout { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: start; }
@media (min-width: 1000px) { .box-layout { grid-template-columns: minmax(0,1fr) 340px; gap: 46px; } }

.box-sizes { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 30px; }
.box-size { flex: 1 1 150px; text-align: left; padding: 16px 18px; border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--card); transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.box-size:hover { border-color: var(--gilt); }
.box-size[aria-pressed="true"] { border-color: var(--ink); background: var(--gilt-wash); }
.box-size b { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.box-size span { font-size: 0.78rem; color: var(--muted); }

.box-tray { border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--card); padding: 22px; }
@media (min-width: 1000px) { .box-tray { position: sticky; top: calc(var(--header-h) + 14px); } }
.box-tray h3 { font-size: 1.15rem; }
.box-progress { height: 6px; border-radius: var(--pill); background: var(--hair-2); overflow: hidden; margin: 14px 0 6px; }
.box-progress i { display: block; height: 100%; background: var(--gilt); transition: width var(--dur) var(--ease); }
.box-slots { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.box-slot { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px dashed var(--hair); border-radius: var(--r-sm); min-height: 66px; font-size: 0.86rem; color: var(--muted); }
.box-slot.is-filled { border-style: solid; color: var(--ink); }
.box-slot img { width: 46px; height: 46px; object-fit: cover; border-radius: 3px; }
.box-slot .rm { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 0.78rem; text-decoration: underline; }
.box-line { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 4px 0; }
.box-line--save { color: var(--gilt-deep); }
.box-line--total { border-top: 1px solid var(--hair); margin-top: 8px; padding-top: 12px; font-family: var(--font-display); font-size: 1.15rem; }
.box-save-note { margin-top: 10px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--gilt-wash); color: var(--gilt-deep); font-size: 0.82rem; font-weight: 500; text-align: center; }
.box-note { width: 100%; border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 10px 12px; font: inherit; margin: 10px 0 16px; resize: vertical; min-height: 64px; }
.box-pick .fav-btn { display: none; }
.box-pick .pcard__add { position: static; opacity: 1; transform: none; margin-top: 10px; }

/* ===================================================================
   CART DRAWER
   =================================================================== */
.drawer { position: fixed; inset: 0; z-index: 300; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(16,15,18,0.5); backdrop-filter: blur(2px); animation: fade var(--dur-fast) var(--ease); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); display: flex; flex-direction: column; box-shadow: -30px 0 70px -30px rgba(0,0,0,0.4); animation: slidein var(--dur) var(--ease); }
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--hair); }
.drawer__head h2 { font-size: 1.2rem; }
.drawer__head .n { color: var(--muted); font-family: var(--font-body); font-size: 0.9rem; }
.drawer__close { background: none; border: 0; width: 34px; height: 34px; }
.drawer__close svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.7; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer__empty { text-align: center; color: var(--muted); padding: 50px 10px; }

.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--hair-2); }
.line__media { width: 64px; height: 78px; object-fit: cover; border-radius: 3px; background: var(--paper-2); }
.line__media img { width: 100%; height: 100%; object-fit: cover; }
.line__name { font-size: 0.92rem; font-weight: 500; }
.line__meta { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.line__qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.line__price { font-family: var(--font-display); font-size: 0.98rem; text-align: right; }
.line__rm { background: none; border: 0; color: var(--muted); font-size: 0.72rem; text-decoration: underline; margin-top: 8px; display: block; margin-left: auto; cursor: pointer; }
.line--box { display: block; background: var(--gilt-wash); border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 14px 15px; margin: 10px 0; }
.line--box__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.line--box__top strong { font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; }
.line--box__pieces { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.line--box__note { font-size: 0.76rem; color: var(--ink-2); margin-top: 4px; font-style: italic; }

.drawer__offer { border-top: 1px solid var(--hair); padding: 18px 24px; background: var(--paper-2); }
.drawer__offer .eyebrow { margin-bottom: 8px; }
.drawer__offer p { font-size: 0.84rem; color: var(--ink-2); margin-bottom: 12px; }
.offer-field { display: flex; gap: 8px; }
.offer-field input { flex: 1; min-width: 0; border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 11px 12px; font: inherit; background: var(--card); }
.offer-field input:focus { outline: 0; border-color: var(--gilt); }
.offer-done { font-size: 0.86rem; color: var(--ink-2); }
.offer-code { font-family: var(--font-display); letter-spacing: 0.1em; color: var(--gilt-deep); background: var(--card); border: 1px dashed var(--gilt); padding: 3px 10px; border-radius: 3px; }

.drawer__foot { border-top: 1px solid var(--hair); padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.drawer__sub { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__sub b { font-family: var(--font-display); font-size: 1.2rem; }
.drawer__note { font-size: 0.74rem; color: var(--muted); text-align: center; }

/* ===================================================================
   FORMS
   =================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1/-1; }
.form-field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; }
.form-field input, .form-field select, .form-field textarea { border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 12px 13px; font: inherit; background: var(--card); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 0; border-color: var(--gilt); }
.form-field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-panel { border: 1px solid var(--hair); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); background: var(--card); }
.form-success { border: 1px solid var(--gilt); border-radius: var(--r-lg); padding: 40px; background: var(--gilt-wash); text-align: center; }
.form-note { font-size: .8rem; margin-top: 10px; color: var(--gilt-deep); min-height: 1.2em; }
.form-note.is-error { color: var(--flag); }

/* ---------- accordion ---------- */
.accordion { border-top: 1px solid var(--hair); max-width: 780px; }
.accordion__item { border-bottom: 1px solid var(--hair); }
.accordion__trigger { width: 100%; background: none; border: 0; padding: 22px 0; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-size: 1.12rem; color: var(--ink); }
.accordion__trigger .sign { position: relative; flex-shrink: 0; width: 16px; height: 16px; }
.accordion__trigger .sign::before, .accordion__trigger .sign::after { content: ""; position: absolute; background: var(--gilt-deep); transition: opacity var(--dur) var(--ease); }
.accordion__trigger .sign::before { top: 7px; left: 0; width: 16px; height: 2px; }
.accordion__trigger .sign::after { top: 0; left: 7px; width: 2px; height: 16px; }
.accordion__trigger[aria-expanded="true"] .sign::after { opacity: 0; }
.accordion__panel { overflow: hidden; height: 0; transition: height var(--dur) var(--ease); }
.accordion__panel-inner { padding: 0 0 24px; color: var(--muted); font-size: 0.94rem; max-width: 64ch; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(16,15,18,0.55); backdrop-filter: blur(3px); animation: fade var(--dur-fast) var(--ease); }
.modal__dialog { position: relative; background: var(--paper); border-radius: var(--r-lg); max-width: 460px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 38px; box-shadow: var(--shadow); animation: slideup var(--dur) var(--ease); }
@keyframes slideup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 14px; right: 14px; background: none; border: 0; width: 34px; height: 34px; }
.modal__close svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.7; }
body.modal-open, body.drawer-open { overflow: hidden; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--noir); color: #fff; padding: 13px 22px; border-radius: var(--pill); font-size: 0.82rem; letter-spacing: 0.02em; z-index: 500; opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.toast.is-shown { opacity: 1; transform: translateX(-50%); }

/* ---------- footer ---------- */
.site-footer { background: var(--noir-2); color: rgba(255,255,255,0.6); padding: 74px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font-body); color: #fff; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.footer-grid a, .footer-grid li, .footer-grid p { font-size: 0.88rem; color: rgba(255,255,255,0.58); }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: #fff; margin-bottom: 14px; }
.footer-signup { display: flex; gap: 8px; margin-top: 14px; max-width: 320px; }
.footer-signup input { flex: 1; min-width: 0; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-sm); padding: 11px 12px; color: #fff; font: inherit; }
.footer-signup input::placeholder { color: rgba(255,255,255,0.4); }
.footer-bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.74rem; color: rgba(255,255,255,0.4); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- travelling border ---------- */
@property --bd-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.mborder { position: relative; }
@media (min-width: 1000px) { .box-tray.mborder { position: sticky; } }
.mborder::after {
  content: ""; position: absolute; inset: 4px; z-index: 1; pointer-events: none;
  border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--bd-angle), rgba(255,255,255,0) 0deg, rgba(255,255,255,0) 200deg, var(--gilt) 284deg, var(--gilt-bright) 322deg, rgba(255,255,255,0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity .45s var(--ease);
}
.mborder:hover::after { opacity: 1; animation: bd-travel 3.4s linear infinite; }
.mborder--live::after { opacity: 1; animation: bd-travel 4.6s linear infinite; }
@keyframes bd-travel { to { --bd-angle: 360deg; } }

[data-tilt], [data-tilt-soft], [data-parallax] {
  will-change: transform; animation: linear both; animation-timeline: view(); animation-range: cover;
}
[data-tilt] { animation-name: sm-tilt; }
[data-tilt-soft] { animation-name: sm-tilt-soft; }
[data-parallax] { animation-name: sm-parallax; }
@keyframes sm-tilt { from { transform: rotate(-3.2deg) translateY(15px) scale(1.05); } to { transform: rotate(3.2deg) translateY(-15px) scale(1.05); } }
@keyframes sm-tilt-soft { from { transform: rotate(-1.6deg) translateY(8px) scale(1.03); } to { transform: rotate(1.6deg) translateY(-8px) scale(1.03); } }
@keyframes sm-parallax { from { transform: translateY(24px) scale(1.09); } to { transform: translateY(-24px) scale(1.09); } }
@supports not (animation-timeline: view()) { [data-tilt], [data-tilt-soft], [data-parallax] { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mborder::after { animation: none !important; opacity: 1; background: var(--ring-static); }
  [data-tilt], [data-tilt-soft], [data-parallax] { transform: none !important; transition: none; }
  * { animation-duration: 0.001s !important; }
}

/* ===================================================================
   WOOCOMMERCE — notices, cart page, native Cart/Checkout blocks
   =================================================================== */
.woocommerce-message, .woocommerce-error, .woocommerce-info,
.wc-block-components-notice-banner {
  border: 1px solid var(--hair); border-left: 4px solid var(--gilt);
  background: var(--card); border-radius: var(--r-sm);
  padding: 16px 20px; margin: 0 0 24px; list-style: none; font-size: .92rem;
}
.woocommerce-error, .wc-block-components-notice-banner.is-error { border-left-color: var(--flag); }
.woocommerce-message a.button, .woocommerce-error a.button, .woocommerce-info a.button { margin-left: 12px; }

/* Cart page (classic shortcode fallback, kept for completeness) */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0,1fr) 330px; gap: 56px; } }
.cart-summary { border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 26px; background: var(--card); }
.cart-summary .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.92rem; }
.cart-summary .row--total { border-top: 1px solid var(--hair); margin-top: 8px; padding-top: 14px; font-family: var(--font-display); font-size: 1.25rem; }

/* Native WooCommerce Cart & Checkout blocks — reskinned to the design
   language. These blocks own their internal DOM/behaviour; we only
   restyle surface (colour, type, spacing, radius), not rebuild markup. */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-family: var(--font-body); color: var(--ink); }
.wp-block-woocommerce-cart h2, .wp-block-woocommerce-checkout h2,
.wc-block-components-checkout-step__title, .wc-block-cart__totals-title {
  font-family: var(--font-display); font-weight: 400; color: var(--ink);
}
.wc-block-components-panel, .wc-block-components-order-summary,
.wc-block-cart-items, .wc-block-components-totals-wrapper,
.wc-block-checkout__form .wc-block-components-checkout-step {
  border-color: var(--hair) !important; border-radius: var(--r-sm);
}
.wc-block-components-product-name { color: var(--ink); font-weight: 500; }
.wc-block-components-totals-item__value, .wc-block-components-product-price,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-family: var(--font-display);
}
.wc-block-components-text-input input, .wc-block-components-text-input textarea,
.wc-block-components-radio-control input, select.wc-block-components-select-input__select {
  border-color: var(--hair) !important; border-radius: var(--r-sm) !important;
}
.wc-block-components-text-input input:focus, .wc-block-components-radio-control input:focus,
select.wc-block-components-select-input__select:focus {
  border-color: var(--gilt) !important; box-shadow: none !important;
}
.wc-block-components-radio-control__option--checked {
  border-color: var(--gilt) !important;
}
.wc-block-components-button:not(.is-style-outline) {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
}
.wc-block-components-totals-coupon-link, a.wc-block-components-checkout-return-to-cart-button {
  color: var(--gilt-deep); text-decoration: underline;
}
