/* XWoman storefront mockup. Signature: the Mughal arch (mehrab) frame. Everything else stays quiet. */
:root {
  --ivory: #F8F4F0;
  --paper: #FFFFFF;
  --tile: #EEE8E3;
  --mist: #E3DAD5;
  --ink: #2A1F22;
  --ink-soft: #6E5E62;
  --kattha: #5C1A2B;
  --kattha-deep: #45121F;
  --zari: #A8834A;
  --pista: #4F6B52;
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --text: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 76rem;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--kattha); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248, 244, 240, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mist);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: .75rem var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.wordmark {
  font-family: var(--display); font-weight: 600; font-size: 1.75rem; letter-spacing: .01em;
  text-decoration: none; justify-self: center; line-height: 1;
}
.wordmark span { font-style: italic; font-weight: 500; }
.header-left, .header-right { display: flex; align-items: center; gap: .25rem; }
.header-right { justify-self: end; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem;
  min-width: 44px; min-height: 44px; padding: 0 .5rem;
  border: 0; background: transparent; cursor: pointer; border-radius: var(--radius);
}
.icon-btn:hover { background: rgba(92, 26, 43, .06); }
.icon-btn svg { flex: none; width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.region-btn { font-size: .875rem; white-space: nowrap; }
@media (max-width: 479px) { .region-btn .cur { display: none; } }
.bag-btn { position: relative; }
.bag-count { /* sits on the bag's corner so the header never widens */
  position: absolute; top: 4px; right: 2px;
  min-width: 1.125rem; height: 1.125rem; padding: 0 .28rem; border-radius: 99px;
  background: var(--kattha); color: #fff; font-size: .6875rem; line-height: 1.125rem; text-align: center;
}
.main-nav { display: none; }
.main-nav a {
  text-decoration: none; padding: .5rem .25rem; font-size: .9375rem;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current='page'] { border-bottom-color: var(--kattha); }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .wordmark { justify-self: start; }
  .main-nav { display: flex; gap: 1.75rem; justify-content: center; }
  .header-left { display: none; }
}

/* ---------- Layout ---------- */
main { min-height: 60vh; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(2.5rem, 7vw, 5rem) 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; line-height: 1.1; }
h2 { font-size: clamp(1.625rem, 4vw, 2.25rem); }
h3 { font-size: 1.25rem; }
.text-link { font-size: .9375rem; color: var(--kattha); text-underline-offset: 4px; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.5rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  border: 1px solid var(--kattha); background: var(--kattha); color: #fff;
  transition: background .15s ease;
}
.btn:hover { background: var(--kattha-deep); }
.btn-ghost { background: transparent; color: var(--kattha); }
.btn-ghost:hover { background: rgba(92, 26, 43, .06); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- The arch (signature element) ---------- */
.arch { position: relative; }
.arch-img {
  clip-path: url(#arch-clip);
  background: var(--tile);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.arch-img img { width: 100%; height: 100%; object-fit: cover; }
.arch-line {
  position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px);
  pointer-events: none; overflow: visible;
}
.arch-line path { fill: none; stroke: var(--zari); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* ---------- Hero ---------- */
.hero { padding: clamp(1.5rem, 5vw, 4rem) 0 0; }
.hero-grid { display: grid; gap: 2rem; align-items: end; }
.hero-art { width: min(100%, 26rem); margin: 0 auto; }
.hero-copy h1 { font-size: clamp(2.5rem, 8.5vw, 4.75rem); line-height: 1.02; letter-spacing: -.01em; max-width: 12ch; }
.hero-copy p { font-size: 1.0625rem; max-width: 34rem; margin: 1.25rem 0 1.75rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .hero-art { order: 2; width: 100%; max-width: 28rem; margin: 0 0 0 auto; }
  .hero-copy { padding-bottom: 2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art .arch-img { animation: arch-rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-art .arch-line { animation: arch-fade 1.4s .5s ease-out both; }
}
@keyframes arch-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes arch-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Category arches ---------- */
.cat-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(8.5rem, 1fr);
  gap: 1rem; overflow-x: auto; padding: 10px 10px 4px; margin: -10px -10px 0; scroll-snap-type: x mandatory;
}
.cat-tile { text-decoration: none; scroll-snap-align: start; }
.cat-tile .arch { margin-bottom: .75rem; }
.cat-tile h3 { font-size: 1.125rem; }
.cat-tile p { margin: .25rem 0 0; font-size: .875rem; color: var(--ink-soft); }

/* ---------- Promise strip ---------- */
.promises { display: grid; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.promise { display: grid; grid-template-columns: 2.25rem 1fr; gap: .875rem; align-items: start; }
.promise svg { width: 2.25rem; height: 2.25rem; stroke: var(--zari); fill: none; stroke-width: 1.2; }
.promise h3 { font-family: var(--text); font-size: 1rem; font-weight: 500; margin-bottom: .2rem; }
.promise p { margin: 0; font-size: .9375rem; color: var(--ink-soft); }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem 1.5rem; } }
.card { text-decoration: none; display: block; }
.card-img { position: relative; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; margin-bottom: .75rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.025); }
.card-designer { font-size: .8125rem; color: var(--ink-soft); }
.card-name { font-size: .9375rem; margin: .1rem 0 .3rem; line-height: 1.35; }
.card-price { font-weight: 500; font-size: .9375rem; }
.card-price .approx { font-weight: 400; color: var(--ink-soft); font-size: .8125rem; margin-left: .3rem; }
.tag {
  position: absolute; left: .5rem; top: .5rem; padding: .15rem .5rem;
  background: rgba(255, 255, 255, .92); font-size: .75rem; border-radius: var(--radius);
}

/* Placeholder when a product photo isn't generated yet */
.ph {
  width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 1rem;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .35), transparent 60%),
    var(--sw, var(--tile));
}
.ph span {
  font-family: var(--display); font-size: 1.05rem; line-height: 1.15; color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}
.ph.light span { color: var(--ink); text-shadow: none; }
.thumbs .ph span, .line-img .ph span { display: none; }

/* ---------- Designers list ---------- */
.designers { display: grid; gap: 0; border-top: 1px solid var(--mist); }
.designer-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--mist); text-decoration: none;
}
.designer-row strong { font-family: var(--display); font-weight: 500; font-size: 1.375rem; }
.designer-row:hover strong { color: var(--kattha); }
@media (min-width: 760px) { .designers { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

/* ---------- Listing page ---------- */
.page-head { padding: clamp(1.5rem, 5vw, 3rem) 0 1rem; }
.page-head h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
.page-head p { margin: .5rem 0 0; color: var(--ink-soft); max-width: 40rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0 1rem; }
.chip {
  flex: none; min-height: 40px; padding: 0 1rem; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--mist); background: var(--paper); font-size: .9375rem; text-decoration: none;
  display: inline-flex; align-items: center;
}
.chip[aria-pressed='true'], .chip[aria-current='page'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 0; margin-bottom: 1.25rem; border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist);
}
.toolbar select { border: 0; background: transparent; padding: .5rem; cursor: pointer; }
.empty { padding: 3rem 0; text-align: center; }
.empty p { color: var(--ink-soft); }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 1.5rem; padding-top: 1rem; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; padding-top: 2rem; align-items: start; } }
.gallery { display: grid; gap: .5rem; }
.gallery-main { aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: .5rem; }
.thumbs button { width: 4.5rem; aspect-ratio: 4 / 5; padding: 0; border: 1px solid transparent; background: var(--tile); cursor: pointer; overflow: hidden; }
.thumbs button[aria-current='true'] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .pdp-info { position: sticky; top: 6rem; } }
.pdp-info h1 { font-size: clamp(1.875rem, 4.5vw, 2.625rem); }
.pdp-designer { font-size: .9375rem; color: var(--ink-soft); text-decoration: none; }
.pdp-designer:hover { color: var(--kattha); }
.price-block { display: grid; gap: .5rem; }
.price { font-size: 1.5rem; font-weight: 500; }
.price .approx { font-size: 1rem; font-weight: 400; color: var(--ink-soft); margin-left: .5rem; }
.duty {
  display: flex; gap: .5rem; align-items: flex-start; font-size: .9375rem;
  padding: .625rem .75rem; background: var(--paper); border: 1px solid var(--mist); border-radius: var(--radius);
}
.duty svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; stroke: var(--pista); fill: none; stroke-width: 1.6; }
.duty.ddu svg { stroke: var(--zari); }
.size-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.size-head button { border: 0; background: none; padding: .25rem 0; color: var(--kattha); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: .9375rem; }
.sizes { display: flex; gap: .5rem; flex-wrap: wrap; }
.size {
  min-width: 3rem; min-height: 44px; padding: 0 .9rem; cursor: pointer;
  border: 1px solid var(--mist); background: var(--paper); border-radius: var(--radius);
}
.size[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-error { color: var(--kattha); font-size: .9375rem; font-weight: 500; margin: .5rem 0 0; }
.sizes.needs-size .size { border-color: var(--kattha); box-shadow: 0 0 0 1px var(--kattha); }
@media (prefers-reduced-motion: no-preference) { .sizes.needs-size { animation: nudge .35s ease; } }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.dispatch { display: grid; gap: .15rem; font-size: .9375rem; }
.dispatch strong { font-weight: 500; }
.pdp-actions { display: grid; gap: .5rem; }
.pieces { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.pieces th, .pieces td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--mist); vertical-align: top; }
.pieces th { font-weight: 500; width: 38%; padding-right: 1rem; }
details { border-bottom: 1px solid var(--mist); }
details summary { cursor: pointer; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; font-weight: 500; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-weight: 300; font-size: 1.25rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details > div { padding: 0 0 1rem; color: var(--ink-soft); font-size: .9375rem; }
.colour-note { font-size: .8125rem; color: var(--ink-soft); margin: 0; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; gap: .75rem; align-items: center; padding: .75rem var(--gutter);
  background: var(--paper); border-top: 1px solid var(--mist);
  transform: translateY(100%); transition: transform .25s ease;
}
.sticky-bar.show { transform: none; }
.sticky-bar .btn { flex: 1; }
.sticky-bar .sb-price { font-weight: 500; }
@media (min-width: 900px) { .sticky-bar { display: none; } }

/* ---------- Sheets, drawers ---------- */
.scrim { position: fixed; inset: 0; background: rgba(42, 31, 34, .45); z-index: 40; opacity: 0; transition: opacity .2s; }
.scrim.show { opacity: 1; }
.sheet {
  position: fixed; z-index: 41; background: var(--ivory); display: flex; flex-direction: column;
  left: 0; right: 0; bottom: 0; max-height: 88vh; border-radius: 14px 14px 0 0;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .7, .2, 1);
}
.sheet.show { transform: none; }
.sheet.side {
  left: auto; top: 0; bottom: 0; width: min(100%, 26rem); max-height: none; border-radius: 0;
  transform: translateX(100%);
}
.sheet.side.show { transform: none; }
.sheet.left { right: auto; left: 0; transform: translateX(-100%); }
@media (min-width: 900px) {
  .sheet:not(.side) { left: 50%; right: auto; bottom: auto; top: 50%; width: min(92vw, 34rem); border-radius: 6px; transform: translate(-50%, -46%); opacity: 0; transition: transform .22s, opacity .22s; }
  .sheet:not(.side).show { transform: translate(-50%, -50%); opacity: 1; }
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem var(--gutter); border-bottom: 1px solid var(--mist); }
.sheet-head h2 { font-size: 1.5rem; }
.sheet-body { padding: 1rem var(--gutter) 1.5rem; overflow-y: auto; flex: 1; }
.sheet-foot { padding: 1rem var(--gutter); border-top: 1px solid var(--mist); background: var(--paper); }
.region-list { display: grid; gap: .5rem; }
.region-opt {
  display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .75rem;
  padding: .75rem; border: 1px solid var(--mist); border-radius: var(--radius); background: var(--paper);
  text-align: left; cursor: pointer; width: 100%;
}
.region-opt[aria-pressed='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.region-opt .flag { font-size: .75rem; font-weight: 500; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--mist); display: grid; place-items: center; background: var(--ivory); }
.region-btn svg { width: 18px; height: 18px; }
.region-opt small { display: block; color: var(--ink-soft); }
.nav-list { display: grid; }
.nav-list a { padding: .9rem 0; border-bottom: 1px solid var(--mist); text-decoration: none; font-family: var(--display); font-size: 1.5rem; }

/* Size chart */
.chart { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.chart th, .chart td { padding: .55rem .4rem; border-bottom: 1px solid var(--mist); text-align: center; }
.chart th:first-child, .chart td:first-child { text-align: left; }
.unit-toggle { display: inline-flex; border: 1px solid var(--mist); border-radius: 99px; overflow: hidden; margin-bottom: 1rem; }
.unit-toggle button { border: 0; background: var(--paper); padding: .35rem 1rem; cursor: pointer; }
.unit-toggle button[aria-pressed='true'] { background: var(--ink); color: #fff; }

/* Filters */
.filter-group { padding: .75rem 0 1rem; border-bottom: 1px solid var(--mist); }
.filter-group h3 { font-family: var(--text); font-weight: 500; font-size: 1rem; margin-bottom: .6rem; }
.filter-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* Cart */
.line { display: grid; grid-template-columns: 5rem 1fr; gap: .875rem; padding: 1rem 0; border-bottom: 1px solid var(--mist); }
.line-img { aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-size: .9375rem; line-height: 1.35; }
.line-meta { font-size: .8125rem; color: var(--ink-soft); }
.line-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--mist); border-radius: var(--radius); }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 1.5rem; text-align: center; font-size: .9375rem; }
.remove { border: 0; background: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font-size: .8125rem; padding: .25rem 0; }
.totals { display: grid; gap: .4rem; font-size: .9375rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .grand { font-size: 1.125rem; font-weight: 500; padding-top: .5rem; border-top: 1px solid var(--mist); margin-top: .25rem; }
.totals .note { font-size: .8125rem; color: var(--ink-soft); display: block; }

/* ---------- Checkout ---------- */
.checkout > *, .pdp > *, .confirm > *, .hero-grid > *, .footer-grid > *, .row2 > * { min-width: 0; }
.checkout { display: grid; gap: 2rem; padding: 1.5rem 0 4rem; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; } }
.checkout h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.form-section { display: grid; gap: .875rem; padding: 1.25rem 0; border-bottom: 1px solid var(--mist); }
.form-section h2 { font-size: 1.375rem; }
.field { display: grid; gap: .3rem; }
.field label { font-size: .875rem; font-weight: 500; }
.field input, .field select {
  width: 100%; min-width: 0; min-height: 48px; padding: 0 .875rem; border: 1px solid #CFC3BE; border-radius: var(--radius); background: var(--paper);
}
.field input:focus, .field select:focus { outline: 2px solid var(--kattha); outline-offset: 0; border-color: var(--kattha); }
.field .hint { font-size: .8125rem; color: var(--ink-soft); }
.field.invalid input { border-color: var(--kattha); }
.field .err { font-size: .8125rem; color: var(--kattha); }
.row2 { display: grid; gap: .875rem; grid-template-columns: 1fr 1fr; }
.option {
  display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center;
  padding: .875rem; border: 1px solid var(--mist); border-radius: var(--radius); background: var(--paper); cursor: pointer;
}
.option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option input { accent-color: var(--kattha); width: 1.1rem; height: 1.1rem; }
.option small { display: block; color: var(--ink-soft); }
.option[aria-disabled='true'] { opacity: .5; cursor: not-allowed; }
.check-row { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; color: var(--ink-soft); }
.check-row input { accent-color: var(--kattha); margin-top: .2rem; }
.summary { background: var(--paper); border: 1px solid var(--mist); padding: 1.25rem; display: grid; gap: 1rem; }
@media (min-width: 900px) { .summary { position: sticky; top: 6rem; } }
.summary-line { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: .75rem; align-items: center; font-size: .875rem; }
.summary-line .line-img { width: 3.5rem; }

/* Mock payment */
.pay-card { display: grid; gap: .875rem; }
.pay-brand { display: flex; align-items: center; justify-content: space-between; font-size: .875rem; color: var(--ink-soft); }
.spinner { width: 2.5rem; height: 2.5rem; border: 2px solid var(--mist); border-top-color: var(--kattha); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 1rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Confirmation & tracking ---------- */
.confirm { display: grid; gap: 2rem; padding: 2rem 0 4rem; align-items: center; }
@media (min-width: 900px) { .confirm { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.confirm .arch { width: min(70%, 18rem); margin: 0 auto; }
.confirm h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); }
.facts { display: grid; gap: .75rem; margin: 1.5rem 0; padding: 1.25rem 0; border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); }
.facts div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.track { max-width: 40rem; padding: 2rem 0 4rem; }
.track h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); margin-bottom: .5rem; }
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; }
.timeline li { position: relative; padding: 0 0 1.75rem 2.25rem; }
.timeline li::before {
  content: ''; position: absolute; left: .45rem; top: 1.4rem; bottom: 0; width: 1px; background: var(--mist);
}
.timeline li:last-child::before { display: none; }
.timeline .dot {
  position: absolute; left: 0; top: .2rem; width: 1rem; height: 1rem; border-radius: 50%;
  border: 1px solid #CFC3BE; background: var(--ivory);
}
.timeline .done .dot { background: var(--pista); border-color: var(--pista); }
.timeline .now .dot { border: 2px solid var(--kattha); background: var(--paper); }
.timeline strong { display: block; font-weight: 500; }
.timeline span { font-size: .875rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(3rem, 8vw, 6rem); padding: 2.5rem 0 6rem; border-top: 1px solid var(--mist); background: var(--paper); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid button, .footer-grid a { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; font-size: .9375rem; color: var(--ink-soft); text-align: left; }
.footer-grid button:hover, .footer-grid a:hover { color: var(--kattha); }
.powered { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--mist); font-size: .875rem; color: var(--ink-soft); }
.powered a { display: inline-flex; align-items: center; min-height: 44px; color: var(--kattha); font-weight: 500; text-underline-offset: 3px; }

/* ---------- Feedback button & toast ---------- */
.feedback-fab {
  position: fixed; left: var(--gutter); bottom: 1rem; z-index: 30;
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem;
  border: 0; border-radius: 99px; background: var(--ink); color: #fff; cursor: pointer;
  box-shadow: 0 6px 20px rgba(42, 31, 34, .22); font-size: .9375rem;
  transition: bottom .25s ease;
}
.feedback-fab svg { width: 18px; height: 18px; fill: currentColor; }
body.bar-visible .feedback-fab { bottom: 5.25rem; }
@media (max-width: 599px) { .feedback-fab { padding: 0 .9rem; font-size: .875rem; min-height: 40px; } .feedback-fab .long { display: none; } }
@media (min-width: 600px) { .feedback-fab .short { display: none; } }
.toast {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 60; transform: translate(-50%, calc(100% + 2rem));
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius);
  font-size: .9375rem; transition: transform .25s ease, visibility .25s; max-width: calc(100% - 2rem);
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
body.bar-visible .toast { bottom: 5.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Phones (iPhone and Android) ---------- */
a, button, input, select, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (max-width: 599px) {
  .header-inner { padding-top: .375rem; padding-bottom: .375rem; }
}
/* 44px minimum touch targets for small links */
.wordmark, .text-link, .pdp-designer, .size-head button { display: inline-flex; align-items: center; min-height: 44px; }
.checkout .option .text-link { min-height: 44px; padding: 0 .25rem; }
@media (pointer: coarse) { .chip { min-height: 44px; } .size { min-height: 48px; min-width: 3.25rem; } }
/* iOS zooms into inputs smaller than 16px */
.field input, .field select, .toolbar select { font-size: 16px; }
/* notch, rounded corners and home indicator */
.header-inner, .wrap, .sheet-head, .sheet-body, .sheet-foot {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.sticky-bar { padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.feedback-fab { bottom: calc(1rem + env(safe-area-inset-bottom)); left: max(var(--gutter), env(safe-area-inset-left)); }
body.bar-visible .feedback-fab { bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
.toast { bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
body.bar-visible .toast { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
.sheet-foot, .sheet:not(:has(.sheet-foot)) .sheet-body { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
/* Safari's collapsing toolbar: size panels to the visible screen */
.sheet { max-height: 88dvh; }
.sheet.side { height: 100vh; height: 100dvh; bottom: auto; }
.sheet-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
/* horizontal rows scroll by swipe without a scrollbar */
.chips, .cat-row { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar, .cat-row::-webkit-scrollbar { display: none; }
/* hover effects only where there is a real pointer, so they don't stick after a tap */
@media (hover: none) {
  .card:hover .card-img img { transform: none; }
  .btn:hover { background: var(--kattha); }
  .btn-ghost:hover, .icon-btn:hover { background: transparent; }
}

/* very small phones (iPhone SE 1st gen, small Androids) */
@media (max-width: 359px) {
  .header-inner { gap: .5rem; }
  .wordmark { font-size: 1.5rem; }
  .icon-btn { padding: 0 .375rem; }
}

/* ---------- Admin chat (demo) ---------- */
body.admin-mode .site-footer, body.admin-mode .feedback-fab { display: none; }
.pin-card { max-width: 22rem; margin: 3rem auto; display: grid; gap: 1rem; }
.pin-card h1 { font-size: 2.25rem; }
.pin-card p { margin: 0; }
.pin-card .err { color: var(--kattha); font-size: .9375rem; }
.admin { max-width: 46rem; margin: 0 auto; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--mist); }
.admin-head h1 { font-size: 1.75rem; }
.admin-head .text-link { white-space: nowrap; flex: none; }
.admin-head p { margin: .2rem 0 0; }
.chat-log { display: flex; flex-direction: column; gap: .75rem; padding-top: 1rem; padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
.msg { max-width: 86%; padding: .7rem .9rem; border-radius: 16px; font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.msg.agent { align-self: flex-start; background: var(--paper); border: 1px solid var(--mist); border-bottom-left-radius: 4px; }
.msg.admin { align-self: flex-end; background: var(--kattha); color: #fff; border-bottom-right-radius: 4px; }
.msg.admin img { width: 11rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.msg.admin:has(img) { padding: .35rem; }
.msg .quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.msg .quick .chip { min-height: 44px; }
.msg.card-msg { max-width: 100%; width: min(100%, 30rem); padding: 0; overflow: hidden; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; color: var(--ink-soft); }
.steps li.done { color: var(--pista); }
.draft-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tile); }
.draft-body { padding: 1rem; display: grid; gap: .75rem; }
.draft-kicker { margin: 0; font-size: .8125rem; color: var(--zari); }
.draft-title { font-size: 1.5rem; }
.draft-desc { margin: 0; color: var(--ink-soft); }
.draft-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; font-size: .875rem; }
.draft-facts dt { color: var(--ink-soft); }
.draft-facts dd { margin: 0; font-weight: 500; display: flex; align-items: center; gap: .4rem; }
.draft-facts .sw { width: .9rem; height: .9rem; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.draft-typed { margin: 0; padding: .5rem .75rem; background: var(--ivory); border-radius: var(--radius); font-size: .9375rem; }
.draft-prices { width: 100%; border-collapse: collapse; font-size: .875rem; }
.draft-prices caption { text-align: left; font-weight: 500; padding-bottom: .35rem; }
.draft-prices th, .draft-prices td { text-align: left; padding: .35rem 0; border-bottom: 1px solid var(--mist); font-weight: 400; }
.draft-prices td { text-align: right; }
.draft-warn { margin: 0; color: var(--kattha); font-size: .875rem; }
.draft-done { margin: 0; color: var(--pista); font-weight: 500; }
.draft-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.draft-actions .btn { flex: 1 1 auto; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 16; background: var(--paper); border-top: 1px solid var(--mist); padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom)); }
.composer-inner { max-width: 46rem; margin: 0 auto; display: flex; align-items: center; gap: .5rem; padding: 0 max(var(--gutter), env(safe-area-inset-left)); }
.composer input[type="text"] { flex: 1; min-width: 0; min-height: 44px; padding: 0 1rem; font-size: 16px; border: 1px solid #CFC3BE; border-radius: 22px; background: var(--ivory); }
.composer input[type="text"]:focus { outline: 2px solid var(--kattha); outline-offset: 0; }
.composer .attach, .composer .send { flex: none; width: 44px; border-radius: 50%; }
.composer .send { background: var(--kattha); color: #fff; }
.composer .send:hover { background: var(--kattha-deep); }
.pub-item { display: grid; grid-template-columns: 3rem 1fr auto; gap: .75rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--mist); margin-top: .6rem; }
.pub-item img { width: 3rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.pub-item a { text-decoration: none; font-weight: 500; }
.pub-item small { display: block; color: var(--ink-soft); }
