/* Loom & Little — D2C home goods demo store
   Palette inspired by Home Centre India: teal primary, coral offer accent, warm sand neutrals */

:root {
  --teal: #0e7c6e;
  --teal-deep: #0a5a50;
  --teal-tint: #e3f1ee;
  --coral: #f26b3a;
  --coral-deep: #d9532a;
  --coral-tint: #fdeee7;
  --sand: #f8f4ed;
  --sand-deep: #efe8db;
  --ink: #22302d;
  --ink-soft: #5c6b67;
  --line: #e4ddd1;
  --white: #ffffff;
  --gold: #c9a05c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(34, 48, 45, 0.08);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--teal-deep);
  color: #eafaf6;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 9px 16px;
}
.announce strong { color: #ffd9a8; font-weight: 600; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-family: var(--font-head);
}
.logo em { font-style: normal; color: var(--coral); }
nav.main {
  display: flex;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
nav.main a:hover { color: var(--teal-deep); }
nav.main a.sale { color: var(--coral-deep); font-weight: 600; }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  min-width: 220px;
}
.icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
}
.icon-btn .badge {
  position: absolute;
  top: -4px; right: -6px;
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(115deg, var(--sand) 0%, var(--sand-deep) 55%, #e6ddca 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 64px 24px 72px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--teal-deep);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero p.lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(14, 124, 110, 0.3); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { background: transparent; color: var(--teal-deep); border: 1.5px solid var(--teal); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(242, 107, 58, 0.3); }
.btn-coral:hover { background: var(--coral-deep); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(34,48,45,0.14)); }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(34,48,45,0.12);
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--teal-deep);
}
.hero-stats div span { font-size: 13px; color: var(--ink-soft); }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em;
}
.section-head p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.section-head .link-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
}
.section-head .link-more:hover { border-color: var(--teal); }

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.cat-tile {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 14px 18px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cat-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
}
.cat-tile svg { width: 64px; height: 64px; margin: 0 auto 12px; }
.cat-tile span { font-size: 14px; font-weight: 600; color: var(--ink); }
.cat-tile small { display: block; font-size: 12px; color: var(--ink-soft); }

/* ---------- Offer strip ---------- */
.offer-strip {
  background: linear-gradient(100deg, var(--coral) 0%, #e8552b 100%);
  border-radius: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 38px;
  flex-wrap: wrap;
}
.offer-strip h3 { font-family: var(--font-head); font-size: 24px; font-weight: 500; }
.offer-strip p { opacity: 0.92; font-size: 14.5px; }
.offer-strip .code {
  background: rgba(255,255,255,0.18);
  border: 1.5px dashed rgba(255,255,255,0.65);
  border-radius: 10px;
  padding: 8px 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 15px;
}
.offer-strip .btn { background: #fff; color: var(--coral-deep); }

/* ---------- Product cards ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb { position: relative; background: var(--sand); }
.card .thumb svg { width: 100%; height: auto; }
.card .tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 11px;
}
.tag-best { background: var(--teal); color: #fff; }
.tag-new { background: var(--gold); color: #fff; }
.tag-sale { background: var(--coral); color: #fff; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .name { font-weight: 600; font-size: 15px; }
.card .meta { font-size: 12.5px; color: var(--ink-soft); }
.card .price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 8px; }
.card .price { font-weight: 700; font-size: 16.5px; color: var(--ink); }
.card .mrp { font-size: 13px; color: var(--ink-soft); text-decoration: line-through; }
.card .off { font-size: 12.5px; font-weight: 700; color: var(--teal); }
.card .ship {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-deep);
  background: var(--teal-tint);
  border-radius: 999px;
  padding: 4px 10px;
  width: fit-content;
  margin-top: 8px;
}
.stars { color: var(--gold); font-size: 13px; letter-spacing: 1.5px; }
.stars span { color: var(--ink-soft); font-size: 12px; letter-spacing: 0; margin-left: 4px; }

/* ---------- Monsoon / seasonal ---------- */
.season {
  background: var(--teal-tint);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  overflow: hidden;
}
.season .copy { padding: 46px 12px 46px 46px; }
.season h3 { font-family: var(--font-head); font-size: 30px; font-weight: 500; margin-bottom: 12px; }
.season p { color: var(--ink-soft); margin-bottom: 24px; max-width: 44ch; }
.season .art { padding: 30px; }
.season .art svg { width: 100%; height: auto; }

/* ---------- Story / trust ---------- */
.story { background: var(--sand); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.trust {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.trust svg { width: 40px; height: 40px; margin-bottom: 14px; }
.trust h4 { font-size: 15.5px; margin-bottom: 6px; }
.trust p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.review p.quote { font-size: 14.5px; color: var(--ink); margin: 12px 0 16px; }
.review .who { display: flex; align-items: center; gap: 12px; }
.review .avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.review .who small { display: block; color: var(--ink-soft); font-size: 12px; }
.review .who b { font-size: 13.5px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: #b9c6c2;
  padding: 56px 0 28px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
footer .logo { color: #fff; margin-bottom: 14px; font-size: 22px; }
footer .logo .mark { background: var(--teal); }
footer h5 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
footer ul { list-style: none; display: grid; gap: 9px; }
footer a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #8fa09b;
}

/* ---------- PDP ---------- */
.crumbs { font-size: 13px; color: var(--ink-soft); padding: 18px 0 0; }
.crumbs a:hover { color: var(--teal); }
.pdp {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  padding: 28px 0 70px;
  align-items: start;
}
.pdp-gallery { position: sticky; top: 90px; }
.pdp-gallery .main-img {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.pdp-gallery .thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pdp-gallery .thumbs div {
  width: 76px; height: 76px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--sand);
  overflow: hidden;
  cursor: pointer;
}
.pdp-gallery .thumbs div.active { border-color: var(--teal); }
.pdp-info h1 { font-family: var(--font-head); font-weight: 500; font-size: 34px; line-height: 1.15; margin: 8px 0 10px; }
.pdp-info .sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.pdp-price { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 4px; }
.pdp-price .now { font-size: 30px; font-weight: 700; }
.pdp-price .was { font-size: 17px; color: var(--ink-soft); text-decoration: line-through; }
.pdp-price .pct { font-size: 15px; font-weight: 700; color: var(--coral-deep); }
.tax-note { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 20px; }
.delivery-box {
  border: 1.5px solid var(--teal);
  background: var(--teal-tint);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 22px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.delivery-box b { color: var(--teal-deep); }
.delivery-box small { color: var(--ink-soft); display: block; margin-top: 2px; }
.pdp-cta { display: flex; gap: 14px; margin: 24px 0 10px; }
.pdp-cta .btn { flex: 1; justify-content: center; padding: 16px 20px; }
.pin-check {
  display: flex;
  gap: 10px;
  margin: 18px 0 8px;
}
.pin-check input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-body);
}
.pin-check button {
  border: none;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  cursor: pointer;
}
.accordion { border-top: 1px solid var(--line); margin-top: 26px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.accordion summary::after { content: "+"; color: var(--teal); font-size: 18px; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
.acc-body ul { margin-left: 18px; display: grid; gap: 6px; }

/* ---------- Order page ---------- */
.order-wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.order-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.order-head {
  background: var(--teal-deep);
  color: #fff;
  padding: 30px 34px;
}
.order-head .ok {
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 22px;
}
.order-head h1 { font-family: var(--font-head); font-weight: 500; font-size: 27px; }
.order-head p { opacity: 0.85; font-size: 14px; margin-top: 4px; }
.order-body { padding: 30px 34px 34px; }
.order-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.order-meta div {
  background: var(--sand);
  border-radius: 12px;
  padding: 14px 16px;
}
.order-meta small { color: var(--ink-soft); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.order-meta b { display: block; font-size: 14.5px; margin-top: 3px; }
.order-meta .warn { color: var(--coral-deep); }
.timeline { list-style: none; margin: 6px 0 26px; }
.timeline li {
  position: relative;
  padding: 0 0 26px 34px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 9px; top: 22px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline .dot {
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.timeline b { font-size: 14.5px; }
.timeline small { display: block; color: var(--ink-soft); font-size: 12.5px; }
.order-item {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 28px;
}
.order-item .oi-img {
  width: 70px; height: 70px;
  border-radius: 10px;
  background: var(--sand);
  overflow: hidden;
  flex-shrink: 0;
}
.order-item b { font-size: 14.5px; display: block; }
.order-item small { color: var(--ink-soft); font-size: 12.5px; }
.order-item .oi-price { margin-left: auto; font-weight: 700; }
.feedback-cta {
  background: linear-gradient(120deg, var(--teal-tint), #d9ede9);
  border: 1.5px solid var(--teal);
  border-radius: 16px;
  padding: 26px 28px;
  text-align: center;
}
.feedback-cta h3 { font-family: var(--font-head); font-weight: 500; font-size: 22px; margin-bottom: 8px; }
.feedback-cta p { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.rate-row { display: flex; justify-content: center; gap: 10px; margin-bottom: 6px; }
.rate-row button {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.rate-row button:hover { transform: translateY(-3px) scale(1.06); border-color: var(--teal); }
.echo-note { font-size: 12px; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 26px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  nav.main, .search { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 44px 24px 52px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .season { grid-template-columns: 1fr; }
  .season .copy { padding: 34px 28px 6px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .order-meta { grid-template-columns: 1fr; }
}

/* ═══════════ v2: auth, cart, payment, confirmation ═══════════ */

/* Header user chip */
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.user-chip .dot-av {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Auth / login ---------- */
.auth-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 40px auto 60px;
  padding: 0 24px;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
  min-height: 560px;
}
.auth-side {
  background: linear-gradient(150deg, var(--teal) 0%, var(--teal-deep) 90%);
  color: #eafaf6;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-side h2 { font-family: var(--font-head); font-weight: 500; font-size: 30px; line-height: 1.2; color: #fff; }
.auth-side p { font-size: 14.5px; opacity: 0.9; margin-top: 12px; max-width: 40ch; }
.auth-side .perks { list-style: none; display: grid; gap: 12px; margin-top: 30px; font-size: 14px; }
.auth-side .perks li { display: flex; gap: 10px; align-items: flex-start; }
.auth-side .perks span { color: #ffd9a8; }
.auth-form { padding: 48px 46px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-family: var(--font-head); font-weight: 500; font-size: 28px; margin-bottom: 6px; }
.auth-form > p { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 14.5px;
  font-family: var(--font-body);
  transition: border-color 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--teal); }
.field small.err { color: var(--coral-deep); font-size: 12px; display: none; margin-top: 4px; }
.auth-form .btn { justify-content: center; width: 100%; margin-top: 6px; }
.auth-note { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 16px; }

/* ---------- Cart ---------- */
.cart-wrap { max-width: 1050px; margin: 0 auto; padding: 34px 24px 80px; }
.cart-wrap h1 { font-family: var(--font-head); font-weight: 500; font-size: 32px; margin-bottom: 24px; }
.cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.cart-items { display: grid; gap: 14px; }
.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.cart-item .ci-img { width: 84px; height: 84px; border-radius: 12px; background: var(--sand); overflow: hidden; flex-shrink: 0; }
.cart-item b { display: block; font-size: 15px; }
.cart-item small { color: var(--ink-soft); font-size: 12.5px; }
.qty {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  margin-top: 8px;
}
.qty button { border: none; background: none; font-size: 16px; font-weight: 700; color: var(--teal-deep); cursor: pointer; width: 22px; }
.qty span { font-size: 14px; font-weight: 600; min-width: 16px; text-align: center; }
.ci-right { margin-left: auto; text-align: right; }
.ci-right .p { font-weight: 700; font-size: 16px; }
.ci-right .rm { background: none; border: none; color: var(--coral-deep); font-size: 12.5px; font-weight: 600; cursor: pointer; margin-top: 10px; }
.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 96px;
}
.summary h3 { font-family: var(--font-head); font-weight: 500; font-size: 20px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--ink-soft); }
.sum-row.total { color: var(--ink); font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 12px; }
.sum-row .free { color: var(--teal); font-weight: 700; }
.sum-row .disc { color: var(--teal); font-weight: 600; }
.promo { display: flex; gap: 8px; margin: 14px 0 4px; }
.promo input { flex: 1; border: 1.5px dashed var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.promo button { border: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 13px; cursor: pointer; }
.promo-ok { font-size: 12.5px; color: var(--teal-deep); font-weight: 600; min-height: 18px; }
.summary .btn { width: 100%; justify-content: center; margin-top: 14px; }
.cart-empty {
  text-align: center;
  background: #fff;
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  padding: 60px 30px;
}
.cart-empty h2 { font-family: var(--font-head); font-weight: 500; font-size: 24px; margin-bottom: 8px; }
.cart-empty p { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
.deliver-line {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--teal-deep);
  font-weight: 600;
  margin-top: 16px;
}

/* ---------- Payment ---------- */
.pay-wrap { max-width: 960px; margin: 0 auto; padding: 34px 24px 80px; }
.pay-wrap h1 { font-family: var(--font-head); font-weight: 500; font-size: 30px; margin-bottom: 6px; }
.pay-wrap .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.pay-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.pay-methods { display: grid; gap: 12px; }
.pay-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.pay-opt.sel { border-color: var(--teal); background: var(--teal-tint); }
.pay-opt input { accent-color: var(--teal); width: 17px; height: 17px; }
.pay-opt b { font-size: 14.5px; display: block; }
.pay-opt small { color: var(--ink-soft); font-size: 12.5px; }
.pay-opt .pm-ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--sand);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex-shrink: 0;
}
.card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; padding: 4px 2px 2px; }
.card-fields .full { grid-column: 1 / -1; }
.upi-field { margin-top: 6px; }
.pay-cta { width: 100%; justify-content: center; margin-top: 18px; font-size: 16px; padding: 16px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; color: var(--ink-soft); margin-top: 12px; }
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Confirmation ---------- */
.confetti-head {
  background: linear-gradient(150deg, var(--teal) 0%, var(--teal-deep) 90%);
  color: #fff;
  text-align: center;
  padding: 46px 30px 40px;
  position: relative;
  overflow: hidden;
}
.confetti-head .big-ok {
  width: 64px; height: 64px;
  background: #fff;
  color: var(--teal);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 30px;
  margin: 0 auto 16px;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.confetti-head h1 { font-family: var(--font-head); font-weight: 500; font-size: 30px; }
.confetti-head p { opacity: 0.9; font-size: 14.5px; margin-top: 6px; }
.conf-dot { position: absolute; border-radius: 3px; opacity: 0.85; animation: fall 2.6s ease-in forwards; }
@keyframes fall { from { transform: translateY(-40px) rotate(0deg); } to { transform: translateY(360px) rotate(300deg); opacity: 0; } }
.promise-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--teal-tint);
  border: 1.5px solid var(--teal);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.promise-banner b { color: var(--teal-deep); }
.promise-banner small { display: block; color: var(--ink-soft); }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; min-height: unset; }
  .auth-side { display: none; }
  .cart-grid, .pay-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
