/* ==========================================================================
   SHOKRIA DESIGNS — design system
   Palette  : silk · blush · madder (Krapprot) · moss · brass · ink
   Type     : Bodoni Moda + Jost (EN) · Noto Naskh Arabic + Vazirmatn (FA)
              Noto Nastaliq Urdu for the calligraphic motto
   Signature: cross-stitch band (stepped diamonds) + arched image frames
   All spacing uses logical properties, so RTL (Farsi) mirrors automatically.
   ========================================================================== */

:root {
  --silk: #F6F2F0;
  --silk-2: #EEE5E1;
  --paper: #FFFCFA;
  --blush: #E9D7D1;
  --madder: #8C1D2E;
  --madder-deep: #6D1322;
  --madder-tint: #F6EAE8;
  --moss: #22362C;
  --moss-2: #2E4639;
  --brass: #AE8638;
  --brass-soft: #D9BD80;
  --ink: #2A1E22;
  --muted: #6C5D60;
  --line: #DDCDC7;
  --line-dark: rgba(246, 242, 240, .16);

  --font-display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-latin-display: "Bodoni Moda", Didot, serif;
  --font-callig: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
  --lh-display: 1.04;
  --lh-body: 1.6;
  --track: .02em;

  --s--1: clamp(.84rem, .82rem + .1vw, .9rem);
  --s-0: clamp(1rem, .98rem + .12vw, 1.075rem);
  --s-1: clamp(1.14rem, 1.07rem + .3vw, 1.32rem);
  --s-2: clamp(1.45rem, 1.27rem + .75vw, 1.95rem);
  --s-3: clamp(1.9rem, 1.55rem + 1.6vw, 2.9rem);
  --s-4: clamp(2.35rem, 1.75rem + 2.9vw, 4.25rem);
  --s-5: clamp(2.8rem, 1.9rem + 4.6vw, 6.1rem);

  --header-h: 76px;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2, .7, .1, 1);

  --stitch-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16' shape-rendering='crispEdges'%3E%3Cpath fill='%238C1D2E' d='M10 2H14V4H16V6H18V10H16V12H14V14H10V12H8V10H6V6H8V4H10Z'/%3E%3Cpath fill='%23F6F2F0' d='M10 6H14V10H10Z'/%3E%3Cpath fill='%23AE8638' d='M11 7H13V9H11ZM23 7H25V9H23Z'/%3E%3Cpath fill='%2322362C' d='M35 3H37V7H41V9H37V13H35V9H31V7H35Z'/%3E%3C/svg%3E");
  --stitch-h-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16' shape-rendering='crispEdges'%3E%3Cpath fill='%23D9BD80' d='M10 2H14V4H16V6H18V10H16V12H14V14H10V12H8V10H6V6H8V4H10Z'/%3E%3Cpath fill='%232A1E22' d='M10 6H14V10H10Z'/%3E%3Cpath fill='%23C2475B' d='M11 7H13V9H11ZM23 7H25V9H23Z'/%3E%3Cpath fill='%23F6F2F0' fill-opacity='.7' d='M35 3H37V7H41V9H37V13H35V9H31V7H35Z'/%3E%3C/svg%3E");
  --stitch-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='48' viewBox='0 0 16 48' shape-rendering='crispEdges'%3E%3Cpath fill='%238C1D2E' d='M2 10V14H4V16H6V18H10V16H12V14H14V10H12V8H10V6H6V8H4V10Z'/%3E%3Cpath fill='%23F6F2F0' d='M6 10H10V14H6Z'/%3E%3Cpath fill='%23AE8638' d='M7 11H9V13H7ZM7 23H9V25H7Z'/%3E%3Cpath fill='%2322362C' d='M3 35V37H7V41H9V37H13V35H9V31H7V35Z'/%3E%3C/svg%3E");
}

:root[lang="fa"] {
  --font-display: "Noto Naskh Arabic", "Vazirmatn", serif;
  --font-body: "Vazirmatn", "Segoe UI", system-ui, sans-serif;
  --lh-display: 1.5;
  --lh-body: 1.95;
  --track: 0;   /* never letter-space Arabic script */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--silk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--s-0);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
bdi { unicode-bidi: isolate; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--madder); color: var(--silk); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--silk); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display { font-family: var(--font-display); line-height: var(--lh-display); letter-spacing: -.012em; font-weight: 400; }
:root[lang="fa"] .display { letter-spacing: 0; font-weight: 600; }
.h-xxl { font-size: var(--s-5); }
.h-xl { font-size: var(--s-4); }
.h-l { font-size: var(--s-3); }
.h2 { font-family: var(--font-display); font-size: var(--s-2); line-height: 1.18; }
.h3 { font-size: var(--s-1); font-weight: 500; line-height: 1.3; }
:root[lang="fa"] .h-xxl { font-size: calc(var(--s-5) * .74); }
:root[lang="fa"] .h-xl { font-size: calc(var(--s-4) * .8); }
:root[lang="fa"] .h-l { font-size: calc(var(--s-3) * .86); }
:root[lang="fa"] .h2 { font-weight: 600; line-height: 1.6; font-size: calc(var(--s-2) * .9); }
.lead { font-size: var(--s-1); line-height: 1.6; color: var(--muted); font-weight: 300; max-width: 36em; }
:root[lang="fa"] .lead { font-weight: 400; line-height: 2; }
.muted { color: var(--muted); }
.small { font-size: var(--s--1); }

.text-link {
  display: inline-block; color: var(--madder); font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; letter-spacing: var(--track);
  transition: color .2s;
}
.text-link:hover { color: var(--madder-deep); }

/* ---------- icons & buttons ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .8em 1.65em;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: var(--s-0); font-weight: 500; line-height: 1.1; letter-spacing: var(--track);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-primary { background: var(--madder); color: var(--silk); }
.btn-primary:hover { background: var(--madder-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--silk); }
.btn-light { background: var(--silk); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border-color: rgba(246, 242, 240, .55); color: var(--silk); background: transparent; }
.btn-ghost-light:hover { background: rgba(246, 242, 240, .12); border-color: var(--silk); }
.btn-sm { min-height: 42px; padding: .55em 1.2em; font-size: var(--s--1); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- signature: stitch band & arch ---------- */
.stitch-band { height: 16px; background: var(--stitch-h) repeat-x center / auto 16px; }
.stitch-band-dark { background-image: var(--stitch-h-dark); }
.arch { border-radius: 999px 999px 0 0; overflow: hidden; background: var(--silk-2); }
.arch img, .media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 242, 240, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* backdrop-filter would trap the fixed mobile menu inside the header box */
body.menu-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--silk); }
.header-inner { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand-text { display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-family: var(--font-latin-display); font-size: 1.42rem; letter-spacing: .01em; line-height: 1; }
.brand-fa { font-family: var(--font-callig); font-size: 1.02rem; color: var(--madder); line-height: 1; position: relative; top: -.1em; }
.brand-light { color: var(--silk); }
.brand-light .brand-fa { color: var(--brass-soft); }

.main-nav { display: flex; gap: clamp(16px, 2vw, 32px); margin-inline-start: auto; }
.main-nav a {
  position: relative; text-decoration: none; font-size: var(--s--1); font-weight: 500;
  letter-spacing: var(--track); padding-block: 6px; color: var(--ink);
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--madder);
  transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .3s var(--ease);
}
[dir="rtl"] .main-nav a::after { --origin: right; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--madder); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; font-size: var(--s--1); font-weight: 500;
}
.lang-switch[lang="fa"] { font-family: "Vazirmatn", sans-serif; }
.lang-switch[lang="en"] { font-family: "Jost", sans-serif; }
.lang-switch:hover { border-color: var(--ink); }
.lang-switch.on-dark { border-color: var(--line-dark); color: var(--silk); }
.lang-switch.on-dark:hover { border-color: var(--silk); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; cursor: pointer; position: relative;
}
.menu-bars, .menu-bars::before {
  position: absolute; inset-inline-start: 13px; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease);
}
.menu-bars { top: 18px; }
.menu-bars::before { content: ""; inset-inline-start: 0; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(-6px) rotate(-90deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; background: var(--silk); z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between; padding-block: 32px;
  border-top: 1px solid var(--line); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-nav { display: grid; gap: 4px; }
.mobile-nav a {
  font-family: var(--font-display); font-size: var(--s-3); line-height: 1.3; text-decoration: none;
  padding-block: 8px; border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { color: var(--madder); }
.mobile-menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-head .lead { margin: 14px 0 0; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(64px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.hero-title { font-size: var(--s-5); max-width: 9.5em; }
:root[lang="fa"] .hero-title { font-size: calc(var(--s-5) * .74); max-width: 12em; }
.motto {
  font-family: var(--font-callig); font-size: var(--s-3); color: var(--madder);
  line-height: 2.1; margin: .25em 0 0; direction: rtl; text-align: left;
}
[dir="rtl"] .motto { text-align: right; }
.motto-tr { font-size: var(--s--1); color: var(--muted); letter-spacing: .04em; margin: .2em 0 0; font-style: italic; font-family: var(--font-latin-display); }
.motto-tr:empty { display: none; }
.hero-copy .lead { margin: 28px 0 36px; }

.hero-visual { position: relative; aspect-ratio: 1 / 1.1; max-width: 640px; width: 100%; justify-self: end; }
.hero-main { position: absolute; top: 0; inset-inline-end: 0; width: 72%; height: 100%; z-index: 1; }
.hero-small {
  position: absolute; inset-inline-start: 0; bottom: 7%; width: 40%; aspect-ratio: 3 / 4.15; z-index: 2;
  border: 8px solid var(--silk); border-bottom: 0; box-sizing: content-box;
}
.stitch-v {
  position: absolute; inset-inline-start: 19%; top: 6%; bottom: -24px; width: 16px; z-index: 0;
  background: var(--stitch-v) repeat-y center top / 16px auto;
}
.hero-caption {
  position: absolute; inset-inline-end: 0; bottom: -2.4em; font-size: var(--s--1); color: var(--muted);
}
.hero-caption a { text-decoration: none; border-bottom: 1px solid var(--line); }
.hero-caption a:hover { border-color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero-main { animation: reveal 1.25s var(--ease) .05s both; }
  .hero-small { animation: reveal 1.1s var(--ease) .4s both; }
  .stitch-v { animation: grow 1.4s var(--ease) .6s both; transform-origin: top; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-copy > :nth-child(3) { animation-delay: .18s; }
  .hero-copy > :nth-child(4) { animation-delay: .26s; }
  .hero-copy > :nth-child(5) { animation-delay: .34s; }
}
@keyframes reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- collection doors ---------- */
.doors { padding-top: 0; }
.doors-grid { display: grid; grid-template-columns: 1fr 1fr .82fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.door { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.door:nth-child(2) { margin-top: clamp(0px, 6vw, 88px); }
.door:nth-child(3) { margin-top: clamp(0px, 12vw, 176px); }
.door-media { aspect-ratio: 3 / 4; margin-bottom: 14px; }
.door-media img { transition: transform 1.1s var(--ease); }
.door:hover .door-media img { transform: scale(1.035); }
.door p { color: var(--muted); max-width: 30em; margin-bottom: 6px; }
.door .text-link { align-self: flex-start; }

/* ---------- heritage ---------- */
.heritage { background: var(--moss); color: var(--silk); }
.heritage-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 104px); align-items: center; }
.heritage-media { aspect-ratio: 4 / 5; background: var(--moss-2); }
.heritage h2 { margin-bottom: 32px; max-width: 11em; }
.heritage-copy > p { color: rgba(246, 242, 240, .78); max-width: 34em; }
.crafts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.craft-icon { display: block; width: 22px; height: 22px; margin-bottom: 14px; color: var(--brass-soft); }
.crafts h3 { font-size: var(--s-0); font-weight: 500; margin-bottom: 6px; }
.crafts p { font-size: var(--s--1); color: rgba(246, 242, 240, .7); }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px clamp(16px, 2.2vw, 32px); }
.product-grid.cols-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product-card { display: block; text-decoration: none; color: inherit; }
.pc-media { aspect-ratio: 3 / 4; }
.pc-media img { transition: transform 1s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.04); }
.pc-body { padding-top: 18px; }
.pc-type { font-size: var(--s--1); color: var(--muted); margin-bottom: 2px; }
.pc-name { font-family: var(--font-display); font-size: var(--s-2); line-height: 1.15; }
:root[lang="fa"] .pc-name { font-weight: 600; line-height: 1.6; font-size: calc(var(--s-2) * .85); }
.pc-price { margin-top: 6px; font-weight: 500; font-size: var(--s--1); letter-spacing: var(--track); }
.product-card:focus-visible { outline-offset: 6px; }

/* ---------- process ---------- */
.process { background: var(--silk-2); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); counter-reset: none; }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step-num { display: block; font-family: var(--font-latin-display); font-style: italic; font-size: 3.2rem; line-height: 1; color: var(--brass); margin-bottom: 18px; }
:root[lang="fa"] .step-num { font-family: "Noto Naskh Arabic", serif; font-style: normal; font-size: 2.6rem; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: var(--s--1); }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-grid .lead { margin-top: 16px; }
.service-list { list-style: none; border-top: 1px solid var(--line); }
.service { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.service h3 { font-size: var(--s-1); font-weight: 500; }
.service h3 a { text-decoration: none; }
.service h3 a:hover { color: var(--madder); }
.service p { color: var(--muted); font-size: var(--s--1); margin-top: 2px; }
.pill { flex: none; display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: .8rem; font-weight: 500; border: 1px solid; }
.pill.available { color: var(--moss); border-color: var(--moss); }
.pill.soon { color: var(--muted); border-color: var(--line); border-style: dashed; }

/* ---------- catalog teaser ---------- */
.teaser { background: var(--blush); overflow: hidden; }
.teaser-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.teaser-book { display: flex; width: 100%; max-width: 620px; filter: drop-shadow(0 30px 40px rgba(42, 30, 34, .18)); }
.teaser-book .pub-page { width: 50%; }
.teaser-copy .lead { margin: 18px 0 32px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--madder); color: var(--silk); padding-block: clamp(64px, 8vw, 112px); }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px 64px; align-items: end; }
.cta-band .lead { color: rgba(246, 242, 240, .82); margin-top: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(246, 242, 240, .78); font-size: var(--s--1); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-block: 72px 48px; }
.footer-brand p { margin-top: 18px; max-width: 22em; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--silk); }
.footer-h { font-size: var(--s--1); font-weight: 500; color: var(--silk); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--silk); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px 32px; border-top: 1px solid var(--line-dark); flex-wrap: wrap; }

/* ---------- inner page head ---------- */
.page-head { padding-block: clamp(48px, 7vw, 104px) clamp(36px, 4vw, 56px); position: relative; }
.page-head .lead { margin-top: 20px; }
.page-head + .stitch-band { margin-bottom: clamp(40px, 5vw, 72px); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.breadcrumb { display: flex; gap: 8px; font-size: var(--s--1); color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ---------- collections ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.chip {
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer; font-size: var(--s--1); font-weight: 500;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--silk); }
.chip .count { opacity: .6; margin-inline-start: 6px; }
.coll-section { padding-bottom: var(--section); }

/* ---------- product page ---------- */
.product-section { padding-block: clamp(24px, 4vw, 48px) var(--section); }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.gallery-main { aspect-ratio: 4 / 5; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px; margin-top: 14px; max-width: 360px; }
.thumb { aspect-ratio: 3 / 4; padding: 0; border: 1.5px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--silk-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--madder); }
.product-info { position: sticky; top: calc(var(--header-h) + 24px); }
.product-info .pc-type { margin-bottom: 6px; }
.product-price { font-size: var(--s-1); font-weight: 500; margin: 14px 0 6px; }
.product-status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--s--1); color: var(--moss); }
.product-status::before { content: ""; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.product-info .lead { margin: 22px 0 28px; }
.product-actions { display: grid; gap: 10px; margin-bottom: 36px; }
.details { border-top: 1px solid var(--line); margin: 0; }
.details div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); font-size: var(--s--1); }
.details dd { margin: 0; }
.product-desc { margin-top: 32px; }
.adjust-note { margin-top: 28px; padding: 18px 20px; border-radius: 14px; background: var(--madder-tint); font-size: var(--s--1); }
.related { border-top: 1px solid var(--line); padding-top: var(--section); margin-top: var(--section); }
.related .h-l { margin-bottom: 40px; }
.empty-state { padding-block: 80px; text-align: center; }
.empty-state p { margin-bottom: 24px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 28px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.label, .field > label, .field > legend { font-size: var(--s--1); font-weight: 500; padding: 0; }
.field > legend { margin-bottom: 10px; }
.opt { color: var(--muted); font-weight: 400; }
.hint { font-size: var(--s--1); color: var(--muted); margin: 0; }
.input {
  width: 100%; min-height: 52px; padding: .75em 1em;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.input:hover { border-color: #C9B6AF; }
.input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(174, 134, 56, .2); }
textarea.input { min-height: 132px; resize: vertical; line-height: 1.55; }
select.input {
  padding-inline-end: 2.6em; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232A1E22' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center;
}
[dir="rtl"] select.input { background-position: left 1em center; }
input[type="date"].input { min-height: 52px; }
.input[aria-invalid="true"], .choice-grid[aria-invalid="true"] .choice-body, .time-grid[aria-invalid="true"] span { border-color: var(--madder); }
.error { color: var(--madder); font-size: var(--s--1); margin: 0; font-weight: 500; }
.error:empty { display: none; }
.form-note { font-size: var(--s--1); color: var(--muted); margin: 0; }
.form-note a { color: inherit; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.choice { position: relative; cursor: pointer; display: block; }
.choice input, .pill-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body {
  display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--paper); transition: border-color .2s, background-color .2s;
}
.choice:hover .choice-body { border-color: #C9B6AF; }
.choice-title { font-weight: 500; line-height: 1.35; }
.choice-desc { font-size: var(--s--1); color: var(--muted); line-height: 1.45; }
.choice input:checked + .choice-body { border-color: var(--madder); background: var(--madder-tint); box-shadow: inset 0 0 0 1px var(--madder); }
.choice input:focus-visible + .choice-body, .pill-choice input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }

.time-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-choice { cursor: pointer; position: relative; }
.pill-choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-size: var(--s--1); font-weight: 500;
  font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, border-color .2s;
}
.pill-choice:hover span { border-color: #C9B6AF; }
.pill-choice input:checked + span { background: var(--ink); color: var(--silk); border-color: var(--ink); }

.regarding { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.regarding img { width: 48px; height: 64px; object-fit: cover; border-radius: 999px 999px 0 0; }
.regarding[hidden] { display: none; }

/* upload (contact) */
.field > .upload, .upload {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px dashed #C9B6AF; border-radius: 14px;
  background: var(--paper); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.upload:hover, .upload.is-over { border-color: var(--madder); background: var(--madder-tint); }
.upload .icon { width: 22px; height: 22px; color: var(--madder); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.thumbs li { position: relative; width: 72px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--silk-2); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button {
  position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(42, 30, 34, .8); color: var(--silk); cursor: pointer; font-size: 15px; line-height: 1;
}

/* ---------- booking layout ---------- */
.booking-section { padding-bottom: var(--section); }
.booking-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.booking-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-block { padding: 28px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.aside-block h2, .aside-block h3 { margin-bottom: 10px; }
.aside-block p { font-size: var(--s--1); color: var(--muted); }
.aside-block .email-addr { margin-top: 14px; font-size: var(--s--1); word-break: break-all; }
.email-block { background: var(--moss); color: var(--silk); border-color: var(--moss); }
.email-block p { color: rgba(246, 242, 240, .78); }
.email-block .btn { margin-top: 18px; }
.email-block .email-addr a { color: var(--brass-soft); }
.how-list { list-style: none; display: grid; gap: 14px; counter-reset: how; }
.how-list li { counter-increment: how; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: var(--s--1); }
.how-list li::before {
  content: counter(how); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--brass);
  display: grid; place-items: center; color: var(--brass); font-size: .8rem; font-weight: 500;
}
:root[lang="fa"] .how-list li::before { content: counter(how, persian); }
.info-list { display: grid; gap: 14px; margin: 0; }
.info-list dt { font-size: var(--s--1); font-weight: 500; }
.info-list dd { margin: 2px 0 0; font-size: var(--s--1); color: var(--muted); }
.info-list a { text-decoration: none; }

/* confirmation */
.confirm {
  padding: clamp(28px, 4vw, 52px); border-radius: 24px; background: var(--paper); border: 1px solid var(--line);
  outline: none;
}
.confirm[hidden] { display: none; }
.confirm-mark { width: 52px; height: 52px; color: var(--madder); margin-bottom: 24px; }
.confirm h2 { margin-bottom: 14px; }
.confirm > p { color: var(--muted); max-width: 34em; }
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 32px 0; border-top: 1px solid var(--line); }
.summary div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary dt { font-size: var(--s--1); color: var(--muted); }
.summary dd { margin: 2px 0 0; font-weight: 500; }
.demo-note { font-size: var(--s--1); background: #FBF3E3; border: 1px dashed var(--brass); padding: 12px 16px; border-radius: 12px; color: #6B5323; margin-bottom: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .confirm.is-in { animation: rise .6s var(--ease) both; }
}

/* FAQ */
.faq-section { padding-bottom: var(--section); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); padding-top: var(--section); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-size: var(--s-1); font-weight: 500;
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-latin-display); font-size: 1.6rem; line-height: 1; color: var(--madder); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 40em; }

/* ---------- catalog page ---------- */
.catalog-tools { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.catalog-tools .field { min-width: 210px; }
.catalog-stage { background: var(--silk-2); padding-block: clamp(32px, 5vw, 64px) clamp(40px, 5vw, 72px); }

/* flipbook (shared by catalog + studio) */
.flipbook { outline: none; }
.flipbook:focus-visible .flip-stage { outline: 2px solid var(--brass); outline-offset: 8px; border-radius: 4px; }
.flip-stage { display: flex; justify-content: center; touch-action: pan-y; user-select: none; }
.flip-spread { display: flex; justify-content: center; width: 100%; }
.flip-spread .pub-page { width: min(48%, calc((100svh - var(--header-h) - 230px) * .7071)); min-width: 0; box-shadow: 0 18px 50px rgba(42, 30, 34, .16); }
.flip-spread.single .pub-page { width: min(100%, calc((100svh - var(--header-h) - 230px) * .7071)); }
.flip-spread:not(.single) .pub-page:first-child::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 7%; pointer-events: none;
  background: linear-gradient(to left, rgba(42, 30, 34, .14), transparent);
}
.flip-spread:not(.single) .pub-page:last-child::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5%; pointer-events: none;
  background: linear-gradient(to right, rgba(42, 30, 34, .1), transparent);
}
[dir="rtl"] .flip-spread:not(.single) .pub-page:first-child::after { background: linear-gradient(to right, rgba(42, 30, 34, .14), transparent); }
[dir="rtl"] .flip-spread:not(.single) .pub-page:last-child::after { background: linear-gradient(to left, rgba(42, 30, 34, .1), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .flip-spread.turn-next .pub-page { animation: turnNext .5s var(--ease) both; }
  .flip-spread.turn-prev .pub-page { animation: turnPrev .5s var(--ease) both; }
}
@keyframes turnNext { from { opacity: .3; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes turnPrev { from { opacity: .3; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
[dir="rtl"] .flip-spread.turn-next .pub-page { animation-name: turnPrev; }
[dir="rtl"] .flip-spread.turn-prev .pub-page { animation-name: turnNext; }
.flip-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 28px; }
.flip-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; cursor: pointer;
  display: grid; place-items: center; transition: background-color .2s, color .2s;
}
.flip-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.flip-next svg { transform: scaleX(-1); }
[dir="rtl"] .flip-prev svg { transform: scaleX(-1); }
[dir="rtl"] .flip-next svg { transform: none; }
.flip-btn:hover:not(:disabled) { background: var(--ink); color: var(--silk); }
.flip-btn:disabled { opacity: .3; cursor: default; }
.flip-count { font-size: var(--s--1); color: var(--muted); min-width: 12em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- studio ---------- */
.note-banner { display: inline-block; margin-top: 18px; font-size: var(--s--1); padding: 8px 14px; border-radius: 999px; background: var(--madder-tint); color: var(--madder-deep); }
.studio { padding-bottom: var(--section); }
.studio-grid { display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.panel-step { padding-block: 26px; border-top: 1px solid var(--line); }
.panel-step:first-child { border-top: 0; padding-top: 0; }
.step-title { display: flex; align-items: center; gap: 12px; font-size: var(--s-1); font-weight: 500; margin-bottom: 18px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--silk); display: grid; place-items: center; font-size: .85rem; flex: none; }
.dropzone {
  display: grid; justify-items: center; gap: 8px; text-align: center; padding: 34px 20px;
  border: 1.5px dashed var(--brass); border-radius: 20px; background: var(--paper); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.dropzone:hover, .dropzone.is-over { background: var(--madder-tint); border-color: var(--madder); }
.dropzone:focus-within { outline: 2px solid var(--brass); outline-offset: 3px; }
.dropzone .icon { width: 30px; height: 30px; color: var(--madder); }
.dropzone small { color: var(--muted); }
.dropzone u { color: var(--madder); text-underline-offset: 3px; }
.text-btn { background: none; border: 0; padding: 0; margin-top: 14px; color: var(--madder); font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; font-size: var(--s--1); }
.item-list { list-style: none; display: grid; gap: 10px; }
.item {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
}
.item.is-drag { opacity: .45; }
.item.is-target { border-color: var(--madder); }
.item-thumb { width: 64px; height: 86px; object-fit: cover; border-radius: 999px 999px 4px 4px; cursor: grab; }
.item-fields { display: grid; gap: 6px; }
.input-sm { min-height: 38px; padding: .45em .7em; font-size: var(--s--1); border-radius: 9px; }
textarea.input-sm { min-height: 54px; }
.item-tools { display: grid; gap: 4px; align-content: start; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.empty { color: var(--muted); font-size: var(--s--1); padding: 18px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.empty[hidden] { display: none; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.tpl .choice-body { padding: 12px; gap: 8px; }
.tpl-art { height: 64px; border-radius: 6px; background: var(--silk-2); position: relative; overflow: hidden; }
.tpl-art::before, .tpl-art::after { content: ""; position: absolute; background: #CBB3AB; }
.tpl-magazine .tpl-art::before { inset: 0; background: linear-gradient(160deg, #B07A7E, #6D2A36); }
.tpl-magazine .tpl-art::after { top: 8px; inset-inline: 10px; height: 9px; background: rgba(255, 255, 255, .85); }
.tpl-catalog .tpl-art::before { top: 8px; bottom: 8px; inset-inline-start: 8px; width: 38%; border-radius: 99px 99px 0 0; }
.tpl-catalog .tpl-art::after { top: 18px; inset-inline-end: 8px; width: 38%; height: 4px; box-shadow: 0 9px 0 #DCCBC5, 0 18px 0 #DCCBC5; }
.tpl-lookbook .tpl-art::before { top: 8px; inset-inline: 26%; bottom: 16px; }
.tpl-lookbook .tpl-art::after { bottom: 7px; inset-inline: 38%; height: 3px; }
.studio-fields { display: grid; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: var(--s--1); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--madder); }
.btn-col { display: grid; gap: 10px; }
.save-status { margin-top: 14px; font-size: var(--s--1); color: var(--moss); }
.save-status.warn { color: var(--madder); }
.studio-preview {
  position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100svh - var(--header-h) - 32px); overflow: auto;
  background: var(--silk-2); border-radius: 24px; padding: 20px;
}
.preview-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.page-thumb { position: relative; }
.page-thumb .pub-page { box-shadow: 0 6px 18px rgba(42, 30, 34, .12); }
.page-no { display: block; text-align: center; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.flip-dialog {
  width: min(1240px, 96vw); max-width: none; max-height: 96svh; padding: 56px 24px 24px; border: 0; border-radius: 24px; background: var(--silk-2); color: var(--ink);
}
.flip-dialog::backdrop { background: rgba(42, 30, 34, .6); }
.flip-dialog .flip-spread .pub-page { width: min(48%, calc((96svh - 190px) * .7071)); }
.flip-dialog .flip-spread.single .pub-page { width: min(100%, calc((96svh - 190px) * .7071)); }
.dialog-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 20px; }

/* ==========================================================================
   PUBLICATION PAGES (A4, container units)
   ========================================================================== */
.pub-page {
  --pub-ink: #2A1E22; --pub-muted: #85767A; --pub-paper: #FBF8F5; --pub-accent: #8C1D2E;
  position: relative; aspect-ratio: 210 / 297; width: 100%; container-type: inline-size; overflow: hidden;
  background: var(--pub-paper); color: var(--pub-ink); font-family: "Jost", sans-serif; line-height: 1.5; text-align: start;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.pub-page[lang="fa"] { font-family: "Vazirmatn", sans-serif; line-height: 1.8; }
.pub-page img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pub-page p { margin: 0; }
.pub-page h1, .pub-page h2, .pub-page h3 { margin: 0; font-weight: 400; }
.pub-disp { font-family: "Bodoni Moda", serif; }
.pub-page[lang="fa"] .pub-disp { font-family: "Noto Naskh Arabic", serif; font-weight: 600; }
.pub-inner { position: absolute; inset: 8cqw 8cqw 11cqw; }
.pub-folio { position: absolute; inset-inline: 8cqw; bottom: 4cqw; display: flex; justify-content: space-between; font-size: 1.6cqw; color: var(--pub-muted); letter-spacing: .04em; }
.pub-page[lang="fa"] .pub-folio { letter-spacing: 0; }
.pub-folio.light { color: rgba(251, 248, 245, .85); }
.pub-stitch { height: 2.4cqw; background: var(--stitch-h) repeat-x center / auto 100%; }
.pub-meta { font-size: 1.7cqw; color: var(--pub-muted); margin-bottom: .6cqw !important; }
.pub-price { font-size: 2.1cqw; font-weight: 500; color: var(--pub-accent); margin-top: 1.6cqw !important; }
.pub-body { font-size: 2.15cqw; line-height: 1.65; color: #4E4245; }
.pub-page[lang="fa"] .pub-body { line-height: 1.95; }
.pub-issue { font-size: 1.9cqw; letter-spacing: .06em; margin-bottom: 1.2cqw !important; }
.pub-page[lang="fa"] .pub-issue { letter-spacing: 0; }
.pub-sub { font-size: 3.2cqw; line-height: 1.25; }

/* covers */
.pub-cover-mag { background: #3A2027; }
.pub-cover-mag > img { position: absolute; inset: 0; }
.pub-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 14, 20, .45) 0%, rgba(30, 14, 20, 0) 32%, rgba(30, 14, 20, 0) 58%, rgba(30, 14, 20, .62) 100%); }
.pub-mast { position: absolute; top: 5cqw; inset-inline: 5cqw; text-align: center; color: #FBF8F5; line-height: .95; letter-spacing: -.02em; font-weight: 500 !important; }
.pub-page[lang="fa"] .pub-mast { line-height: 1.5; letter-spacing: 0; font-weight: 700 !important; }
.pub-cover-foot { position: absolute; bottom: 10cqw; inset-inline: 8cqw; color: #FBF8F5; }
.pub-cover-mag .pub-sub { font-size: 5cqw; font-style: italic; max-width: 70cqw; }
.pub-page[lang="fa"].pub-cover-mag .pub-sub { font-style: normal; }
.pub-cover-brand { position: absolute; bottom: 4cqw; inset-inline: 8cqw; font-size: 1.7cqw; color: rgba(251, 248, 245, .85); letter-spacing: .08em; }

.pub-cover-cat { background: #F2EAE6; }
.pub-cat-arch { position: absolute; top: 9cqw; inset-inline: 17cqw; height: 88cqw; border-radius: 999px 999px 0 0; overflow: hidden; }
.pub-cat-text { position: absolute; top: 102cqw; inset-inline: 8cqw; text-align: center; }
.pub-cat-title { line-height: 1.05; margin-bottom: 1.6cqw !important; }
.pub-page[lang="fa"] .pub-cat-title { line-height: 1.6; }
.pub-cover-cat .pub-sub { color: #6E5F62; font-size: 2.6cqw; }
.pub-stitch-foot { position: absolute; bottom: 6cqw; inset-inline: 0; }

.pub-cover-look { text-align: center; padding: 9cqw 12cqw 0; }
.pub-look-cover-img { height: 96cqw; margin: 2cqw 0 6cqw; }
.pub-look-title { letter-spacing: .02em; margin-bottom: 1.4cqw !important; line-height: 1.1; }
.pub-cover-look .pub-sub { font-size: 2.4cqw; color: var(--pub-muted); }

/* intro */
.pub-h { font-size: 7cqw; line-height: 1.1; margin-bottom: 5cqw !important; }
.pub-page[lang="fa"] .pub-h { line-height: 1.6; font-size: 6cqw; }
.pub-lede { font-size: 2.5cqw; max-width: 66cqw; }
.pub-page[lang="en"] .pub-lede::first-letter { font-family: "Bodoni Moda", serif; float: left; font-size: 8.4cqw; line-height: .85; padding: .6cqw .5cqw 0 0; color: var(--pub-accent); }
.pub-intro-fig { position: absolute; bottom: 0; inset-inline-end: 0; width: 46cqw; height: 62cqw; border-radius: 999px 999px 0 0; overflow: hidden; }
.pub-contents { margin-top: 8cqw; }
.pub-contents-h { font-size: 1.9cqw; font-weight: 500 !important; letter-spacing: .06em; margin-bottom: 2.4cqw !important; color: var(--pub-accent); }
.pub-contents ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.6cqw; }
.pub-contents li { display: flex; align-items: baseline; gap: 1.4cqw; font-size: 2.3cqw; }
.pub-dots { flex: 1; border-bottom: .2cqw dotted #C9B6AF; transform: translateY(-.5cqw); }

/* magazine */
.pub-full > img { position: absolute; inset: 0; }
.pub-full::before { content: ""; position: absolute; inset: 70% 0 0; background: linear-gradient(transparent, rgba(30, 14, 20, .45)); z-index: 1; }
.pub-full .pub-folio { z-index: 2; }
.pub-cap-box { position: absolute; bottom: 10cqw; inset-inline-start: 8cqw; width: 50cqw; background: var(--pub-paper); padding: 4cqw; z-index: 2; }
.pub-cap-box h3 { font-size: 5cqw; line-height: 1.1; margin-bottom: 1.4cqw !important; }
.pub-page[lang="fa"] .pub-cap-box h3 { line-height: 1.6; font-size: 4.2cqw; }
.pub-cap-box p:not(.pub-price):not(.pub-meta) { font-size: 1.95cqw; color: #4E4245; line-height: 1.6; }
.pub-split { display: grid; grid-template-columns: 58% 1fr; }
.pub-split.alt { grid-template-columns: 1fr 58%; }
.pub-split.alt .pub-split-img { order: 2; }
.pub-split-img { height: 100%; }
.pub-split-text { display: flex; flex-direction: column; justify-content: center; padding: 8cqw 6cqw 14cqw; gap: .4cqw; }
.pub-title-l { font-size: 6cqw; line-height: 1.05; margin-bottom: 2.6cqw !important; }
.pub-page[lang="fa"] .pub-title-l { line-height: 1.6; font-size: 4.8cqw; }
.pub-split-text .pub-stitch { margin-top: 5cqw; width: 18cqw; }
.pub-duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; align-content: start; }
.pub-duo-img { height: 76cqw; border-radius: 999px 999px 0 0; overflow: hidden; margin-bottom: 3cqw; }
.pub-duo-grid h3 { font-size: 3.8cqw; line-height: 1.15; margin-bottom: 1cqw !important; }
.pub-page[lang="fa"] .pub-duo-grid h3 { line-height: 1.6; font-size: 3.2cqw; }
.pub-duo-grid figcaption p:not(.pub-price):not(.pub-meta) { font-size: 1.85cqw; color: #4E4245; line-height: 1.6; }
.pub-trio-grid { position: absolute; inset: 8cqw 8cqw 30cqw; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3cqw; }
.pub-trio-0 { grid-row: span 2; }
.pub-trio-grid > div { overflow: hidden; }
.pub-trio-caps { position: absolute; bottom: 11cqw; inset-inline: 8cqw; display: grid; gap: 1cqw; font-size: 2cqw; }
.pub-trio-caps b { color: var(--pub-accent); font-weight: 500; margin-inline-end: 1cqw; }

/* catalog */
.pub-cat-page { background: var(--pub-paper); }
.pub-cat-head { display: flex; align-items: center; gap: 3cqw; font-size: 1.8cqw; color: var(--pub-muted); margin-bottom: 5cqw; letter-spacing: .04em; }
.pub-page[lang="fa"] .pub-cat-head { letter-spacing: 0; }
.pub-stitch-mini { flex: 1; height: 1.8cqw; opacity: .85; }
.pub-cat-item { display: grid; grid-template-columns: 38cqw 1fr; gap: 6cqw; align-items: center; margin-bottom: 6cqw; }
.pub-cat-img { height: 51cqw; border-radius: 999px 999px 0 0; overflow: hidden; background: #EFE6E2; }
.pub-cat-info h3 { font-size: 5.2cqw; line-height: 1.08; margin-bottom: 1.8cqw !important; }
.pub-page[lang="fa"] .pub-cat-info h3 { line-height: 1.6; font-size: 4.4cqw; }

/* lookbook */
.pub-look-img { position: absolute; top: 9cqw; inset-inline: 15cqw; height: 92cqw; overflow: hidden; }
.pub-look-text { position: absolute; top: 106cqw; inset-inline: 15cqw; text-align: center; }
.pub-look-n { font-size: 1.8cqw; color: var(--pub-accent); letter-spacing: .06em; margin-bottom: 1cqw !important; }
.pub-page[lang="fa"] .pub-look-n { letter-spacing: 0; }
.pub-look-text h3 { font-size: 4.6cqw; line-height: 1.1; margin-bottom: 1.4cqw !important; }
.pub-page[lang="fa"] .pub-look-text h3 { line-height: 1.6; font-size: 3.8cqw; }
.pub-look-text .pub-body { font-size: 2cqw; }

/* filler & back */
.pub-filler { background: #EBDAD4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pub-filler-art { width: 34cqw; color: var(--pub-accent); margin-bottom: 4cqw; }
.pub-filler-art svg, .pub-filler-art img { width: 100%; height: auto; display: block; }
.pub-motto { font-family: "Noto Nastaliq Urdu", serif; font-size: 6.4cqw; color: var(--pub-accent); line-height: 2.2 !important; }
.pub-motto-tr { font-family: "Bodoni Moda", serif; font-style: italic; font-size: 2.4cqw; color: #6E5F62; }
.pub-back { background: #22362C; color: #F6F2F0; display: flex; flex-direction: column; justify-content: space-between; }
.pub-back .pub-stitch { background-image: var(--stitch-h-dark); }
.pub-stitch-top { margin-top: 6cqw; }
.pub-stitch-bottom { margin-bottom: 6cqw; }
.pub-back-inner { text-align: center; padding: 0 12cqw; }
.pub-back-inner .pub-mark { width: 22cqw; height: auto; color: #D9BD80; margin: 0 auto 4cqw; display: block; }
.pub-back-brand { display: flex; justify-content: center; align-items: baseline; gap: 2.4cqw; font-family: "Bodoni Moda", serif; font-size: 7cqw; line-height: 1.2; margin-bottom: 7cqw !important; }
.pub-back-fa { font-family: "Noto Nastaliq Urdu", serif; font-size: 4.4cqw; color: #D9BD80; line-height: 2; }
.pub-back h2 { font-size: 4.2cqw; margin-bottom: 1.6cqw !important; line-height: 1.3; }
.pub-back-inner > p { font-size: 2.2cqw; color: rgba(246, 242, 240, .78); }
.pub-back-contact { margin-top: 5cqw !important; font-size: 2cqw !important; line-height: 1.9; }

/* ---------- print (Save as PDF) ---------- */
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body.is-printing { background: #fff; }
  body.is-printing > *:not(#print-root) { display: none !important; }
  body.is-printing #print-root { display: block; }
  #print-root .pub-page { width: 210mm; height: 297mm; aspect-ratio: auto; break-after: page; page-break-after: always; box-shadow: none; }
  #print-root .pub-page:last-child { break-after: auto; page-break-after: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid.featured > :nth-child(4) { display: none; }
}
@media (max-width: 1060px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 560px; margin-top: 8px; }
  .doors-grid { grid-template-columns: 1fr 1fr; }
  .door:nth-child(2) { margin-top: 48px; }
  .door:nth-child(3) { margin-top: 0; grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-items: center; }
  .door:nth-child(3) .door-media { grid-row: span 4; margin: 0; aspect-ratio: 4 / 5; }
  .heritage-grid, .services-grid, .teaser-grid, .faq-grid { grid-template-columns: 1fr; }
  .heritage-media { max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .product-layout, .booking-grid { grid-template-columns: 1fr; }
  .product-info, .booking-aside { position: static; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-preview { position: static; max-height: none; }
  .teaser-book { margin-inline: auto; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand-name { font-size: 1.2rem; }
  .header-cta { display: none; }
  .hero-small { border-width: 5px; }
  .doors-grid { grid-template-columns: 1fr; }
  .door:nth-child(2) { margin-top: 0; }
  .door:nth-child(3) { grid-column: auto; display: flex; }
  .door:nth-child(3) .door-media { aspect-ratio: 3 / 4; margin-bottom: 14px; }
  .crafts { grid-template-columns: 1fr; gap: 24px; }
  .product-grid, .product-grid.cols-auto { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .product-grid.featured > :nth-child(4) { display: block; }
  .pc-name { font-size: var(--s-1); }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
  .details div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .btn-row .btn { flex: 1 1 100%; }
  .service { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tpl-grid { grid-template-columns: 1fr 1fr 1fr; }
  .item { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .item-thumb { width: 52px; height: 70px; }
  .flip-dialog { padding: 56px 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.aside-btn { margin-top: 20px; }


/* ==========================================================================
   SHOKRIA DESIGNS — brand mark, three worlds and category themes
   bridal   = European, minimal, modern (ivory, olive, rose-taupe; Cormorant serif)
   hazaragi = traditional (madder, green, gold; khamak bands, arches)
   repair   = practical (silk shell, thread band, clear price list)
   ========================================================================== */
:root {
  --khamak: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='24' viewBox='0 0 48 24' shape-rendering='crispEdges'%3E%3Crect width='48' height='24' fill='%239E1B2F'/%3E%3Cpath fill='%231A1410' d='M0 0H48V2H0ZM0 22H48V24H0Z'/%3E%3Cpath fill='%231C2850' d='M10 4H14V6H16V8H18V10H20V14H18V16H16V18H14V20H10V18H8V16H6V14H4V10H6V8H8V6H10Z'/%3E%3Cpath fill='%23F7F1E6' d='M11 8H13V9H14V10H15V11H16V13H15V14H14V15H13V16H11V15H10V14H9V13H8V11H9V10H10V9H11Z'/%3E%3Cpath fill='%23C8962E' d='M11 11H13V13H11Z'/%3E%3Cpath fill='%231F4A33' d='M35 5H37V10H42V14H37V19H35V14H30V10H35Z'/%3E%3Cpath fill='%23C8962E' d='M35 11H37V13H35Z'/%3E%3Cpath fill='%23F7F1E6' d='M23 5H25V7H23ZM23 17H25V19H23ZM0 11H1V13H0ZM47 11H48V13H47Z'/%3E%3C/svg%3E");
  --khamak-field: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' shape-rendering='crispEdges'%3E%3Crect width='24' height='24' fill='%239E1B2F'/%3E%3Cpath fill='%231C2850' d='M10 2H14V4H16V6H18V8H20V10H22V14H20V16H18V18H16V20H14V22H10V20H8V18H6V16H4V14H2V10H4V8H6V6H8V4H10Z'/%3E%3Cpath fill='%23F7F1E6' d='M11 7H13V9H15V11H17V13H15V15H13V17H11V15H9V13H7V11H9V9H11Z'/%3E%3Cpath fill='%23C8962E' d='M11 11H13V13H11ZM0 0H2V2H0ZM22 0H24V2H22ZM0 22H2V24H0ZM22 22H24V24H22Z'/%3E%3C/svg%3E");
  --geraf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' shape-rendering='crispEdges'%3E%3Crect width='32' height='32' fill='%231F4A33'/%3E%3Cpath fill='%23C8962E' d='M0 0H32V4H0ZM0 28H32V32H0Z'/%3E%3Cpath fill='%239E1B2F' d='M0 8H4V12H8V16H12V20H16V16H20V12H24V8H28V12H32V16H28V20H24V24H20V20H16V24H12V20H8V24H4V20H0Z'/%3E%3Cpath fill='%23F7F1E6' d='M15 9H17V11H15ZM3 25H5V27H3ZM27 25H29V27H27Z'/%3E%3C/svg%3E");
  --thread: repeating-linear-gradient(90deg, #9E1B2F 0 14px, #E7A33E 14px 28px, #F2D14B 28px 42px, #5E8A6E 42px 56px, #2F5D8A 56px 70px, #7B4A8C 70px 84px, #E58BA2 84px 98px, #2A1E22 98px 112px);
}

/* ---------- logo (SH monogram with peonies) ---------- */
.brand .logo { height: 50px; width: auto; flex: none; display: block; }
.brand .logo-light { display: none; }
.brand-light .logo-dark { display: none; }
.brand-light .logo-light { display: block; }
.brand-name { font-size: 1.32rem; }
.footer-brand .brand .logo { height: 68px; }

/* ---------- home: three worlds ---------- */
.worlds { padding-top: 0; }
.worlds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: start; }
.world { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.world:nth-child(2) { margin-top: clamp(0px, 6vw, 88px); }
.world:nth-child(3) { margin-top: clamp(0px, 12vw, 176px); }
.world-media { aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 16px; position: relative; }
.world-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.world:hover .world-media img { transform: scale(1.035); }
.world p { color: var(--muted); max-width: 30em; margin-bottom: 6px; }
.world-t { font-size: var(--s-3); line-height: 1.1; }
.world-link { align-self: flex-start; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
/* bridal door: square, ivory mat, light serif */
.world-bridal .world-media { background: #F7F3EF; padding: 10px; outline: 1px solid #DCD3C9; }
.world-bridal .world-t { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-size: calc(var(--s-3) * 1.1); letter-spacing: 0; color: #3A4430; }
:root[lang="fa"] .world-bridal .world-t { font-family: "Vazirmatn", sans-serif; font-weight: 300; font-size: var(--s-3); }
.world-bridal .world-link { color: #3A4430; font-weight: 400; }
/* hazaragi door: arch inside a khamak frame */
.world-hazaragi .world-media { border-radius: 999px 999px 0 0; padding: 10px; background: var(--khamak) repeat center / 32px 16px; }
.world-hazaragi .world-media img { border-radius: 999px 999px 0 0; }
.world-hazaragi .world-t { font-family: var(--font-latin-display); font-weight: 500; color: var(--madder); }
:root[lang="fa"] .world-hazaragi .world-t { font-family: var(--font-callig); font-weight: 400; line-height: 2; font-size: calc(var(--s-3) * .9); }
.world-hazaragi .world-link { color: var(--madder); }
/* repair door: soft rectangle with a thread band */
.world-repair .world-media { border-radius: 20px; }
.world-repair .world-media::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 10px; background: var(--thread); }
.world-repair .world-t { font-family: var(--font-body); font-weight: 500; font-size: var(--s-2); }

/* product cards keep the look of their world, wherever they appear */
.product-card[data-cat="bridal"] .pc-media { border-radius: 0; background: #EFE8E1; }
.product-card[data-cat="bridal"] .pc-name { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 1.35em; }
:root[lang="fa"] .product-card[data-cat="bridal"] .pc-name { font-family: var(--font-body); font-weight: 400; font-size: 1em; }
.product-card[data-cat="hazaragi"] .pc-media { position: relative; }
.product-card[data-cat="hazaragi"] .pc-media::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 12px; background: var(--khamak) repeat-x center / 24px 12px; }

/* ---------- theme tokens ---------- */
body[data-theme="bridal"] {
  --silk: #F7F3EF; --silk-2: #EFE8E1; --paper: #FBF8F5; --blush: #E9DDD6;
  --madder: #3A4430; --madder-deep: #2A3222; --madder-tint: #ECE9E0;
  --moss: #3A4430; --moss-2: #48543C; --brass: #AD8F86; --brass-soft: #D9C3BB;
  --ink: #2B2E25; --muted: #6B675F; --line: #DCD3C9;
  --rose: #AD8F86; --olive: #3A4430;
  --font-display: "Cormorant Garamond", "Bodoni Moda", Georgia, serif;
  background: var(--silk);
}
:root[lang="fa"] body[data-theme="bridal"] { --font-display: "Vazirmatn", system-ui, sans-serif; }
body[data-theme="hazaragi"] {
  --silk: #F5ECDD; --silk-2: #ECDDC6; --paper: #FBF6EE; --blush: #E9D3BD;
  --madder: #9E1B2F; --madder-deep: #7A1222; --madder-tint: #F6E4DC;
  --moss: #1F4A33; --moss-2: #2A5A40; --brass: #A87618; --brass-soft: #E0B962;
  --ink: #24160F; --muted: #6E5A4C; --line: #DCC7AA;
  --stitch-h: var(--khamak); --stitch-h-dark: var(--khamak);
}

/* bridal: no ornament, square corners, light type */
[data-theme="bridal"] .site-header { background: rgba(247, 243, 239, .94); }
[data-theme="bridal"] .display { font-weight: 400; letter-spacing: 0; }
:root[lang="fa"] [data-theme="bridal"] .display { font-weight: 300; }
[data-theme="bridal"] .arch, [data-theme="bridal"] .thumb, [data-theme="bridal"] .regarding img { border-radius: 0; }
[data-theme="bridal"] .btn, [data-theme="bridal"] .lang-switch, [data-theme="bridal"] .chip,
[data-theme="bridal"] .adjust-note { border-radius: 0; }
[data-theme="bridal"] .stitch-band { display: none; }
[data-theme="bridal"] .product-status { color: var(--muted); }
[data-theme="bridal"] .site-footer { border-top: 1px solid var(--line); }

/* hazaragi: header tint, gold details */
[data-theme="hazaragi"] .site-header { background: rgba(245, 236, 221, .94); }
[data-theme="hazaragi"] .display { font-weight: 500; }
[data-theme="hazaragi"] .stitch-band { height: 16px; background-size: 32px 16px; }

/* ---------- BRIDAL PAGE (bespoke) ---------- */
.bx-kicker, .bx-steps h4, .bx-words-t, [data-theme="bridal"] .btn {
  font-family: var(--font-body); font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
:root[lang="fa"] .bx-kicker, :root[lang="fa"] .bx-steps h4, :root[lang="fa"] .bx-words-t, :root[lang="fa"] [data-theme="bridal"] .btn {
  font-size: .92rem; letter-spacing: 0; text-transform: none;
}
.bx-hero { padding-top: clamp(48px, 7vw, 104px); text-align: center; }
.bx-kicker { color: var(--rose); margin-bottom: 22px; }
.bx-title { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 300; font-size: clamp(3.2rem, 1.6rem + 6.4vw, 8.4rem); line-height: .94; color: var(--olive); }
:root[lang="fa"] .bx-title { font-family: "Vazirmatn", sans-serif; font-weight: 200; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 6rem); line-height: 1.3; }
.bx-tri { display: grid; grid-template-columns: 1fr 1.32fr 1fr; gap: clamp(10px, 1.6vw, 24px); align-items: end;
  width: min(100% - 2 * var(--gutter), 1120px); margin: clamp(40px, 5vw, 72px) auto 0; }
.bx-tri figure { overflow: hidden; background: var(--silk-2); }
.bx-tri img { width: 100%; height: 100%; object-fit: cover; }
.bx-tri-main { aspect-ratio: 3 / 4; }
.bx-tri-side { aspect-ratio: 9 / 14; margin-bottom: clamp(24px, 4vw, 64px); }

.bx-intro { padding-block: clamp(72px, 10vw, 144px); text-align: center; }
.bx-intro .wrap { max-width: 50rem; }
.bx-q { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-style: italic; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); line-height: 1.25; color: var(--olive); margin-bottom: 36px; }
:root[lang="fa"] .bx-q { font-family: "Vazirmatn", sans-serif; font-style: normal; font-weight: 300; line-height: 1.9; font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); }
.bx-intro p { font-size: var(--s-0); line-height: 1.85; color: var(--ink); max-width: 38em; margin: 0 auto 18px; }
.bx-jump { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }

.bx-olive { background: var(--olive); color: var(--silk); padding-block: clamp(72px, 9vw, 136px); scroll-margin-top: var(--header-h); }
.bx-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 112px); align-items: center; }
.bx-row + .bx-row { margin-top: clamp(72px, 9vw, 128px); }
.bx-row-rev .bx-row-media { order: 2; }
.bx-row-media { aspect-ratio: 4 / 5; overflow: hidden; max-width: 460px; justify-self: center; width: 100%; }
.bx-row-media img { width: 100%; height: 100%; object-fit: cover; }
.bx-crop-top img { object-position: 50% 100%; }
.bx-row-text { max-width: 31em; }
.bx-h { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.8rem); line-height: 1.04; margin-bottom: 28px; }
:root[lang="fa"] .bx-h { font-family: "Vazirmatn", sans-serif; font-weight: 300; line-height: 1.5; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); }
.bx-row-text p { line-height: 1.85; margin-bottom: 18px; color: rgba(247, 243, 239, .86); }
.bx-steps-t { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 400; font-size: var(--s-2); text-align: center; margin: clamp(80px, 9vw, 128px) 0 40px; }
:root[lang="fa"] .bx-steps-t { font-family: "Vazirmatn", sans-serif; font-style: normal; font-weight: 300; }
.bx-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: st; }
.bx-steps li { border-top: 1px solid rgba(217, 195, 187, .45); padding-top: 22px; counter-increment: st; }
.bx-steps li::before { content: counter(st); display: block; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--brass-soft); margin-bottom: 14px; }
.bx-steps h4 { color: var(--silk); margin-bottom: 10px; }
.bx-steps p { color: rgba(247, 243, 239, .74); font-size: var(--s--1); line-height: 1.7; }

.bx-coll-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(40px, 5vw, 64px); }
.bx-coll-head .bx-h { color: var(--olive); margin-bottom: 14px; }
.bx-coll-head p { color: var(--muted); }
.br-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px clamp(16px, 2.5vw, 36px); }
.br-grid .pc-media { aspect-ratio: 4 / 5.4; }

.bx-words { background: var(--rose); color: #fff; padding-block: clamp(64px, 8vw, 112px); text-align: center; }
.bx-words-t { margin-bottom: 32px; }
.bx-quotes { display: grid; gap: 48px; max-width: 46rem; margin-inline: auto; }
.bx-quote blockquote { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); line-height: 1.35; }
.bx-quote figcaption { margin-top: 14px; font-size: var(--s--1); letter-spacing: .12em; }

.bx-invest { background: var(--silk-2); padding-block: clamp(72px, 9vw, 136px); scroll-margin-top: var(--header-h); }
.bx-invest-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.bx-invest-text { max-width: 34em; }
.bx-invest .bx-h { color: var(--olive); }
.bx-lead { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: var(--s-2); line-height: 1.3; color: var(--olive); margin-bottom: 24px; }
:root[lang="fa"] .bx-lead { font-family: "Vazirmatn", sans-serif; font-style: normal; font-size: var(--s-1); line-height: 1.9; }
.bx-invest-text p { line-height: 1.85; margin-bottom: 16px; }
.bx-invest-media { aspect-ratio: 361 / 525; overflow: hidden; max-width: 400px; width: 100%; }
.bx-invest-media img { width: 100%; height: 100%; object-fit: cover; }

.bx-close { padding-block: clamp(80px, 10vw, 152px); text-align: center; }
.bx-close-t { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.8rem); line-height: 1.25; color: var(--olive); max-width: 22em; margin: 0 auto 40px; }
:root[lang="fa"] .bx-close-t { font-family: "Vazirmatn", sans-serif; font-style: normal; font-weight: 300; line-height: 1.9; }
.bx-close .btn-row { justify-content: center; }
[data-theme="bridal"] .btn { padding-inline: 28px; }
[data-theme="bridal"] .btn-outline { border-color: var(--olive); color: var(--olive); }
[data-theme="bridal"] .btn-outline:hover { background: var(--olive); color: var(--silk); }

/* ---------- HAZARAGI PAGE ---------- */
.khamak-band { height: 24px; background: var(--khamak) repeat-x center / 48px 24px; }
.khamak-thin { height: 16px; background-size: 32px 16px; }
.hz-hero { background: #5C0D1A; color: var(--silk); }
.hz-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 7vw, 104px); }
.hz-callig { font-family: var(--font-callig); font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.8rem); line-height: 2; color: var(--brass-soft); margin: 0; direction: rtl; text-align: start; }
[dir="ltr"] .hz-callig { text-align: left; }
.hz-title { font-size: var(--s-5); color: var(--silk); font-weight: 500; }
:root[lang="fa"] .hz-callig { display: none; }
:root[lang="fa"] .hz-title { font-family: var(--font-callig); font-weight: 400; line-height: 2.1; font-size: clamp(2.6rem, 1.6rem + 4vw, 5.2rem); color: var(--brass-soft); }
.hz-hero .lead { color: rgba(245, 236, 221, .84); margin: 24px 0 36px; }
.hz-frame { justify-self: center; width: min(100%, 440px); padding: 14px; border-radius: 999px 999px 0 0; background: var(--khamak) repeat center / 48px 24px; }
.hz-frame-in { aspect-ratio: 3 / 4; }
.hz-craft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.hz-craft p { color: var(--muted); margin-top: 10px; max-width: 30em; }
.hz-swatch { aspect-ratio: 4 / 3; border-radius: 999px 999px 0 0; margin-bottom: 24px; border: 6px solid var(--ink); }
.swatch-khamak { background: var(--khamak-field) repeat center / 36px 36px; }
.swatch-geraf { background: var(--geraf) repeat center / 40px 40px; }
.hz-palette { list-style: none; aspect-ratio: 4 / 3; margin-bottom: 24px; display: grid; grid-template-columns: repeat(5, 1fr); border: 6px solid var(--ink); border-radius: 999px 999px 0 0; overflow: hidden; }
.hz-palette li { background: var(--c); position: relative; }
.hz-palette span { position: absolute; inset-inline: 0; bottom: 10px; text-align: center; font-size: .72rem; color: #fff; font-weight: 500; }
.hz-palette li:last-child span, .hz-palette li:nth-child(4) span { color: var(--ink); }
.hz-grid .pc-name { font-weight: 500; }
.hz-note { margin-top: 48px; padding: 18px 22px; background: var(--silk-2); border-inline-start: 4px solid var(--madder); max-width: 48em; font-size: var(--s--1); }
.hz-occasions { background: var(--moss); color: var(--silk); }
.hz-occasions .display { margin-bottom: 40px; }
.hz-occ-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.hz-occ-grid li { border-top: 3px solid var(--brass-soft); padding-top: 20px; }
.hz-occ-grid p { color: rgba(245, 236, 221, .76); font-size: var(--s--1); margin-top: 6px; }
:root[lang="fa"] [data-theme="hazaragi"] main .h-xl { font-family: var(--font-callig); font-weight: 400; line-height: 2; }

/* ---------- REPAIR PAGE ---------- */
.thread-band { height: 10px; background: var(--thread); }
.rp-hero { padding-block: clamp(32px, 5vw, 72px); }
.rp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rp-title { max-width: 9em; }
:root[lang="fa"] .rp-title { font-size: calc(var(--s-5) * .7); }
.rp-hero .lead { margin: 24px 0 12px; }
.rp-women { font-weight: 500; color: var(--madder); margin-bottom: 32px; }
.rp-hero-media { border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4; max-width: 480px; justify-self: end; width: 100%; }
.rp-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.rp-prices { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rp-prices-head { position: sticky; top: calc(var(--header-h) + 24px); }
.rp-prices-head .lead { margin-top: 16px; }
.rp-groups { display: grid; gap: 48px; }
.price-group-h { font-size: var(--s-1); font-weight: 500; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.price-list { list-style: none; }
.price-row { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; align-items: end; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-name span { display: block; font-weight: 500; }
.price-name small { display: block; color: var(--muted); font-size: var(--s--1); margin-top: 2px; }
.price-dots { border-bottom: 1px dotted var(--muted); margin-bottom: .45em; opacity: .6; }
.price-val { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-how-h { margin-bottom: clamp(32px, 5vw, 56px); }
.rp-steps { grid-template-columns: repeat(3, 1fr); }
.rp-post { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: clamp(28px, 4vw, 56px); border-radius: 24px; background: var(--paper); border: 1px solid var(--line); }
.rp-post .lead { margin-top: 12px; }

/* ---------- responsive (new sections) ---------- */
@media (max-width: 1060px) {
  .br-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hz-occ-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .worlds-grid { grid-template-columns: 1fr 1fr; }
  .world:nth-child(2) { margin-top: 48px; }
  .world:nth-child(3) { margin-top: 0; grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-items: center; }
  .world:nth-child(3) .world-media { grid-row: span 4; margin: 0; }
  .bx-row, .bx-invest-grid, .hz-hero-grid, .rp-hero-grid, .rp-prices { grid-template-columns: 1fr; }
  .bx-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .bx-row-rev .bx-row-media { order: 0; }
  .bx-invest-media { max-width: 360px; }
  .hz-craft-grid { grid-template-columns: 1fr 1fr; }
  .hz-frame { width: min(100%, 380px); }
  .rp-hero-media { justify-self: start; max-width: 420px; }
  .rp-prices-head { position: static; }
}
@media (max-width: 640px) {
  .brand .logo { height: 40px; }
  .brand-name { font-size: 1.12rem; }
  .brand-fa { display: none; }
  .worlds-grid { grid-template-columns: 1fr; }
  .world:nth-child(2) { margin-top: 0; }
  .world:nth-child(3) { grid-column: auto; display: flex; }
  .world:nth-child(3) .world-media { margin-bottom: 16px; }
  .bx-steps { grid-template-columns: 1fr; }
  .bx-tri { grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; width: calc(100% - 2 * var(--gutter)); }
  .bx-tri-side { margin-bottom: 18px; }
  .br-grid { grid-template-columns: 1fr 1fr; gap: 36px 14px; }
  .hz-craft-grid, .hz-occ-grid { grid-template-columns: 1fr; }
  .rp-steps { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .price-dots { display: none; }
}

/* ==========================================================================
   MORPH TRANSITIONS (View Transitions API)
   Between pages, photos that appear on both pages glide into their new place
   (category doors -> category hero, product cards -> product gallery); the
   header stays put and the rest of the page fades. Same-page changes
   (language, collection filter, gallery) use document.startViewTransition via
   Site.morph(). Browsers without support simply load the page as before.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .site-header { view-transition-name: vt-header; }
  .world-bridal .world-media, .bx-tri-main { view-transition-name: vt-bridal; }
  .world-hazaragi .world-media, .hz-frame { view-transition-name: vt-hazaragi; }
  .world-repair .world-media, .rp-hero-media { view-transition-name: vt-repair; }
  .bx-title, .hz-hero h1, .rp-hero h1 { view-transition-name: vt-title; }
  .pc-media, .gallery-main { view-transition-class: morph; }
  .world-media, .bx-tri-main, .hz-frame, .rp-hero-media { view-transition-class: morph; }

  ::view-transition-group(*) {
    animation-duration: .62s;
    animation-timing-function: cubic-bezier(.22, .74, .18, 1);
  }
  /* photos keep their crop while the frame changes size */
  ::view-transition-old(*.morph), ::view-transition-new(*.morph) {
    height: 100%; width: 100%; object-fit: cover; overflow: clip;
  }
  ::view-transition-group(*.morph) { overflow: clip; z-index: 2; }
  /* a photo that exists on only one of the two pages just fades */
  ::view-transition-old(*.morph):only-child { animation: vt-fade-out .22s ease both; }
  ::view-transition-new(*.morph):only-child { animation: vt-in .5s cubic-bezier(.22, .74, .18, 1) .1s both; }

  /* the page itself: old content settles away, new content rises in */
  ::view-transition-old(root) { animation: vt-out .32s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in .52s cubic-bezier(.22, .74, .18, 1) .08s both; }
  ::view-transition-old(vt-title) { animation: vt-out .28s ease both; }
  ::view-transition-new(vt-title) { animation: vt-in .6s cubic-bezier(.22, .74, .18, 1) .14s both; }
  ::view-transition-group(vt-title) { animation: none; }
  ::view-transition-group(vt-header) { z-index: 10; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px) scale(.995); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
