/* ==========================================================================
   DiaGems Manila v2 — "The price is on the piece."
   One shared stylesheet. No framework, no build step.
   Tokens follow DESIGN-SPEC.md §5.
   ========================================================================== */

:root {
  /* ---- Ink ---- */
  --ink-950: #0B0B0D;
  --ink-900: #16171A;
  --ink-700: #2E3034;
  --ink-500: #5C6068;
  --ink-400: #83888F;
  --ink-on-dark: #F4F4F2;
  --ink-on-dark-2: #A9ADB4;

  /* ---- Paper ---- */
  --paper: #FFFFFF;
  --field: #F5F3EF;
  --field-2: #EDEAE4;
  --line: #E2DED6;
  --line-strong: #D3CEC3;
  --line-dark: rgba(244, 244, 242, .14);

  /* ---- Gold ---- */
  --gold-100: #FBF1DC;
  --gold-200: #F3DFB0;
  --gold-400: #E0A93A;
  --gold-500: #C08A1E;
  --gold-700: #8A5F12;
  --gold-on-dark: #F2C96B;

  /* ---- Lapis ---- */
  --lapis-900: #101C5C;
  --lapis-600: #2036B4;
  --lapis-500: #2A4AD0;
  --lapis-050: #EDF0FD;

  /* ---- Type scale ---- */
  --fs-2xs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1.2vw, 1.1875rem);
  --fs-h4: clamp(1.1875rem, 1.6vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 2.2vw, 1.75rem);
  --fs-h2: clamp(1.75rem, 3.4vw, 2.5rem);
  --fs-h1: clamp(2.125rem, 4.8vw, 3.75rem);
  --fs-price: clamp(1.0625rem, 1.2vw, 1.1875rem);
  --fs-price-lg: clamp(1.5rem, 2.4vw, 2rem);

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-dense: 1.4;
  --lh-body: 1.55;
  --tracking-caps: 0.1em;
  --tracking-code: 0.06em;

  /* ---- Spacing ---- */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-7: 2rem; --sp-8: 3rem;
  --sp-9: 4rem; --sp-10: 6rem;
  --section-y: clamp(3.5rem, 6vw, 5.5rem);
  --card-gap: clamp(0.75rem, 1.4vw, 1.5rem);
  --card-pad: clamp(0.75rem, 1vw, 1rem);

  /* ---- Radii ---- */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;

  /* ---- Shadows ---- */
  --sh-1: 0 1px 2px rgba(16, 17, 20, .05);
  --sh-2: 0 2px 4px rgba(16, 17, 20, .05), 0 8px 16px rgba(16, 17, 20, .06);
  --sh-3: 0 8px 24px rgba(16, 17, 20, .10), 0 24px 48px rgba(16, 17, 20, .10);
  --sh-drawer: -24px 0 60px rgba(16, 17, 20, .18);
  --sh-header: 0 1px 0 var(--line), 0 4px 16px rgba(16, 17, 20, .05);

  /* ---- Layout ---- */
  --container: 1360px;
  --container-narrow: 680px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --rail: 248px;
  --header-h: 64px;

  /* ---- Font handles ----
     The site sets its faces directly; these two tokens exist so the embedded
     OK Studios chat widget (which reads --font-body / --font-display off the
     host page) renders in DiaGems' typography instead of system-ui. */
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(.2, .8, .3, 1);
  --ease-io: cubic-bezier(.5, 0, .2, 1);
  --dur-xfast: 120ms; --dur-fast: 180ms; --dur: 260ms; --dur-slow: 420ms;
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--ink-700);
  background: var(--field);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, .display {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: var(--lh-snug);
  color: var(--ink-900);
  font-optical-sizing: auto;
  letter-spacing: -.005em;
  margin: 0;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--lapis-600); }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

.num, .price, .spec-val { font-variant-numeric: tabular-nums lining-nums; }
.peso { font-size: .86em; letter-spacing: .02em; }

:focus-visible {
  outline: 2px solid var(--lapis-500);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .band-dark :focus-visible { outline-color: var(--gold-400); }

.sr-only {
  position: absolute; 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: var(--sp-4); top: -60px; z-index: 200;
  background: var(--ink-900); color: var(--ink-on-dark);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600; text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--sp-2); }

.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--field { background: var(--field); }
.section--dark { background: var(--ink-950); color: var(--ink-on-dark-2); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--ink-on-dark); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.eyebrow {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--tracking-caps); color: var(--gold-700);
  margin: 0 0 var(--sp-3); display: flex; align-items: center; gap: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--gold-500); flex: none;
}
.section--dark .eyebrow { color: var(--gold-on-dark); }
.section--dark .eyebrow::before { background: var(--gold-400); }

.lead {
  font-size: var(--fs-lead); color: var(--ink-500); max-width: 52ch;
  margin: var(--sp-4) 0 0;
}
.section--dark .lead { color: var(--ink-on-dark-2); }

.section-head { margin-bottom: var(--sp-7); }
.section-head .lead { max-width: 60ch; }

.italic { font-style: italic; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .01em; line-height: 1;
  min-height: 44px; padding: 0 var(--sp-5);
  border-radius: var(--r-md); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; background: none;
  transition: background-color var(--dur-xfast) var(--ease-out),
              color var(--dur-xfast) var(--ease-out),
              border-color var(--dur-xfast) var(--ease-out);
}
.btn .icon { width: 16px; height: 16px; }

.btn--primary { background: var(--ink-900); color: var(--ink-on-dark); border-color: var(--ink-900); }
.btn--primary:hover { background: var(--ink-700); border-color: var(--ink-700); }

.btn--outline { border-color: var(--ink-900); color: var(--ink-900); }
.btn--outline:hover { background: var(--ink-900); color: var(--ink-on-dark); }

.section--dark .btn--outline, .on-dark .btn--outline { border-color: var(--ink-on-dark); color: var(--ink-on-dark); }
.section--dark .btn--outline:hover, .on-dark .btn--outline:hover { background: var(--ink-on-dark); color: var(--ink-950); }

.btn--gold { background: var(--gold-400); color: var(--ink-950); border-color: var(--gold-400); }
.btn--gold:hover { background: var(--gold-on-dark); border-color: var(--gold-on-dark); }

.btn--text {
  padding: 0; min-height: 32px; color: var(--gold-700);
  border-bottom: 1px solid var(--gold-200); border-radius: 0;
  text-decoration: none;
}
.btn--text:hover { border-bottom-color: var(--gold-500); }
.section--dark .btn--text { color: var(--gold-on-dark); border-bottom-color: rgba(242, 201, 107, .4); }

.btn--sm { min-height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-xs); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* ==========================================================================
   Utility bar
   ========================================================================== */

.utility {
  background: var(--ink-950); color: var(--ink-on-dark-2);
  font-size: var(--fs-xs); font-weight: 500; line-height: 32px;
  text-align: center; height: 32px; overflow: hidden;
}
.utility b { font-weight: 600; color: var(--gold-on-dark); }
.utility .sep { opacity: .45; margin-inline: var(--sp-2); }
.utility .u-full { display: none; }
@media (min-width: 768px) {
  .utility .u-full { display: inline; }
  .utility .u-short { display: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.site-header.is-stuck { box-shadow: var(--sh-header); }

.header-inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 56px;
}
@media (min-width: 1024px) { .header-inner { min-height: var(--header-h); } }

.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.wordmark__row { display: flex; align-items: baseline; gap: .28em; }
.wordmark__a { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 1.3rem; color: var(--ink-900); letter-spacing: -.01em; }
.wordmark__b { font-family: "Archivo", sans-serif; font-weight: 400; font-size: 1.05rem; color: var(--ink-700); }
.wordmark__sub {
  font-size: var(--fs-2xs); font-weight: 600; letter-spacing: var(--tracking-code);
  color: var(--gold-700); margin-top: 3px;
}
.on-dark .wordmark__a, .site-footer .wordmark__a, .mobile-nav .wordmark__a { color: var(--ink-on-dark); }
.on-dark .wordmark__b, .site-footer .wordmark__b, .mobile-nav .wordmark__b { color: var(--ink-on-dark-2); }
.on-dark .wordmark__sub, .site-footer .wordmark__sub, .mobile-nav .wordmark__sub { color: var(--gold-on-dark); }

.nav { display: none; margin-inline: auto; gap: var(--sp-6); }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a {
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-700);
  text-decoration: none; padding: var(--sp-2) 0; border-bottom: 2px solid transparent;
  transition: border-color var(--dur-xfast) var(--ease-out), color var(--dur-xfast) var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold-500); color: var(--ink-900); }

.header-actions { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }

.header-search { display: none; }
@media (min-width: 1024px) { .header-search { display: flex; } }
.header-search input {
  font-family: inherit; font-size: var(--fs-sm); color: var(--ink-900);
  width: 200px; height: 38px; padding: 0 var(--sp-3);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper);
}
.header-search input::placeholder { color: var(--ink-400); }

.header-actions .btn--primary { display: none; }
@media (min-width: 768px) { .header-actions .btn--primary { display: inline-flex; } }

.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--paper); color: var(--ink-900); cursor: pointer;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger .icon { width: 20px; height: 20px; }

/* Mobile overlay nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 120; background: var(--ink-950);
  display: flex; flex-direction: column; padding: var(--sp-4) var(--gutter) var(--sp-6);
  transform: translateY(-100%); visibility: hidden;
  transition: transform var(--dur) var(--ease-out), visibility var(--dur);
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.mobile-nav__close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-dark); border-radius: var(--r-sm);
  color: var(--ink-on-dark); cursor: pointer;
}
.mobile-nav__links { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-8); }
.mobile-nav__links a {
  font-family: "Newsreader", Georgia, serif; font-size: var(--fs-h3);
  color: var(--ink-on-dark); text-decoration: none;
}
.mobile-nav__divider { margin: var(--sp-7) 0; display: flex; align-items: center; gap: var(--sp-3); }
.mobile-nav__divider::before, .mobile-nav__divider::after { content: ""; height: 1px; background: var(--line-dark); flex: 1; }
.mobile-nav__foot { margin-top: auto; display: grid; gap: var(--sp-3); }

/* ==========================================================================
   Sticky mobile action bar
   ========================================================================== */

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; gap: var(--sp-2); align-items: center;
  background: var(--paper); border-top: 1px solid var(--line);
  padding: var(--sp-2) var(--sp-3) calc(var(--sp-2) + env(safe-area-inset-bottom));
}
@media (min-width: 1024px) { .action-bar { display: none; } }
.action-bar .btn { flex: 1; min-height: 44px; padding-inline: var(--sp-3); }
.action-bar .btn--filters { flex: 0 0 auto; }
body.has-action-bar { padding-bottom: 76px; }
@media (min-width: 1024px) { body.has-action-bar { padding-bottom: 0; } }
body.is-locked .action-bar { display: none; }

/* ==========================================================================
   Hero — shop window
   ========================================================================== */

.hero--window { background: var(--field); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.hero__grid { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-9); align-items: start; } }
.hero__lead { max-width: 46ch; }
.hero__micro {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-7); font-size: var(--fs-sm); color: var(--ink-500);
}
.hero__micro .nazar { width: 14px; height: 14px; }
.hero__cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--card-gap); }
/* Condensed hero cards: image · category · name · price · certificate seal */
.hero__cards .piece__spec, .hero__cards .piece__code { display: none; }
.hero__cards .piece__name { -webkit-line-clamp: 2; }

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust { background: var(--paper); border-block: 1px solid var(--line); }
.trust__scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.trust__scroll::-webkit-scrollbar { display: none; }
.trust__cell {
  flex: 0 0 78%; scroll-snap-align: start;
  padding: var(--sp-6) var(--sp-5); border-right: 1px solid var(--line);
}
@media (min-width: 768px) { .trust__cell { flex: 1 1 0; } }
.trust__cell:last-child { border-right: 0; }
.trust__cell .icon { width: 20px; height: 20px; color: var(--gold-500); margin-bottom: var(--sp-3); }
.trust__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-900); margin: 0 0 var(--sp-1); }
.trust__caption { font-size: var(--fs-sm); color: var(--ink-500); margin: 0; line-height: var(--lh-dense); }

/* ==========================================================================
   Price-band tiles / category tiles / stone chips
   ========================================================================== */

.bands { display: grid; gap: var(--card-gap); grid-template-columns: 1fr 1fr; }
@media (min-width: 1024px) { .bands { grid-template-columns: repeat(4, 1fr); } }
.band {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-5); text-decoration: none; display: flex; flex-direction: column; gap: var(--sp-2);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.band:hover { border-color: var(--gold-500); transform: translateY(-2px); }
.band__label { font-family: "Newsreader", Georgia, serif; font-size: var(--fs-h4); color: var(--ink-900); }
.band__count { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-500); }
.band__arrow { color: var(--gold-700); font-size: var(--fs-sm); margin-top: auto; }

.cats { display: grid; gap: var(--card-gap); grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(5, 1fr); } }
.cat { text-decoration: none; display: block; }
.cat__media {
  display: block; aspect-ratio: 4/3; background: var(--field-2); border-radius: var(--r-md);
  overflow: hidden; border: 1px solid var(--line);
}
.cat__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transition: transform var(--dur) var(--ease-out); }
.cat:hover .cat__media img { transform: scale(1.04); }
.cat__name { display: block; font-family: "Newsreader", Georgia, serif; font-size: var(--fs-h4); color: var(--ink-900); margin-top: var(--sp-3); }
.cat__count { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-500); }

.stones { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.stone-chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 var(--sp-4); border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--paper);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-900); text-decoration: none;
  transition: border-color var(--dur-xfast) var(--ease-out), background-color var(--dur-xfast) var(--ease-out);
}
.stone-chip:hover { border-color: var(--gold-500); background: var(--gold-100); }
.stone-chip .n { font-weight: 500; color: var(--ink-500); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Product card — .piece
   ========================================================================== */

.grid {
  display: grid; gap: var(--card-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.piece {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.piece--deferred { content-visibility: auto; contain-intrinsic-size: 1px 460px; }

.piece__main {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.piece__media {
  display: block; position: relative; aspect-ratio: 1/1; background: var(--field-2); overflow: hidden;
}
.piece__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
  filter: saturate(1.02) contrast(1.04) brightness(1.02);
  transition: transform var(--dur) var(--ease-out);
}
.piece__hoverbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  display: flex; align-items: center; padding-inline: var(--sp-3);
  background: rgba(11, 11, 13, .82); color: var(--ink-on-dark);
  font-size: var(--fs-xs); font-weight: 600;
  transform: translateY(100%); transition: transform var(--dur) var(--ease-out);
}
@media (hover: hover) {
  .piece:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-strong); }
  .piece:hover .piece__media img { transform: scale(1.04); }
  .piece:hover .piece__hoverbar { transform: translateY(0); }
}
.piece__main:focus-visible { outline: 2px solid var(--lapis-500); outline-offset: -3px; }
.piece__main:focus-visible ~ * .piece__hoverbar,
.piece:focus-within .piece__hoverbar { transform: translateY(0); }

.piece__body { padding: var(--card-pad); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.piece__row1 { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.piece__cat {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--tracking-caps); color: var(--ink-400);
}
.chip--stone {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--r-pill); padding: 3px 8px;
  font-size: var(--fs-2xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  background: var(--field-2); color: var(--ink-700); white-space: nowrap;
}
.chip--stone::before { content: ""; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); flex: none; }
.chip--stone.is-gem { background: var(--lapis-050); color: var(--lapis-600); }
.chip--stone.is-pearl { background: var(--gold-100); color: var(--gold-700); }
.chip--stone.is-pearl::before { border-radius: 50%; transform: none; }

.piece__name {
  font-family: "Newsreader", Georgia, serif; font-weight: 400;
  font-size: 1rem; line-height: var(--lh-snug); color: var(--ink-900);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(2 * 1.25em);
}
@media (min-width: 768px) { .piece__name { font-size: var(--fs-md); } }
.piece__spec {
  font-size: var(--fs-sm); line-height: var(--lh-dense); color: var(--ink-500);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.piece__foot { padding: 0 var(--card-pad) var(--card-pad); margin-top: auto; }
.piece__price-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2);
  border-top: 1px solid var(--line); padding-top: var(--sp-3); margin-top: var(--sp-3);
}
.piece__price {
  font-weight: 600; font-size: var(--fs-price); color: var(--ink-900);
  font-variant-numeric: tabular-nums lining-nums; white-space: nowrap;
}
.seal {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: var(--fs-2xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--lapis-600);
}
.seal .nazar { width: 13px; height: 13px; }

.piece__cta { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: var(--sp-3); }
.btn--enquire {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 32px; padding: 0 var(--sp-3); border-radius: var(--r-md);
  border: 1px solid var(--ink-900); background: none; color: var(--ink-900);
  font-family: inherit; font-size: var(--fs-xs); font-weight: 600; cursor: pointer;
  transition: background-color var(--dur-xfast) var(--ease-out), color var(--dur-xfast) var(--ease-out);
}
.btn--enquire:hover, .btn--enquire:focus-visible { background: var(--ink-900); color: var(--ink-on-dark); }
.btn--enquire .icon { width: 14px; height: 14px; }
.piece__code {
  font-size: var(--fs-2xs); font-weight: 500; letter-spacing: var(--tracking-code);
  color: var(--ink-400); font-variant-numeric: tabular-nums;
}

/* Condensed card below 480px — image · category · name · price · seal (§6.5) */
@media (max-width: 479px) {
  .piece__spec, .piece__code { display: none; }
  .grid .chip--stone, .hero__cards .chip--stone { display: none; }
  .piece__name { -webkit-line-clamp: 2; }
  .btn--enquire { width: 100%; }
  .piece__cta { margin-top: var(--sp-2); }
  /* seal collapses to the nazar glyph; the wording stays in title/aria */
  .seal__t {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
.piece__cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.piece__price-row .piece__price { min-width: 0; }

.disclaimer {
  margin-top: var(--sp-5); font-size: var(--fs-2xs); color: var(--ink-500);
  max-width: 70ch;
}

/* ==========================================================================
   Catalog page
   ========================================================================== */

.catalog-layout { display: block; }
@media (min-width: 1024px) {
  .catalog-layout { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
}

.rail { display: none; }
@media (min-width: 1024px) {
  .rail { display: block; position: sticky; top: calc(var(--header-h) + var(--sp-4)); max-height: calc(100vh - var(--header-h) - var(--sp-8)); overflow-y: auto; padding-right: var(--sp-2); }
}
.facet { border-top: 1px solid var(--line); padding: var(--sp-5) 0; margin: 0; border-inline: 0; border-bottom: 0; }
.facet:first-child { border-top: 0; padding-top: 0; }
.facet legend {
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--tracking-caps); color: var(--ink-900); padding: 0; margin-bottom: var(--sp-3);
}
.facet__opt { display: flex; align-items: center; gap: var(--sp-3); min-height: 36px; cursor: pointer; }
.sheet .facet__opt { min-height: 44px; }  /* touch target inside the mobile sheet */
.facet__opt input { width: 16px; height: 16px; accent-color: var(--lapis-600); flex: none; margin: 0; }
.facet__opt span { font-size: var(--fs-sm); color: var(--ink-700); }
.facet__opt .n { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-500); font-variant-numeric: tabular-nums; }
.facet__opt input:disabled + span, .facet__opt input:disabled ~ .n { color: var(--ink-400); }

.carat-slider { width: 100%; accent-color: var(--lapis-600); margin: var(--sp-2) 0 0; }
.carat-value { font-size: var(--fs-sm); color: var(--ink-700); font-variant-numeric: tabular-nums; }
.facet__note { font-size: var(--fs-xs); color: var(--ink-500); margin-top: var(--sp-2); }

.toolbar {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
  background: var(--field); padding-block: var(--sp-3);
}
@media (min-width: 1024px) { .toolbar { position: sticky; top: var(--header-h); z-index: 40; } }
.toolbar__search { position: relative; flex: 1 1 240px; }
.toolbar__search input {
  width: 100%; height: 44px; padding: 0 var(--sp-4) 0 40px;
  font-family: inherit; font-size: var(--fs-sm); color: var(--ink-900);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--paper);
}
.toolbar__search .icon { position: absolute; left: 12px; top: 14px; width: 16px; height: 16px; color: var(--ink-500); }
.toolbar__sort { display: flex; align-items: center; gap: var(--sp-2); }
.toolbar__sort label { font-size: var(--fs-sm); color: var(--ink-500); }
.toolbar__sort select {
  height: 44px; padding: 0 var(--sp-3); font-family: inherit; font-size: var(--fs-sm);
  color: var(--ink-900); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}

.applied {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3);
  padding-block: var(--sp-4); border-top: 1px solid var(--line);
}
.applied__count { font-weight: 600; color: var(--ink-900); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 32px; padding: 0 var(--sp-2) 0 var(--sp-3); border-radius: var(--r-pill);
  background: var(--field-2); border: 1px solid var(--line);
  font-size: var(--fs-xs); font-weight: 500; color: var(--ink-700);
}
.pill button {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--ink-500); cursor: pointer; border-radius: 50%;
}
.pill button:hover { color: var(--ink-900); background: var(--line); }
.pill button .icon { width: 12px; height: 12px; }
.clear-all { background: none; border: 0; padding: 0; font-family: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--gold-700); cursor: pointer; text-decoration: underline; }

.showmore-wrap { display: flex; justify-content: center; padding-block: var(--sp-8); }

.empty {
  text-align: center; padding: var(--sp-9) var(--sp-4); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.empty .nazar { width: 44px; height: 44px; margin: 0 auto var(--sp-4); opacity: .9; }
.empty h3 { margin-bottom: var(--sp-2); }
.empty p { color: var(--ink-500); max-width: 46ch; margin-inline: auto; }
.empty .btn-row { justify-content: center; }

/* Filter sheet (below lg) */
.sheet {
  position: fixed; inset: 0; z-index: 130; display: flex; flex-direction: column;
  background: var(--paper); transform: translateY(100%); visibility: hidden;
  transition: transform var(--dur) var(--ease-out), visibility var(--dur);
}
.sheet.is-open { transform: translateY(0); visibility: visible; }
@media (min-width: 1024px) { .sheet { display: none; } }
.sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-4) var(--gutter); border-bottom: 1px solid var(--line);
}
.sheet__body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--gutter); }
.sheet__foot { display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--gutter) calc(var(--sp-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet__foot .btn { flex: 1; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink-900); cursor: pointer;
}
.icon-btn .icon { width: 18px; height: 18px; }

/* ==========================================================================
   Quick-view drawer
   ========================================================================== */

.qv-scrim {
  position: fixed; inset: 0; z-index: 140; background: rgba(11, 11, 13, .55);
  opacity: 0; visibility: hidden; transition: opacity var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
}
.qv-scrim.is-open { opacity: 1; visibility: visible; }

.quickview {
  position: fixed; z-index: 150; background: var(--paper);
  display: flex; flex-direction: column;
  left: 0; right: 0; bottom: 0; height: 92vh;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: translateY(100%); visibility: hidden;
  transition: transform var(--dur) var(--ease-out), visibility var(--dur);
  box-shadow: var(--sh-3);
}
.quickview.is-open { transform: translateY(0); visibility: visible; }
@media (min-width: 1024px) {
  .quickview {
    left: auto; top: 0; bottom: 0; width: 480px; height: 100%;
    border-radius: 0; transform: translateX(100%); box-shadow: var(--sh-drawer);
  }
  .quickview.is-open { transform: translateX(0); }
}
.qv__bar {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--line); flex: none;
}
.qv__bar .spacer { margin-left: auto; }
.qv__body { flex: 1; overflow-y: auto; }
.qv__media { aspect-ratio: 1/1; background: var(--field-2); }
.qv__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; filter: saturate(1.02) contrast(1.04) brightness(1.02); }
.qv__content { padding: var(--sp-5) var(--sp-5) var(--sp-7); }
.qv__cat { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--ink-400); }
.qv__name { font-size: var(--fs-h3); margin: var(--sp-2) 0 var(--sp-3); }
.qv__price { font-weight: 700; font-size: var(--fs-price-lg); color: var(--ink-900); font-variant-numeric: tabular-nums lining-nums; }
.qv__cert {
  display: flex; align-items: center; gap: var(--sp-2);
  background: var(--lapis-050); color: var(--lapis-600); border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4); margin-top: var(--sp-4);
  font-size: var(--fs-sm); font-weight: 600;
}
.qv__cert .nazar { width: 16px; height: 16px; flex: none; }
.spec-table { margin: var(--sp-6) 0 0; }
.spec-table div { display: flex; gap: var(--sp-4); padding: var(--sp-3) 0; border-top: 1px solid var(--line); }
.spec-table dt { flex: 0 0 108px; font-size: var(--fs-sm); color: var(--ink-500); margin: 0; }
.spec-table dd { margin: 0; flex: 1; font-size: var(--fs-sm); font-weight: 500; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.qv__actions { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.qv__actions .btn--primary { min-height: 48px; }
.qv__actions-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.micro-list { margin-top: var(--sp-6); display: grid; gap: var(--sp-2); }
.micro-list li { display: flex; gap: var(--sp-2); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-500); }
.micro-list .nazar { width: 11px; height: 11px; margin-top: 6px; flex: none; }
.section--dark .micro-list li { color: var(--ink-on-dark-2); }

/* ==========================================================================
   Live page / steps / seal row / meta list / FAQ
   ========================================================================== */

.live-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  border-radius: var(--r-pill); padding: 6px var(--sp-4); min-height: 32px;
  border: 1px solid var(--line); color: var(--ink-500);
  font-size: var(--fs-sm); font-weight: 500;
}
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.section--dark .live-pill, .hero--live .live-pill { border-color: var(--line-dark); color: var(--ink-on-dark-2); }
[data-live-state="live"] .live-pill { background: var(--lapis-050); border-color: transparent; color: var(--lapis-600); }
[data-live-state="live"] .live-pill .dot { animation: pulse 2s var(--ease-io) infinite; }
[data-live-state="scheduled"] .live-pill { background: var(--field-2); border-color: transparent; color: var(--ink-700); }
@keyframes pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

.hero--live { background: var(--ink-950); color: var(--ink-on-dark-2); padding-block: clamp(3.5rem, 8vw, 6rem); }
.hero--live h1 { color: var(--ink-on-dark); margin-top: var(--sp-5); }

.split { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: var(--sp-9); } }
.split__media { border-radius: var(--r-md); overflow: hidden; background: var(--field-2); border: 1px solid var(--line); }
.split__media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; filter: saturate(1.02) contrast(1.04) brightness(1.02); }

.steps { display: grid; gap: var(--sp-6); counter-reset: step; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); } }
.step { padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.section--dark .step { border-top-color: var(--line-dark); }
.step__n { font-weight: 700; font-size: var(--fs-h3); color: var(--gold-500); font-variant-numeric: tabular-nums; display: block; margin-bottom: var(--sp-2); }
.section--dark .step__n { color: var(--gold-on-dark); }
.step h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.step p { color: var(--ink-500); font-size: var(--fs-base); }
.section--dark .step p { color: var(--ink-on-dark-2); }

.cols-3 { display: grid; gap: var(--sp-7); }
@media (min-width: 768px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } }
.cols-2 { display: grid; gap: var(--sp-7); }
@media (min-width: 768px) { .cols-2 { grid-template-columns: repeat(2, 1fr); } }
.col h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-3); }
.col p { color: var(--ink-500); }
.section--dark .col p { color: var(--ink-on-dark-2); }
.section--dark .col h3 { color: var(--gold-on-dark); }

.seal-row {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  background: var(--lapis-050); color: var(--lapis-600); border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); font-weight: 600; margin-top: var(--sp-5);
}
.seal-row .nazar { width: 18px; height: 18px; }

.meta-list { display: grid; gap: var(--sp-5); }
.meta-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.meta-list .nazar { width: 13px; height: 13px; margin-top: 7px; flex: none; }
.meta-list b { display: block; color: var(--ink-900); font-weight: 600; font-size: var(--fs-base); }
.meta-list span { font-size: var(--fs-sm); color: var(--ink-500); font-variant-numeric: tabular-nums; }

.panel {
  background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--gold-500);
  border-radius: var(--r-md); padding: var(--sp-7);
}

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0; cursor: pointer; list-style: none;
  font-size: var(--fs-lead); font-weight: 500; color: var(--ink-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-700); font-weight: 600; font-size: 1.25rem; line-height: 1; transition: transform var(--dur-fast) var(--ease-out); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--ink-500); max-width: 62ch; padding-bottom: var(--sp-5); margin: 0; }

.notice { font-size: var(--fs-sm); color: var(--ink-500); margin-top: var(--sp-5); max-width: 62ch; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink-950); color: var(--ink-on-dark-2); padding-block: var(--sp-9) var(--sp-6); }
.footer-grid { display: grid; gap: var(--sp-7); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-8); } }
.footer-grid h4 { font-family: "Archivo", sans-serif; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--ink-on-dark); margin-bottom: var(--sp-4); }
.footer-grid ul { display: grid; gap: var(--sp-2); }
.footer-grid a { color: var(--ink-on-dark-2); text-decoration: none; font-size: var(--fs-sm); }
.footer-grid a:hover { color: var(--ink-on-dark); text-decoration: underline; }
.footer-grid p { font-size: var(--fs-sm); color: var(--ink-on-dark-2); }
.footer-phone { font-weight: 600; color: var(--ink-on-dark); font-variant-numeric: tabular-nums; }
.footer-bottom {
  margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4);
  font-size: var(--fs-2xs); color: var(--ink-on-dark-2);
}
.footer-bottom .nazar { width: 18px; height: 18px; }

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed; left: 50%; bottom: 88px; z-index: 200;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--ink-950); color: var(--ink-on-dark);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 500; box-shadow: var(--sh-3); max-width: 90vw; text-align: center;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.toast.is-open { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

.copy-fallback {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 210;
  width: min(420px, 92vw); padding: var(--sp-4); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--sh-3);
}
.copy-fallback textarea { width: 100%; height: 150px; font-family: inherit; font-size: var(--fs-sm); border: 1px solid var(--line); border-radius: var(--r-sm); padding: var(--sp-2); }

/* ==========================================================================
   404 + misc
   ========================================================================== */

.page-head { background: var(--field); padding-block: clamp(2.5rem, 5vw, 4rem); }
.page-head .lead { max-width: 62ch; }
.centered { text-align: center; }
.centered .lead { margin-inline: auto; }
.centered .btn-row { justify-content: center; }
.nazar-divider { display: flex; align-items: center; gap: var(--sp-4); margin: var(--sp-7) 0; }
.nazar-divider::before, .nazar-divider::after { content: ""; height: 1px; flex: 1; background: var(--line-dark); }
.nazar-divider .nazar { width: 16px; height: 16px; }

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.grid.is-fading { opacity: 0; transition: opacity var(--dur-xfast) linear; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .live-pill .dot { animation: none !important; opacity: 1 !important; }
}

/* JS-off niceties — the full catalog still renders, minus the controls */
.no-js .js-only { display: none !important; }
.no-js .catalog-layout { display: block; }
.no-js .toolbar { justify-content: flex-start; }
.js .no-js-only { display: none !important; }

/* [hidden] must beat component display rules (.btn is inline-flex) */
[hidden] { display: none !important; }

/* ==========================================================================
   OK Studios chat widget (chat.okstudios.dev) — host-page accommodation
   The widget injects its own <style> after this file and pins its launcher to
   bottom:20px/right:20px, which lands on top of the mobile .action-bar. These
   selectors are more specific than the widget's own, so they win regardless of
   order; they only apply where the action bar is actually on screen.
   ========================================================================== */
@media (max-width: 1023.98px) {
  body.has-action-bar .okc-bubble { bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.has-action-bar .okc-panel { bottom: calc(144px + env(safe-area-inset-bottom)); }
}
/* A site layer (mobile nav, filter sheet, quick view) is open and body-locked —
   the launcher sits above every z-index we own, so take it out of the way. */
body.is-locked .okc-bubble, body.is-locked .okc-panel { display: none; }
