/* =========================================================
   سجاد النافع — Alnafe Carpets
   Editorial dark theme • RTL • mobile-first
   ========================================================= */

:root {
  --ink: #0E0C0A;
  --ink-2: #15120F;
  --ink-3: #1F1A15;
  --cream: #F3EBDD;
  --sand: #E9DFCC;
  --paper: #F6F0E4;
  --muted: rgba(243, 235, 221, .64);
  --faint: rgba(243, 235, 221, .38);
  --line: rgba(243, 235, 221, .12);
  --line-2: rgba(243, 235, 221, .22);
  --gold: #E7A33E;
  --gold-2: #C98A2B;
  --wine: #8E1B1B;
  --wa: #1FA855;

  --f-display: "Amiri", "Times New Roman", serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --f-latin: "Cormorant Garamond", Georgia, serif;

  --wrap: 1320px;
  --pad: clamp(18px, 4.2vw, 56px);
  --sec: clamp(72px, 10vw, 140px);
  --r: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
svg { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.stats dt, .pm__price b, .total b, .info__num, .chip sup, .eyebrow__n, .drawer__head h3 span { font-variant-numeric: lining-nums tabular-nums; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; }
.skip:focus { top: 12px; }
.br-m { display: none; }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .82rem; letter-spacing: .02em; color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow__n {
  font-family: var(--f-latin); font-style: italic; font-size: 1.15rem;
  color: var(--gold); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow__n::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow--dark { color: rgba(14, 12, 10, .62); }
.eyebrow--dark .eyebrow__n { color: var(--wine); }

.sec-title {
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -.005em;
}
.sec-lead { color: var(--muted); max-width: 46ch; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 5vw, 60px);
  padding-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding-inline: 26px;
  border-radius: var(--r);
  font-weight: 500; font-size: .96rem; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .ico-wa { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--cream); }
.btn--line { border: 1px solid var(--line-2); color: var(--cream); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #17924A; }
.btn--lg { --h: 58px; padding-inline: 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--gold); color: var(--ink);
  font-size: .8rem; font-weight: 500;
  overflow: hidden; white-space: nowrap; height: 34px;
  display: flex; align-items: center;
}
.topbar__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; padding-inline-start: 28px; }
.topbar__track i { width: 5px; height: 5px; background: currentColor; transform: rotate(45deg); flex: none; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
/* blur lives on a pseudo-element so it doesn't trap the fixed mobile menu */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(14, 12, 10, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  transition: background .3s;
}
.header.is-scrolled { border-color: var(--line); }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 32px; height: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.25; gap: 1px; }
.brand__txt b { font-family: var(--f-display); font-size: 1.32rem; font-weight: 700; }
.brand__txt em { font-family: var(--f-latin); font-size: .82rem; color: var(--gold); letter-spacing: .08em; font-style: italic; }

.nav { display: flex; gap: clamp(18px, 2.4vw, 38px); font-size: .93rem; }
.nav a { position: relative; color: var(--muted); padding-block: 6px; transition: color .25s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--cream); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__act { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding-inline: 14px 10px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: .9rem; transition: border-color .25s;
}
.cart-btn:hover { border-color: var(--gold); }
.cart-btn svg { width: 19px; height: 19px; }
.cart-count {
  min-width: 22px; height: 22px; padding-inline: 6px;
  display: grid; place-items: center;
  background: var(--gold); color: var(--ink); font-size: .74rem; font-weight: 700; border-radius: 11px;
  transition: transform .3s var(--ease);
}
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r); position: relative; }
.burger span { position: absolute; inset-inline: 11px; height: 1.5px; background: var(--cream); transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 120px); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: url("../img/contours.svg") center / cover no-repeat;
  opacity: .07;
  mask-image: radial-gradient(120% 90% at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 30% 40%, #000 30%, transparent 75%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  line-height: 1.18;
  margin-bottom: clamp(20px, 2.4vw, 30px);
}
.hero__title-em { color: var(--gold); font-style: italic; }
.hero__lead { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 50ch; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(36px, 5vw, 56px); }

.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.stats div { padding-inline: 0 clamp(18px, 3vw, 40px); margin-inline-end: clamp(18px, 3vw, 40px); border-inline-end: 1px solid var(--line); }
.stats div:last-child { border: 0; margin: 0; padding: 0; }
.stats dt { font-family: var(--f-latin); font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 500; line-height: 1; color: var(--cream); direction: ltr; text-align: right; }
.stats dd { margin: 8px 0 0; font-size: .8rem; color: var(--faint); }

.hero__media { position: relative; padding-block-end: 12%; padding-inline-start: 0; }
.hero__main { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.hero__main::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(243, 235, 221, .35); pointer-events: none; }
.hero__main img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: slowzoom 14s var(--ease) forwards; }
@keyframes slowzoom { to { transform: scale(1); } }
.hero__small {
  position: absolute; bottom: 0; inset-inline-start: -14%;
  width: 44%; aspect-ratio: 1; margin: 0;
  border: 8px solid var(--ink); overflow: hidden;
}
.hero__small img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; top: 8%; inset-inline-end: -18px;
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); color: var(--ink);
  padding: 12px 16px; font-size: .86rem; font-weight: 600; line-height: 1.3;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
}
.hero__badge small { font-weight: 400; color: rgba(14, 12, 10, .6); }
.hero__caption {
  position: absolute; bottom: 4%; inset-inline-end: 0;
  font-family: var(--f-latin); font-size: .95rem; color: var(--faint); direction: ltr;
}

/* ---------- ribbon ---------- */
.ribbon { border-block: 1px solid var(--line); overflow: hidden; padding-block: 18px; }
.ribbon__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 40s linear infinite; }
.ribbon__track span { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--cream); white-space: nowrap; }
.ribbon__track b { color: var(--gold); font-weight: 400; font-size: .9rem; }

/* ---------- sections ---------- */
.section { padding-block: var(--sec); position: relative; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: clamp(26px, 3.4vw, 40px); }
.chip {
  height: 40px; padding-inline: 18px;
  border: 1px solid var(--line-2); border-radius: 20px;
  font-size: .9rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .25s var(--ease);
}
.chip sup { font-family: var(--f-latin); font-size: .8rem; color: var(--faint); top: 0; }
.chip:hover { color: var(--cream); border-color: var(--cream); }
.chip[aria-selected="true"] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.chip[aria-selected="true"] sup { color: rgba(14, 12, 10, .5); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px); }
.card { position: relative; cursor: pointer; text-align: start; display: flex; flex-direction: column; animation: cardIn .6s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-3); margin-bottom: 16px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s; }
.card__media::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(231, 163, 62, 0); transition: border-color .4s var(--ease), inset .4s var(--ease); pointer-events: none; }
.card:hover .card__media img { transform: scale(1.05); }
.card:hover .card__media::after { inset: 14px; border-color: rgba(231, 163, 62, .85); }
.card--round .card__media { background: radial-gradient(circle at 50% 50%, var(--ink-3), var(--ink-2)); }
.card--round .card__media img { width: 84%; height: auto; aspect-ratio: 1; margin: 10% auto 0; border-radius: 50%; }

.card__tag {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1;
  background: var(--ink); color: var(--gold);
  font-size: .72rem; font-weight: 500; padding: 4px 10px; letter-spacing: .02em;
}
.card__view {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--cream); color: var(--ink);
  font-size: .86rem; font-weight: 600;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.card__view svg { width: 18px; height: 18px; }
.card:hover .card__view, .card:focus-visible .card__view { transform: translateY(0); }

.card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card__name { font-family: var(--f-display); font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.3; }
.card__price { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.card__price b { color: var(--cream); font-weight: 600; font-size: .95rem; }
.card__meta { font-size: .8rem; color: var(--faint); margin-top: 2px; }
.card__sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.card__sizes span { font-size: .72rem; padding: 2px 8px; border: 1px solid var(--line-2); color: var(--muted); border-radius: 2px; font-variant-numeric: tabular-nums; direction: ltr; }
.card__dots { display: flex; gap: 4px; margin-top: 10px; }
.card__dots i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-2); }

/* ---------- size guide ---------- */
.sizes { background: var(--paper); color: var(--ink); }
.sizes .sec-lead { color: rgba(14, 12, 10, .68); }
.sizes .sec-lead b { color: var(--ink); }
.sizes__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.sizes__copy .sec-title { margin-bottom: 18px; }

.size-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-block: 30px 22px; }
.size-opt {
  height: 54px; border: 1px solid rgba(14, 12, 10, .2); border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2;
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: .92rem; direction: ltr;
  transition: all .25s var(--ease);
}
.size-opt small { font-weight: 400; font-size: .68rem; color: rgba(14, 12, 10, .5); font-family: var(--f-body); }
.size-opt:hover { border-color: var(--ink); }
.size-opt[aria-checked="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.size-opt[aria-checked="true"] small { color: var(--gold); }

.size-info { display: grid; grid-template-columns: auto auto 1fr; border-block: 1px solid rgba(14, 12, 10, .14); }
.size-info div { padding: 14px 0; padding-inline-end: 20px; margin-inline-end: 20px; border-inline-end: 1px solid rgba(14, 12, 10, .14); }
.size-info div:last-child { border: 0; margin: 0; padding-inline-end: 0; }
.size-info span { display: block; font-size: .74rem; color: rgba(14, 12, 10, .55); }
.size-info b { font-weight: 600; font-size: .95rem; }
.sizes__note { margin-top: 20px; font-size: .9rem; color: rgba(14, 12, 10, .7); }
.sizes__note a { color: var(--wine); border-bottom: 1px solid currentColor; font-weight: 500; }

.room { position: relative; }
.room__svg { width: 100%; height: auto; overflow: visible; stroke-linecap: butt; }
.room__svg rect, .room__svg path { stroke-linecap: butt; }
#rug, #rugInner { transition: x .7s var(--ease), y .7s var(--ease), width .7s var(--ease), height .7s var(--ease), rx .7s var(--ease), ry .7s var(--ease); }
.furn rect { fill: #0E0C0A; fill-opacity: .88; stroke: none; }
.furn .furn__back { fill: #2A241E; fill-opacity: 1; }
.furn .furn__seam { stroke: #F6F0E4; stroke-opacity: .25; stroke-width: 1.2; }
.furn .furn__table { fill: #B5833D; fill-opacity: .9; }
.dim path { stroke: var(--wine); stroke-width: 1.2; transition: d .7s var(--ease); }
.dim text { font-family: var(--f-body); font-size: 13px; font-weight: 600; fill: var(--wine); stroke: none; transition: all .7s var(--ease); }
.room__lbl { font-family: var(--f-body); font-size: 12px; fill: rgba(14, 12, 10, .5); stroke: none; }
.room__legend { display: flex; align-items: center; gap: 8px 10px; margin-top: 14px; font-size: .8rem; color: rgba(14, 12, 10, .6); }
.room__legend i { width: 14px; height: 10px; display: inline-block; }
.room__legend i + i, .room__legend i:not(:first-child) { margin-inline-start: 10px; }
.lg-rug { background: var(--wine); outline: 1.5px solid var(--gold); }
.lg-furn { background: var(--ink); }

/* ---------- how ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.step { padding: clamp(24px, 3vw, 40px); padding-inline-start: 0; border-inline-end: 1px solid var(--line); position: relative; }
.step:not(:first-child) { padding-inline-start: clamp(24px, 3vw, 40px); }
.step:last-child { border: 0; }
.step__n { display: block; font-family: var(--f-display); font-size: clamp(3.6rem, 6vw, 5.4rem); line-height: 1; color: var(--gold); margin-bottom: 18px; }
.step h3 { font-family: var(--f-display); font-size: clamp(1.4rem, 2vw, 1.75rem); margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 32ch; }

/* ---------- homes ---------- */
.homes { padding-top: 0; }
.homes__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(140px, 16vw, 230px); gap: clamp(8px, 1.2vw, 16px); }
.home { position: relative; overflow: hidden; margin: 0; background: var(--ink-3); }
.home img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.home:hover img { transform: scale(1.05); }
.home figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(14, 12, 10, .85), transparent);
  font-size: .82rem; color: var(--cream);
}
.home:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.home:nth-child(2) { grid-column: span 5; }
.home:nth-child(3) { grid-column: span 5; }
.home:nth-child(4) { grid-column: span 4; }
.home:nth-child(5) { grid-column: span 4; }
.home:nth-child(6) { grid-column: span 4; }

/* ---------- visit ---------- */
.visit { background: var(--ink-2); border-top: 1px solid var(--line); overflow: hidden; }
.visit__bg { position: absolute; inset: 0; background: url("../img/contours.svg") center / cover no-repeat; opacity: .05; }
.visit__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.visit .sec-title { margin-bottom: 20px; }
.visit .sec-lead { margin-bottom: 32px; }
.visit__note { margin-top: 14px; font-size: .84rem; color: var(--faint); }

.info { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.info li { display: grid; grid-template-columns: 120px 1fr; gap: 6px 20px; padding-block: 20px; border-bottom: 1px solid var(--line); align-items: baseline; }
.info__k { font-size: .8rem; color: var(--faint); }
.info__v { font-size: 1.02rem; }
.info__num { font-family: var(--f-latin); font-size: 1.5rem; font-weight: 500; text-align: right; justify-self: start; color: var(--gold); }
.info__a { grid-column: 2; font-size: .84rem; color: var(--gold); }
.info__social { display: flex !important; flex-wrap: wrap; gap: 10px !important; }
.info__social a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding-inline: 14px; border: 1px solid var(--line-2); font-size: .86rem; font-family: var(--f-latin); font-size: 1rem; transition: border-color .25s, color .25s; }
.info__social a:hover { border-color: var(--gold); color: var(--gold); }
.info__social svg { width: 18px; height: 18px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 36px; font-size: .84rem; color: var(--faint); }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.brand--foot .brand__txt b { color: var(--cream); font-size: 1.15rem; }

/* ---------- mobile bar ---------- */
.mbar { display: none; }

/* ---------- product modal ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 60; }
.modal[hidden], .drawer[hidden] { display: none; }
.modal__scrim, .drawer__scrim { position: absolute; inset: 0; background: rgba(6, 5, 4, .72); animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal__panel {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: min(1080px, calc(100% - 48px)); max-height: calc(100dvh - 48px);
  background: var(--ink-2); border: 1px solid var(--line);
  overflow: auto; overscroll-behavior: contain;
  animation: pop .45s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }
.x { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line-2); border-radius: 50%; transition: border-color .25s; }
.x:hover { border-color: var(--gold); }
.x svg { width: 18px; height: 18px; }

.pm { display: grid; grid-template-columns: 1.05fr 1fr; }
.pm__media { background: var(--ink-3); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.pm__main { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.pm__main img { width: 100%; height: 100%; object-fit: cover; animation: fade .5s var(--ease); }
.pm__main.is-round { display: grid; place-items: center; }
.pm__main.is-round img { width: 88%; height: auto; aspect-ratio: 1; border-radius: 50%; }
.pm__thumbs { display: flex; gap: 8px; }
.pm__thumbs:empty { display: none; }
.pm__thumbs button { width: 68px; aspect-ratio: 1; overflow: hidden; opacity: .5; border: 1px solid transparent; transition: opacity .25s, border-color .25s; }
.pm__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold); }
.pm__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pm__body { padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; }
.pm__cat { font-size: .8rem; color: var(--gold); margin-bottom: 6px; }
.pm__name { font-family: var(--f-display); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.15; margin-bottom: 12px; padding-inline-end: 44px; }
.pm__desc { color: var(--muted); margin-bottom: 22px; }
.pm__meta { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--line); }
.pm__meta li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.pm__meta span { color: var(--faint); }
.pm__meta b { font-weight: 500; }
.swatches { display: inline-flex; gap: 6px; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); }

.pm__label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-weight: 500; }
.pm__label small { color: var(--faint); font-weight: 400; }
.pm__guide { font-size: .82rem; color: var(--gold); border-bottom: 1px solid currentColor; }
.pm__sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 22px; }
.psize {
  padding: 10px 8px; border: 1px solid var(--line-2); border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.3;
  transition: all .25s var(--ease);
}
.psize b { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .98rem; direction: ltr; }
.psize small { font-size: .74rem; color: var(--faint); }
.psize:hover { border-color: var(--cream); }
.psize[aria-checked="true"] { border-color: var(--gold); background: rgba(231, 163, 62, .1); }
.psize[aria-checked="true"] small { color: var(--gold); }

.pm__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); height: 48px; border-radius: var(--r); }
.qty button { width: 44px; height: 100%; font-size: 1.2rem; color: var(--muted); transition: color .2s; }
.qty button:hover { color: var(--gold); }
.qty output { min-width: 32px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.pm__price { text-align: end; line-height: 1.2; }
.pm__price small { display: block; font-size: .76rem; color: var(--faint); }
.pm__price b { font-family: var(--f-latin); font-size: 2rem; font-weight: 500; color: var(--cream); }
.pm__price b span { font-family: var(--f-body); font-size: .9rem; color: var(--muted); margin-inline-start: 4px; }
.pm__actions { display: grid; gap: 10px; margin-top: auto; }
.pm__fine { margin-top: 12px; font-size: .76rem; color: var(--faint); text-align: center; }

/* ---------- drawer ---------- */
.drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: min(460px, 100%);
  background: var(--ink-2); border-inline-start: 1px solid var(--line);
  display: flex; flex-direction: column;
  animation: slideIn .45s var(--ease);
}
@keyframes slideIn { from { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-family: var(--f-display); font-size: 1.8rem; }
.drawer__head h3 span { font-family: var(--f-latin); font-size: 1.1rem; color: var(--gold); }
.drawer__head .x { position: static; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 24px 24px; overscroll-behavior: contain; }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: start; animation: cardIn .4s var(--ease) both; }
.line__img { width: 76px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ink-3); }
.line__name { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.3; }
.line__sub { font-size: .8rem; color: var(--faint); margin-top: 2px; }
.line__sub b { color: var(--muted); font-weight: 500; direction: ltr; display: inline-block; }
.line .qty { height: 34px; margin-top: 10px; }
.line .qty button { width: 32px; font-size: 1rem; }
.line .qty output { min-width: 22px; font-size: .9rem; }
.line__side { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.line__price { font-weight: 600; font-size: .92rem; white-space: nowrap; }
.line__rm { font-size: .76rem; color: var(--faint); border-bottom: 1px solid currentColor; }
.line__rm:hover { color: #E46A5E; }

.empty { display: none; text-align: center; padding: 60px 10px 30px; color: var(--muted); }
.empty img { margin: 0 auto 18px; opacity: .6; }
.empty p { margin-bottom: 20px; }
.drawer.is-empty .empty { display: block; }
.drawer.is-empty .cform, .drawer.is-empty .drawer__foot { display: none; }

.cform { margin-top: 24px; display: grid; gap: 12px; }
.cform__t { font-weight: 500; }
.cform__t small { color: var(--faint); font-weight: 400; }
.cform label { display: grid; gap: 6px; }
.cform label span { font-size: .78rem; color: var(--faint); }
.cform input, .cform textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 12px 14px; font-size: 16px; resize: vertical; transition: border-color .25s;
}
.cform input::placeholder, .cform textarea::placeholder { color: rgba(243, 235, 221, .28); }
.cform input:focus, .cform textarea:focus { outline: 0; border-color: var(--gold); }

.drawer__foot { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ink-2); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.total span { color: var(--muted); font-size: .9rem; }
.total b { font-family: var(--f-latin); font-size: 1.9rem; font-weight: 500; }
.total b small { font-family: var(--f-body); font-size: .85rem; color: var(--muted); margin-inline-start: 4px; }
.drawer__fine { margin-top: 10px; font-size: .74rem; color: var(--faint); text-align: center; line-height: 1.6; }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; bottom: 28px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--cream); color: var(--ink);
  padding: 12px 18px; font-size: .9rem; font-weight: 500;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: var(--wine); font-weight: 700; border-bottom: 1px solid currentColor; white-space: nowrap; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .08s; }
.hero .reveal:nth-child(3) { transition-delay: .16s; }
.hero .reveal:nth-child(4) { transition-delay: .24s; }
.hero .reveal:nth-child(5) { transition-delay: .32s; }
.steps .reveal:nth-child(2) { transition-delay: .1s; }
.steps .reveal:nth-child(3) { transition-delay: .2s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero__small { inset-inline-start: -6%; }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .nav {
    position: fixed; inset: var(--nav-top, 98px) 0 0 0; z-index: 39; overflow-y: auto;
    flex-direction: column; gap: 0;
    background: var(--ink); padding: 20px var(--pad);
    font-size: 1.5rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav a { font-family: var(--f-display); color: var(--cream); padding-block: 16px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .header.nav-open::before { background: var(--ink); }
  .burger { display: block; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; width: 100%; margin-inline: auto; padding-inline-start: 10%; padding-block-end: 16%; }
  .hero__small { inset-inline-start: 0; width: 40%; }
  .hero__badge { inset-inline-end: 0; }
  .hero__caption { display: none; }

  .sizes__grid { grid-template-columns: 1fr; }
  .room { order: -1; max-width: 620px; width: 100%; margin-inline: auto; }

  .visit__grid { grid-template-columns: 1fr; }

  .pm { grid-template-columns: 1fr; }
  .pm__media { padding: 0; }
  .pm__main { aspect-ratio: 4 / 3.4; }
  .pm__thumbs { padding: 0 16px 14px; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .br-m { display: inline; }
  .cart-btn__lbl { display: none; }
  .cart-btn { padding-inline: 10px; }

  .hero { padding-top: 34px; }
  .hero__media { margin-top: 8px; }
  .hero__title { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero__cta .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div { padding-inline-end: 12px; margin-inline-end: 12px; }
  .stats dt { font-size: 1.5rem; }
  .stats dd { font-size: .72rem; line-height: 1.4; }

  .sec-head { flex-direction: column; align-items: flex-start; }

  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .card__media { margin-bottom: 12px; }
  .card__view { display: none; }
  .card__row { flex-direction: column; align-items: flex-start; gap: 0; }
  .card__name { font-size: 1.12rem; }
  .card__price { order: 3; margin-top: 4px; font-size: .78rem; }
  .card__meta { font-size: .74rem; }
  .card__sizes { margin-top: 8px; gap: 4px; }
  .card__sizes span { font-size: .66rem; padding: 1px 6px; direction: ltr; }
  .card__dots { display: none; }
  .card__tag { top: 8px; inset-inline-start: 8px; font-size: .66rem; padding: 3px 8px; }

  .size-picker { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .size-opt { height: 50px; font-size: .8rem; }
  .size-opt small { font-size: .6rem; }
  .size-info { grid-template-columns: 1fr 1fr; }
  .size-info div:nth-child(2) { border: 0; margin: 0; }
  .size-info div:last-child { grid-column: 1 / -1; border-top: 1px solid rgba(14, 12, 10, .14); }

  .steps { grid-template-columns: 1fr; }
  .step, .step:not(:first-child) { padding: 26px 0; border-inline-end: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; }
  .step:last-child { border-bottom: 0; }
  .step__n { grid-row: span 2; font-size: 3.4rem; margin: 0; }

  .homes__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .home:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .home:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .home:nth-child(1) { height: auto; }
  .home figcaption { font-size: .72rem; padding: 30px 10px 8px; }

  .info li { grid-template-columns: 1fr; gap: 4px; padding-block: 16px; }
  .info__a { grid-column: 1; }

  .footer__in { flex-direction: column; align-items: flex-start; }

  /* mobile bottom bar */
  .mbar {
    display: flex; gap: 8px;
    position: fixed; z-index: 45; inset-inline: 0; bottom: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(14, 12, 10, .94);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transition: transform .35s var(--ease);
  }
  .mbar.hide { transform: translateY(110%); }
  .mbar__cart {
    flex: 1; height: 50px; display: flex; align-items: center; gap: 10px; padding-inline: 16px;
    background: var(--gold); color: var(--ink); border-radius: var(--r); font-size: .92rem;
  }
  .mbar__cart span { font-weight: 700; }
  .mbar__cart b { font-weight: 400; opacity: .75; font-size: .82rem; }
  .mbar__cart em { margin-inline-start: auto; font-style: normal; font-weight: 700; }
  .mbar__wa { width: 50px; height: 50px; display: grid; place-items: center; background: var(--wa); color: #fff; border-radius: var(--r); flex: none; }
  .mbar__wa svg { width: 24px; height: 24px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* bottom-sheet modal */
  .modal__panel {
    inset: auto 0 0 0; transform: none; width: 100%;
    max-height: 94dvh; border: 0; border-top: 1px solid var(--line-2);
    border-radius: 14px 14px 0 0;
    animation: sheet .45s var(--ease);
  }
  @keyframes sheet { from { transform: translateY(100%); } }
  .pm__main { aspect-ratio: 1 / 1; }
  .pm__body { padding: 22px 18px 0; }
  .pm__actions {
    position: sticky; bottom: 0; z-index: 2;
    margin-inline: -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    background: var(--ink-2); border-top: 1px solid var(--line);
    grid-template-columns: 1fr auto;
  }
  .pm__actions #pmBuy { width: 52px; padding: 0; font-size: 0; gap: 0; }
  .pm__actions #pmBuy svg { width: 22px; height: 22px; }
  .pm__fine { order: 9; margin: 0 0 14px; text-align: start; }
  .pm__actions { order: 10; }
  .pm__sizes { grid-template-columns: repeat(3, 1fr); }
  .x { top: 12px; inset-inline-end: 12px; background: rgba(14, 12, 10, .7); }
  .modal__panel { scrollbar-width: none; }
  .modal__panel::-webkit-scrollbar { display: none; }

  .drawer__panel { width: 100%; border: 0; }
  .drawer__head, .drawer__body { padding-inline: 18px; }
  .drawer__foot { padding-inline: 18px; }
}

@media (max-width: 380px) {
  .brand__txt em { display: none; }
  .hero__cta { flex-direction: column; }
  .grid { gap: 22px 10px; }
  .size-picker { grid-template-columns: repeat(2, 1fr); }
  .stats dd { font-size: .66rem; }
}

@media (min-width: 1600px) {
  :root { --wrap: 1480px; }
}

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