/* ==========================================================
   Art of Orient: main stylesheet
   Colors are sampled from the logo: navy field, line gold,
   pomegranate red (ornament only). One dark theme on purpose.

   1) variables   2) base        3) header + side menu   4) buttons
   5) hero        6) facts       7) collection  8) cards
   9) craft      10) reviews    11) buying     12) inner pages
  13) piece page 14) form       15) footer     16) responsive
   ========================================================== */

/* 1) VARIABLES: change colors and fonts here */
:root {
  color-scheme: dark;

  --navy: #132d5e;        /* logo background */
  --navy-deep: #0d2049;   /* page background */
  --ink: #09173a;         /* cards, footer */
  --gold: #ccb687;        /* logo line gold */
  --gold-hi: #e6d7b2;
  --ivory: #f2ebdd;       /* main text */
  --mist: #a7b2cb;        /* secondary text */
  --pom: #e3262e;         /* pomegranate red: small ornaments only */
  --danger: #ff8a80;
  --line: rgba(204, 182, 135, 0.2);
  --line-strong: rgba(204, 182, 135, 0.45);

  --f-mark: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-display: "Cormorant Garamond", Garamond, Georgia, serif;
  --f-body: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --topbar-h: 60px;
}

/* 2) BASE */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--navy-deep);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 600; margin: 0; }

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.shell.narrow { max-width: 720px; }

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

/* Section headings share one style */
.col-head h2, .craft h2, .reviews h2, .buying h2, .page-head h1, .piece-info h1, .related-title {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.06;
  text-wrap: balance;
  color: var(--ivory);
}
.col-head h2, .craft h2, .reviews h2, .buying h2 {
  margin-top: 10px;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
}

/* 3) HEADER */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(19, 45, 94, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* one thin gold line under the menu, on every page */

/* Three columns: menu button | logo in the middle | language and cart */
/* The header uses the whole width of the screen: the menu sits near the left edge,
   language and cart near the right edge (the page content below stays centered). */
.topbar .shell.topbar-inner {
  max-width: none;
  padding-left: max(clamp(16px, 2.6vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 2.6vw, 40px), env(safe-area-inset-right, 0px));
}
.topbar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: var(--topbar-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--gold);
  text-decoration: none;
}
.brand-mark { height: 38px; aspect-ratio: 260 / 480; flex: none; }
.brand-mark img {
  width: 100%;
  height: 100%;
  clip-path: inset(3.9% 7.2% 4.1% 6.8% round 9999px);
}
/* The shop name is the real lettering (img/wordmark.svg), not a font */
.brand-word { display: block; height: 26px; width: auto; }

.topbar-tools { justify-self: end; display: flex; align-items: center; gap: 22px; }

/* The menu button: three thin gold-white lines */
.menu-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px 10px 0;
  color: var(--ivory);
  font: 500 0.76rem var(--f-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.menu-toggle:hover { color: var(--gold-hi); }
.menu-bars { display: grid; gap: 5px; width: 22px; }
.menu-bars span { height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 0.3s var(--ease-out), opacity 0.2s ease; }
.menu-bars span:nth-child(2) { width: 70%; }
.menu-toggle:hover .menu-bars span:nth-child(2) { width: 100%; }

/* Language menu: click the button, a small list with both languages opens */
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  list-style: none;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ivory);
  user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--gold); }
.lang-menu .chev { transition: transform 0.25s var(--ease-out); }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: rise 0.2s var(--ease-out);
}
.lang-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  color: var(--ivory);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}
.lang-list a:hover { background: rgba(204, 182, 135, 0.1); }
.lang-list .code { color: var(--mist); font-size: 0.72rem; letter-spacing: 0.14em; }
.lang-list [aria-current="true"] { color: var(--gold); }
.lang-list [aria-current="true"] .code::before { content: "\2713  "; color: var(--gold); }

/* 3b) SIDE MENU (drawer) */
.drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 50;
  width: min(380px, 88vw);
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 0 calc(env(safe-area-inset-bottom, 0px) + 18px);
  background:
    linear-gradient(to bottom, rgba(13, 32, 73, 0.95), rgba(9, 23, 58, 0.985)),
    url("img/girih-tile.svg") 0 0 / 200px 200px,
    var(--ink);
  border-right: 1px solid var(--line-strong);
  box-shadow: 24px 0 60px rgba(0, 0, 0, 0.45);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform 0.42s var(--ease-out), visibility 0s linear 0.42s;
}
.menu-open .drawer, .drawer:target {
  transform: none;
  visibility: visible;
  transition: transform 0.42s var(--ease-out), visibility 0s;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(4, 10, 26, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.menu-open { overflow: hidden; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 22px 14px 26px;
  border-bottom: 1px solid var(--line);
}
.drawer-title { font-family: var(--f-mark); font-size: 0.95rem; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; }
.drawer-close { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ivory); border-radius: 50%; }
.drawer-close:hover { color: var(--gold-hi); background: rgba(204, 182, 135, 0.1); }

.drawer-list { list-style: none; margin: 0; padding: 10px 0; }
.drawer-list > li { border-bottom: 1px solid var(--line); }
.drawer-list > li > a, .drawer-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 26px;
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ivory);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, padding-left 0.3s var(--ease-out);
}
.drawer-list > li > a:hover, .drawer-group summary:hover { color: var(--gold-hi); padding-left: 32px; }
.drawer-list a[aria-current="page"] { color: var(--gold); }
.drawer-group summary { list-style: none; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group .chev { flex: none; color: var(--gold); transition: transform 0.3s var(--ease-out); }
.drawer-group[open] .chev { transform: rotate(180deg); }
.drawer-group[open] summary { color: var(--gold-hi); }
.drawer-sub { list-style: none; margin: 0; padding: 0 0 14px; animation: rise 0.28s var(--ease-out); }
.drawer-sub a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 26px 9px 40px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.drawer-sub a:hover { color: var(--ivory); background: rgba(204, 182, 135, 0.06); }
.drawer-sub a[aria-current="page"] { color: var(--gold); border-left-color: var(--gold); }
.drawer-sub .count { color: rgba(167, 178, 203, 0.6); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.drawer-premium { color: var(--gold-hi) !important; }
.drawer-premium .gem { width: 8px; height: 8px; margin-right: auto; margin-left: -4px; order: 2; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 12px rgba(230, 215, 178, 0.7); }

.drawer-foot { margin-top: auto; padding: 22px 26px 0; }
.drawer-foot p { margin: 0 0 8px; font-size: 0.88rem; color: var(--mist); }
.drawer-foot a { color: var(--mist); text-decoration: none; }
.drawer-foot a:hover { color: var(--ivory); }
.drawer-langs a { margin-right: 16px; letter-spacing: 0.06em; }
.drawer-langs a[aria-current="true"] { color: var(--gold); }
.drawer-social a + a { margin-left: 14px; }

/* 4) BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); }

/* 5) HERO
   Timing rule: everything a visitor needs to read is on screen within about
   one second. The animation decorates; it never makes people wait. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding-block: clamp(20px, 4vh, 56px) clamp(48px, 8vh, 96px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 72%, var(--navy-deep));
}
.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 34%, rgba(204, 182, 135, 0.13), transparent 38%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.hero-eyebrow { animation: rise 0.6s var(--ease-out) 0s backwards; }

.medallion-stage { perspective: 900px; margin-block: 2px 4px; }
.medallion {
  position: relative;
  height: clamp(190px, 31vh, 330px);
  aspect-ratio: 260 / 480;
  max-width: 100%;
  --gx: 50%;
  --gy: 38%;
  --glint: 0;
}
.logo-clip { position: absolute; inset: 0; clip-path: inset(3.9% 7.2% 4.1% 6.8% round 9999px); }
.logo-img { width: 100%; height: 100%; animation: bloom 0.9s var(--ease-out) 0.25s backwards; }

.frame-draw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  animation: frameLife 1.5s linear 0s backwards;
}
.frame-draw path {
  fill: none;
  stroke: #d2c194;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  animation: draw 0.85s cubic-bezier(0.65, 0, 0.35, 1) 0s backwards;
}
.shine {
  position: absolute;
  top: 3.9%; right: 7.2%; bottom: 4.1%; left: 6.8%;
  border-radius: 9999px;
  overflow: hidden;
  pointer-events: none;
}
.shine::before {
  content: "";
  position: absolute;
  top: -10%; bottom: -10%; left: 0;
  width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 238, 205, 0.32), transparent);
  transform: translateX(-160%) skewX(-12deg);
  animation: sweep 1s ease-in-out 1.1s backwards;
}
.shine::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--glint);
  transition: opacity 0.6s ease;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 236, 200, 0.22), transparent 46%);
  mix-blend-mode: screen;
}

/* The shop name in the hero: the traced lettering (partials/wordmark.html).
   1) the letter parts draw their outline one after another, left to right;
   2) the gold fills in;
   3) then a soft light wanders over the letters along a wave (SVG animation). */
.wordmark { margin: 4px 0 0; line-height: 0; }
.wm-svg { display: block; width: min(560px, 82vw); height: auto; overflow: visible; }
.wm-part {
  fill: var(--gold);
  stroke: var(--gold-hi);
  stroke-width: 0.8;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  fill-opacity: 1;
  animation:
    wmDraw 0.9s cubic-bezier(0.65, 0, 0.35, 1) calc(0.25s + var(--n) * 0.08s) backwards,
    wmFill 0.6s ease calc(0.75s + var(--n) * 0.08s) backwards;
}
.wm-light { mix-blend-mode: screen; opacity: 0.85; animation: wmFill 0.6s ease 2s backwards; }
@keyframes wmDraw { from { stroke-dashoffset: 1; } }
@keyframes wmFill { from { fill-opacity: 0; opacity: 0; } }

.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: -4px; }
.ornament .rule { width: 64px; height: 1px; background: var(--gold); animation: ruleIn 0.6s var(--ease-out) 0.75s backwards; }
.ornament .rule:first-child { transform-origin: right center; }
.ornament .rule:last-child { transform-origin: left center; }
.ornament .diamond { width: 7px; height: 7px; background: var(--pom); transform: rotate(45deg); animation: diamondIn 0.45s var(--ease-out) 0.85s backwards; }

.tagline {
  margin: 0;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  color: var(--ivory);
  animation: rise 0.6s var(--ease-out) 0.55s backwards;
}
.hero-lede {
  margin: -4px 0 0;
  max-width: 52ch;
  color: var(--mist);
  animation: rise 0.6s var(--ease-out) 0.65s backwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  animation: rise 0.6s var(--ease-out) 0.75s backwards;
}

@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes frameLife { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bloom {
  from { clip-path: circle(0% at 50% 31%); filter: brightness(1.35); }
  to   { clip-path: circle(100% at 50% 31%); filter: brightness(1); }
}
@keyframes sweep {
  from { transform: translateX(-160%) skewX(-12deg); }
  to   { transform: translateX(360%) skewX(-12deg); }
}
@keyframes ruleIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes diamondIn { from { transform: rotate(45deg) scale(0); } to { transform: rotate(45deg) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 5b) HERO BACKGROUND: girih tile work
   The tile (img/girih-tile.svg, drawn by tools/girih_tile.py) covers the whole
   first screen and drifts slowly to the side: one tile width in 90 seconds, so the
   movement is felt more than seen. A navy veil sits on top: light in the corners,
   darker in the middle, so the logo and the text stay easy to read. */
.girih {
  position: absolute;
  inset: -48px;   /* larger than the hero: when the tiles move, no empty edge shows */
  pointer-events: none;
  background-image: url("img/girih-tile.svg");
  background-size: 240px 240px;
  background-position: center top;
  opacity: 0.75;
  animation: girihIn 1.6s ease both, girihDrift 90s linear infinite;
}
.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 58% at 50% 46%, rgba(13, 32, 73, 0.92) 0%, rgba(13, 32, 73, 0.84) 50%, rgba(13, 32, 73, 0.4) 100%),
    linear-gradient(to bottom, rgba(13, 32, 73, 0.35), rgba(13, 32, 73, 0) 30%, rgba(13, 32, 73, 0.5));
}
/* a soft band of light passes over the tiles every 14 seconds, like sun on glazed tiles */
.hero-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 236, 196, 0.09) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  animation: tileLight 14s ease-in-out 1.5s infinite;
}
@keyframes girihIn { from { opacity: 0; } to { opacity: 0.75; } }
@keyframes girihDrift { from { background-position: 0 0; } to { background-position: 240px 0; } }
@keyframes tileLight { 0% { background-position: 130% 0; } 45%, 100% { background-position: -30% 0; } }


/* 6) FACTS STRIP */
/* the three facts sit between two thin gold lines */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts ul {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; min-width: 0; }
.facts li:first-child { padding-left: 0; }
.facts li + li { border-left: 1px solid var(--line); }
.facts strong { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.facts span { font-size: 0.86rem; color: var(--mist); }

/* 7) COLLECTION */
.collection { padding-block: 72px 96px; }
.col-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px 48px;
}
.col-note { margin: 0; max-width: 46ch; color: var(--mist); }

.toolbar {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 40px;
  border-bottom: 1px solid var(--line);
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 300px;
  min-width: 0;
  padding-block: 10px 12px;
  color: var(--mist);
  transition: box-shadow 0.25s ease;
}
.search:focus-within { box-shadow: inset 0 -2px 0 var(--gold); }
.search svg { flex: none; }
.search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 1rem;  /* 16px or more: iPhone does not zoom in when typing */
}
.search input::placeholder { color: rgba(167, 178, 203, 0.7); }

.browse-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  color: var(--ivory);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
}
.browse-button:hover { color: var(--gold-hi); }
.browse-button svg { color: var(--gold); }
.browse-button .count { color: rgba(167, 178, 203, 0.6); font-variant-numeric: tabular-nums; }
.page-tools { margin: 28px 0 0; border-bottom: 1px solid var(--line); }

.result-line { margin: 18px 0 0; min-height: 1.6em; font-size: 0.86rem; color: var(--mist); }

.grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.empty { padding-block: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.empty p, .empty-note { margin: 0; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.3; }
.empty-note { margin-top: 32px; color: var(--mist); }
.more-link { margin: 32px 0 0; }

/* 8) CARDS */
.card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease-out), border-color 0.3s ease;
}
.card.live { transition: transform 80ms linear, border-color 0.3s ease; }
.card:hover { border-color: var(--line-strong); }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.card.filtered-in { animation: cardIn 0.32s ease calc(min(var(--i), 8) * 35ms) backwards; }
@keyframes cardIn { from { opacity: 0.2; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }

.plate {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--gold);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 95% at 50% 8%, #17336d 0%, var(--ink) 72%);
}
.plate-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.card:hover .plate-photo { transform: scale(1.04); }
.motif { width: 44%; height: auto; opacity: 0.7; transition: transform 0.6s var(--ease-out); }
.card:hover .motif { transform: scale(1.05); }
.plate-note {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(167, 178, 203, 0.75);
}

.chips { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 23, 58, 0.78);
  color: var(--gold-hi);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.chip-muted { color: var(--ivory); border-color: rgba(242, 235, 221, 0.35); }
.chip-premium { color: var(--navy-deep); background: linear-gradient(120deg, #b89c62, var(--gold-hi) 55%, #b89c62); border-color: var(--gold-hi); }
.card-premium { border-color: var(--line-strong); box-shadow: 0 0 0 1px rgba(204, 182, 135, 0.08), 0 18px 40px rgba(0, 0, 0, 0.25); }
.card-premium:hover { border-color: var(--gold); }
.chip-muted::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mist); }

.sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(230, 215, 178, 0.18) 0%, rgba(230, 215, 178, 0.05) 40%, transparent 70%);
}
.card:hover .sheen { opacity: 1; }

.card-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; }
.card-origin { margin: 0; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.card-title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.45rem; line-height: 1.18; text-wrap: balance; }
.card-link { color: var(--ivory); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }  /* whole card is clickable */
.card-spec { margin: 0 0 12px; font-size: 0.88rem; color: var(--mist); }
.card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.price { font-size: 1.08rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.price small { margin-left: 5px; font-size: 0.7rem; letter-spacing: 0.12em; color: var(--mist); }
.price-approx { display: block; margin-top: 2px; font-size: 0.78rem; font-weight: 400; color: var(--mist); }
.price-muted { color: var(--mist); font-size: 0.95rem; }
.view { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.view .arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
.card:hover .view .arrow { transform: translateX(4px); }

/* 8b) PREMIUM band on the home page, and the Premium page */
.premium-band {
  position: relative;
  overflow: hidden;
  padding-block: 88px;
  background: radial-gradient(90% 70% at 50% 0%, #1b3c7d 0%, var(--navy) 55%, var(--navy-deep) 100%);
  border-block: 1px solid var(--line-strong);
}
.premium-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("img/girih-tile.svg") 0 0 / 240px 240px;
  opacity: 0.12;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.premium-band .shell { position: relative; }
.premium-band h2 { color: var(--gold-hi); }
.grid-premium { margin-top: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.premium-band .grid-premium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.premium-band .grid-premium .card-title { font-size: 1.5rem; }
.grid-premium .plate { aspect-ratio: 4 / 3; }
.grid-premium .card-title { font-size: 1.7rem; }
.premium-band .more-link, .premium-list .more-link { text-align: center; }

.premium-hero { position: relative; overflow: hidden; padding-block: 72px 56px; background: var(--navy); border-bottom: 1px solid var(--line-strong); }
.premium-hero-inner { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 14px; }
.premium-hero h1 { font-family: var(--f-display); font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.04; color: var(--gold-hi); }
.premium-hero .page-lead { margin-top: 4px; }
.premium-list { padding-top: 24px; }
.premium-note {
  margin-top: 48px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
}
.premium-note p { margin: 0; max-width: 60ch; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.35; }
.premium-tag { color: var(--gold-hi); text-decoration: none; border-bottom: 1px solid var(--gold); }

/* 8c) MADE TO ORDER */
.custom-band { padding-block: 88px; border-bottom: 1px solid var(--line); }
.custom-band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px 64px; align-items: center; }
.custom-band h2 { margin-top: 10px; font-family: var(--f-display); font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.06; text-wrap: balance; }
.custom-band-text { margin: 18px 0 26px; max-width: 46ch; color: var(--mist); font-size: 1.05rem; }
.custom-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.custom-thumbs li:nth-child(2) { transform: translateY(28px); }
.custom-thumbs a { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; color: var(--gold); background: var(--ink); border: 1px solid var(--line-strong); text-decoration: none; }
.custom-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.custom-thumbs a:hover img { transform: scale(1.05); }
.custom-thumbs .motif { display: block; width: 50%; margin: 34% auto 0; }
.custom-thumbs span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  font-family: var(--f-display); font-size: 1.05rem; line-height: 1.2; color: var(--ivory);
  background: linear-gradient(to top, rgba(9, 23, 58, 0.92), transparent);
}
.custom-mini-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.custom-mini-steps li { padding: 20px; border: 1px solid var(--line); background: var(--ink); font-family: var(--f-display); font-size: 1.3rem; }
.custom-how { padding-block: 16px 24px; }
.steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.custom-examples { padding-block: 56px 24px; }
.example-card.is-chosen { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.custom-form { padding-top: 56px; border-top: 1px solid var(--line); }
.form-title { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
.small-link { font-family: var(--f-body); font-size: 0.8rem; color: var(--gold); }
.form-row input[type="file"] { padding: 10px; }
.form-row input[type="date"] { color-scheme: dark; }
.form-row input[type="checkbox"] { width: auto; }
.made-to-order-box { margin-top: 24px; padding: 20px; border: 1px solid var(--line-strong); background: var(--ink); }
.made-to-order-box p { margin: 0 0 14px; color: var(--mist); }

/* 8d) SHOP WITH CONFIDENCE */
.trust { padding-block: 88px; background: var(--ink); border-bottom: 1px solid var(--line); }
.trust h2 { margin-top: 10px; font-family: var(--f-display); font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.06; }
.trust-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.trust-grid li { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color 0.3s ease; }
.trust-grid li:hover { background: rgba(204, 182, 135, 0.04); }
.trust-grid svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 14px; }
.trust-grid h3 { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; }
.trust-grid p { margin: 8px 0 0; color: var(--mist); font-size: 0.95rem; }
.trust-pages { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.86rem; color: var(--mist); }
.trust-pages a { color: var(--gold); text-decoration: none; }
.trust-pages a:hover { text-decoration: underline; }

/* Text pages (delivery, returns, privacy...) */
.text-page h2 { margin: 32px 0 10px; font-family: var(--f-display); font-size: 1.6rem; line-height: 1.2; color: var(--gold-hi); }
.text-page h2:first-child { margin-top: 0; }
.text-page p { color: var(--ivory); }
.draft-note { margin: 16px 0 0; padding: 10px 14px; display: inline-block; border: 1px dashed var(--danger); color: var(--danger); font-size: 0.88rem; }

/* 8e) COLOURS (variants) */
.variant-picker { width: 100%; margin: 0 0 6px; padding: 0; border: 0; min-width: 0; }
.variant-picker legend { padding: 0; margin-bottom: 10px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.variant-chosen { color: var(--ivory); letter-spacing: 0.08em; text-transform: none; font-size: 0.9rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 9px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: 0.9rem; transition: border-color 0.2s ease, background-color 0.2s ease; }
.swatch:hover { border-color: var(--gold); }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch:has(input:checked) { border-color: var(--gold); background: rgba(204, 182, 135, 0.12); box-shadow: 0 0 0 1px var(--gold); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.swatch.is-out { cursor: not-allowed; opacity: 0.5; }
.swatch.is-out .swatch-name { text-decoration: line-through; }
.dot { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c, var(--gold)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.3); vertical-align: middle; }
.variant-picker.has-error .swatch { border-color: var(--danger); }
.card-swatches { display: flex; gap: 6px; margin: -4px 0 10px; }
.card-swatches .dot { width: 13px; height: 13px; }
.card-swatches .dot.is-out { opacity: 0.35; }
.cart-meta .dot { width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.avail-variant { display: block; }
.added-note { margin-top: 22px; padding: 16px 18px; border: 1px solid var(--gold); background: rgba(204, 182, 135, 0.08); animation: rise 0.35s var(--ease-out); }
.added-note p { margin: 0; }
.added-note .added-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.added-note .btn { min-height: 40px; padding: 10px 18px; }
.cart-weight { margin: 8px 0 0; text-align: right; font-size: 0.86rem; color: var(--mist); }
.cart-weight strong { color: var(--ivory); font-weight: 500; }

/* 9) CRAFT */
.craft { padding-block: 88px; background: var(--navy); border-block: 1px solid var(--line); }
.craft-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px 72px; align-items: start; }
.craft-text { margin-top: 20px; max-width: 52ch; color: var(--mist); font-size: 1.05rem; }
.craft-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.craft-points li { padding-block: 22px; border-top: 1px solid var(--line); }
.num { display: block; margin-bottom: 8px; font-family: var(--f-mark); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--gold); }
.craft-points h3, .steps h3 { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; }
.craft-points p, .steps p { margin: 6px 0 0; color: var(--mist); font-size: 0.95rem; }

/* 10) REVIEWS */
.reviews { padding-block: 88px; }
.review-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.review { margin: 0; padding: 26px; background: var(--ink); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.review blockquote { margin: 0; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.4; }
.review figcaption { margin-top: auto; font-size: 0.88rem; color: var(--mist); }
.review strong { color: var(--ivory); font-weight: 500; }
.review-source { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.review-source a { color: inherit; }

/* 11) BUYING */
.buying { padding-block: 88px 104px; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.steps .num {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  letter-spacing: 0;
}
.contact-panel {
  margin-top: 56px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 56px;
  background: var(--navy);
  border: 1px solid var(--line);
}
.contact-panel.solo { grid-template-columns: minmax(0, 1fr); }
.contact-panel h3 { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.15; }
.contact-panel p { margin: 10px 0 22px; color: var(--mist); max-width: 46ch; }
.contact-list { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 24px; align-content: start; }
.contact-list dt, .specs dt { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); padding-top: 4px; }
.contact-list dd, .specs dd { margin: 0; overflow-wrap: anywhere; }
.contact-list a, .specs a { color: var(--gold); text-decoration: none; }
.contact-list a:hover, .specs a:hover { text-decoration: underline; }

/* 12) INNER PAGES */
.page-head { padding-block: 56px 8px; }
.page-head h1 { margin-top: 10px; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.page-lead { margin: 16px 0 0; max-width: 56ch; color: var(--mist); font-size: 1.05rem; }
.breadcrumb { margin: 0; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-hi); }
.breadcrumb span { margin-inline: 8px; }
.collection-page { padding-top: 12px; }
.thanks { padding-block: 96px; text-align: center; }
.thanks .ornament { margin-bottom: 24px; }
.thanks .page-lead { margin-inline: auto; margin-bottom: 28px; }

/* 13) PIECE PAGE */
.piece { padding-block: 40px 72px; }
.piece-layout { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.gallery { min-width: 0; }
.gallery-main-link { display: block; background: var(--ink); border: 1px solid var(--line); }
.gallery-main { width: 100%; max-height: 78vh; object-fit: contain; }
.gallery-empty { aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.gallery-thumbs { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.gallery-thumb { padding: 0; aspect-ratio: 1; background: var(--ink); border: 1px solid var(--line); cursor: pointer; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 0.2s ease; }
.gallery-thumb:hover img, .gallery-thumb.active img { opacity: 1; }
.gallery-thumb.active { border-color: var(--gold); }

.piece-info { min-width: 0; position: sticky; top: calc(var(--topbar-h) + 24px); }
.piece-info h1 { margin-top: 10px; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.price-block { margin-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.price-main { margin: 0; font-size: 1.7rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.price-main small { margin-left: 6px; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--mist); }
.price-other { margin: 4px 0 0; color: var(--ivory); font-variant-numeric: tabular-nums; }
.note { margin: 6px 0 0; font-size: 0.82rem; color: var(--mist); }
.piece-description { margin-top: 20px; color: var(--ivory); }
.piece-description p:last-child { margin-bottom: 0; }
.specs { margin: 20px 0 0; padding-block: 18px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; border-block: 1px solid var(--line); }
.piece-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.piece-actions + .note { margin-top: 12px; }
.related { padding-top: 64px; border-top: 1px solid var(--line); }
.related-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }

/* 14) FORM */
.form-section { padding-block: 28px 96px; }
.inquiry-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding: 12px;
  background: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 1.25rem;
  line-height: 1.2;
}
.inquiry-item img { width: 64px; height: 64px; object-fit: cover; flex: none; }
.inquiry-form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.form-row input, .form-row textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font: 1rem/1.5 var(--f-body);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }
.form-row.has-error input, .form-row.has-error textarea { border-color: var(--danger); }
.form-error { margin: 0; color: var(--danger); font-size: 0.88rem; }
.inquiry-form .btn { justify-self: start; }
.trap { position: absolute; left: -9999px; }
.form-or { margin-top: 32px; color: var(--mist); }
.form-or a { margin-left: 12px; color: var(--gold); }

/* 14b) CART */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cart-link:hover { color: var(--gold); }
.cart-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
  text-align: center;
  animation: badgeIn 0.35s var(--ease-out);
}
@keyframes badgeIn { from { transform: scale(0.4); opacity: 0; } }

.buy-form { align-items: flex-end; }
.qty { display: grid; gap: 6px; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.qty input, .cart-qty input {
  width: 76px;
  padding: 12px 10px;
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font: 1rem var(--f-body);
}
.note a { color: var(--gold); }

.cart-section { padding-block: 24px 96px; }
.cart-note { margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--line-strong); background: var(--ink); color: var(--gold-hi); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.cart-lines { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-photo { display: block; width: 96px; height: 96px; background: var(--ink); border: 1px solid var(--line); color: var(--gold); }
.cart-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-photo .motif { width: 100%; height: 100%; padding: 16px; }
.cart-name { font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; text-decoration: none; }
.cart-name:hover { color: var(--gold-hi); }
.cart-meta { margin: 4px 0 10px; font-size: 0.86rem; color: var(--mist); }
.cart-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cart-qty label { display: flex; align-items: center; gap: 10px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.cart-qty input { width: 64px; padding: 8px; }
.link-button { padding: 0; background: none; border: 0; color: var(--gold); font: 500 0.82rem var(--f-body); letter-spacing: 0.06em; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--gold-hi); }
.cart-price { margin: 0; text-align: right; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cart-price small { display: block; font-size: 0.78rem; color: var(--mist); }
.cart-price .cur { margin-left: 5px; font-size: 0.7rem; letter-spacing: 0.12em; color: var(--mist); }
.cart-total { margin: 20px 0 0; display: flex; justify-content: space-between; align-items: baseline; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); }
.cart-total strong { font-size: 1.7rem; font-weight: 500; letter-spacing: 0; color: var(--ivory); text-transform: none; font-variant-numeric: tabular-nums; }
.cart-total small { margin-left: 6px; font-size: 0.75rem; letter-spacing: 0.12em; color: var(--mist); }
.cart-other { text-align: right; }
.cart-other .note { display: block; }
.cart-how { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); background: var(--ink); }
.cart-how h2 { margin: 0 0 6px; font-family: var(--f-display); font-size: 1.3rem; }
.cart-how p { margin: 0; color: var(--mist); }
.checkout { padding: 24px; border: 1px solid var(--line-strong); background: var(--ink); position: sticky; top: calc(var(--topbar-h) + 24px); }
.checkout h2 { margin: 0 0 18px; font-family: var(--f-display); font-size: 1.7rem; }
.checkout .form-row input, .checkout .form-row textarea { background: var(--navy-deep); }
.cart-empty { padding-block: 32px; }
.cart-empty p { color: var(--mist); font-size: 1.05rem; }
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout { position: static; }
  .cart-word { display: none; }
}
@media (max-width: 520px) {
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-photo { width: 72px; height: 72px; }
  .cart-price { grid-column: 2; text-align: left; }
}

/* 15) FOOTER */
.site-foot { background: var(--ink); border-top: 1px solid var(--line); }
/* The crest at the top of the footer: logo, name, ornament, one sentence, all centred */
.foot-crest {
  padding-block: 56px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.foot-logo {
  display: block;
  height: 92px;
  aspect-ratio: 260 / 480;
  /* the same oval cut as the header logo: the gold frame stays, the square corners go */
  clip-path: inset(3.9% 7.2% 4.1% 6.8% round 9999px);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.5s var(--ease-out);
}
.foot-logo:hover { transform: translateY(-3px); }
.foot-logo img { width: 100%; height: 100%; }
.foot-word { display: block; height: 30px; width: auto; margin-top: 4px; }
.foot-crest .ornament { margin-top: 0; }
.foot-crest .ornament .rule { width: 44px; animation: none; }
.foot-crest .ornament .diamond { animation: none; }
.site-foot .foot-tagline { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 1.15rem; color: var(--ivory); }

.foot-grid {
  padding-block: 32px calc(40px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
}
.foot-heading { margin-bottom: 12px !important; font-size: 0.68rem !important; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold) !important; }
.site-foot p { margin: 0 0 6px; font-size: 0.86rem; color: var(--mist); }
.site-foot a { color: var(--mist); text-decoration: none; }
.site-foot a:hover { color: var(--ivory); }
.foot-social a + a { margin-left: 14px; }

/* 16) RESPONSIVE */
@media (max-width: 980px) {
  .grid, .review-grid, .premium-band .grid-premium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .craft-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-legal { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .piece-layout { grid-template-columns: minmax(0, 1fr); }
  .piece-info { position: static; }
  .contact-panel { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
  .custom-band-grid { grid-template-columns: minmax(0, 1fr); }
  .steps.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: only the three lines, the logo and the cart stay in the header */
@media (max-width: 620px) {
  .menu-label { display: none; }
  .brand-word { height: 20px; }
  .brand-mark { height: 32px; }
  .brand { gap: 8px; }
  .topbar-tools { gap: 12px; }
  .topbar-tools .lang-menu { display: none; }  /* the languages are in the side menu */
}
@media (max-width: 380px) {
  .brand-word { display: none; }
}

@media (max-width: 760px) {
  .col-head { grid-template-columns: minmax(0, 1fr); }
  .facts ul { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li:first-child { padding: 14px 0; }
  .facts li + li { border-left: 0; border-top: 1px solid var(--line); }
  .search { flex: 1 1 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .craft, .reviews, .buying, .premium-band, .custom-band, .trust { padding-block: 64px; }
}

@media (max-width: 620px) {
  .grid, .review-grid, .grid-premium, .premium-band .grid-premium { grid-template-columns: minmax(0, 1fr); }
  .trust-grid, .steps.steps-4 { grid-template-columns: minmax(0, 1fr); }
  .custom-thumbs { gap: 10px; }
  .custom-thumbs span { font-size: 0.9rem; padding: 18px 8px 8px; }
  .craft-points { grid-template-columns: minmax(0, 1fr); }
  .collection { padding-block: 56px 72px; }
  .hero-actions { flex-direction: column; align-self: stretch; }
  .hero-actions .btn { width: 100%; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

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

/* Phones: smaller tiles, so the pattern still reads as a pattern */
@media (max-width: 620px) {
  .girih { background-size: 170px 170px; }
  @keyframes girihDrift { from { background-position: 0 0; } to { background-position: 170px 0; } }
}
