/* ==========================================================================
   MEGA SILK — Quiet Luxury Design System
   Bodoni Moda & Amiri · Instrument Sans & IBM Plex Sans Arabic
   Gold foil accents · Hairline rules · Alabaster & Shell tones
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..700;1,6..96,400..600&family=Instrument+Sans:wght@400;500;600&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --white: #FFFFFF;
  --shell: #FAF8F4;
  --ink: #14110D;
  --ink-60: #6E655A;
  --ink-30: #B3AA9D;
  --gold: #A8873F;
  --gold-lt: #C9A961;
  --gold-pale: #EFE4CC;
  --rule: #E6DFD2;

  --bg: var(--white);
  --fg: var(--ink);
  --muted: var(--ink-60);
  --faint: var(--ink-30);
  --line: var(--rule);
  --card: var(--shell);
  --field: #FFFFFF;

  --display: "Bodoni Moda", Georgia, serif;
  --ui: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 16px 36px -12px rgba(20, 17, 13, 0.08);
  --shadow-sm: 0 4px 14px rgba(20, 17, 13, 0.04);
}

:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --bg: #100E0B;
    --fg: #F3EFE8;
    --muted: #9C9284;
    --faint: #5E5547;
    --line: #302A22;
    --card: #181511;
    --gold: #C9A961;
    --gold-lt: #DFBE77;
    --gold-pale: #282116;
    --field: #14110D;
  }
}

:root[data-theme="dark"] {
  --bg: #100E0B;
  --fg: #F3EFE8;
  --muted: #9C9284;
  --faint: #5E5547;
  --line: #302A22;
  --card: #181511;
  --gold: #C9A961;
  --gold-lt: #DFBE77;
  --gold-pale: #282116;
  --field: #14110D;
}

html[dir="rtl"] {
  --display: "Amiri", Georgia, serif;
  --ui: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- announcement bar ---------- */
.bar {
  background: var(--card);
  border-block-end: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}
.bar span {
  display: inline-block;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  animation: slide 35s linear infinite;
}
html[dir="rtl"] .bar span { animation-direction: reverse; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- masthead / header ---------- */
.mast {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  z-index: 50;
  transition: background .3s var(--ease);
}
.mast .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 84px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  position: relative;
  text-decoration: none;
  color: var(--fg);
  display: inline-block;
}
.logo small {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .42em;
  margin-block-start: 3px;
  padding-inline-start: .15em;
  color: var(--gold);
}
.logo::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -9px;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: inline-start;
  animation: draw 1.1s .25s var(--ease) forwards;
}
@keyframes draw { to { transform: scaleX(1); } }

.nav {
  display: flex;
  gap: 12px;
  margin-inline: auto;
}
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 17px;
  color: var(--fg);
  position: relative;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform .35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--gold);
}
.nav a:hover::after, .nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: inline-start;
}

.acts {
  display: flex;
  gap: 8px;
  align-items: center;
}
button.t, a.t, .ico {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 11px 18px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
  z-index: 0;
}
button.t::before, a.t::before, .ico::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease);
  z-index: -1;
}
html[dir="rtl"] button.t::before, html[dir="rtl"] a.t::before, html[dir="rtl"] .ico::before {
  transform-origin: right;
}
button.t:hover, a.t:hover, .ico:hover {
  color: var(--white);
  border-color: var(--gold);
}
button.t:hover::before, a.t:hover::before, .ico:hover::before {
  transform: scaleX(1);
}
button.t[aria-pressed="true"], a.t[aria-pressed="true"] {
  border-color: var(--gold);
  color: var(--gold);
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}
.ico:hover .count {
  background: var(--ink);
}
.burger { display: none; }

@media(max-width: 900px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline-end: 0;
    z-index: 60;
    width: min(320px, 86vw);
    height: 100vh;
    background: var(--bg);
    border-inline-start: 1px solid var(--line);
    padding: 80px 24px 32px;
    flex-direction: column;
    gap: 12px;
    transform: translateX(105%);
    transition: transform .4s var(--ease);
  }
  html[dir="rtl"] .nav { transform: translateX(-105%); }
  .nav.open { transform: translateX(0); }
  .scrim {
    position: fixed;
    inset: 0;
    background: rgba(20, 17, 13, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease);
    z-index: 55;
  }
  .scrim.on { opacity: 1; pointer-events: auto; }
}

/* ---------- sections & gold rules ---------- */
section {
  padding: clamp(44px, 6vw, 84px) 0;
  position: relative;
}
section::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 1.15s var(--ease), background .5s .9s linear;
}
section.in::after {
  transform: scaleX(1);
  background: var(--line);
}
.sec-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: baseline;
  margin-block-end: 42px;
}
.sec-num {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.sec-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  margin: 0;
}
.note {
  color: var(--muted);
  font-size: 14px;
  max-width: 58ch;
  margin-block-start: 10px;
  line-height: 1.65;
}
.rise {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
section.in .rise {
  opacity: 1;
  transform: none;
}
section.in .rise:nth-child(2) { transition-delay: .09s; }

/* ---------- typography scale ---------- */
.d1 { font-family: var(--display); font-size: clamp(40px, 7vw, 78px); line-height: 1.02; letter-spacing: -.015em; font-weight: 400; }
.d2 { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); line-height: 1.12; font-weight: 400; }
.d3 { font-family: var(--display); font-size: 22px; line-height: 1.25; font-weight: 400; }
.body { font-size: 15px; line-height: 1.65; max-width: 62ch; }
.micro { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
em { font-style: italic; font-family: var(--display); }

/* ---------- buttons & links ---------- */
.btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  background: none;
  cursor: pointer;
  font-family: var(--ui);
  transition: color .34s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .42s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--white); }
.btn:hover::before { transform: scaleX(1); }
.btn-solid {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-solid::before {
  background: var(--ink);
  transform-origin: inline-start;
}
.btn-solid:hover { color: var(--white); }
.btn[disabled] {
  border-color: var(--line);
  color: var(--ink-30);
  cursor: not-allowed;
}
.btn[disabled]:hover::before { transform: scaleX(0); }
.lnk {
  position: relative;
  font-size: 13px;
  color: var(--fg);
  text-decoration: none;
  padding-block-end: 3px;
}
.lnk::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform .4s var(--ease);
}
.lnk:hover::after {
  transform: scaleX(1);
  transform-origin: inline-start;
}

/* ---------- pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 99px;
  background: none;
  margin-block-end: 12px;
}
.pill-flat {
  border-color: var(--line);
  color: var(--muted);
}

/* ---------- product grid & cards ---------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.pgrid.four {
  grid-template-columns: repeat(4, 1fr);
}
@media(max-width: 960px) {
  .pgrid.four { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 760px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 520px) {
  .pgrid, .pgrid.four { grid-template-columns: 1fr; }
}
.pcard {
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
  padding: 26px 26px 30px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background .45s var(--ease);
}
.pcard:hover {
  background: var(--card);
}
.pshot {
  aspect-ratio: 1/1;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block-end: 20px;
  overflow: hidden;
  font-size: 42px;
}
.pcard h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.25;
  margin: 0 0 5px;
  position: relative;
  display: inline-block;
  align-self: flex-start;
}
.pcard h3::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -3px;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform .45s var(--ease);
}
.pcard:hover h3::after {
  transform: scaleX(1);
}
.pcard .code {
  display: block;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.pcard .price {
  font-size: 14px;
  margin-block-start: auto;      /* bottom-aligned across the row */
  padding-block-start: 13px;
  color: var(--gold);
}
/* keep the swatch row at a fixed height so prices align even when a product
   has one colourway and its neighbour has four */
.pcard .dots {
  min-height: 16px;
  margin-block-start: 12px;
}
.dots {
  display: flex;
  gap: 7px;
  margin-block-start: 14px;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.tagit {
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-block-end: 8px;
  display: block;
}

/* ---------- PDP & variants ---------- */
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
@media(max-width: 760px) {
  .pdp { grid-template-columns: 1fr; }
}
.pdp > div {
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
  padding: 32px;
}
.field { margin-block-end: 28px; }
.field .lbl {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-block-end: 13px;
  display: flex;
  justify-content: space-between;
}
.opts { display: flex; gap: 11px; flex-wrap: wrap; }
.opt {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform .3s var(--ease);
}
.opt::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  transform: scale(.82);
  opacity: 0;
  transition: transform .34s var(--ease), opacity .34s var(--ease);
}
.opt[aria-pressed="true"]::after {
  transform: scale(1);
  opacity: 1;
}
.opt:hover { transform: translateY(-2px); }
.size {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 19px;
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.size:hover:not([disabled]) { border-color: var(--gold); }
.size[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.size[disabled] { color: var(--ink-30); cursor: not-allowed; text-decoration: line-through; }
.stock { font-size: 12px; color: var(--muted); margin-block-start: 15px; }

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  background: var(--card);
}
.ticker span {
  display: inline-block;
  font-family: var(--display);
  font-size: 22px;
  color: var(--gold);
  animation: slide 30s linear infinite;
}
html[dir="rtl"] .ticker span { animation-direction: reverse; }

/* ---------- panels & hairline grids ---------- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 42px);
}
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.split > div {
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
  padding: 32px;
}
@media(max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- features / cards ---------- */
.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.feat {
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
  padding: 32px 28px;
  transition: background .4s var(--ease);
}
.feat:hover {
  background: var(--card);
}
.feat .emo {
  font-size: 30px;
  display: block;
  margin-block-end: 18px;
}
.feat h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 10px;
}
.feat p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ---------- payment section ---------- */
.pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
@media(max-width: 720px) {
  .pay { grid-template-columns: 1fr; }
}
.paycard {
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
  padding: 36px 32px;
  transition: background .4s var(--ease);
}
.paycard:hover {
  background: var(--card);
}
.paycard .emo {
  font-size: 32px;
  display: block;
  margin-block-end: 16px;
}
.paycard h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 8px;
}
.paycard p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.65;
}
.cliq {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.cliq .alias {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold);
}
.cliq button.copy {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.cliq button.copy:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-inline-start: 1px solid var(--line);
  border-block: 1px solid var(--line);
  margin-block-start: 32px;
}
@media(max-width: 820px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  border-inline-end: 1px solid var(--line);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}
.step em {
  font-style: normal;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  flex: none;
}
.nope {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ---------- testimonials / quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
@media(max-width: 840px) {
  .quotes { grid-template-columns: 1fr; }
}
.quote {
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: background .4s var(--ease);
}
.quote:hover { background: var(--card); }
.quote .stars {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: .2em;
  margin-block-end: 16px;
}
.quote p {
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 24px;
  flex: 1;
}
.who {
  display: flex;
  align-items: center;
  gap: 12px;
  border-block-start: 1px solid var(--line);
  padding-block-start: 16px;
}
.who b { font-size: 13px; font-weight: 500; display: block; }
.who span { font-size: 11px; color: var(--muted); }

/* ---------- accordions ---------- */
.acc {
  border-block-end: 1px solid var(--line);
  background: none;
}
.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .3s var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  font-family: var(--ui);
  font-size: 20px;
  color: var(--gold);
  transition: transform .34s var(--ease);
  flex: none;
}
.acc[open] summary::after {
  transform: rotate(45deg);
}
.acc summary:hover {
  color: var(--gold);
}
.acc .in-acc {
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- forms & inputs ---------- */
.form { display: grid; gap: 20px; }
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media(max-width: 600px) {
  .row2 { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-block-end: 8px;
}
input, select, textarea {
  width: 100%;
  font-family: var(--ui);
  font-size: 14.5px;
  color: var(--fg);
  background: var(--field);
  border: 1px solid var(--line);
  padding: 13px 16px;
  outline: none;
  transition: border-color .3s var(--ease);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
}
.err {
  color: #B7466B;
  font-size: 12px;
  margin-block-start: 6px;
  display: none;
}
.field.bad input, .field.bad select, .field.bad textarea { border-color: #B7466B; }
.field.bad .err { display: block; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 99;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border: 1px solid var(--gold);
  font-size: 12.5px;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
:root[data-theme="dark"] .toast {
  background: #1D1814;
}
.toast.on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- footer ---------- */
footer.site {
  border-block-start: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  font-size: 13px;
  color: var(--muted);
}
.fgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-block-end: 48px;
}
@media(max-width: 860px) {
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 520px) {
  .fgrid { grid-template-columns: 1fr; }
}
.fgrid h4 {
  font-family: var(--ui);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.fgrid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fgrid li { margin-block-end: 10px; }
.fgrid a {
  text-decoration: none;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.fgrid a:hover { color: var(--gold); }
.fbot {
  border-block-start: 1px solid var(--line);
  padding-block-start: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11.5px;
  flex-wrap: wrap;
}

@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rise { opacity: 1; transform: none; }
  section::after { transform: scaleX(1); background: var(--line); }
  .logo::after { transform: scaleX(1); }
}

/* ==========================================================================
   Components added for the full storefront — same hairline/gold idiom
   ========================================================================== */

/* section rule: draws across in gold, then settles to a hairline */
.ruled::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.15s var(--ease), background .5s .9s linear;
}
html[dir="rtl"] .ruled::after { transform-origin: right; }
.ruled.in::after { transform: scaleX(1); background: var(--line); }

/* gold italic accent inside display headings */
.g { font-style: italic; color: var(--gold); }

/* photography inside any product frame */
.pshot img, .cat-shot img, .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .9s var(--ease);
}
.pcard:hover .pshot img { transform: scale(1.035); }
.was {
  font-size: 12px;
  color: var(--ink-30);
  text-decoration: line-through;
  margin-inline-start: 8px;
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 5vw, 68px) clamp(48px, 7vw, 90px); }
.hero-in {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 880px) { .hero-in { grid-template-columns: 1fr; } }
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 6px 0 0;
}
.hero .lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
  margin: 20px 0 30px;
}
.hero-art { margin: 0; position: relative; }
.hero-art img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}
.hero-art figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-block-start: 14px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-art figcaption span { position: relative; padding-inline-start: 14px; }
.hero-art figcaption span::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.stats { display: flex; flex-wrap: wrap; gap: 38px; }
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
}
.stat span {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- category tiles ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block-start: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cats { grid-template-columns: 1fr; } }
.cat {
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
  padding: 22px 22px 26px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background .45s var(--ease);
}
.cat:hover { background: var(--card); }
.cat-shot { aspect-ratio: 1/1; overflow: hidden; margin-block-end: 16px; background: var(--card); }
.cat:hover .cat-shot img { transform: scale(1.04); }
.cat h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 4px;
}
.cat p { margin: 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-block-end: 26px; }
.spacer { margin-inline-start: auto; }
.chip {
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 10px 17px;
  border-radius: 99px;
  cursor: pointer;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: var(--white); }

/* ---------- layout helpers ---------- */
.sticky { position: sticky; top: 96px; }
.btn-wide { width: 100%; }
.paytags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- order summary ---------- */
.sum {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 8px 0;
  color: var(--muted);
}
.sum b { color: var(--fg); font-weight: 500; }
.sum.total {
  font-family: var(--display);
  font-size: 22px;
  color: var(--fg);
  border-block-start: 1px solid var(--line);
  margin-block-start: 12px;
  padding-block-start: 16px;
}

/* ---------- cart lines ---------- */
.line {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-block-end: 1px solid var(--line);
}
.line:last-child { border-block-end: 0; }
.thumb { aspect-ratio: 1/1; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.line h4 { font-family: var(--display); font-weight: 400; font-size: 17px; margin: 0 0 3px; }
.vr { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  margin-block-start: 10px;
}
.qty button {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 15px;
  cursor: pointer;
  font-family: var(--ui);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.qty button:hover { background: var(--gold); color: var(--white); }
.qty span { min-width: 34px; text-align: center; font-size: 13px; }
.rm {
  background: none;
  border: 0;
  padding: 0;
  margin-block-start: 10px;
  color: var(--muted);
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.rm:hover { color: var(--gold); }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 64px 24px; }
.empty h3 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0 0 10px; }

/* ---------- misc ---------- */
.tick {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 11px;
  color: transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.paycard[aria-pressed="true"] .tick { background: var(--gold); border-color: var(--gold); color: var(--white); }
.av {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 15px;
  color: var(--gold);
  flex: none;
}

/* ========================================================================
   Sheet: page content sits on a sheet, over a tinted backdrop
   ======================================================================== */
:root{
  --tint:#ECE5D9;          /* warm greige backdrop */
  --sheet:#FFFFFF;         /* the sheet itself */
  --sheet-edge:#DED4C2;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){ --tint:#0A0807; --sheet:#15120E; --sheet-edge:#2A241C; }
}
:root[data-theme="dark"]{ --tint:#0A0807; --sheet:#15120E; --sheet-edge:#2A241C; }

body{ background:var(--tint); }

/* the masthead joins the backdrop so the sheet reads as a separate surface */
.mast{ background:color-mix(in srgb, var(--tint) 86%, transparent); border-block-end:3px solid var(--sheet-edge); }

.sheet{
  display:block;
  background:var(--sheet);
  max-width:1180px;   /* leaves margins for the scattered products */
  margin:28px auto 56px;
  border:3px solid var(--sheet-edge);
  box-shadow:0 1px 2px rgba(20,17,13,.04), 0 18px 50px -24px rgba(20,17,13,.18);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .sheet{ box-shadow:0 18px 50px -24px rgba(0,0,0,.6); }
}
:root[data-theme="dark"] .sheet{ box-shadow:0 18px 50px -24px rgba(0,0,0,.6); }

/* breathing room inside the sheet, and no rule bleeding off its edge */
.sheet > section{ padding-inline:clamp(0px,2.4vw,34px); }
.sheet > section:last-child::after{ display:none; }

@media (max-width:860px){
  .sheet{ margin:14px 14px 34px; }
}
@media (max-width:560px){
  .sheet{ margin:0 0 24px; border-inline:0; }
}


/* ---- thicker rules inside the sheet ---- */
.sheet .ruled::after{ height:3px; }
.sheet .pgrid,
.sheet .cats,
.sheet .feats,
.sheet .pay{ border-block-start-width:3px; border-inline-start-width:3px; }
.sheet .pcard,
.sheet .cat,
.sheet .feat,
.sheet .paycard{ border-inline-end-width:3px; border-block-end-width:3px; }
.sheet .panel{ border-width:3px; }
.sheet .step{ border-inline-end-width:3px; }
.sheet .pill{ border-width:2px; }

/* the footer belongs to the backdrop, not the sheet */
footer.site{ background:transparent; border-block-start:3px solid var(--sheet-edge); }


/* ---- icon-only header actions ---- */
.ic {
  width: 21px;
  height: 21px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.t.t-ico, button.t.t-ico { padding: 11px 13px; overflow: visible; }
.t-ico .count {
  position: absolute;
  top: -7px;
  inset-inline-end: -7px;
  border: 1px solid var(--bg);
  pointer-events: none;
}

/* ==========================================================================
   Motion — restrained, and every piece opts out under reduced-motion
   ========================================================================== */

/* 1. photographs fade in as they decode, instead of popping ---------------- */
.pshot img, .cat-shot img, .thumb img, .hero-art img,
.gal .main img, .gal .strip img, .mini .t img {
  opacity: 0;
  transition: opacity .55s var(--ease), transform .9s var(--ease);
}
.pshot img.is-in, .cat-shot img.is-in, .thumb img.is-in, .hero-art img.is-in,
.gal .main img.is-in, .gal .strip img.is-in, .mini .t img.is-in { opacity: 1; }

/* 2. the sheet settles in on load ----------------------------------------- */
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px); } }
.sheet { animation: sheet-in .7s var(--ease) both; }

/* 3. masthead condenses once you leave the top ---------------------------- */
.mast { transition: box-shadow .45s var(--ease); }
.mast .wrap { transition: min-height .45s var(--ease); }
.logo { transition: font-size .45s var(--ease); }
.mast.is-stuck .wrap { min-height: 64px; }
.mast.is-stuck .logo { font-size: 27px; }
.mast.is-stuck { box-shadow: 0 10px 30px -22px rgba(20, 17, 13, .55); }

/* 4. reading progress, hairline thin -------------------------------------- */
.prog {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  z-index: 60;
  transition: width .12s linear, opacity .3s var(--ease);
  pointer-events: none;
}

/* 5. grids arrive one tile after another ---------------------------------- */
.pgrid .pcard, .cats .cat, .feats .feat, .quotes .quote {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.in .pgrid .pcard, .in .cats .cat, .in .feats .feat, .in .quotes .quote {
  opacity: 1;
  transform: none;
}
.in .pgrid .pcard:nth-child(1), .in .cats .cat:nth-child(1), .in .feats .feat:nth-child(1), .in .quotes .quote:nth-child(1) { transition-delay: .04s; }
.in .pgrid .pcard:nth-child(2), .in .cats .cat:nth-child(2), .in .feats .feat:nth-child(2), .in .quotes .quote:nth-child(2) { transition-delay: .10s; }
.in .pgrid .pcard:nth-child(3), .in .cats .cat:nth-child(3), .in .feats .feat:nth-child(3), .in .quotes .quote:nth-child(3) { transition-delay: .16s; }
.in .pgrid .pcard:nth-child(4), .in .cats .cat:nth-child(4), .in .feats .feat:nth-child(4) { transition-delay: .22s; }
.in .pgrid .pcard:nth-child(5) { transition-delay: .26s; }
.in .pgrid .pcard:nth-child(6) { transition-delay: .30s; }
.in .pgrid .pcard:nth-child(7) { transition-delay: .33s; }
.in .pgrid .pcard:nth-child(n+8) { transition-delay: .36s; }

/* 6. the bag count acknowledges an addition ------------------------------- */
@keyframes count-pop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.count.is-pop { animation: count-pop .45s var(--ease); }

/* 7. marquee holds still if you want to read it --------------------------- */
.ticker:hover span { animation-play-state: paused; }

/* 8. gentle lift on the things you can click ------------------------------ */
.pcard, .cat { transition: background .45s var(--ease), transform .45s var(--ease); }
.pcard:hover, .cat:hover { transform: translateY(-3px); }
.opt, .size { transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.opt:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .sheet { animation: none; }
  .pshot img, .cat-shot img, .thumb img, .hero-art img,
  .gal .main img, .gal .strip img, .mini .t img { opacity: 1; }
  .pgrid .pcard, .cats .cat, .feats .feat, .quotes .quote { opacity: 1; transform: none; transition: none; }
  .pcard:hover, .cat:hover, .opt:hover { transform: none; }
  .count.is-pop { animation: none; }
  .prog { display: none; }
}

/* ==========================================================================
   Scattered products behind the sheet — built by MS.scatter(), shuffled per page
   ========================================================================== */
.scatter{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  overflow:hidden;
  display:none;                      /* only where there is margin to show it */
}
@media (min-width:1500px){ .scatter{ display:block; } }
.scatter img{
  position:absolute;
  opacity:.4;
  filter:saturate(.8);
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .scatter img{ opacity:.3; } }
:root[data-theme="dark"] .scatter img{ opacity:.3; }
@media (prefers-reduced-motion: reduce){ .scatter img{ transform:none !important; } }

/* the real wordmark (assets/img/brand/logo.png) replaces the typed logo */
.logo img{ display:block; height:52px; width:auto; }
.logo::after{ display:none; }
footer.site .logo img{ height:44px; }
