:root {
  --paper: #f4f0e8;
  --paper-2: #fbf8f3;
  --ink: #1c1915;
  --muted: #625c54;
  --line: #e3dbd0;
  --copper: #b85a32;
  --copper-deep: #8d3f22;
  --sale: #9d3418;
  --white: #fffdf9;
  --visor: #141210;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --display: "Fraunces", "Times New Roman", serif;
  --header: 58px;
  --dock: 92px;
  --shadow: 0 16px 40px rgba(28, 25, 21, 0.12);
  color-scheme: light;
}

html[lang="ru"] {
  --sans: "Manrope", "Segoe UI", sans-serif;
  --display: "Manrope", "Segoe UI", sans-serif;
}

html[lang="hi"] {
  --sans: "Noto Sans Devanagari", sans-serif;
  --display: "Noto Sans Devanagari", sans-serif;
}

html[lang="bn"] {
  --sans: "Noto Sans Bengali", sans-serif;
  --display: "Noto Sans Bengali", sans-serif;
}

html[lang="ar"],
html[lang="ur"] {
  --sans: "Noto Sans Arabic", sans-serif;
  --display: "Noto Sans Arabic", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 8px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body.sheet-open { overflow: hidden; }

img { max-width: 100%; display: block; }

button, input { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; }

.sr {
  position: absolute;
  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: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  height: calc(var(--header) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.bar.is-stuck { border-bottom-color: var(--line); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 640;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 15px;
}

.brand svg { display: block; }

.desk-nav {
  display: none;
  gap: 18px;
  margin-inline-start: 18px;
}

.desk-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.bar-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  text-decoration: none;
}

.icon-btn:hover,
.icon-btn:focus-visible,
.btn:focus-visible,
.pin:focus-visible,
.cat:focus-visible,
.card-hit:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.badge {
  position: absolute;
  top: 6px;
  inset-inline-end: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--copper);
  color: white;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.passbar {
  position: sticky;
  top: calc(var(--header) + env(safe-area-inset-top));
  z-index: 19;
  height: 3px;
  background: #e7e0d6;
}

.passbar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #c4622d, #e0a06a);
}

html[dir="rtl"] .passbar > span { margin-inline-start: auto; }

.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - var(--header) - 3px);
  color: #f7f2ea;
  background: var(--visor);
  overflow: hidden;
}

.cover-media {
  position: absolute;
  inset: 0;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 14, 12, 0.18) 0%, rgba(16, 14, 12, 0.02) 26%, rgba(16, 14, 12, 0.2) 52%, rgba(16, 14, 12, 0.78) 74%, rgba(12, 10, 9, 0.94) 100%);
}

.pins { position: absolute; inset: 0; }

.pin {
  position: absolute;
  top: var(--m-top);
  left: var(--m-left);
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  max-width: 46vw;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 250, 244, 0.9);
  background: rgba(184, 90, 50, 0.2);
  box-shadow: 0 0 0 6px rgba(255, 248, 240, 0.12);
  flex: none;
}

.pin.is-on .pin-dot {
  background: var(--copper);
  box-shadow: 0 0 0 7px rgba(184, 90, 50, 0.28);
}

.pin-end {
  flex-direction: row-reverse;
  transform: translateX(calc(-100% + 14px));
}

.pin-label {
  background: rgba(251, 248, 243, 0.94);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: 0.01em;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(4px);
  box-shadow: var(--shadow);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.pin.is-on .pin-label { opacity: 1; transform: none; }

.cover-copy {
  position: relative;
  z-index: 2;
  padding: 18px 18px calc(var(--dock) + env(safe-area-inset-bottom) + 12px);
}

.pass-row,
.sec-head,
.price,
.total,
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.eyebrow,
.chapter span,
.flag,
.tag {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

.eyebrow { color: #efd3c2; }

h1, h2, h3 { font-family: var(--display); font-weight: 640; margin: 0; }

h1 {
  margin-top: 8px;
  font-size: clamp(2.35rem, 10vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 9em;
}

html[lang="hi"] h1,
html[lang="bn"] h1,
html[lang="ar"] h1,
html[lang="ur"] h1,
html[lang="ru"] h1 {
  letter-spacing: 0;
  line-height: 1.22;
  font-size: clamp(1.85rem, 8vw, 3.5rem);
  max-width: 12em;
}

.lede {
  margin: 10px 0 0;
  max-width: 34ch;
  color: rgba(247, 242, 234, 0.86);
  font-size: 15px;
}

.chapters {
  position: relative;
  min-height: 6.4em;
  margin-top: 12px;
}

.pass-row p { margin: 0; }
.pass-count { font-variant-numeric: tabular-nums; }

.chapter {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  margin: 0;
  opacity: 0;
  color: rgba(247, 242, 234, 0.92);
  font-size: 14.5px;
  transition: opacity 0.28s ease;
}

.chapter > span:first-child {
  display: block;
  color: #efd3c2;
  margin-bottom: 4px;
}

.chapter.is-on { opacity: 1; }

.cover-hold[hidden] { display: none; }
body.is-done .lede,
body.is-done .chapters { display: none; }
.hold-kicker {
  margin: 8px 0 0;
  color: #efd3c2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}
.hold-price {
  margin: 4px 0 0;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.cover-hold .code-line {
  margin-top: 8px;
  color: #f7f2ea !important;
}
.cover-hold .code-line span { color: rgba(247, 242, 234, 0.78); }
.cover-hold .code-line strong { letter-spacing: 0.12em; color: #fffaf4; }
.cover-hold .code-line button {
  background: #f7f2ea;
  color: var(--ink);
  border-color: transparent;
}

.specs {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.specs li {
  min-width: 72px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 247, 238, 0.22);
  border-radius: 12px;
  background: rgba(20, 16, 12, 0.28);
  backdrop-filter: blur(8px);
}

.specs strong { display: block; font-size: 15px; font-weight: 600; }
.specs small { color: rgba(247, 242, 234, 0.72); font-size: 11px; }

.cover-cta {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  background: transparent;
  touch-action: manipulation;
}

.btn.solid { background: var(--white); color: var(--ink); }
.btn.ghost { border-color: rgba(255, 247, 238, 0.45); color: #f7f2ea; }
.btn.wide { width: 100%; }
.btn.ink { background: var(--ink); color: var(--white); }

.floor, .bench, .trust, .offer, footer { padding: 22px 16px; }

.sec-head { margin-bottom: 12px; }
.sec-head h2 { font-size: 1.55rem; letter-spacing: -0.03em; }
html[lang="hi"] .sec-head h2,
html[lang="bn"] .sec-head h2,
html[lang="ar"] .sec-head h2,
html[lang="ur"] .sec-head h2 { letter-spacing: 0; }

.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cat {
  position: relative;
  display: block;
  min-height: 158px;
  border-radius: 18px;
  overflow: hidden;
  color: white;
  text-decoration: none;
  isolation: isolate;
}

.cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(12, 10, 8, 0.78));
}

.cat strong { display: block; font-size: 14px; line-height: 1.25; }
.cat em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 248, 240, 0.82);
  line-height: 1.35;
}

.offer { padding-top: 0; }
.offer[hidden] { display: none; }

.offer-card {
  background: var(--white);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid #f0d8c8;
}

.offer-card .eyebrow { color: var(--copper-deep); }
.offer-card h2 { margin-top: 6px; font-size: 1.7rem; letter-spacing: -0.03em; }
.offer-card p { color: var(--muted); }

.code-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: var(--ink) !important;
}

.code-line strong {
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.code-line button {
  margin-inline-start: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
}

.bench { padding-top: 6px; }

.product-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(227, 219, 208, 0.8);
  display: flex;
  flex-direction: column;
}

.card-hit {
  display: block;
  padding: 0;
  border: 0;
  background: #ece7df;
  text-align: start;
  text-decoration: none;
  position: relative;
}

.card-hit { overflow: hidden; }
.card-hit img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: var(--crop, center);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--crop, center);
}

.tag {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  background: rgba(251, 248, 243, 0.92);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 8px;
}

.card-body { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3, .cat strong { font-family: var(--sans); font-weight: 600; font-size: 14px; line-height: 1.3; letter-spacing: 0; overflow-wrap: break-word; }
.note { margin: 0; color: var(--muted); font-size: 12px; }

.price { justify-content: flex-start; gap: 6px; margin: 0; flex-wrap: wrap; }
.price span { font-weight: 650; }
.price s { color: var(--muted); font-size: 12px; }
.flag { color: var(--sale); font-style: normal; }

.add {
  margin-top: auto;
  border: 0;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 12px;
}

.trust ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.trust li {
  background: var(--white);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-size: 14px;
}

footer {
  padding-bottom: calc(var(--dock) + 24px);
  color: var(--muted);
  font-size: 13px;
}

.ship { max-width: 46ch; }

footer .brand { margin-bottom: 8px; }

.lang-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.lang-inline a { color: var(--ink); }

.dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  gap: 6px;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.dock p { margin: 0; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.dock .btn.solid { background: var(--ink); color: var(--white); }

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.backdrop.is-on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  z-index: 50;
  inset-inline: 0;
  bottom: 0;
  max-height: min(92dvh, 780px);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow);
  transform: translateY(105%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

.sheet.is-on { transform: translateY(0); }
.sheet[hidden] { display: none; }

.sheet-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 0 16px;
}

.sheet-bar h2 { font-size: 1.15rem; }

.sheet-body {
  overflow: auto;
  padding: 8px 16px 20px;
}

.sheet-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  background: #ece7df;
}

.sheet-note { color: var(--copper-deep); font-size: 13px; margin-bottom: 0; }
.sheet-blurb { color: var(--muted); }
.points { margin: 8px 0 16px; padding-inline-start: 18px; }
.empty { color: var(--muted); }

.mini, .menu-link, .cart-row {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: start;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  margin-top: 8px;
}

.mini img, .cart-row img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}

.mini span, .cart-row div { display: grid; gap: 2px; }
.mini em, .cart-row em { font-style: normal; color: var(--muted); font-size: 12px; }

.cart-row button {
  margin-inline-start: auto;
  border: 0;
  background: transparent;
  color: var(--copper-deep);
  min-height: 44px;
}

.menu-link { min-height: 48px; font-weight: 600; }

.lang-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lang-list a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
}
.lang-list a[aria-current="true"] { border-color: var(--copper); }

.search-label input,
.order-form input,
.order-form textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 12px;
}

.order-form { display: grid; gap: 10px; margin-top: 8px; }
.order-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.order-form textarea { min-height: 88px; resize: vertical; }
.order-lines { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.order-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.form-error { color: var(--sale); margin: 0; }
.order-link {
  margin-top: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.total { margin-top: 14px; font-size: 16px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock) + 8px);
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
}

.toast.is-on { opacity: 1; transform: translateX(-50%); }

@media (min-width: 720px) {
  .cat { min-height: 210px; }
  .cat strong { font-size: 16px; }
  .product-list { grid-template-columns: repeat(4, 1fr); }
  .trust ul { grid-template-columns: repeat(3, 1fr); }
  .floor, .bench, .trust, .offer, footer, .cover-copy { padding-left: 28px; padding-right: 28px; }
}

@media (min-width: 960px) {
  .desk-nav { display: flex; }
  .cover {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    height: calc(100svh - var(--header) - 3px);
    min-height: 0;
    overflow: hidden;
  }
  .cover-media { position: relative; height: 100%; min-height: 0; }
  .cover-shade {
    background: linear-gradient(90deg, rgba(12, 10, 9, 0) 55%, rgba(12, 10, 9, 0.18) 100%);
  }
  html[dir="rtl"] .cover-shade {
    background: linear-gradient(270deg, rgba(12, 10, 9, 0) 55%, rgba(12, 10, 9, 0.18) 100%);
  }
  .cover-copy {
    background: #161310;
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding: 28px 36px 28px;
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
  }
  .cover h1 { font-size: clamp(2.5rem, 3.5vw, 4.15rem); }
  .cover .chapters { min-height: 4.8em; }
  .pin { top: var(--d-top); left: var(--d-left); }
  .pin.pin-end { flex-direction: row; transform: none; }
  .pin.flip-d { flex-direction: row-reverse; transform: translateX(calc(-100% + 14px)); }
  .cover-cta .btn.solid { background: #f4f0e8; }
  .dock { display: none; }
  footer { padding-bottom: 36px; }
  .toast { bottom: 24px; }
  .sheet {
    inset-inline: auto 24px;
    width: min(440px, calc(100vw - 48px));
    bottom: 24px;
    border-radius: 22px;
  }
}

@media (max-height: 740px) and (max-width: 959px) {
  h1 { font-size: 2.05rem; }
  .lede { font-size: 14px; }
  .chapters { min-height: 4.2em; }
  .specs { margin-top: 8px; }
  .cover-cta { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin-label, .chapter, .sheet, .toast, .backdrop { transition: none; }
}
