/* Late Light shop - marketplace styling, mobile first */
:root {
  --brand: #E6197E;
  --brand-dark: #C2156B;
  --brand-wash: #FFF0F7;
  --ink: #121212;
  --body: #55565B;
  --muted: #8B8D97;
  --line: #E6E6E8;
  --paper: #FFFFFF;
  --wash: #F7F7F9;
  --good: #06864B;
  --good-wash: #E6F5EE;
  --bad: #B91C1C;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(18, 18, 18, .08);
  --shadow-lg: 0 6px 24px rgba(18, 18, 18, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--wash); color: var(--body);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 10px; font-weight: 600; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hide { display: none !important; }
.center { text-align: center; }

/* ------------------------------------------------------------ header */
header.site { position: sticky; top: 0; z-index: 40; background: var(--paper);
  box-shadow: var(--shadow); }
.notice { background: var(--ink); color: #fff; font-size: 12px; text-align: center; padding: 6px 14px; }
.bar { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.logo { display: flex; align-items: center; gap: 8px; flex: none; }
.mark { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); position: relative; }
.mark::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px;
  border-radius: 50%; background: #FFD166; }
.logo b { font-size: 17px; letter-spacing: .02em; color: var(--ink); font-weight: 800; }
.logo i { display: block; font-size: 10px; font-style: normal; color: var(--muted); letter-spacing: .12em;
  text-transform: uppercase; }
.search { flex: 1; max-width: 560px; }
.search form { display: flex; align-items: center; gap: 10px; background: var(--paper);
  border: 1px solid #D6D6DA; border-radius: 8px; padding: 0 14px; }
.search form:focus-within { border-color: var(--muted); }
.magnifier { color: var(--muted); font-size: 15px; line-height: 1; }
.search input { flex: 1; border: 0; background: none; font: inherit; padding: 11px 0; color: var(--ink);
  outline: none; }
.search button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 17px;
  padding: 0; line-height: 1; }
.headlinks { display: flex; align-items: center; gap: 18px; flex: none; }
.textlink { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.textlink:hover { color: var(--brand); }
.divider { width: 1px; height: 26px; background: var(--line); }
.headlink { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px;
  color: var(--ink); font-weight: 600; position: relative; }
.headlink span.icon { font-size: 17px; line-height: 1; }
.headlink .count { position: absolute; top: -5px; right: -10px; background: var(--brand); color: #fff;
  border-radius: 999px; font-size: 10px; padding: 1px 5px; font-weight: 700; }
.catstrip { border-top: 1px solid var(--line); background: var(--paper); }
.catstrip .wrap { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.catstrip .wrap::-webkit-scrollbar { display: none; }
.catstrip a { padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap;
  border-bottom: 3px solid transparent; }
.catstrip a:hover, .catstrip a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); }
.catstrip a[aria-current] { font-weight: 600; }

/* trust card under the hero */
.trustband { background: var(--brand-wash); padding: 0 0 14px; }
.trustcard { background: var(--paper); border-radius: 10px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; gap: 26px; padding: 14px 18px;
  transform: translateY(-18px); overflow-x: auto; scrollbar-width: none; }
.trustcard::-webkit-scrollbar { display: none; }
.trustcard div { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--ink); white-space: nowrap; }
.trustcard em { font-style: normal; font-size: 17px; }
.vline { width: 1px; height: 22px; background: var(--line); flex: none; }

/* ----------------------------------------------------------- buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 8px; background: var(--brand); color: #fff; text-align: center; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: var(--paper); color: var(--brand); border: 1px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-wash); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.block { display: block; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.small { padding: 8px 14px; font-size: 13px; }

/* -------------------------------------------------------------- home */
.hero { background: linear-gradient(105deg, #FFE7B0 0%, #FFC46B 34%, #C2156B 34%, #7B2FF7 100%); }
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 44px 20px 52px; display: grid;
  grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; }
.hero-left .kicker { display: inline-block; background: rgba(87, 13, 45, .12); color: #5A1230;
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.hero h1 { color: #4A0F2A; font-size: 40px; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 10px; }
.hero p { color: #6B2144; font-weight: 600; margin: 0 0 20px; font-size: 15px; }
.hero-btn { background: #fff; color: #A3145E; font-size: 16px; padding: 14px 32px; }
.hero-btn:hover { background: #FFF0F7; }
.hero-right { display: flex; justify-content: center; }
.hero-badge { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(4px); border-radius: 16px; padding: 26px 30px; text-align: center; color: #fff; }
.hero-badge b { display: block; font-size: 30px; line-height: 1.1; }
.hero-badge span { font-size: 14px; opacity: .9; }
.arches { display: flex; gap: 18px; overflow-x: auto; padding: 8px 0 18px; scrollbar-width: none;
  justify-content: center; }
.arches::-webkit-scrollbar { display: none; }
.arch { flex: none; width: 126px; text-align: center; }
.archpic { display: block; height: 152px; background: var(--brand-wash); overflow: hidden;
  border-radius: 63px 63px 10px 10px; margin-bottom: 10px; }
.archpic img { width: 100%; height: 100%; object-fit: cover; }
.arch b { font-size: 14px; color: var(--ink); font-weight: 500; display: block; }
.arch:hover b { color: var(--brand); }
.viewall { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .03em; }

/* horizontal product rail with arrows */
.railwrap { position: relative; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px;
  scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { flex: none; width: 196px; scroll-snap-align: start; }
.railbtn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg);
  font-size: 20px; line-height: 1; color: var(--ink); cursor: pointer; }
.railbtn.left { left: -14px; }
.railbtn.right { right: -14px; }

/* explainer band */
.promo { background: #EFEBFF; border-radius: var(--radius); padding: 22px 24px; margin: 14px 0;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.promo h3 { margin: 0 0 4px; color: #2E1065; }
.promo p { margin: 0; color: #4C3A8A; font-size: 14px; }
.promo .spacer, .promo .btn { margin-left: auto; }
.promo .btn.ghost { border-color: #6D28D9; color: #6D28D9; background: #fff; }
.section { background: var(--paper); border-radius: var(--radius); padding: 16px 14px 20px; margin: 14px 0; }
.section > .row { margin-bottom: 14px; }
.section h2 { margin: 0; }

/* ------------------------------------------------------ product grid */
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
.card { background: var(--paper); border-radius: 6px; overflow: hidden; display: flex;
  flex-direction: column; border: 1px solid #F0F0F2; transition: box-shadow .15s ease; }
.card:hover { box-shadow: var(--shadow-lg); }
.card .pic { aspect-ratio: 3/4; background: var(--wash); position: relative; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .info { padding: 8px 9px 11px; }
.card .name { color: var(--body); font-size: 13px; margin-bottom: 6px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.card .price { color: var(--ink); font-size: 17px; font-weight: 700; }
.card .pricerow { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.mrp { color: var(--muted); text-decoration: line-through; font-size: 12px; }
.off { color: var(--good); font-size: 12px; font-weight: 700; }
.freedel { display: inline-block; background: var(--wash); color: var(--body); font-size: 11px;
  font-weight: 600; padding: 3px 7px; border-radius: 4px; margin-top: 7px; }
.ratingrow { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.rating { display: inline-flex; align-items: center; gap: 3px; background: #16794A; color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 5px; }
.reviews { color: var(--muted); font-size: 11px; }
.tag { position: absolute; top: 8px; left: 8px; background: rgba(18,18,18,.82); color: #fff;
  font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 4px; }

/* ----------------------------------------------------- listing page */
.listing { display: grid; grid-template-columns: 232px 1fr; gap: 14px; align-items: start; margin: 14px 0; }
.filters { background: var(--paper); border-radius: var(--radius); padding: 14px; position: sticky; top: 108px; }
.filters h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin-bottom: 10px; }
.fgroup { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.fgroup:first-of-type { border-top: 0; }
.fgroup b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.fgroup label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px;
  cursor: pointer; }
.fgroup input { accent-color: var(--brand); width: 15px; height: 15px; }
.sortbar { background: var(--paper); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sortbar select { border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; font: inherit;
  font-size: 13px; color: var(--ink); background: var(--paper); }
.mobilebar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 35; background: var(--paper);
  border-top: 1px solid var(--line); }
.mobilebar button { flex: 1; border: 0; background: none; font: inherit; font-weight: 700; font-size: 14px;
  padding: 14px 0; color: var(--ink); cursor: pointer; }
.mobilebar button + button { border-left: 1px solid var(--line); }
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: flex;
  align-items: flex-end; }
.sheet > div { background: var(--paper); width: 100%; max-height: 76vh; overflow: auto;
  border-radius: 16px 16px 0 0; padding: 16px 16px 24px; }

/* ------------------------------------------------------ product page */
.detail { display: grid; gap: 22px; grid-template-columns: 420px 1fr; margin: 14px 0;
  background: var(--paper); border-radius: var(--radius); padding: 16px; align-items: start; }
.gallery .main { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; aspect-ratio: 3/4;
  background: var(--wash); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line);
  cursor: pointer; }
.thumbs img[aria-selected="true"] { border-color: var(--brand); border-width: 2px; }
.pdp-price { font-size: 30px; font-weight: 800; color: var(--ink); }
.opts { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.opt { border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 8px 15px;
  cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-wash); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 7px;
  overflow: hidden; }
.qty button { border: 0; background: var(--wash); font: inherit; font-size: 16px; width: 34px; height: 36px;
  cursor: pointer; color: var(--ink); }
.qty input { width: 42px; text-align: center; border: 0; font: inherit; height: 36px; }
.specs { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.specs th { text-align: left; color: var(--muted); font-weight: 600; padding: 7px 14px 7px 0;
  white-space: nowrap; vertical-align: top; }
.specs td { padding: 7px 0; color: var(--ink); }

/* -------------------------------------------------------------- cart */
.panel { background: var(--paper); border-radius: var(--radius); padding: 16px; }
.twocol { display: grid; gap: 14px; grid-template-columns: 1.45fr 1fr; align-items: start; margin: 14px 0; }
.lines { display: flex; flex-direction: column; gap: 14px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: start;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; padding-bottom: 0; }
.line img { width: 76px; height: 96px; object-fit: cover; border-radius: 7px; background: var(--wash); }
.totals { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.totals.grand { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; font-size: 17px;
  font-weight: 700; color: var(--ink); }
.saving { background: var(--good-wash); color: var(--good); font-weight: 700; font-size: 13px;
  border-radius: 7px; padding: 9px 12px; margin-top: 10px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; background: var(--paper); color: var(--ink); }
.field textarea { min-height: 76px; resize: vertical; }
.field .err { color: var(--bad); font-size: 12px; margin-top: 4px; }
.two { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.note { background: var(--wash); border-radius: 8px; padding: 12px; font-size: 13px; }
.empty { text-align: center; padding: 54px 16px; background: var(--paper); border-radius: var(--radius); }
.empty p { max-width: 42ch; margin: 0 auto 18px; }
.msg { border-radius: 8px; padding: 12px 14px; font-size: 14px; margin: 12px 0; }
.msg.ok { background: var(--good-wash); color: var(--good); }
.msg.warn { background: #FFF7E6; color: #8A5A00; }
.msg.bad { background: #FEF2F2; color: var(--bad); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 3px 8px;
  background: var(--wash); color: var(--body); }

/* ------------------------------------------------------------ footer */
footer.site { background: var(--paper); border-top: 1px solid var(--line); margin-top: 20px; padding: 26px 0 30px; }
.fcols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.fcols h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fcols a, .fcols p { display: block; color: var(--body); font-size: 13px; padding: 3px 0; margin: 0; }
.fcols a:hover { color: var(--brand); }
.legal { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; font-size: 12px;
  color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------- admin */
.tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 8px 18px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--body); }
.tabs button[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--paper); }
table.data th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.scroll { overflow-x: auto; }
.status-new { color: #8A5A00; background: #FFF7E6; }
.status-confirmed { color: #1E40AF; background: #DBEAFE; }
.status-shipped { color: #5B21B6; background: #EDE9FE; }
.status-delivered { color: var(--good); background: var(--good-wash); }
.status-cancelled { color: var(--bad); background: #FEE2E2; }

@media (max-width: 1000px) {
  .detail { grid-template-columns: 340px 1fr; }
}
@media (max-width: 860px) {
  .listing { grid-template-columns: 1fr; }
  .filters { display: none; }
  .detail, .twocol { grid-template-columns: 1fr; }
  .mobilebar { display: flex; }
  .headlinks .hide-sm { display: none; }
  body.has-mobilebar { padding-bottom: 56px; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 30px 18px 36px; }
  .hero-right { display: none; }
  .railbtn { display: none; }
  .arches { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 28px; }
  .arch { width: 96px; }
  .archpic { height: 116px; border-radius: 48px 48px 8px 8px; }
  .trustcard { gap: 14px; padding: 12px; justify-content: flex-start; }
  .trustcard div { font-size: 12px; }
  .textlink { display: none; }
  .divider { display: none; }
  .bar { flex-wrap: wrap; gap: 8px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .banner { padding: 22px 18px; }
  .banner h1 { font-size: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .two { grid-template-columns: 1fr; }
  .trust .wrap { gap: 18px; justify-content: flex-start; }
  .pdp-price { font-size: 25px; }
}

/* ---------------------------------------------------------- payment */
.payamount { display: flex; align-items: baseline; justify-content: space-between;
  background: var(--brand-wash); border-radius: 8px; padding: 12px 14px; margin: 12px 0 16px; }
.payamount b { font-size: 24px; color: var(--ink); }
.payrow { display: grid; grid-template-columns: 210px 1fr; gap: 16px; align-items: start; }
.qrbox { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff;
  display: flex; justify-content: center; }
.qrbox img, .qrbox canvas { display: block; }
.upiid { font-size: 17px; font-weight: 700; color: var(--ink); margin: 2px 0 10px; word-break: break-all; }
@media (max-width: 560px) {
  .payrow { grid-template-columns: 1fr; }
}
