/* =============================================================================
   Shree Howrah Stores — the live catalogue.

   Structure is Crown's catalogue: a cover with stats, a brand fold, then page
   after page of uniform product cards — image plate, name, one line of
   description, colour dots, price. What changes is that this one is a website,
   not an A4 PDF, so the pages become one grid you filter, search and sort.

   Brand is the store's own: wine #5A1822 off the Shopify theme, gold #CC7224
   sampled from the Howrah Bridge logo, cream paper, Manrope only. No green
   anywhere, by instruction. No pattern on any wine surface — two attempts at
   one were rejected.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --wine: #5a1822;
  --wine-d: #41111a;
  --gold: #cc7224;
  --gold-lt: #e4a05c;
  --crimson: #ba2448;
  --paper: #f7f2e8;
  --paper-2: #fffdf8;
  --card: #ffffff;
  --ink: #17120f;
  --ink-2: #574d46;
  --ink-3: #8d827a;
  --line: #e6ddcd;
  --line-2: #f0e8d9;
  --ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-h: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ui); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
button { font-family: inherit; }

/* `hidden` is only a presentational hint and loses to any display rule that
   names an element. Three controls here set their own display — the filter
   badge is inline-grid, the applied-chip row is flex — so the badge showed a
   permanent "0" and the chip row held an empty 10px strip on every screen even
   with nothing applied. */
[hidden] { display: none !important; }
/* Chrome paints its own clear button inside type=search, so the box carried two
   X's side by side at every width. Ours is the one wired to the state. */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin: 0;
}

/* ---------- header ------------------------------------------------------- */
.head {
  position: sticky; top: 0; z-index: 40; background: var(--wine); color: #fbf7f0;
}
.head__in {
  display: flex; align-items: center; gap: 18px; min-height: var(--head-h);
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
}
/* flex:0 0 auto or the wordmark is the first thing the row squashes — at 360px
   the bridge collapsed to 21px of unreadable smear. */
.head__logo { height: 30px; width: auto; flex: 0 0 auto; filter: brightness(0) invert(1); }
.head__t { display: flex; flex-direction: column; line-height: 1.2; }
.head__t b { font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em; }
.head__t i { font-style: normal; font-size: 10.5px; opacity: 0.62; }
.head__sp { margin-left: auto; }
/* Every WhatsApp CTA is WHITE, on wine and on cream alike. The hairline keeps
   it visible on the light surfaces; wine type carries the brand. */
.wa {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: #fff; color: var(--wine); border: 1px solid rgba(23, 18, 15, 0.1);
  border-radius: 999px;
  padding: 8px 16px; font-size: 13px; font-weight: 800; letter-spacing: -0.01em;
  transition: transform 0.18s, box-shadow 0.18s;
}
.wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -12px rgba(23, 18, 15, 0.55);
}
.wa--lg { padding: 12px 24px; font-size: 14.5px; }

/* ---------- cover -------------------------------------------------------- */
/* A banner, not a hero. This page exists to show 474 sarees, so the wine band
   introduces the shop and gets out of the way — the first row of cards should
   be in reach without a scroll on a laptop. */
.cover { background: var(--wine); color: #fbf7f0; padding: 26px 0 24px; }
.cover .eyebrow { color: var(--gold-lt); margin-bottom: 9px; }
.cover h1 { font-size: clamp(23px, 3.1vw, 33px); max-width: 20ch; }
.cover p {
  margin: 9px 0 0; font-size: 13.5px; color: rgba(251, 247, 240, 0.7); max-width: 64ch;
}
.cstats {
  display: flex; gap: 30px; flex-wrap: wrap; margin-top: 18px;
  padding-top: 15px; border-top: 1px solid rgba(251, 247, 240, 0.16);
}
.cstats div b {
  display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.04em;
  color: var(--gold-lt); line-height: 1.25;
}
.cstats div small {
  font-size: 9px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: rgba(251, 247, 240, 0.5);
}

/* ---------- controls ----------------------------------------------------- */
.bar {
  position: sticky; top: var(--head-h); z-index: 30;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.bar__in {
  max-width: 1320px; margin: 0 auto; padding: 12px 24px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}

.srch { position: relative; flex: 1; min-width: 190px; max-width: 380px; }
.srch input {
  width: 100%; font-family: var(--ui); font-size: 14px; color: var(--ink);
  padding: 9px 34px 9px 36px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper-2);
}
.srch input:focus { outline: 2px solid var(--gold-lt); outline-offset: 1px; border-color: transparent; }
.srch > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.srch__x {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--ink-3); cursor: pointer;
  padding: 4px; line-height: 0; border-radius: 50%;
}
.srch__x:hover { background: var(--line-2); color: var(--ink); }

/* Two controls, not twenty. Filter opens a panel, Sort opens a menu — seven
   shelf pills plus eleven colour pills plus four price pills across the top of
   the page reads as a control panel, not a shop. */
.tool {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper-2); color: var(--ink); cursor: pointer;
  font-size: 13px; font-weight: 700; transition: border-color 0.16s, background 0.16s;
}
.tool:hover { border-color: var(--ink-3); }
.tool.is-on { background: var(--wine); border-color: var(--wine); color: #fbf7f0; }
.tool b { font-weight: 700; color: var(--ink-3); }
.tool.is-on b { color: rgba(251, 247, 240, 0.75); }
.tool__n {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--wine); color: #fbf7f0;
  font-size: 10.5px; font-weight: 800;
}
.tool.is-on .tool__n { background: #fbf7f0; color: var(--wine); }
.tool__caret { color: var(--ink-3); }
.tool.is-on .tool__caret { color: rgba(251, 247, 240, 0.75); }

.sortwrap { position: relative; }
.menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 35; min-width: 212px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; box-shadow: 0 22px 44px -26px rgba(23, 18, 15, 0.75);
}
.menu__i {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 9px 11px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--ink); font-size: 13.5px; font-weight: 600;
  font-family: var(--ui); text-align: left;
}
.menu__i:hover { background: var(--line-2); }
.menu__i.is-on { font-weight: 800; }
.menu__i.is-on::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--wine); flex: 0 0 auto;
}

.count { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }

/* What is applied, shown only when something is. The controls stay two buttons;
   the page still says what it is filtered to, and each one comes off in a tap. */
.applied {
  max-width: 1320px; margin: 0 auto; padding: 0 24px 12px;
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.achip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper-2);
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  cursor: pointer; font-family: var(--ui);
}
.achip:hover { border-color: var(--wine); color: var(--wine); }
.achip svg { opacity: 0.55; }
.achip__dot {
  width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}
.applied__clear {
  border: 0; background: transparent; color: var(--wine); cursor: pointer;
  font-size: 12px; font-weight: 800; text-decoration: underline;
  text-underline-offset: 3px; padding: 5px 4px; font-family: var(--ui);
}

/* ---------- filter panel ------------------------------------------------- */
.panel { position: fixed; inset: 0; z-index: 55; background: rgba(23, 18, 15, 0.5); }
.panel[hidden] { display: none; }
.panel__sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
  background: var(--paper-2); display: flex; flex-direction: column;
  animation: slidein 0.22s ease;
}
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .panel__sheet { animation: none; } }
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 17px 20px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.panel__head h2 { font-size: 18px; }
.panel__x {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
}
.panel__x:hover { background: var(--wine); border-color: var(--wine); color: #fbf7f0; }
.panel__body { flex: 1; overflow-y: auto; padding: 4px 20px 20px; }
.fgroup { padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.fgroup:last-child { border-bottom: 0; }
.fgroup h3 {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 9px;
}
.opts { display: flex; flex-direction: column; gap: 1px; }
.opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 8px; border: 0; border-radius: 8px; background: transparent;
  cursor: pointer; font-family: var(--ui); font-size: 13.5px; font-weight: 600;
  color: var(--ink); text-align: left;
}
.opt:hover { background: var(--line-2); }
.opt__box {
  width: 17px; height: 17px; border-radius: 5px; flex: 0 0 auto;
  border: 1.5px solid var(--line); background: var(--paper);
  display: grid; place-items: center; transition: all 0.15s;
}
.opt.is-on .opt__box { background: var(--wine); border-color: var(--wine); }
.opt.is-on .opt__box::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.opt.is-on { font-weight: 800; }
.opt__t { flex: 1; min-width: 0; }
.opt__n { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.chip__dot {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
}
.panel__foot {
  flex: 0 0 auto; display: flex; gap: 10px; align-items: center;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--paper);
}
.panel__clear {
  border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2);
  border-radius: 999px; padding: 11px 16px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--ui); white-space: nowrap;
}
.panel__clear:hover { border-color: var(--ink-3); }
.panel__apply {
  flex: 1; border: 0; border-radius: 999px; background: var(--wine); color: #fbf7f0;
  padding: 11px 16px; font-size: 13.5px; font-weight: 800; cursor: pointer;
  font-family: var(--ui);
}
.panel__apply:hover { background: var(--wine-d); }

/* ---------- grid --------------------------------------------------------- */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 26px 0 20px;
}

/* Crown's product card: image plate on a tinted ground, then a details block
   that never clips — name, one line, colour dots, price on the same baseline. */
.pc {
  /* The header and the filter bar are both sticky, so anything scrolled into
     view — by keyboard focus, by a deep link, by the browser restoring position
     — lands underneath them and cannot be clicked. Reserve their height. */
  scroll-margin-top: calc(var(--head-h) + 116px);
  /* The card is a <button>, and a button does not inherit colour — without this
     every line inside it renders at the UA default pure #000. */
  color: var(--ink);
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  cursor: pointer; text-align: left; padding: 0; font-family: var(--ui);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pc:hover {
  border-color: var(--wine); transform: translateY(-3px);
  box-shadow: 0 18px 34px -26px rgba(23, 18, 15, 0.75);
}
.pi { position: relative; background: var(--line-2); aspect-ratio: 4 / 5; overflow: hidden; }
.pi img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  background: var(--wine); color: #fbf7f0;
  font-size: 8.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
}
.pd { flex-shrink: 0; padding: 11px 13px 13px; border-top: 1px solid var(--line-2); }
.pn {
  font-size: 13px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em;
}
/* .pd is a <span> and so are its children, so colour and code ran together as
   one inline sentence — "Violet with PurpleVFS-0020_Violet-Purple" — at every
   width, and .pt's nowrap/ellipsis never applied because an inline box does not
   have a line to truncate. Three fields, three lines. */
.pt {
  display: block;
  font-size: 11.5px; color: var(--ink-2); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ps {
  display: block;
  font-size: 10px; color: var(--ink-3); margin-top: 2px;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pb {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-top: 9px;
}
.cc { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; min-width: 0; }
.cd {
  width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto;
  border: 1.5px solid var(--card); box-shadow: 0 0 0 1px var(--line);
}
.cc small { font-size: 10px; font-weight: 700; color: var(--ink-3); margin-left: 2px; }
.pp { font-size: 14px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.pp span { font-size: 8.5px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.06em; }

.sentinel { height: 1px; }
.showing {
  text-align: center; padding: 8px 0 44px; font-size: 13px; color: var(--ink-3); font-weight: 600;
}
.showing button {
  display: block; margin: 14px auto 0; padding: 11px 26px; border-radius: 999px;
  border: 1px solid var(--wine); background: transparent; color: var(--wine);
  font-size: 13.5px; font-weight: 800; cursor: pointer; transition: all 0.18s;
}
.showing button:hover { background: var(--wine); color: #fbf7f0; }

.none { text-align: center; padding: 80px 24px; color: var(--ink-3); }
.none h3 { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.none p { margin: 0 auto 18px; max-width: 44ch; font-size: 14px; }

/* ---------- detail overlay ----------------------------------------------- */
.ov {
  position: fixed; inset: 0; z-index: 60; display: none;
  background: rgba(23, 18, 15, 0.62); padding: 24px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.ov.is-open { display: block; }
.ov__in {
  max-width: 980px; margin: 0 auto; background: var(--paper-2);
  border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
}
/* Transparent on a desktop — the button keeps its own fixed position. It only
   becomes a surface on a phone, at the bottom of this file. */
.ov__bar { display: contents; }
.ov__x {
  position: fixed; top: 18px; right: 20px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(23, 18, 15, 0.62); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px);
}
.ov__x:hover { background: var(--wine); }
.ov__imgs { background: var(--line-2); }
.ov__imgs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ov__thumbs {
  display: flex; gap: 6px; padding: 8px; background: var(--card);
  /* Three shots is today's maximum and they fit at 360px, but a flex row of
     images with no shrink guard squashes rather than scrolls the day a fourth
     is shot. Let the row scroll instead of distorting the cloth. */
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.ov__thumbs::-webkit-scrollbar { display: none; }
.ov__thumbs img {
  width: 56px; height: 70px; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; aspect-ratio: auto;
  flex: 0 0 auto; object-fit: cover;
}
.ov__thumbs img.is-on { border-color: var(--wine); }
.ov__body { padding: 28px 28px 30px; }
.ov__body h2 { font-size: 21px; margin-bottom: 6px; }
.ov__col { font-size: 13.5px; color: var(--ink-2); font-weight: 700; }
.ov__price {
  font-size: 26px; font-weight: 800; letter-spacing: -0.04em; margin: 16px 0 4px;
}
.ov__price span { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.06em; }
.ov__blurb { font-size: 13.5px; color: var(--ink-2); margin: 14px 0 0; }
.ov__kv {
  display: grid; grid-template-columns: 96px 1fr; gap: 7px 14px;
  margin: 18px 0 0; font-size: 13px;
}
.ov__kv dt { color: var(--ink-3); font-weight: 700; }
.ov__kv dd { margin: 0; }
.ov__sib { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ov__sib button {
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line); padding: 0;
}
.ov__sib button.is-on { box-shadow: 0 0 0 2px var(--wine); }
.ov__cta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.ov__story {
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.65;
}

/* ---------- footer ------------------------------------------------------- */
.foot { background: var(--wine); color: #fbf7f0; padding: 46px 0 30px; margin-top: 20px; }
.foot .eyebrow { color: var(--gold-lt); margin-bottom: 12px; }
.foot h2 { font-size: clamp(26px, 4vw, 36px); max-width: 15ch; }
.foot h2 em { font-style: normal; color: var(--gold-lt); }
.foot p { margin: 12px 0 0; font-size: 14px; color: rgba(251, 247, 240, 0.66); max-width: 52ch; }
.foot__grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start;
}
.foot__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.foot__list li { display: flex; gap: 14px; font-size: 13.5px; color: rgba(251, 247, 240, 0.78); }
.foot__list strong {
  color: var(--gold-lt); font-size: 9.5px; font-weight: 800; letter-spacing: 0.11em;
  text-transform: uppercase; min-width: 62px; padding-top: 3px; flex: 0 0 auto;
}
.foot__base {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(251, 247, 240, 0.18);
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
  font-size: 11.5px; color: rgba(251, 247, 240, 0.45);
}

/* ---------- responsive --------------------------------------------------- */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 860px) {
  .ov__in { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .wrap, .head__in, .bar__in { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 18px; }
  .cover { padding: 32px 0 30px; }
  .cstats { gap: 26px; margin-top: 24px; }
  .cstats div b { font-size: 21px; }
  .head__in { gap: 10px; }
  .head__logo { height: 25px; }
  .head .wa { padding: 7px 12px; font-size: 12px; }
  .pd { padding: 9px 10px 11px; }
  .pn { font-size: 12px; }
  /* Colour and price on one line is 3px of gap at 360px. Stack them. */
  .pb { flex-direction: column; align-items: flex-start; gap: 5px; }
  .ov { padding: 0; }
  .ov__in { border-radius: 0; min-height: 100%; }
  .ov__body { padding: 20px 18px 28px; }
  .ov__x { top: 12px; right: 12px; }
  /* The bar is always two rows on a phone; the arrangement is set below. */
  .bar__in { padding: 10px 16px; gap: 8px; }
  .srch { max-width: none; }
  .tool { padding: 9px 13px; }
  .applied { padding: 0 16px 10px; }
  .panel__sheet { width: 100%; }
}

/* =============================================================================
   PHONE — the reflow (2026-07-26)

   Everything below is structure: what stacks, what retracts, what stays big
   enough to hit. Nothing is hidden to make it fit. The two rails are the only
   things that keep scrolling sideways, because a rail is a deliberate carousel
   and it shows the edge of the next card to say so.

   The three sizes that matter: 430px is the largest phone, 390px is the common
   one, 360px is the floor. Everything here is checked at 390 and 360.
   ========================================================================== */

/* ---------- the header carries all of itself on a phone ------------------ */
/* "Since 1920 · Howrah" and the "All 474" pill were both display:none under
   720px purely because the row measured 406px inside a 390px viewport. They are
   a tagline and a route to the whole catalogue, so they come back — the row
   wraps and the pill takes a second, slimmer line of its own. The height that
   costs is paid back by the retract below: scroll down and the whole thing
   leaves. */
@media (max-width: 720px) {
  .head__in { flex-wrap: wrap; row-gap: 0; }
  /* flex-basis 0, so the title block never contributes to whether row one fits.
     With flex-wrap on, a flex line WRAPS before it shrinks — leave the block at
     its natural 118px and the WhatsApp button drops to a line of its own at
     360px. At basis 0 the row always fits and the block then grows into
     whatever is left, which is 128px at 390 and 98px at 360. */
  .head__t { flex: 1 1 0; min-width: 0; }
  .head__t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Let the tagline take two lines rather than lose its second half to an
     ellipsis at 360px. */
  .head__t i { display: block; white-space: normal; line-height: 1.3; }
  /* Row two. Full width, left aligned under the wordmark, hairline above it so
     it reads as part of the header rather than as a stray chip. */
  .head__browse {
    order: 5; margin: 0 0 8px;
    border-color: rgba(251, 247, 240, 0.32); padding: 8px 16px;
  }
  /* Scoped to the home page, which is the only one with a second row to break
     to — browse has no "All 474" pill and must not grow an empty strip. */
  .home .head__in::after {
    content: ""; order: 4; flex: 1 0 100%; height: 1px; margin-bottom: 8px;
    background: rgba(251, 247, 240, 0.16);
  }
}

/* ---------- retract the furniture on the way down ------------------------ */
/* A 390px phone was carrying 60px of header, 55px of context strip and up to
   172px of control bar before the first saree — a third of the screen, and the
   header and bar never left. They now leave on a downward scroll and come back
   on the first upward flick, which is the gesture every phone user already has.
   No control is lost: one short swipe up returns search, filter, sort, the
   count, the applied chips and the WhatsApp button.

   Both elements are position:sticky, so translating them moves nothing in the
   flow and opens no gap between them. The bar clears its own height plus the
   header's, because at rest it sits below the header. */
@media (max-width: 720px) {
  .head, .bar { transition: transform 0.24s ease; will-change: transform; }
  body.is-retracted .head { transform: translateY(-100%); }
  body.is-retracted .bar { transform: translateY(calc(-100% - var(--head-h))); }
}
@media (prefers-reduced-motion: reduce) {
  .head, .bar { transition: none; }
}

/* ---------- browse: the control bar --------------------------------------- */
@media (max-width: 720px) {
  /* Two rows, and always the same two. The count used to sit after Filter and
     Sort with margin-left:auto, which fitted only while it read "474 sarees" —
     the moment a filter made it "107 of 474 sarees" it was pushed onto a third
     line of its own and the bar grew to 187px at 360.

     It moves up beside the search box instead, which is also where it belongs:
     the count reports what the search and the filters did. Filter and Sort get
     a clean line under it. The break is forced with a pseudo-element rather
     than left to the widths, so the bar is two rows at every phone size and
     under every combination of labels. */
  .bar__in { row-gap: 8px; align-items: center; }
  .srch { order: 1; flex: 1 1 auto; min-width: 130px; }
  .count { order: 2; flex: 0 0 auto; margin-left: 0; font-size: 12px; }
  .bar__in::after {
    content: ""; order: 3; flex: 1 0 100%; height: 0; margin-top: -8px;
  }
  #filterbtn { order: 4; }
  .sortwrap { order: 5; }
  .srch input { padding-top: 11px; padding-bottom: 11px; }
  .srch__x { right: 6px; padding: 9px; }
  .tool { min-height: 44px; padding: 8px 12px; }
  /* The sort menu hung off the right edge once its button moved to the middle
     of the second row. Anchor it to the bar rather than to the button — .bar is
     position:sticky, so it is already the containing block — and it spans the
     gutters and can never leave the screen whatever the longest label is. */
  .sortwrap { position: static; }
  .menu { left: 16px; right: 16px; min-width: 0; }
  .achip { min-height: 34px; }
  .applied__clear { min-height: 34px; }
  /* Both sticky layers plus the applied-chip row have to be cleared or a card
     arrived at by a deep link or by keyboard focus lands underneath them. */
  .pc { scroll-margin-top: calc(var(--head-h) + 180px); }
}

/* Two cards across, down to the floor. The old rule dropped the grid to a
   single column under 380px, which put one 660px-tall card on the screen at a
   time behind 200px of furniture — 474 sarees at one per screen is not a
   catalogue. Two across at 360px gives a 158px card, which is the size every
   phone shopping grid in India uses. */
@media (max-width: 380px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pd { padding: 8px 9px 10px; }
  .pn { font-size: 11.5px; }
  .pp { font-size: 13px; }
}

/* ---------- browse: the filter panel and the sort menu -------------------- */
@media (max-width: 720px) {
  .panel__x { width: 40px; height: 40px; }
  .opt { min-height: 44px; padding: 10px 8px; }
  .menu__i { min-height: 44px; }
  .panel__clear, .panel__apply { min-height: 46px; }
  /* The sheet is the whole screen, so its own scroller must own the safe area
     rather than leaving the last colour under the home indicator. */
  .panel__body { padding-bottom: 12px; }
}

/* ---------- browse: the detail overlay ------------------------------------ */
/* On a phone this is a product sheet, not a lightbox. The photograph, the
   thumbnails, the name, the price, the specification list and the story all
   stay in one scroll; what changes is that the way out sits on a bar of its own
   at the top and the two things a customer came here to do sit on a bar of
   their own at the bottom. Both were previously 1,150px down a 1,330px page —
   the whole point of the catalogue was three screens below the fold. */
@media (max-width: 720px) {
  .ov__bar {
    display: flex; justify-content: flex-end; align-items: center;
    position: sticky; top: 0; z-index: 3;
    padding: 8px 12px; background: var(--paper-2);
    border-bottom: 1px solid var(--line);
  }
  .ov__x {
    position: static; width: 44px; height: 44px;
    background: var(--paper); color: var(--ink); border: 1px solid var(--line);
    backdrop-filter: none;
  }
  .ov__x:hover { background: var(--wine); border-color: var(--wine); color: #fbf7f0; }

  /* The sheet has to end above the action bar, not under it. */
  .ov__body { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .ov__cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
    margin: 0; gap: 8px; flex-direction: row; align-items: stretch;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    background: var(--paper-2); border-top: 1px solid var(--line);
    box-shadow: 0 -14px 30px -24px rgba(23, 18, 15, 0.9);
  }
  .ov__cta .wa, .ov__cta .shr {
    min-width: 0; min-height: 52px;
    justify-content: center; text-align: center;
    white-space: normal; padding: 8px 10px; font-size: 12.5px; line-height: 1.25;
  }
  /* WhatsApp is the transaction and Share is the favour, so the split is not
     even — the wider share of the row keeps the longer label on one line. */
  .ov__cta .wa { flex: 1.3 1 0; }
  .ov__cta .shr { flex: 1 1 0; gap: 6px; }
  .ov__cta .shr svg { flex: 0 0 auto; }

  /* A colourway switch is a control, and 26px is not a target. */
  .ov__sib { gap: 10px; }
  .ov__sib button { width: 40px; height: 40px; }
  .ov__thumbs img { width: 62px; height: 78px; }
  .ov__kv { grid-template-columns: 84px 1fr; }
}

/* ---------- footer -------------------------------------------------------- */
@media (max-width: 720px) {
  .foot { padding: 38px 0 26px; }
  /* Label above value rather than beside it: a 62px label column left 22
     characters of address on the line beside it and broke it into five. */
  .foot__list li { flex-direction: column; gap: 3px; }
  .foot__list strong { min-width: 0; padding-top: 0; }
  .foot__base { gap: 8px; }
  .foot p .wa--lg { display: flex; justify-content: center; }
  .foot p .wa--lg + .wa--lg { margin-top: 10px; }
}

/* =============================================================================
   HOME — the category page (2026-07-25)

   Bhaiya: "Let us have categories as the homepage for the catalog" + "another
   category layer for budgets" + "one new arrivals/bestsellers section".
   Sahil: "categories should come right after the hero fold."

   So the root is hero > shelves > budgets > two rails, and the 474-card grid
   moved to browse.html. Everything below only appears on those two pages; the
   grid's own styles above are untouched.
   ========================================================================== */

.head__home { display: inline-flex; align-items: center; }
.head__browse {
  display: inline-flex; align-items: center; white-space: nowrap;
  border: 1px solid rgba(251, 247, 240, 0.28); border-radius: 999px;
  padding: 7px 15px; font-size: 12.5px; font-weight: 700; color: #fbf7f0;
  transition: background 0.18s, border-color 0.18s;
}
.head__browse:hover { background: rgba(251, 247, 240, 0.12); border-color: transparent; }

/* ---------- context strip (browse.html) ---------------------------------- */
/* Someone who tapped "Dhakai Jamdani" has to be told she is in Dhakai Jamdani.
   One line, so the first row of cards stays within reach. */
.ctx { background: var(--wine); color: #fbf7f0; }
.ctx__in {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 14px; padding-bottom: 14px;
}
.ctx__back {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  font-size: 12px; font-weight: 700; color: rgba(251, 247, 240, 0.72);
  border: 1px solid rgba(251, 247, 240, 0.26); border-radius: 999px;
  padding: 6px 14px 6px 11px; transition: color 0.18s, border-color 0.18s;
}
.ctx__back:hover { color: #fbf7f0; border-color: rgba(251, 247, 240, 0.55); }
.ctx__h { font-size: clamp(19px, 2.6vw, 27px); letter-spacing: -0.035em; }

/* ---------- hero --------------------------------------------------------- */
/* One plate, not a carousel. The catalogue's job is to get a customer into a
   shelf in one scroll; a slideshow on top of a 474-card book is a delay. */
/* Crown's catalogue cover, as a web banner: the photograph fills the fold, a
   gradient runs over it, and the words sit on the bottom of the frame. */
.hero {
  position: relative; color: #fbf7f0; overflow: hidden;
  background: var(--wine-d);
  min-height: clamp(360px, 42vw, 540px); display: flex; align-items: flex-end;
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(28, 7, 11, 0.94) 0%, rgba(28, 7, 11, 0.74) 34%,
                            rgba(28, 7, 11, 0.34) 62%, rgba(28, 7, 11, 0.16) 100%);
}
.hero__in {
  position: relative; z-index: 1; width: 100%;
  padding-top: clamp(72px, 12vw, 150px); padding-bottom: clamp(30px, 4vw, 48px);
}

/* The stat band that sat here is gone (2026-07-26). An e-commerce shop states
   its stock count in the copy and in the controls; it does not open with a row
   of figures. `.cstats` survives above only for the browse page's own bar. */
.hero .eyebrow { color: var(--gold-lt); margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 6.2vw, 66px); letter-spacing: -0.045em; }
.hero__p {
  margin: 18px 0 0; font-size: clamp(14px, 1.3vw, 16px);
  color: rgba(251, 247, 240, 0.76); max-width: 52ch;
}
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; white-space: nowrap;
  background: #fff; color: var(--wine); border: 1px solid transparent;
  border-radius: 999px; padding: 12px 24px;
  font-size: 14px; font-weight: 800; letter-spacing: -0.01em;
  transition: transform 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.8); }
.btn--gh { background: transparent; color: #fbf7f0; border-color: rgba(251, 247, 240, 0.4); }
.btn--gh:hover { border-color: #fbf7f0; box-shadow: none; }

/* ---------- section shell ------------------------------------------------ */
.sec { padding: clamp(48px, 7vw, 88px) 0; }
.sec--tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.sec .eyebrow { margin-bottom: 12px; }
.sec__h { font-size: clamp(26px, 3.6vw, 42px); letter-spacing: -0.04em; }
.sec__p { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 58ch; }

/* ---------- category tiles ----------------------------------------------- */
/* Hover is stroke and lift, never a colour wash — the photograph is the thing
   being judged and a tint over it changes the cloth. */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.cat, .bud {
  display: flex; flex-direction: column; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cat:hover, .bud:hover {
  border-color: var(--wine); transform: translateY(-3px);
  box-shadow: 0 18px 34px -26px rgba(23, 18, 15, 0.75);
}
.cat__im { background: var(--line-2); aspect-ratio: 4 / 5; overflow: hidden; }
.cat__im img { width: 100%; height: 100%; object-fit: cover; }
.cat__b { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.cat__k, .bud__k {
  font-size: 9px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.cat__n { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; margin-top: 5px; }
.cat__d {
  font-size: 12.5px; line-height: 1.45; color: var(--ink-2); margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat__c, .bud__c {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 12px;
  font-size: 11.5px; font-weight: 700; color: var(--ink-3);
}
.cat__c i, .bud__c i { font-style: normal; color: var(--wine); transition: transform 0.2s; }
.cat:hover .cat__c i, .bud:hover .bud__c i { transform: translateX(3px); }

/* ---------- budget tiles ------------------------------------------------- */
/* Wider and shorter than a shelf tile: a budget is a number, not a photograph,
   so the image is a strip that says "cloth" and the price does the talking. */
.buds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.bud__im { background: var(--line-2); aspect-ratio: 16 / 9; overflow: hidden; }
.bud__im img { width: 100%; height: 100%; object-fit: cover; }
.bud__b { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.bud__n { font-size: 19px; font-weight: 800; letter-spacing: -0.035em; margin-top: 5px; }
.bud__d {
  font-size: 12.5px; line-height: 1.45; color: var(--ink-2); margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- rails -------------------------------------------------------- */
/* Arrows, not drag-only: on a laptop there is nothing to drag with, and a rail
   whose overflow is invisible reads as a short row. */
.rail { padding: clamp(40px, 6vw, 72px) 0 0; }
.rail:last-of-type { padding-bottom: clamp(40px, 6vw, 72px); }
.rail__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.rail__head h2 { font-size: clamp(24px, 3.2vw, 36px); letter-spacing: -0.04em; margin-top: 10px; }
.rail__note { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); max-width: 48ch; }
.rail__nav { display: flex; gap: 8px; flex: 0 0 auto; }
.arw {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; color: var(--wine); border: 1px solid var(--line);
  cursor: pointer; transition: border-color 0.18s, background 0.18s, opacity 0.18s;
}
.arw:hover:not(:disabled) { border-color: var(--wine); background: var(--paper-2); }
.arw:disabled { opacity: 0.3; cursor: default; }
.rail__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding: 24px 24px 6px;
  /* scroll-snap-align:start aligns a card's edge to the CONTAINER's edge, not to
     its padding box. Without a matching scroll-padding the browser settles the
     rail at scrollLeft 24 on load, which reads as "already scrolled" — the left
     arrow stays live and the first card sits hard against the frame. */
  scroll-padding-inline: 24px;
  max-width: 1320px; margin: 0 auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rc {
  flex: 0 0 214px; scroll-snap-align: start; color: var(--ink);
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.rc:hover {
  border-color: var(--wine); transform: translateY(-3px);
  box-shadow: 0 18px 34px -26px rgba(23, 18, 15, 0.75);
}
.rc__im { background: var(--line-2); aspect-ratio: 4 / 5; overflow: hidden; }
.rc__im img { width: 100%; height: 100%; object-fit: cover; }
.rc__n {
  font-size: 13px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em;
  padding: 11px 13px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em;
}
.rc__t {
  font-size: 11.5px; color: var(--ink-2); padding: 3px 13px 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc__p { font-size: 14px; font-weight: 800; letter-spacing: -0.03em; padding: 7px 13px 13px; }
.more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--wine);
  border-bottom: 1.5px solid var(--gold); padding-bottom: 2px;
}
.more i { font-style: normal; transition: transform 0.2s; }
.more:hover i { transform: translateX(3px); }

/* ---------- share -------------------------------------------------------- */
.shr {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: transparent; color: var(--wine); border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 22px;
  font-size: 14px; font-weight: 800; letter-spacing: -0.01em;
  transition: border-color 0.18s, background 0.18s;
}
.shr:hover { border-color: var(--wine); background: var(--paper-2); }
.shr.is-busy { opacity: 0.55; pointer-events: none; }
.wa--gh { background: transparent; color: #fbf7f0; border-color: rgba(251, 247, 240, 0.4); }
.wa--gh:hover { border-color: #fbf7f0; box-shadow: none; }

/* ---------- home responsive ---------------------------------------------- */
@media (max-width: 1100px) {
  .cats, .buds { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .cats, .buds { grid-template-columns: repeat(2, 1fr); }
  .rail__head { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 720px) {
  .rail__track { padding: 20px 16px 6px; gap: 12px; scroll-padding-inline: 16px; }
  .rc { flex: 0 0 168px; }
  .ctx__in { gap: 10px; padding-top: 11px; padding-bottom: 11px; }
  /* An arrow is a control before it is an ornament. 38px is under the target. */
  .arw { width: 44px; height: 44px; }
  .rail__nav { gap: 10px; }
  .btn { min-height: 46px; padding: 12px 22px; }
  .hero__cta { gap: 8px; }
  .more { min-height: 44px; align-items: center; }
}

/* ---------- home: the two tile grids on a phone --------------------------- */
/* These went one across under 420px, which turned seven shelves into 4,160px of
   scrolling — five screens to read a list of seven things. Hick's Law cuts both
   ways: the choice is small, so it should be legible in one or two screens, not
   paged through one card at a time.
   Two across, with the biggest shelf given the full width and a wide plate. It
   reads as the lead shelf, which it is at 158 sarees, and it also means seven
   tiles land as 1 + 3 rows of 2 with no orphan. Same total information, 1,100px
   instead of 4,160. */
@media (max-width: 560px) {
  .cats, .buds { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }

  .cats .cat:first-child { grid-column: 1 / -1; }
  .cats .cat:first-child .cat__im { aspect-ratio: 16 / 9; }
  .cats .cat:first-child .cat__n { font-size: 21px; }
  .cats .cat:first-child .cat__d { -webkit-line-clamp: 3; }

  .cat__b, .bud__b { padding: 11px 12px 12px; }
  .cat__n { font-size: 15px; }
  .bud__n { font-size: 16px; }
  /* A two-line clamp fits a 320px desktop tile, not a 149px phone one — it was
     cutting "Everything under a thousand rupees, on one shelf." to "on one…".
     Three lines carries the longest note in the set at this width. */
  .cat__d, .bud__d { font-size: 11.5px; margin-top: 5px; -webkit-line-clamp: 3; }
  .cat__c, .bud__c { padding-top: 10px; font-size: 11px; }
  /* The count and the arrow are the tile's only affordance; keep them on one
     line rather than letting "109 sarees" wrap away from its chevron. */
  .cat__c, .bud__c { white-space: nowrap; }
  .sec__p { font-size: 13.5px; }
}
