/* Family Kraft — public site styles. Mobile first. */
@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

@font-face { font-family: "Noto Sans Telugu"; src: url("/fonts/noto-sans-telugu-telugu-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0C00-0C7F, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Telugu"; src: url("/fonts/noto-sans-telugu-telugu-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; unicode-range: U+0C00-0C7F, U+200C-200D, U+25CC; }
:root {
  --bg: #fbf6ee; --paper: #fffdf9; --sunk: #f4ece0; --line: #e9dccb;
  --ink: #2b1a1d; --ink-2: #4a3639; --muted: #75615f;
  --brand: #6b1f2e; --brand-ink: #fff; --brand-2: #521623; --brand-soft: #f6e4e3;
  --gold: #86601a; --gold-soft: #f3e3bb; --ok: #2d6a4c; --ok-soft: #e2f1e8; --warn: #8a5a00; --warn-soft: #fbefd2; --bad: #a3282f; --bad-soft: #fbe3e2;
  --wa: #14733c;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(60, 30, 20, .06), 0 6px 20px -8px rgba(60, 30, 20, .18);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", "Noto Sans Telugu", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Telugu", sans-serif;
  --gutter: 16px; --maxw: 1200px; --tabbar: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171012; --paper: #211719; --sunk: #2a1e21; --line: #3a2a2d;
    --ink: #f4ebe5; --ink-2: #dccdc6; --muted: #b3a19c;
    --brand: #b34a5d; --brand-ink: #fff; --brand-2: #9a3a4c; --brand-soft: #3a1f25;
    --gold: #d9b060; --gold-soft: #3b2f18; --ok: #6fc59a; --ok-soft: #173327; --warn: #f0c165; --warn-soft: #3a2d10; --bad: #f08a8f; --bad-soft: #3d1b1d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -10px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
@media (min-width: 768px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; scroll-padding-bottom: calc(var(--tabbar) + 24px); }
@media (min-width: 900px) { html { scroll-padding-bottom: 0; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); overflow-x: hidden; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: #eaa2ae; } }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.icon { width: 1.35em; height: 1.35em; flex: none; vertical-align: -.3em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.mt { margin-top: 1.4em; }
[hidden] { display: none !important; }

/* ---------- announcement + header */
.banner { background: var(--brand); color: #fff; font-size: .9rem; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 44px; position: relative; text-align: center; }
.banner p { margin: 0; }
.banner a { color: #fff; }
.banner__close { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; font-size: 1.4rem; width: 40px; height: 40px; cursor: pointer; }
.header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px -12px rgba(60, 30, 20, .35); }
.header__inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px var(--gutter); min-height: 60px; }
.header__menu { display: inline-flex; background: none; border: 0; width: 44px; height: 44px; align-items: center; justify-content: center; margin-left: -10px; cursor: pointer; color: var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 46px; height: 46px; border-radius: 50%; background: #feece6; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.brand__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: .01em; color: var(--brand); line-height: 1; }
.brand__name { color: #4a1838; }
.brand__name em { font-style: italic; font-weight: 600; color: #b44a60; }
@media (prefers-color-scheme: dark) { .brand__name { color: #f1c6cd; } .brand__name em { color: #f19aab; } }
.header__nav { display: none; }
.header__actions { display: flex; gap: 2px; }
.iconbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; }
.iconbtn:hover { background: var(--sunk); }
.iconbtn--outline { border: 1px solid var(--line); background: var(--paper); flex: none; }
.iconbtn[aria-pressed="true"] { color: var(--bad); }
.iconbtn[aria-pressed="true"] .icon { fill: currentColor; }
.count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.header__actions .iconbtn[href="/search"] { display: none; }
@media (min-width: 900px) {
  .header__menu { display: none; }
  .header__nav { display: flex; gap: 4px; }
  .header__nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
  .header__nav a:hover, .header__nav a[aria-current="page"] { background: var(--sunk); color: var(--ink); }
  .header__actions .iconbtn[href="/search"] { display: inline-flex; }
  .brand { margin-right: 24px; }
  .header__nav { margin-right: auto; }
}

/* ---------- drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(20, 8, 10, .45); }
.drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(86vw, 340px); background: var(--paper); padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; box-shadow: var(--shadow); animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(-100%); } }
.drawer__close { background: none; border: 0; font-size: 2rem; line-height: 1; width: 44px; height: 44px; margin: -6px 0 6px -10px; cursor: pointer; color: var(--ink); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { padding: 11px 0; text-decoration: none; color: var(--ink); font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.drawer__h { margin: 22px 0 4px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawer__cats a { font-size: 1rem !important; color: var(--ink-2) !important; }

/* ---------- bottom tab bar (mobile app feel) */
.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { position: relative; flex: 1; height: var(--tabbar); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 500; }
.tabbar a .icon { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--brand); }
@media (prefers-color-scheme: dark) { .tabbar a[aria-current="page"] { color: #f1a7b3; } }
.tabbar a[href^="https://wa.me"] { color: var(--wa); }
.tabbar .count { top: 6px; right: calc(50% - 22px); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- buttons, chips, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--brand); background: transparent; color: var(--brand); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { background: var(--brand-2); border-color: var(--brand-2); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--ghost .icon { color: var(--wa); }
.btn--primary .icon { color: currentColor; }
.btn--small { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { .btn { color: #f1b3bd; border-color: #b34a5d; } .btn--primary { color: #fff; } .btn--ghost { color: var(--ink); border-color: var(--line); } }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--brand); cursor: pointer; text-decoration: underline; text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 12px; padding: 2px var(--gutter) 6px; scroll-snap-type: x proximity; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .93rem; white-space: nowrap; scroll-snap-align: start; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; color: var(--ink-2); font-weight: 500; }
.field input, .field textarea, .field select, .filters select, .coupon input, .filters input[type="search"], .bigsearch input {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font-size: 1rem; font-weight: 400; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .filters select:focus, .coupon input:focus, .filters input:focus, .bigsearch input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); }
.formgrid { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 640px) { .formgrid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.formmsg { min-height: 1.4em; margin: 8px 0 0; font-size: .92rem; }
.formmsg--error, .formmsg.is-error { color: var(--bad); }
.formmsg.is-ok { color: var(--ok); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); }
.alert--ok { background: var(--ok-soft); color: var(--ok); }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; background: var(--gold-soft); color: var(--ink-2); padding: 10px 14px; border-radius: var(--radius-sm); margin: 12px 0 0; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }

/* ---------- layout */
.page, .section { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.page { padding-top: 16px; padding-bottom: 48px; }
.page--narrow { max-width: 760px; }
.section { margin-top: 56px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__head h2 { margin: 0; }
.section__intro { color: var(--muted); max-width: 640px; margin-top: -6px; }
.more { flex: none; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 .6em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 12px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page__head { margin-bottom: 16px; }
.page__head h1 { margin-bottom: .2em; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.4em; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
@media (min-width: 640px) { .panel { padding: 26px; } }
.panel h2 { font-size: 1.5rem; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------- hero */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter) 8px; display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.2rem); line-height: 1.02; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.hero__cta.center { justify-content: center; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--ink-2); }
.hero__trust .icon { color: var(--gold); margin-right: 4px; }
.hero__art { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 1.15; }
.hero__ph { margin: 0; border-radius: 22px; overflow: hidden; background: var(--sunk); box-shadow: var(--shadow); }
.hero__ph img { width: 100%; height: 100%; object-fit: cover; }
.hero__ph--1 { grid-row: 1 / 3; border-radius: 200px 200px 22px 22px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding-top: 40px; gap: 48px; }
  .hero__art { aspect-ratio: 1.05; }
}

/* ---------- category tiles */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(5, 1fr); } }
.cat { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sunk); text-decoration: none; isolation: isolate; }
.cat img, .cat .img-missing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(30, 10, 12, .78)); z-index: 1; }
.cat__name { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; color: #fff; font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.1; }
.cat__name small { font-family: var(--sans); font-size: .8rem; opacity: .8; font-weight: 400; margin-left: 4px; }
.cat:hover img { transform: scale(1.05); }

/* ---------- Pelli rail */
.section--band { max-width: none; padding: 40px 0 44px; background: linear-gradient(180deg, var(--brand-soft), transparent); }
.section--band > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.rail { --railpad: var(--gutter); display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--railpad) 12px !important; scroll-padding-inline: var(--railpad); scrollbar-width: thin; max-width: none !important; }
.rail__item { flex: 0 0 min(62vw, 230px); scroll-snap-align: start; text-decoration: none; color: var(--ink); }
.rail__item img, .rail__item .img-missing { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-radius: 120px 120px var(--radius) var(--radius); background: var(--sunk); box-shadow: var(--shadow); transition: transform .25s; }
.rail__item:hover img { transform: translateY(-4px); }
.rail__name { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-top: 10px; line-height: 1.15; }
.rail__price { display: block; font-size: .92rem; }
@media (min-width: 1240px) { .rail { --railpad: calc((100vw - var(--maxw)) / 2 + var(--gutter)); } }

/* ---------- product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sunk); }
.card__media img, .card__media .img-missing { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 10px 2px 0; flex: 1; }
.card__cat { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__title { font-family: var(--sans); font-size: .98rem; font-weight: 500; line-height: 1.3; margin: 0 0 4px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__swatches { font-size: .8rem; color: var(--muted); margin: 2px 0 0; }
.card__add { position: absolute; z-index: 2; right: 8px; top: calc((100% - 0px) * 0); margin-top: 8px; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; cursor: pointer; text-decoration: none; box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.card__add:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.card__add.is-added { background: var(--ok); color: #fff; border-color: var(--ok); }
.badge { position: absolute; left: 8px; top: 8px; z-index: 1; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.badge--star { background: var(--gold-soft); color: #6a4a10; }
.badge--sale { background: var(--bad); color: #fff; }
.badge--out { background: var(--ink); color: var(--bg); }
.img-missing { display: block; width: 100%; aspect-ratio: 4 / 5; background: repeating-linear-gradient(45deg, var(--sunk), var(--sunk) 10px, var(--bg) 10px, var(--bg) 20px); }
.price { font-weight: 600; font-size: .98rem; color: var(--ink); }
.price__was { color: var(--muted); font-weight: 400; font-size: .88em; }
.price__off { color: var(--ok); font-size: .82em; }
.price__unit { font-weight: 400; color: var(--muted); font-size: .85em; }
.price--quote { color: var(--gold); font-weight: 600; }
.price--big { font-size: 1.55rem; }
.stars { color: var(--gold); letter-spacing: 2px; }
.stars__off { opacity: .25; }

/* ---------- shop filters */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.filters__search { grid-column: 1 / -1; position: relative; }
.filters__search .icon, .bigsearch .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.filters__search input, .bigsearch input { padding-left: 44px !important; }
.filters select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.filters .check { grid-column: 1 / -1; }
@media (min-width: 800px) { .filters { grid-template-columns: 2fr 1fr 1fr auto; } .filters__search, .filters .check { grid-column: auto; } }
.results { color: var(--muted); font-size: .9rem; margin: 6px 0 14px; }
.bigsearch label { position: relative; display: block; margin: 8px 0 20px; }
.bigsearch input { min-height: 56px; font-size: 1.1rem; border-radius: 999px; }

/* ---------- product page */
.pdp { display: grid; gap: 24px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } .gallery { position: sticky; top: 84px; } }
.gallery__main { border-radius: var(--radius); overflow: hidden; background: var(--sunk); margin: 0 calc(-1 * var(--gutter)); border-radius: 0; }
@media (min-width: 640px) { .gallery__main { margin: 0; border-radius: var(--radius); } }
.gallery__slide { margin: 0; }
.gallery__slide img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--sunk); }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb { flex: none; width: 64px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--sunk); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--brand); }
.pdp__info h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); margin-bottom: .25em; }
.pdp__price { margin: 4px 0 6px; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 500; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail--in { color: var(--ok); } .avail--mto { color: var(--gold); } .avail--out { color: var(--bad); }
.buy { margin: 18px 0 22px; display: grid; gap: 14px; }
.buy[inert] { opacity: .6; }
.buy__row { display: flex; gap: 10px; align-items: center; }
.swatches { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.swatches legend { font-size: .92rem; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-size: .92rem; }
.swatch input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.swatch input:focus-visible + span { outline: 2.5px solid var(--gold); outline-offset: 2px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); height: 48px; flex: none; }
.qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.qty input { width: 40px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty--small { height: 38px; }
.qty--small button { width: 34px; }
.pdp__desc { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; list-style: none; padding: 14px 28px 14px 0; font-weight: 600; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--muted); transition: transform .2s; }
.acc[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.acc > *:not(summary) { color: var(--ink-2); padding-bottom: 6px; }
.stickybuy { position: fixed; z-index: 35; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(60, 30, 20, .4); animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(100%); } }
@media (min-width: 900px) { .stickybuy { display: none !important; } }

/* ---------- steps, quotes, CTA */
.steps__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 700px) { .steps__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps__list { grid-template-columns: repeat(4, 1fr); } }
.steps__list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps__list h3 { margin: 10px 0 4px; }
.steps__list p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft); color: #6a4a10; font-weight: 700; font-family: var(--serif); font-size: 1.2rem; }
.quotes { display: grid; gap: 14px; }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.quote blockquote { margin: 8px 0 12px; font-family: var(--serif); font-size: 1.22rem; line-height: 1.4; }
.quote blockquote p { margin: 0; }
.quote figcaption { color: var(--muted); font-size: .9rem; }
.cta { display: grid; gap: 16px; align-items: center; background: var(--brand); color: #fff; border-radius: 24px; padding: 30px 24px; margin-bottom: 56px; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn--primary { background: #fff; color: var(--brand); border-color: #fff; }
.cta .btn--primary .icon { color: var(--wa); }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn--ghost .icon { color: #fff; }
@media (min-width: 800px) { .cta { grid-template-columns: 1fr auto; padding: 40px 44px; } .section.cta { max-width: calc(var(--maxw) - 2 * var(--gutter)); } }
@media (max-width: 799px) { .section.cta { margin-left: var(--gutter); margin-right: var(--gutter); } }

/* ---------- bag & checkout */
.bag { display: grid; gap: 20px; }
@media (min-width: 900px) { .bag { grid-template-columns: 1.6fr 1fr; align-items: start; } .bag__summary { position: sticky; top: 84px; } }
.line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img, .line .img-missing { width: 84px; height: 100px; object-fit: cover; border-radius: 10px; background: var(--sunk); }
.line__name { font-weight: 600; color: var(--ink); text-decoration: none; display: block; line-height: 1.3; }
.line__opts { font-size: .86rem; color: var(--muted); margin: 2px 0 8px; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.line__rm { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; margin-right: -8px; }
.line__rm:hover { color: var(--bad); }
.line__warn { color: var(--bad); font-size: .86rem; margin: 4px 0 0; }
.bag__summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.bag__summary h2 { font-size: 1.5rem; }
.sum { margin: 0 0 14px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum dt { color: var(--ink-2); } .sum dd { margin: 0; text-align: right; }
.sum__total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; font-size: 1.15rem; font-weight: 700; }
.coupon { display: flex; gap: 8px; }
.coupon input { min-height: 42px; }
.checkout { margin-top: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 900px) { .checkout { max-width: calc((100% - 20px) * 1.6 / 2.6); padding: 28px; } }
.emptybag { text-align: center; padding: 40px 16px; }
.emptybag .icon { width: 56px; height: 56px; color: var(--gold); margin-bottom: 8px; }
.success { text-align: center; max-width: 620px; margin: 10px auto 28px; }
.success > .icon { width: 64px; height: 64px; color: var(--ok); }
.order-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.otable { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: .95rem; }
.otable th, .otable td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.otable thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.otable .num { text-align: right; white-space: nowrap; }
.otable tfoot th { font-weight: 600; }
.qr { margin: 18px 0 0; text-align: center; }
.qr svg { width: 200px; height: 200px; margin: 0 auto 8px; border-radius: 12px; background: #fff; padding: 6px; }
.qr figcaption { font-size: .9rem; color: var(--muted); }
.progress { list-style: none; padding: 0; margin: 12px 0 16px; display: flex; gap: 4px; counter-reset: p; }
.progress li { flex: 1; font-size: .74rem; text-align: center; color: var(--muted); padding-top: 16px; position: relative; }
.progress li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--line); }
.progress li.done { color: var(--ink); font-weight: 600; }
.progress li.done::before { background: var(--ok); }
.rating { border: 0; padding: 0; margin: 0 0 12px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.rating legend { float: left; width: 100%; font-size: .92rem; color: var(--ink-2); margin-bottom: 4px; }
.rating input { position: absolute; opacity: 0; }
.rating label { font-size: 2rem; color: var(--line); cursor: pointer; padding: 0 2px; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--gold); }
.rating input:focus-visible + label { outline: 2px solid var(--gold); }

/* ---------- about / contact / blog */
.about { display: grid; gap: 28px; }
@media (min-width: 900px) { .about { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; } }
.about__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about__photos img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__photos a:nth-child(1) img { border-radius: 120px 120px var(--radius) var(--radius); }
.about__photos a:nth-child(2) { margin-top: 36px; }
.about__sign { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--brand); }
.stats { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.stats li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 8px; }
.stats strong { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--brand); line-height: 1; }
.stats span { font-size: .85rem; color: var(--muted); }
.contact { display: grid; gap: 14px; margin: 20px 0; }
@media (min-width: 640px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__card h2 { margin-bottom: .1em; }
.contact__card a:not(.btn) { color: var(--ink); text-decoration: none; }
.info { display: grid; gap: 0; margin: 0 0 26px; }
.info > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); font-size: .92rem; } .info dd { margin: 0; }
.posts { display: grid; gap: 24px; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card a { color: var(--ink); text-decoration: none; }
.post-card img, .post-card .img-missing { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.post-card h2 { font-size: 1.45rem; margin-bottom: .2em; }
.post-cover { margin: 0 0 24px; } .post-cover img { border-radius: var(--radius); }

/* ---------- footer, toast */
.footer { background: var(--sunk); margin-top: 64px; padding: 44px 0 20px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 28px; }
@media (min-width: 800px) { .footer__inner { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__name { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--brand); margin: 0; }
@media (prefers-color-scheme: dark) { .footer__name { color: #f1c6cd; } }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-2); }
.footer__social { display: flex; flex-direction: column; gap: 8px; }
.footer__social a, .footer__col a { color: var(--ink-2); text-decoration: none; }
.footer__social a:hover, .footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__col { display: flex; flex-direction: column; gap: 6px; }
.footer__h { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.footer__copy { max-width: var(--maxw); margin: 28px auto 0; padding: 16px var(--gutter) 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); font-size: .95rem; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); animation: rise .2s ease-out; }
.toast a { color: var(--gold-soft); font-weight: 600; }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* ---------- scroll-in motion (only when JS is on and motion is OK) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media print {
  .header, .tabbar, .footer, .banner, .toast, .btn, .stickybuy { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}

/* sections nested in a page already have the page gutter */
.page .section { padding-left: 0; padding-right: 0; }

/* ---------- language switch */
.langbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.langbtn:hover { background: var(--sunk); color: var(--ink); }
html[lang="te"] body { font-family: "Noto Sans Telugu", var(--sans); }
html[lang="te"] h1, html[lang="te"] h2, html[lang="te"] h3 { font-family: var(--serif), "Noto Sans Telugu"; font-weight: 600; letter-spacing: 0; line-height: 1.35; }

/* ---------- festival banner */
.banner--festival { background: linear-gradient(90deg, #7a3b0a, #a0521a); }

/* ---------- buy / rent */
.modes { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.mode { cursor: pointer; }
.mode input { position: absolute; opacity: 0; }
.mode span { display: block; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.mode span small { display: block; color: var(--muted); margin-top: 2px; }
.mode input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.mode input:focus-visible + span { outline: 2.5px solid var(--gold); outline-offset: 2px; }

/* ---------- name preview */
.namecard { margin: -4px 0 0; padding: 16px; border-radius: var(--radius); text-align: center; background: radial-gradient(circle at 50% 0, #fff8ec, #f6e3c8); border: 1px dashed var(--gold); color: #6a2033; }
.namecard__flower { display: block; color: #d06a7c; font-size: 1.1rem; }
.namecard__text { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.9rem; line-height: 1.2; word-break: break-word; }
.namecard figcaption { font-size: .75rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }

/* ---------- calculators & date check */
.calc { background: var(--sunk); border-radius: var(--radius-sm); padding: 12px 14px 4px; }
.calc__out { font-size: .92rem; color: var(--ink-2); }
.when { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; background: var(--paper); }
.when summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; }
.when summary .icon { color: var(--gold); }
.when__row { display: flex; gap: 8px; }
.when__row input { flex: 1; min-height: 42px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.when__msg { display: block; font-size: .9rem; margin: 8px 0 12px; min-height: 1em; }
.when__msg.is-ok { color: var(--ok); } .when__msg.is-warn { color: var(--warn); }
.sum__disc { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--ok); }
.sum__disc dd { margin: 0; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: var(--gold-soft); color: #6a4a10; }

/* ---------- bundle builder */
.bundle-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.bundle-cta span { color: var(--ink-2); font-size: .92rem; }
.tiers { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.tiers li { padding: 10px 16px; border-radius: var(--radius-sm); background: var(--paper); border: 1.5px solid var(--line); text-align: center; transition: all .2s; }
.tiers li strong { display: block; font-size: 1.15rem; color: var(--brand); }
.tiers li span { font-size: .85rem; color: var(--muted); }
.tiers li.is-on { border-color: var(--ok); background: var(--ok-soft); }
.bundle { display: grid; gap: 20px; }
@media (min-width: 900px) { .bundle { grid-template-columns: 1fr 320px; align-items: start; } .bundle__sum { position: sticky; top: 84px; } }
.bundle__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .bundle__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pick { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: var(--paper); transition: border-color .15s, transform .15s; }
.pick input { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; accent-color: var(--brand); z-index: 1; }
.pick img, .pick .img-missing { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.pick__name { font-weight: 600; padding: 8px 10px 0; line-height: 1.25; }
.pick__price { padding: 0 10px 10px; font-size: .92rem; }
.pick:has(input:checked) { border-color: var(--brand); transform: translateY(-2px); }
.bundle__count { font-weight: 600; }

/* ---------- real weddings & progress photos */
.rail__item--photo img { border-radius: var(--radius) !important; aspect-ratio: 4 / 5; }
.wall { columns: 2 180px; column-gap: 12px; }
@media (min-width: 900px) { .wall { columns: 3 260px; } }
.wall__item { break-inside: avoid; margin: 0 0 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.wall__item figcaption { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.wall__item figcaption span { color: var(--muted); }
.wall__item figcaption a { font-weight: 600; text-decoration: none; }
.progress-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.progress-photos figure { margin: 0; }
.progress-photos img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; width: 100%; }
.progress-photos figcaption { font-size: .88rem; margin-top: 4px; }
.progress-photos small { display: block; color: var(--muted); }

/* ---------- photo focus points (set automatically, adjustable in the admin) */
img[class*="fx"] { object-position: var(--fx, 50%) var(--fy, 50%); }
.fx0{--fx:0%}.fy0{--fy:0%}.fx1{--fx:10%}.fy1{--fy:10%}.fx2{--fx:20%}.fy2{--fy:20%}.fx3{--fx:30%}.fy3{--fy:30%}.fx4{--fx:40%}.fy4{--fy:40%}.fx5{--fx:50%}.fy5{--fy:50%}.fx6{--fx:60%}.fy6{--fy:60%}.fx7{--fx:70%}.fy7{--fy:70%}.fx8{--fx:80%}.fy8{--fy:80%}.fx9{--fx:90%}.fy9{--fy:90%}.fx10{--fx:100%}.fy10{--fy:100%}

/* photos shown whole (shape too different from the tile to crop nicely) */
img.fit-whole { object-fit: contain !important; object-position: 50% 50%; background: radial-gradient(circle at 50% 45%, var(--paper), var(--sunk)); }
.card:hover .card__media img.fit-whole, .cat:hover img.fit-whole { transform: none; }

/* ---------- account */
.row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acct { display: grid; gap: 16px; }
@media (min-width: 900px) { .acct { grid-template-columns: 1fr 1fr; align-items: start; } }
.acct .panel { margin: 0; }
.panel--notice { background: var(--gold-soft); border-color: var(--gold); margin-bottom: 16px; }
.olist { list-style: none; padding: 0; margin: 0 0 8px; }
.olist li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.olist small { color: var(--muted); }
.coupons { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.coupons li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coupons code { font-weight: 700; background: var(--sunk); padding: 4px 10px; border-radius: 8px; letter-spacing: .04em; }
.coupons span { flex: 1; font-size: .9rem; color: var(--ink-2); }
.prefs { border: 0; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 0 14px; }
.prefs legend { font-size: .92rem; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.otp__row { display: flex; gap: 8px; margin-top: 10px; }
.otp__row input { flex: 1; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); font-size: 1rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 8px 0 16px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn .icon { width: 20px; height: 20px; }
.page--login .panel h2 .icon { color: var(--wa); }

/* ---------- chat widget */
.chatfab { position: fixed; z-index: 45; right: 16px; bottom: calc(var(--tabbar) + 14px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 8px 24px -8px rgba(60, 20, 30, .6); cursor: pointer; }
.chatfab .icon { width: 22px; height: 22px; }
.chatfab.has-new::after { content: ""; position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: #ffcf4a; box-shadow: 0 0 0 2px var(--brand); }
@media (min-width: 900px) { .chatfab { bottom: 24px; right: 24px; } }
@media (max-width: 899px) { .page--product ~ .chatfab, body:has(.stickybuy:not([hidden])) .chatfab { bottom: calc(var(--tabbar) + 78px + env(safe-area-inset-bottom)); } .chatfab span { display: none; } .chatfab { padding: 0; width: 52px; justify-content: center; } }
.chatbox { position: fixed; z-index: 70; right: 16px; bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - var(--tabbar) - 40px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px -20px rgba(40, 10, 20, .5); overflow: hidden; animation: rise .18s ease-out; }
@media (min-width: 900px) { .chatbox { bottom: 24px; right: 24px; } }
.chatbox[hidden] { display: none !important; }
.chatbox__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--brand); color: #fff; }
.chatbox__head img { border-radius: 50%; background: #fff; }
.chatbox__head div { flex: 1; line-height: 1.2; }
.chatbox__head small { display: block; opacity: .85; font-size: .78rem; }
.chatbox__close { background: none; border: 0; color: #fff; font-size: 1.6rem; width: 40px; height: 40px; cursor: pointer; }
.chatbox__msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.bubble { flex: none; max-width: 85%; margin: 0; padding: 9px 13px; border-radius: 16px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.bubble a { color: inherit; font-weight: 600; }
.bubble--ai { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble--shop { align-self: flex-start; background: var(--ok-soft); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble--me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.bubble--sys { align-self: center; background: none; color: var(--muted); font-size: .82rem; text-align: center; }
.bubble--typing { letter-spacing: 3px; color: var(--muted); }
.chatbox__chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; background: var(--bg); }
.chatbox__chips .chip { min-height: 34px; font-size: .82rem; padding: 0 12px; }
.chatbox__human { padding: 10px 12px; background: var(--gold-soft); display: grid; gap: 6px; }
.chatbox__human p { margin: 0; font-weight: 600; font-size: .9rem; }
.chatbox__human input { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.chatbox__form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.chatbox__form input { flex: 1; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 1rem; }
.chatbox__foot { margin: 0; padding: 0 12px 10px; font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- install sheet */
.installsheet { position: fixed; z-index: 65; left: 12px; right: 12px; bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px -16px rgba(40, 10, 20, .5); animation: rise .2s ease-out; }
.installsheet img { border-radius: 12px; flex: none; }
.installsheet div { flex: 1; line-height: 1.3; }
.installsheet small { display: block; color: var(--muted); font-size: .82rem; }
.installsheet__x { background: none; border: 0; font-size: 1.5rem; width: 36px; height: 36px; color: var(--muted); cursor: pointer; }
@media print { .chatfab, .chatbox, .installsheet { display: none !important; } }

/* UPI payment pop-up */
.upi-btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.upi-btn .icon { width: 20px; height: 20px; }
.upi { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 18px; padding: 26px 22px 20px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px -10px rgba(40, 15, 10, .45); text-align: center; overflow-y: auto; }
.upi::backdrop { background: rgba(35, 18, 20, .55); }
.upi h2 { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 6px; }
.upi__close { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: var(--ink-2); cursor: pointer; border-radius: 50%; }
.upi__close:hover { background: var(--sunk); }
.upi__amt { margin: 0 0 14px; }
.upi__amt strong { display: block; font-size: 1.9rem; color: var(--brand); }
.upi__amt small { color: var(--muted); }
.upi__hint { margin: 0 0 10px; color: var(--ink-2); }
.upi__logos { display: flex; justify-content: center; gap: 10px; margin: 0 0 6px; }
.upi__logos .icon { width: 34px; height: 34px; }
.upi__apps { display: none; }
.upi--phone .upi__apps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.upi--phone .upi__apps .upi__hint { grid-column: 1 / -1; }
.upi--phone .upi__hint--desk, .upi--phone .upi__logos { display: none; }
.upi__app { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.upi__app:active { background: var(--sunk); }
.upi__app .icon { width: 30px; height: 30px; flex: none; }
.upi__app--other { grid-column: 1 / -1; justify-content: center; }
.upi__qrwrap summary { display: none; }
.upi--phone .upi__qrwrap summary { display: block; cursor: pointer; color: var(--brand); padding: 6px 0; font-weight: 600; }
.upi .qr { margin-top: 6px; }
.upi__id { margin: 10px 0 14px; font-size: .95rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.upi__id code { background: var(--sunk); padding: 4px 8px; border-radius: 8px; }
.upi__paid { border-top: 1px solid var(--line); padding-top: 14px; text-align: left; }
.upi__paid .field { display: block; margin-bottom: 12px; }
/* chat on phones: full screen, follows the keyboard */
@media (max-width: 899px) {
  .chatbox { inset: auto 0 auto 0; top: var(--vvtop, 0px); bottom: auto; width: 100%; height: var(--vvh, 100dvh); border: 0; border-radius: 0; z-index: 95; animation: none; }
  .chatbox__head { padding-top: calc(10px + env(safe-area-inset-top)); }
  .chatbox__close { width: 48px; height: 48px; font-size: 2rem; }
  .chatbox__foot { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .chat-open, .chat-open body { overflow: hidden; overscroll-behavior: none; }
  .chat-open .tabbar, .chat-open .chatfab { display: none; }
  .chatbox__form input, .chatbox__human input { font-size: 16px; } /* stops iPhone zooming in */
}

/* chat: product cards & follow-up buttons */
.chatcards { flex: none; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; margin: -2px 0 2px; align-self: stretch; scrollbar-width: thin; }
.chatcard { flex: 0 0 148px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 8px; }
.chatcard__img { display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--sunk); }
.chatcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chatcard__name { font-size: .84rem; font-weight: 600; line-height: 1.25; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.chatcard__price { margin: 0; font-size: .86rem; font-weight: 700; color: var(--brand); }
.chatcard__price s { margin-left: 6px; font-weight: 400; color: var(--muted); font-size: .78rem; }
.chatcard .btn { width: 100%; min-height: 36px; font-size: .8rem; padding: 0 8px; margin-top: auto; }
.chatbox__reply { flex: none; display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.chatbox__reply .chip { min-height: 34px; font-size: .82rem; padding: 0 12px; background: var(--paper); border-color: var(--brand); color: var(--brand); }
.bubble--typing { font-size: 0; }
.bubble--typing::before { content: "● ● ●"; font-size: .7rem; letter-spacing: 2px; animation: fk-typing 1.2s ease-in-out infinite; }
@keyframes fk-typing { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bubble--typing::before { animation: none; } }

/* iPhone "add to home screen" guide */
.iosguide { position: fixed; inset: 0; z-index: 120; background: rgba(20, 8, 12, .6); display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); }
.iosguide__card { position: relative; width: min(420px, 100%); background: var(--paper); color: var(--ink); border-radius: 20px; padding: 22px 18px 16px; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .5); animation: rise .2s ease-out; }
.iosguide__card h2 { font-family: var(--serif); font-size: 1.45rem; margin: 0 36px 12px 0; }
.iosguide__x { position: absolute; top: 6px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; color: var(--muted); }
.iosguide__steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; counter-reset: s; }
.iosguide__steps li { display: flex; gap: 12px; align-items: center; font-size: .98rem; line-height: 1.35; }
.iosguide__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.iosguide__arrow { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); font-size: 2.2rem; color: #fff; animation: fk-bob 1s ease-in-out infinite; }
.iosguide__arrow--top { top: calc(6px + env(safe-area-inset-top)); bottom: auto; left: auto; right: 22px; transform: none; }
@keyframes fk-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .iosguide__arrow { animation: none; } }
.iosguide__icon .icon { width: 22px; height: 22px; }

/* chat: order tracking */
.chatorder { flex: none; align-self: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.chatorder p { margin: 0; }
.chatorder__head { display: flex; justify-content: space-between; gap: 8px; }
.chatorder__head span { font-weight: 700; color: var(--brand); }
.chatorder__items { font-size: .86rem; color: var(--ink-2); }
.chatorder__meta { font-size: .78rem; color: var(--muted); }
.chatorder__cancel { color: var(--bad); font-weight: 600; font-size: .86rem; }
.chatorder__steps { list-style: none; margin: 2px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.chatorder__steps li { font-size: .62rem; line-height: 1.2; text-align: center; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--line); border-radius: 2px; }
.chatorder__steps li.done { border-top-color: var(--ok); color: var(--ink); }
.chatorder__steps li[aria-current] { font-weight: 700; color: var(--ok); }
.chatorder .btn { justify-self: start; min-height: 34px; font-size: .8rem; }
.chatotp { flex: none; align-self: stretch; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.chatotp__h { margin: 0 0 8px; font-size: .88rem; }
.chatotp__row { display: flex; gap: 6px; }
.chatotp__row input { flex: 1; min-width: 0; min-height: 42px; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 16px; }
.chatotp__row input[hidden] { display: none; }
.chatotp .btn { min-height: 42px; }

/* chat: assistant / person switch */
.chatmode { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 10px; background: var(--paper); border-bottom: 1px solid var(--line); }
.chatmode__btn { display: flex; flex-direction: column; align-items: center; gap: 1px; min-height: 44px; padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink-2); font-weight: 600; font-size: .88rem; cursor: pointer; }
.chatmode__btn small { font-weight: 400; font-size: .7rem; color: var(--muted); }
.chatmode__btn[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.chatbox.is-person .chatbox__head { background: var(--ok); }
.chatbox__foot { display: flex; justify-content: center; gap: 8px; }
