/* Xomexo — storefront styles. Modelled on how Amazon.in and Meesho lay out a
   shop: white header with a plain wordmark, a row of tall photo tiles, one thin
   trust line, arch-topped category photos, 2x2 picture cards, plain product
   cards. No emoji, no badges, no gradients on content. */

:root {
  --blue:   #2340ff;
  --blue-dk:#1a31d6;
  --navy:   #1a2a8f;
  --sun:    #ffd814;
  --sun-dk: #f7ca00;
  --red:    #cc0c39;
  --green:  #067d62;
  --ink:    #0f1111;
  --text:   #333333;
  --muted:  #565959;
  --faint:  #8d9096;
  --line:   #dde1e6;
  --bg:     #eef0f3;
  --tint:   #f7f8fa;
  --white:  #ffffff;
  --head: "Roboto", Arial, sans-serif;
  --body: "Roboto", Arial, sans-serif;
  --wrap: 1360px;
  --gutter: clamp(10px, 2vw, 20px);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--head); margin: 0 0 .4em; line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .9em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
main { padding-top: 14px; }
.band, .panel { background: var(--white); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; }
.band-head, .panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 12px; }
.band-head h2, .panel-head h2 { margin: 0; }
.band-head a, .view-all { flex-shrink: 0; color: var(--blue); font-size: .92rem; font-weight: 500; }
.band-head a:hover, .view-all:hover { text-decoration: underline; }
.kicker { display: inline-block; font-size: .85rem; color: var(--blue); margin-bottom: .3rem; }
.kicker:hover { text-decoration: underline; }
.lede { color: var(--muted); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 42px; padding: 0 1.2rem; border-radius: 8px; border: 1px solid transparent; font-weight: 500; font-size: .95rem; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dk); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: var(--sun-dk); }
.btn--line { border-color: #d5d9d9; background: #fff; color: var(--ink); }
.btn--line:hover { background: var(--tint); }
.btn--sm { height: 34px; padding: 0 .9rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { color: var(--blue); }
.link:hover { text-decoration: underline; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: clamp(12px, 3vw, 36px); height: 66px; }
.logo { font-family: var(--head); font-weight: 700; font-size: 1.85rem; letter-spacing: -.03em; color: var(--blue); flex-shrink: 0; line-height: 1; }
.search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: .5rem; height: 42px; padding: 0 .8rem; border-radius: 6px; border: 1px solid #c9ced6; background: #fff; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,64,255,.12); }
.search svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; }
.search input::placeholder { color: var(--faint); }
.header-actions { display: flex; align-items: center; gap: .3rem; margin-left: auto; flex-shrink: 0; }
.icon { position: relative; display: grid; justify-items: center; gap: 2px; padding: .3rem .8rem; border: 0; background: none; font-size: .8rem; color: var(--text); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon:hover { color: var(--blue); }
.list-count { position: absolute; top: 0; right: 14px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.list-count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.catnav { border-top: 1px solid var(--line); }
.catnav-row { display: flex; overflow-x: auto; scrollbar-width: none; }
.catnav-row::-webkit-scrollbar { display: none; }
.catnav a { flex-shrink: 0; padding: .65rem .9rem; font-size: .9rem; color: var(--text); border-bottom: 2px solid transparent; }
.catnav a:first-child { padding-left: 0; }
.catnav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.catnav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- banner: one wide photo banner, like Meesho's ---------- */
.banner { display: grid; grid-template-columns: 1fr 1.15fr; align-items: stretch; height: clamp(240px, 24vw, 330px); background: #e9edff; border-radius: var(--r); overflow: hidden; margin-bottom: 14px; }
.banner-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 28px clamp(20px, 4vw, 56px); }
.banner-copy h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--navy); margin: 0 0 .35rem; }
.banner-copy p { font-size: 1.05rem; color: var(--text); max-width: 34ch; margin-bottom: 1.2rem; }
.banner-img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }

/* ---------- spin & win strip ---------- */
.spin-strip { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--r); padding: 14px 18px; margin-bottom: 14px; }
.spin-strip-wheel { width: 56px; height: 56px; flex-shrink: 0; }
.spin-strip-wheel svg { width: 100%; height: 100%; display: block; }
.spin-strip h2 { font-size: 1.05rem; margin: 0; }
.spin-strip p { margin: 0; color: var(--muted); font-size: .9rem; }
.spin-strip .btn { margin-left: auto; flex-shrink: 0; }

/* ---------- trust line ---------- */
.trust { display: flex; justify-content: center; gap: .6rem clamp(1.2rem, 4vw, 3.5rem); flex-wrap: wrap; background: #fff; border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; font-size: .88rem; color: var(--text); }
.trust span { display: inline-flex; align-items: center; gap: .45rem; }
.trust svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- category arches ---------- */
.cat-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); gap: 14px; overflow-x: auto; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip a { display: grid; justify-items: center; gap: 8px; font-size: .86rem; color: var(--text); text-align: center; line-height: 1.25; }
.cat-strip a:hover { color: var(--blue); }
.arch { display: block; width: 100%; max-width: 140px; aspect-ratio: 4 / 5; border-radius: 999px 999px 10px 10px; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-strip a:hover .arch img { transform: scale(1.04); }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 190px); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 8px; }
.row .card { scroll-snap-align: start; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card:hover { box-shadow: 0 2px 10px rgba(15,17,17,.1); }
.card-media { aspect-ratio: 1; background: var(--tint); display: block; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.card-name { font-family: var(--body); font-size: .95rem; font-weight: 400; color: var(--text); margin: 0 0 .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name a:hover { color: var(--blue); }
.card-spec { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qc { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.tick-ico { width: 12px; height: 12px; flex-shrink: 0; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.add-btn { margin-top: auto; height: 32px; border: 0; border-radius: 16px; background: var(--sun); color: var(--ink); font-size: .85rem; font-weight: 500; }
.card-body .add-btn { margin-top: .7rem; }
.add-btn:hover { background: var(--sun-dk); }
.add-btn.is-added { background: #fff; border: 1px solid #d5d9d9; }

/* category tiles (kept for any page that still uses data-cats) */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat { display: block; border-radius: var(--r); overflow: hidden; }
.cat-img { aspect-ratio: 1; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat h3 { margin: 8px 10px 0; font-family: var(--body); font-size: .9rem; }
.cat span { display: block; margin: 0 10px 10px; font-size: .78rem; color: var(--muted); }

.bulk-line { text-align: center; color: var(--text); padding: 6px 0 4px; margin: 0; }
.bulk-line a { color: var(--blue); }
.bulk-line a:hover { text-decoration: underline; }
.bulk-list { display: grid; gap: .45rem; margin: 0; padding: 0 0 0 1.2rem; list-style: disc; }

/* ---------- footer ---------- */
.footer { background: #172034; color: #c3c8d8; padding-top: 32px; margin-top: 24px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.5rem; padding-bottom: 1.5rem; }
.footer .logo { color: #fff; font-size: 1.6rem; }
.footer h4 { color: #fff; font-size: .9rem; font-weight: 700; margin: 0 0 .8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-about p { margin-top: .8rem; max-width: 34ch; }
.footer .link { color: #fff; }
.popular { border-top: 1px solid #2a344c; padding-block: 1rem; font-size: .82rem; line-height: 1.9; }
.popular b { color: #fff; margin-right: .4rem; font-weight: 500; }
.popular a { color: #a7afc4; }
.popular a + a::before { content: "|"; color: #44506b; margin: 0 .5rem; }
.footer-bottom { border-top: 1px solid #2a344c; padding-block: 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.pay { display: flex; gap: 1rem; flex-wrap: wrap; color: #a7afc4; }

/* ---------- inner pages ---------- */
.page-head { background: #fff; border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: .4rem; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.page-head h1 { margin-bottom: .2em; }
.page-head .lede { margin: 0; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pill { height: 32px; padding: 0 .9rem; border-radius: 16px; border: 1px solid #c9ced6; background: #fff; font-size: .85rem; color: var(--text); }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: #eef1ff; border-color: var(--blue); color: var(--blue); }
.results { margin-left: auto; font-size: .85rem; color: var(--muted); }
.search-note { background: var(--tint); border-radius: var(--r); padding: .7rem 1rem; margin-bottom: 12px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.empty { grid-column: 1 / -1; text-align: center; padding: 2.5rem 1rem; background: var(--tint); border-radius: var(--r); }
.empty p { color: var(--muted); }

.pdp { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(16px, 4vw, 40px); align-items: start; }
.pdp-media { position: sticky; top: 120px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--tint); }
.pdp-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pdp-info h1 { margin: .1rem 0 .4rem; font-weight: 500; }
.pdp-info .lede { margin-bottom: 1rem; }
.specs { list-style: none; margin: 0 0 1.2rem; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding: .55rem 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
.specs li span:first-child { color: var(--muted); }
.qty { display: inline-flex; align-items: center; height: 42px; border: 1px solid #c9ced6; border-radius: 8px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 1.2rem; }
.qty span { min-width: 32px; text-align: center; font-weight: 500; }
.buy { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.buy .btn--blue { flex: 1; min-width: 180px; }
.pdp-note { background: var(--tint); border-radius: var(--r); padding: .8rem 1rem; font-size: .88rem; color: var(--muted); }
.pdp-note strong { color: var(--ink); font-weight: 500; }
.qc-line { margin: 0 0 1rem; font-size: .88rem; color: var(--muted); }
.qc-line summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.qc-line summary::-webkit-details-marker { display: none; }
.qc-line summary b { color: var(--ink); font-weight: 500; }
.qc-more { color: var(--blue); }
.qc-line summary:hover .qc-more { text-decoration: underline; }
.qc-line[open] .qc-more { display: none; }
.qc-list { list-style: disc; margin: .5rem 0 0 1.4rem; padding: 0; display: grid; gap: .2rem; font-size: .86rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field-wrap { display: grid; gap: .3rem; }
.field-wrap--full { grid-column: 1 / -1; }
.field-wrap label { font-size: .84rem; font-weight: 500; }
.field { width: 100%; height: 42px; padding: 0 .8rem; border-radius: 6px; border: 1px solid #c9ced6; background: #fff; outline: none; }
.field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,64,255,.12); }
textarea.field { height: auto; min-height: 120px; padding: .7rem .8rem; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(16px, 4vw, 32px); align-items: start; }
.info-card { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.info-card h3 { margin-bottom: .2rem; }
.info-card p { margin: 0; color: var(--muted); }
.info-card a { color: var(--blue); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: .85rem 0; font-weight: 500; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding-bottom: 1rem; color: var(--muted); max-width: 72ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 40px); align-items: center; }
.split-media { border-radius: var(--r); overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.value { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
.value h3 { margin-bottom: .3rem; }
.value p { color: var(--muted); margin: 0; }

/* ---------- list drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15,17,17,.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.15rem; }
.drawer-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--tint); font-size: 1.3rem; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: .8rem 1.1rem; }
.line { display: grid; grid-template-columns: 60px 1fr auto; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.line img { width: 60px; height: 60px; border-radius: 6px; object-fit: cover; background: var(--tint); }
.line h4 { margin: 0 0 .3rem; font-size: .9rem; font-weight: 400; }
.line-qty { display: inline-flex; align-items: center; border: 1px solid #c9ced6; border-radius: 6px; height: 30px; }
.line-qty button { width: 28px; height: 100%; border: 0; background: none; }
.line-qty span { min-width: 22px; text-align: center; font-weight: 500; font-size: .88rem; }
.line-remove { border: 0; background: none; color: var(--blue); font-size: .8rem; }
.line-remove:hover { text-decoration: underline; }
.list-empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.drawer-form { border-top: 1px solid var(--line); padding: .9rem 1.1rem 1.1rem; display: grid; gap: .55rem; }
.drawer-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.drawer-form .form-note { margin: 0; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 160; transform: translate(-50%, 200%); background: var(--ink); color: #fff; padding: .65rem 1.1rem; border-radius: 6px; font-size: .9rem; transition: transform .3s ease; max-width: calc(100vw - 24px); text-align: center; }
.toast.is-open { transform: translate(-50%, 0); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; height: auto; padding-block: .6rem; row-gap: .5rem; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .pdp, .contact-grid, .split { grid-template-columns: 1fr; }
  .pdp-media { position: relative; top: 0; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .band, .panel, .page-head, .trust, .spin-strip { border-radius: 0; margin-inline: calc(-1 * var(--gutter)); }
  .banner { grid-template-columns: 1fr; height: auto; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .banner-img { order: -1; height: 190px; min-height: 0; }
  .banner-copy { padding: 18px var(--gutter) 20px; }
  .spin-strip { flex-wrap: wrap; }
  .trust { font-size: .8rem; gap: .4rem 1.2rem; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .row { grid-auto-columns: 44%; gap: 8px; }
  .cat-strip { grid-auto-columns: 84px; gap: 10px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .form-grid { grid-template-columns: 1fr; }
  .specs li { grid-template-columns: 100px 1fr; }
  .icon .label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- my account ---------- */
.acct { display: grid; grid-template-columns: 230px 1fr; gap: 14px; align-items: start; }
.acct-nav { background: #fff; border-radius: var(--r); padding: 8px 0; position: sticky; top: 124px; }
.acct-nav a { display: block; padding: .65rem 1.1rem; color: var(--text); border-left: 3px solid transparent; }
.acct-nav a:hover { background: var(--tint); }
.acct-nav a[aria-current="page"] { color: var(--blue); border-left-color: var(--blue); background: #f3f5ff; font-weight: 500; }
.acct-body { background: #fff; border-radius: var(--r); padding: 18px 20px 22px; min-height: 320px; }
.acct-body > h2 { margin-bottom: .6rem; }
.acct-note { color: var(--muted); font-size: .9rem; }
.acct-empty { text-align: center; padding: 2.5rem 1rem; background: var(--tint); border-radius: var(--r); color: var(--muted); }
.acct-empty strong { color: var(--ink); font-weight: 500; }
.acct-safe { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.acct-form { max-width: 560px; }
.label { font-size: .84rem; font-weight: 500; }
.kind { display: flex; gap: 1.2rem; height: 42px; align-items: center; }
.kind label, .check { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; }
.check { margin: .9rem 0 0; }
.form-actions { display: flex; gap: .6rem; margin-top: 1rem; }

.order { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.order-head { display: flex; flex-wrap: wrap; gap: .4rem 2rem; background: var(--tint); border-bottom: 1px solid var(--line); padding: .7rem 1rem; font-size: .82rem; }
.order-head span { display: block; color: var(--muted); }
.order-head b { font-weight: 500; }
.order-ref { margin-left: auto; text-align: right; }
.order-items { display: grid; gap: .7rem; padding: .9rem 1rem .2rem; }
.order-items a { display: flex; gap: .8rem; align-items: center; color: var(--text); }
.order-items a:hover { color: var(--blue); }
.order-items img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: var(--tint); }
.order-items small { display: block; color: var(--muted); }
.order-actions { display: flex; gap: .5rem; flex-wrap: wrap; padding: .8rem 1rem 1rem; }

.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.addr-card { position: relative; border: 1px solid #c9ced6; border-radius: 8px; padding: 1rem; min-height: 190px; display: flex; flex-direction: column; font-size: .9rem; background: #fff; text-align: left; }
.addr-card p { margin: 0 0 .3rem; }
.addr-card--add { border: 2px dashed #c9ced6; align-items: center; justify-content: center; gap: .3rem; color: var(--muted); font-weight: 500; font-size: 1rem; }
.addr-card--add:hover { border-color: var(--blue); color: var(--blue); }
.addr-card--add .plus { font-size: 2.4rem; line-height: 1; font-weight: 300; }
.addr-default { align-self: flex-start; font-size: .75rem; color: var(--muted); border-bottom: 1px solid var(--line); width: 100%; padding-bottom: .4rem; margin-bottom: .6rem; }
.addr-kind { font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 .35rem; margin-left: .3rem; }
.addr-actions { margin-top: auto; padding-top: .6rem; display: flex; gap: .2rem .9rem; flex-wrap: wrap; }
.addr-actions button { border: 0; background: none; padding: 0; color: var(--blue); font-size: .85rem; }
.addr-actions button:hover { text-decoration: underline; }

.pay-list { display: grid; gap: .6rem; max-width: 560px; }
.pay-opt { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid #c9ced6; border-radius: 8px; padding: .9rem 1rem; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--blue); background: #f3f5ff; }
.pay-opt input { margin-top: .2rem; }
.pay-opt b { display: block; font-weight: 500; }
.pay-opt small { color: var(--muted); font-size: .85rem; }

.reward-list { display: grid; gap: .5rem; max-width: 640px; }
.reward-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; }
.reward-row b { font-weight: 500; }
.reward-row small { display: block; color: var(--muted); }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; border-bottom: 1px solid var(--line); padding: 1rem 0; }
.setting p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; max-width: 60ch; }
.setting b { font-weight: 500; }

/* ---------- checkout inside the list drawer ---------- */
.drawer { overflow-y: auto; }
.drawer-body { flex: 0 0 auto; overflow: visible; }
.co-title { font-weight: 500; margin: .3rem 0 .1rem; }
.co-addr { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 6px; padding: .6rem .7rem; font-size: .85rem; cursor: pointer; }
.co-addr:has(input:checked) { border-color: var(--blue); background: #f3f5ff; }
.co-addr input { margin-top: .15rem; }
.co-addr b { font-weight: 500; }
.co-addr small { display: block; color: var(--muted); }
.co-new .form-grid { gap: .55rem; }
.co-new .field-wrap label, .co-new .label { font-size: .78rem; }
.co-new .check { margin-top: .6rem; font-size: .85rem; }
.co-pay-note { margin: 0; }

@media (max-width: 860px) {
  .acct { grid-template-columns: 1fr; }
  .acct-nav { position: static; display: flex; overflow-x: auto; padding: 0; scrollbar-width: none; }
  .acct-nav a { flex-shrink: 0; border-left: 0; border-bottom: 2px solid transparent; }
  .acct-nav a[aria-current="page"] { border-bottom-color: var(--blue); background: none; }
}
@media (max-width: 620px) {
  .acct-nav, .acct-body { border-radius: 0; margin-inline: calc(-1 * var(--gutter)); }
  .order-ref { margin-left: 0; text-align: left; }
  .setting { flex-direction: column; align-items: flex-start; }
  .co-new .form-grid { grid-template-columns: 1fr 1fr; }
  .co-new .field-wrap--full { grid-column: 1 / -1; }
}

/* ---------- back-end additions ---------- */
.sell-link { font-size: .85rem; color: var(--text); margin-right: .6rem; }
.sell-link:hover { color: var(--blue); text-decoration: underline; }
.order-status { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; padding: .7rem 1rem 0; font-size: .88rem; }
.order-status:empty { display: none; }
.order-status small { color: var(--muted); }
.status { font-weight: 500; padding: .1rem .55rem; border-radius: 10px; background: #eef1ff; color: var(--blue); font-size: .8rem; }
.status--quoted { background: #fff6dd; color: #9a6700; }
.status--confirmed, .status--delivered { background: #e8f6f1; color: var(--green); }
.status--shipped { background: #eaf4ff; color: #0b5cad; }
.status--cancelled { background: #fdecef; color: var(--red); }
.status-note { color: var(--text); }
@media (max-width: 860px) { .sell-link { display: none; } }

/* ---------- completeness pass: ratings, stock, gallery, options ---------- */
.stars { display: inline-flex; gap: 1px; font-size: .85rem; line-height: 1; color: #d5d9d9; }
.star.is-on { color: #f2a100; }
.star.is-half { background: linear-gradient(90deg, #f2a100 50%, #d5d9d9 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; margin-top: .3rem; }
.rating b { font-weight: 500; }
.rating small { color: var(--muted); }
.card-media { position: relative; }
.card-oos { position: absolute; left: 8px; bottom: 8px; background: rgba(15,17,17,.75); color: #fff; font-size: .75rem; padding: .15rem .5rem; border-radius: 3px; }
.card--oos .card-media img { opacity: .6; }
.add-btn[disabled] { background: var(--tint); color: var(--muted); cursor: default; }
.add-btn--link { display: grid; place-items: center; text-decoration: none; }
.line-opt, .line-oos { display: block; font-size: .78rem; color: var(--muted); margin: -.2rem 0 .35rem; }
.line-oos { color: var(--red); }
.list-rewards-note { margin: .4rem 0 0; font-size: .78rem; color: var(--muted); }

.pdp-main { position: relative; }
.pdp-thumbs { display: flex; gap: 8px; padding: 8px; background: #fff; border-top: 1px solid var(--line); overflow-x: auto; }
.pdp-thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: none; }
.pdp-thumbs button[aria-current="true"] { border: 2px solid var(--blue); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.wish-btn { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.wish-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.wish-btn.is-on svg { fill: #e0245e; stroke: #e0245e; }
.pdp-rating { display: inline-block; margin-bottom: .5rem; }
.pdp-rating:hover b { text-decoration: underline; }
.opt { margin: 0 0 .9rem; }
.opt-name { margin: 0 0 .35rem; font-size: .9rem; color: var(--muted); }
.opt-name b { color: var(--ink); font-weight: 500; }
.opt-values { display: flex; flex-wrap: wrap; gap: .4rem; }
.opt-pill { min-width: 44px; height: 36px; padding: 0 .8rem; border: 1px solid #c9ced6; border-radius: 6px; background: #fff; font-size: .88rem; }
.opt-pill:hover { border-color: var(--ink); }
.opt-pill[aria-pressed="true"] { border: 2px solid var(--blue); background: #f3f5ff; }
.opt--missing .opt-name { color: var(--red); }
.opt--missing .opt-pill { border-color: var(--red); }
.stock { font-weight: 500; color: var(--green); margin: 0 0 .7rem; }
.stock--low { color: #b45309; }
.stock--out { color: var(--red); }
.pin-check { margin: 0 0 1rem; }
.pin-check label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: .3rem; }
.pin-check div { display: flex; gap: .5rem; max-width: 320px; }
.pin-check .field { height: 36px; }
.pin-out { margin: .35rem 0 0; font-size: .85rem; }
.pin-out.is-ok { color: var(--green); }
.pin-out.is-bad { color: var(--red); }
.sold-by { font-size: .88rem; color: var(--muted); }
.sold-by b { color: var(--ink); font-weight: 500; }
.pdp-links { font-size: .88rem; }

/* reviews */
.rv-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; }
.rv-avg { display: flex; align-items: center; gap: .5rem; margin: 0 0 .2rem; }
.rv-avg .stars { font-size: 1.1rem; }
.rv-bar { display: grid; grid-template-columns: 52px 1fr 40px; gap: .5rem; align-items: center; font-size: .82rem; color: var(--muted); margin: .3rem 0; }
.rv-track { height: 14px; background: var(--tint); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.rv-track span { display: block; height: 100%; background: #f2a100; }
.rv { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.rv:first-child { padding-top: 0; }
.rv p { margin: 0 0 .3rem; }
.rv-head { display: flex; align-items: center; gap: .5rem; }
.rv-meta { font-size: .8rem; color: var(--muted); }
.rv-verified { color: #b45309; }

/* listing tools */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; margin: -4px 0 14px; font-size: .88rem; }
.list-tools .check { margin: 0; }
.list-tools .sort { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.list-tools select { height: 32px; border: 1px solid #c9ced6; border-radius: 6px; padding: 0 .5rem; background: #fff; color: var(--ink); }

/* account: sign in, orders */
.acct-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.acct-box { background: #fff; border-radius: var(--r); padding: 20px 22px; margin-bottom: 14px; }
.acct-box--narrow { max-width: 460px; }
.acct-loading { background: #fff; border-radius: var(--r); padding: 2rem; color: var(--muted); }
.acct-body .acct-loading { padding: 1rem 0; }
.mini-form { display: grid; gap: .75rem; }
.mini-form h4 { margin: 0; font-size: 1rem; }
.mini-form .field-wrap { display: grid; gap: .3rem; }
.code-field { letter-spacing: .4em; font-size: 1.2rem; text-align: center; }
.guest-orders { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.order-status { padding: .8rem 1rem 0; }
.order-track, .order-req { margin: .5rem 1rem 0; font-size: .88rem; }
.order-track a { color: var(--blue); }
.order-timeline { margin: .5rem 1rem 0; font-size: .86rem; }
.order-timeline summary { cursor: pointer; color: var(--blue); }
.order-timeline ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.order-timeline li { border-left: 2px solid var(--line); padding-left: .7rem; }
.order-timeline small { color: var(--muted); }
.order-timeline p { margin: .15rem 0 0; color: var(--text); }
.order-item { display: flex; gap: .8rem; align-items: flex-start; }
.order-item img, .order-noimg { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: var(--tint); flex-shrink: 0; }
.order-item a { color: var(--text); }
.order-item a:hover { color: var(--blue); }
.order-item small { display: block; color: var(--muted); }
.order-item .link-btn { margin-top: .2rem; }
.order-form:empty { display: none; }
.order-form { padding: 0 1rem 1rem; }
.order-form .mini-form { border-top: 1px solid var(--line); padding-top: .9rem; max-width: 520px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick label { font-size: 1.8rem; line-height: 1; color: #d5d9d9; cursor: pointer; }
.star-pick label:hover, .star-pick label:hover ~ label, .star-pick input:checked ~ label { color: #f2a100; }
.star-pick input:focus-visible + label { outline: 2px solid var(--blue); }
.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.wish-item { display: grid; gap: .45rem; align-content: start; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.wish-item a:first-child { display: grid; gap: .4rem; color: var(--text); font-size: .9rem; }
.wish-item img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 4px; }

/* contact + policy pages */
.kv { display: grid; gap: .5rem; margin: 0; }
.kv > div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.policy { max-width: 820px; }
.policy h2 { font-size: 1.15rem; margin: 1.4rem 0 .5rem; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--text); line-height: 1.6; }
.policy ul { padding-left: 1.2rem; }

@media (max-width: 860px) {
  .rv-wrap, .acct-split { grid-template-columns: 1fr; }
  .list-tools .sort { margin-left: 0; }
}

.acct--plain { display: block; }

.banner-links { display: flex; gap: .6rem; flex-wrap: wrap; }

.order-sale { margin: .6rem 1rem 0; font-size: .85rem; font-weight: 500; color: #b45309; }

/* ---------- festival themes ----------
   main.js puts the running festival on <html data-season="diwali">. Each
   festival gets one accent colour (--fest) and a soft tint (--fest-tint),
   used sparingly: the banner tint and headline, and a line on the festive
   edit here; the notice bar and block-print border in the premium look. */
html[data-season="diwali"]       { --fest: #a2650c; --fest-tint: #fbf2e2; }   /* diya gold */
html[data-season="navratri"]     { --fest: #b4530f; --fest-tint: #fdf0e3; }   /* marigold */
html[data-season="holi"]         { --fest: #b02f6e; --fest-tint: #fcebf3; }   /* gulal pink */
html[data-season="eidfitr"],
html[data-season="eidadha"]      { --fest: #11624f; --fest-tint: #e7f3ef; }   /* emerald */
html[data-season="rakhi"]        { --fest: #b2321f; --fest-tint: #fdeeea; }   /* rakhi red */
html[data-season="christmas"]    { --fest: #1f5a36; --fest-tint: #eaf3ed; }   /* pine */
html[data-season="ganesh"]       { --fest: #c25e0b; --fest-tint: #fef1e3; }   /* saffron */
html[data-season="blackfriday"]  { --fest: #141414; --fest-tint: #efefef; }   /* black */
html[data-season="newyear"]      { --fest: #1d2b53; --fest-tint: #eef0f7; }   /* midnight */
html[data-season="sankranti"]    { --fest: #1d6aa1; --fest-tint: #e8f2fa; }   /* kite sky */
html[data-season="onam"]         { --fest: #3f6d1d; --fest-tint: #eef5e6; }   /* banana leaf */
html[data-season="janmashtami"]  { --fest: #1f5f80; --fest-tint: #e8f2f7; }   /* peacock blue */
html[data-season="karwa"]        { --fest: #9b1c3a; --fest-tint: #fbe9ee; }   /* deep rose */
html[data-season="baisakhi"]     { --fest: #9a7410; --fest-tint: #faf4e2; }   /* wheat */
html[data-season="independence"] { --fest: #c05a12; --fest-tint: #fdf1e6; }   /* saffron */
html[data-season="wedding"]      { --fest: #a3261c; --fest-tint: #fdecea; }   /* sindoor */
/* Australia and the US */
html[data-season="boxingday"]    { --fest: #7a1f2b; --fest-tint: #f8ecee; }   /* claret */
html[data-season="eofy"]         { --fest: #2b3a33; --fest-tint: #edf0ee; }   /* deep green-grey */
html[data-season="valentines"]   { --fest: #a3213f; --fest-tint: #fbebef; }   /* rose */
html[data-season="easter"]       { --fest: #6b7d3a; --fest-tint: #f2f5e9; }   /* olive */
html[data-season="mothers"]      { --fest: #9c4f62; --fest-tint: #f9eef1; }   /* dusty rose */
html[data-season="fathers"]      { --fest: #2f4a63; --fest-tint: #ebf0f5; }   /* navy */
html[data-season="summer"]       { --fest: #1f6f8b; --fest-tint: #e8f3f7; }   /* sea */
html[data-season="winter"]       { --fest: #4a4f5c; --fest-tint: #eff0f3; }   /* slate */
html[data-season="memorial"],
html[data-season="july4"],
html[data-season="laborday"]     { --fest: #1f3a68; --fest-tint: #ebeff7; }   /* flag navy */
html[data-season="thanksgiving"] { --fest: #9a5a1e; --fest-tint: #faf1e7; }   /* harvest */

html[data-season] .banner { background: var(--fest-tint, #e9edff); }
html[data-season] .banner-copy h1 { color: var(--fest, var(--navy)); }
html[data-season] #festive { border-top: 3px solid var(--fest, transparent); }
html[data-season] #festive .band-head h2 { color: var(--fest, inherit); }
