/* Bharat Automotive storefront – mobile-first styles */
:root {
  --navy: #13213a;
  --navy-2: #1f3354;
  --accent: #e4572e;
  --accent-dark: #c8431d;
  --ink: #1b2330;
  --muted: #5d6878;
  --line: #dde2ea;
  --bg: #f4f6f9;
  --card: #ffffff;
  --green: #15803d;
  --green-bg: #e9f7ee;
  --amber: #a85b06;
  --amber-bg: #fff4e2;
  --red: #b42318;
  --red-bg: #fdeceb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(19, 33, 58, .06), 0 4px 14px rgba(19, 33, 58, .06);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; padding-top: 16px; padding-bottom: 40px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: 1.1rem; }
p { margin: 0 0 .75em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center-text { text-align: center; }
:focus-visible { outline: 3px solid #f2a57f; outline-offset: 2px; }

/* ---------- header ---------- */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 5; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand-mark { width: 30px; height: 30px; color: #f08a4b; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand strong { font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; }
.brand small { color: #b8c3d6; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-style: normal; font-size: .72rem; background: #f08a4b; color: var(--navy); padding: 1px 6px; border-radius: 4px; font-weight: 700; align-self: flex-start; margin-top: 2px; }
.shop-nav { display: flex; align-items: center; gap: 6px; }
.shop-nav a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 6px; padding: 10px; border-radius: 8px; font-weight: 600; }
.shop-nav a:hover { background: rgba(255,255,255,.08); }
.shop-nav svg { width: 22px; height: 22px; }
.call span { display: none; }
.cart-link { position: relative; }
.count { background: var(--accent); color: #fff; font-size: .75rem; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; }
.admin-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.admin-nav a, .admin-nav .linkish { color: #dbe3f0; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.admin-nav a.on { background: rgba(255,255,255,.12); color: #fff; }
.admin-nav form { margin: 0; }
@media (max-width: 640px) {
  .admin .topbar-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 4px; }
  .admin .admin-nav { width: 100%; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); }
  .admin .topbar { position: static; }
}
.pill { background: var(--accent); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .75rem; }
.flash { margin: 12px 0 0; background: var(--green-bg); color: var(--green); border: 1px solid #bfe5cc; padding: 10px 14px; border-radius: 8px; font-weight: 600; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: #b9c2cf; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.primary:disabled { background: #c9ced6; border-color: #c9ced6; cursor: not-allowed; }
.btn.sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.big-btn { min-height: 54px; font-size: 1.08rem; }
.btn.danger { color: var(--red); border-color: #f1b8b3; }
.linkish { background: none; border: 0; padding: 6px 0; font: inherit; color: var(--navy-2); text-decoration: underline; cursor: pointer; }
.linkish.danger { color: var(--red); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.field small { font-weight: 400; color: var(--muted); }
input[type=text], input:not([type]), input[type=search], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c7cfdb; border-radius: 10px;
  font: inherit; font-size: 16px; /* 16px stops iPhone zooming in */ background: #fff; color: var(--ink);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6878' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
select:disabled { background-color: #f1f3f6; color: #8a94a6; }
textarea { min-height: 80px; resize: vertical; }
[aria-invalid=true] { border-color: var(--red); background: #fffafa; }
.err { display: block; color: var(--red); font-size: .875rem; margin-top: 4px; }
.alert { background: var(--red-bg); color: var(--red); border: 1px solid #f3c2bd; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.notice { background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 12px 14px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check input { width: 20px; height: 20px; }
.two, .three { display: grid; gap: 0 12px; }

/* ---------- catalogue ---------- */
.finder { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: var(--radius); padding: 18px 16px 14px; margin-bottom: 14px; }
.finder h1 { font-size: 1.3rem; margin-bottom: 12px; }
.finder .field > span { color: #c7d2e4; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.finder .field { margin-bottom: 10px; }
.search-row { display: flex; gap: 10px; align-items: stretch; }
.search-row .field { margin-bottom: 0; }
.grow { flex: 1; min-width: 0; }
.search-row .btn { flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 4px 0 12px; }
.results-head p { margin: 0; color: var(--muted); }
.results-head strong { color: var(--ink); }
.clear { white-space: nowrap; font-size: .92rem; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 116px 1fr; }
.card-img { position: relative; background: #eef1f5; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.fit-badge { position: absolute; left: 6px; bottom: 6px; right: 6px; background: var(--green); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 6px; border-radius: 6px; text-align: center; }
.card-body { padding: 12px 12px 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.meta { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.card-title { font-size: 1rem; margin: 0 0 4px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; } /* keep link area to the title; image is also a link */
.partno { font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.partno span { font-family: var(--mono); color: var(--ink); background: #eef1f5; padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.fits { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-foot form { margin: 0; }
.price { font-size: 1.25rem; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.price small { font-size: .8rem; font-weight: 500; color: var(--muted); }
.price.big { font-size: 1.9rem; }
.stock { font-size: .85rem; font-weight: 700; margin: 0; }
.stock::before { content: "●"; margin-right: 5px; font-size: .7em; vertical-align: 2px; }
.stock.in { color: var(--green); }
.stock.low { color: var(--amber); }
.stock.out { color: var(--red); }
.empty { background: #fff; border-radius: var(--radius); padding: 32px 20px; text-align: center; box-shadow: var(--shadow); }

/* ---------- product page ---------- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.product { display: grid; gap: 18px; }
.gallery-main { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.thumbs { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 8px; overflow-x: auto; }
.thumb { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; flex: none; }
.thumb.on { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy h1 { font-size: 1.5rem; margin-bottom: 6px; }
.partno.big { font-size: 1rem; }
.fit-check { border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.fit-check.yes { background: var(--green-bg); color: var(--green); }
.fit-check.no { background: var(--amber-bg); color: var(--amber); }
.price-box { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 12px 0 14px; }
.add-form { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 20px; }
.qty span { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.qty input { width: 76px; text-align: center; }
.desc p { color: #3a4454; }
.fitment { margin-top: 24px; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }

/* ---------- tables (become stacked cards on phones) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 640px) {
  .fit-table { font-size: .88rem; }
  .fit-table th, .fit-table td { padding: 8px 6px; }
  .table:not(.fit-table) thead { display: none; }
  .table:not(.fit-table), .table:not(.fit-table) tbody, .table:not(.fit-table) tr, .table:not(.fit-table) td { display: block; width: 100%; }
  .table:not(.fit-table) tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 6px 10px; background: #fff; }
  .table:not(.fit-table) td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table:not(.fit-table) td::before { content: attr(data-th); font-weight: 600; color: var(--muted); text-align: left; }
}

/* ---------- cart & checkout ---------- */
.page-title { font-size: 1.5rem; margin: 4px 0 14px; }
.panel { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.panel h2 { margin-top: 6px; }
.panel h2 + .muted { margin-top: -4px; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.checkout { display: grid; gap: 0 20px; align-items: start; }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: 64px 1fr; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #eef1f5; }
.cl-info a { color: var(--ink); text-decoration: none; }
.cl-info p { margin: 2px 0 0; font-size: .875rem; }
.cl-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-actions form { margin: 0; }
.qty-form { display: flex; gap: 6px; align-items: center; }
.qty-form input { width: 68px; text-align: center; min-height: 40px; }
.line-total { margin: 0 0 0 auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.totals { margin: 12px 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 1.2rem; }
.totals .grand dt { color: var(--ink); font-weight: 700; }
.totals .grand dt small { font-size: .75rem; color: var(--muted); font-weight: 400; }
.totals .grand dd { font-weight: 800; }
.pay-options { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #c7cfdb; border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #fff8f5; }
.radio-card input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.radio-card small { display: block; color: var(--muted); }

/* ---------- confirmation ---------- */
.confirm .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.order-no { font-size: 1.1rem; }
.order-no strong { font-family: var(--mono); background: #eef1f5; padding: 2px 8px; border-radius: 6px; }
.pay-state { display: inline-block; padding: 6px 12px; border-radius: 8px; font-weight: 700; }
.pay-state.paid { background: var(--green-bg); color: var(--green); }
.pay-state.cod { background: var(--amber-bg); color: var(--amber); }
.summary-lines { list-style: none; padding: 0; margin: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary-lines li span:last-child { white-space: nowrap; font-weight: 600; }
address { font-style: normal; margin-bottom: 14px; line-height: 1.6; }

/* ---------- footer ---------- */
.footer { background: #e9edf3; color: var(--muted); font-size: .9rem; padding: 22px 0 28px; }
.footer-inner { display: grid; gap: 10px; }
.footer strong { color: var(--ink); }
.footer p { margin: 0 0 4px; }
.fine { font-size: .8rem; }

/* ---------- admin ---------- */
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-head .page-title { margin: 0; }
.admin-search { margin-bottom: 10px; }
.admin-cols { display: grid; gap: 0 16px; align-items: start; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #eef1f5; color: var(--ink); white-space: nowrap; }
.pay-paid, .st-delivered { background: var(--green-bg); color: var(--green); }
.pay-cod, .st-processing { background: var(--amber-bg); color: var(--amber); }
.pay-unpaid, .st-awaiting_payment { background: #f1f3f6; color: var(--muted); }
.st-new { background: #e8effc; color: #1d4ed8; }
.st-shipped { background: #eef0ff; color: #4338ca; }
.st-cancelled { background: var(--red-bg); color: var(--red); }
.admin-products { list-style: none; padding: 0; margin: 0; }
.ap-row { display: grid; grid-template-columns: 56px 1fr; gap: 8px 12px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.ap-row img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #eef1f5; }
.ap-row.hidden-product { opacity: .7; }
.ap-info p { margin: 2px 0 0; }
.ap-quick { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-end; margin: 0; }
.ap-quick label { flex: 1; }
.ap-quick span { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); }
.ap-quick input { min-height: 40px; }
.ap-row > .btn { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form select { flex: 1; }
.photo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.photo-grid li { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #eef1f5; }
.photo-grid form { margin: 0; }
.form-actions { margin: 0 0 16px; }
.danger-zone { border: 1px solid #f3c2bd; }
input[type=file] { font: inherit; width: 100%; padding: 10px; border: 1px dashed #b9c2cf; border-radius: 10px; background: #fafbfc; }

/* ---------- larger screens ---------- */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .card-img img { aspect-ratio: 4 / 3; }
  .card-body { padding: 14px 16px 16px; }
  .two { grid-template-columns: 1fr 1fr; }
  .three { grid-template-columns: 1.2fr 1.2fr 1fr; }
  .call span { display: inline; }
  .cart-line { grid-template-columns: 72px 1fr auto; }
  .cart-line img { width: 72px; height: 72px; }
  .cl-actions { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 4px; }
  .line-total { margin: 4px 0 0; }
  .fit-badge { right: auto; }
}
@media (min-width: 820px) {
  main { padding-top: 24px; }
  .finder { padding: 24px 24px 20px; }
  .finder h1 { font-size: 1.6rem; }
  .finder-grid { grid-template-columns: repeat(4, 1fr); gap: 0 12px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: start; }
  .gallery { position: sticky; top: 84px; }
  .buy h1 { font-size: 1.8rem; }
  .checkout { grid-template-columns: 1fr 1.1fr; }
  .cart-panel { position: sticky; top: 84px; }
  .admin-cols { grid-template-columns: 1.3fr 1fr; }
  .ap-row { grid-template-columns: 56px 1fr 300px auto; }
  .ap-quick, .ap-row > .btn { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .fine { grid-column: 1 / -1; }
  .panel { padding: 22px; }
}
@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------- delivery, COD confirmation, WhatsApp ---------- */
.ico { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
.promo-strip { background: #e9f7ee; color: #14532d; font-size: .88rem; text-align: center; padding: 7px 0; border-bottom: 1px solid #c9ead5; }
.promo-strip .wrap { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.delivery-note { flex-basis: 100%; margin: 4px 0 0; font-size: .9rem; color: var(--green); display: flex; gap: 6px; align-items: center; }
.free-nudge { background: var(--amber-bg); color: var(--amber); border-radius: 8px; padding: 8px 12px; font-size: .92rem; margin-bottom: 12px; }
.free-nudge.ok { background: var(--green-bg); color: var(--green); font-weight: 600; }
.wa-opt { font-weight: 500; align-items: flex-start; margin: 2px 0 16px; font-size: .95rem; }
.wa-opt input { margin-top: 2px; accent-color: var(--green); flex: none; }
.wa-opt small { color: var(--muted); }
.radio-card.disabled { opacity: .6; cursor: not-allowed; background: #f6f7f9; }
.wa-confirm { background: #e9f7ee; border: 1px solid #c9ead5; border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.wa-confirm p { margin: 4px 0 0; }
.wa-confirm.late { background: var(--amber-bg); border-color: #f1d7ad; color: var(--amber); }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.action-row form { margin: 0; }
.badge.call { background: var(--amber-bg); color: var(--amber); }
.chip.warn { border-color: #f1d7ad; background: var(--amber-bg); color: var(--amber); }
.chip.warn.on { background: var(--amber); border-color: var(--amber); color: #fff; }
.wa-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.wa-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.wa-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .92rem; }
.wa-bubble { background: #dcf8c6; color: #1b2a1b; border-radius: 10px 10px 10px 2px; padding: 10px 12px; margin: 0; max-width: 520px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- advance payment & first-order offer ---------- */
.advance-box { background: var(--amber-bg); border: 1px solid #f1d7ad; border-radius: 12px; padding: 14px; margin: 12px 0; display: grid; gap: 8px; }
.advance-box > strong { font-size: 1.05rem; }
.advance-box p { margin: 0; }
.upi { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #fff; border-radius: 10px; padding: 12px; }
.upi-qr { width: 150px; height: 150px; flex: none; }
.upi-qr svg { width: 100%; height: 100%; display: block; }
.upi-info { display: grid; gap: 8px; min-width: 0; flex: 1 1 180px; }
.upi-id { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; background: #eef1f5; padding: 6px 10px; border-radius: 8px; }
.discount-row dt, .discount-row dd { color: var(--green) !important; font-weight: 700; }
.first-offer { background: var(--green-bg); color: var(--green); border-radius: 8px; padding: 8px 12px; font-size: .92rem; margin-bottom: 12px; }
.promo-strip .sep { opacity: .5; margin: 0 2px; }

.promo-strip .promo-item { white-space: nowrap; }
@media (max-width: 559px) { .promo-strip .sep { display: none; } .promo-strip .wrap { row-gap: 2px; } }

/* ---------- MRP & discount ---------- */
.mrp-line { margin: 0; font-size: .82rem; color: var(--muted); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.mrp-line s { color: var(--muted); }
.mrp-line .off { color: var(--green); font-weight: 800; }
.mrp-line.big { font-size: .95rem; margin-bottom: 2px; }
.disc-form .btn { margin-bottom: 8px; }

.card-img img.noimg { object-fit: contain; padding: 10%; }
.card-img:has(img.noimg) { display: grid; place-items: center; }

/* ---------- home page, car-brand pages, logo ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(/fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
:root { --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; --plate-blue: #1d4ea6; }
.brand-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; flex: none; }
.btn.lg { min-height: 52px; padding: 12px 22px; font-size: 1.05rem; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn.ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.hero { background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden; display: grid; gap: 18px; padding: 26px 18px 18px; position: relative; }
.hero::before { /* faint brake-disc rings behind the copy */
  content: ""; position: absolute; width: 460px; height: 460px; right: -170px; top: -150px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); pointer-events: none; }
.hero-copy { position: relative; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: .95; letter-spacing: -.005em; margin: 0 0 14px; max-width: 12ch; }
.hero-sub { color: #c9d3e3; font-size: 1.05rem; max-width: 34ch; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-shot { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #fff; align-self: end; }
.hero-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-tag { position: absolute; left: 10px; bottom: 10px; background: var(--navy); color: #fff; border-radius: 8px; padding: 6px 10px 7px; display: flex; flex-direction: column; line-height: 1.15; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.hero-tag-part { font-family: var(--mono); font-size: .78rem; color: #f2a57f; }
.hero-tag-price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.hero-tag-price s { font-family: system-ui, sans-serif; font-weight: 400; font-size: .85rem; color: #9fb0c9; margin-left: 4px; }

.promises { list-style: none; margin: 12px 0 0; padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; font-size: .9rem; line-height: 1.3; }
.promises li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.promises strong { color: var(--ink); display: block; }
.promises svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 1px; }

.home-sec { margin-top: 30px; }
.sec-title { font-family: var(--display); font-weight: 700; font-size: 1.85rem; line-height: 1; margin: 0 0 14px; }

.plates { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plate-link { display: block; text-decoration: none; color: var(--ink); }
.plate { display: flex; align-items: stretch; background: #fff; border: 2px solid var(--ink); border-radius: 7px; height: 54px; overflow: hidden; box-shadow: 0 2px 0 rgba(27,35,48,.15); }
.plate-ind { background: var(--plate-blue); color: #fff; width: 24px; flex: none; display: flex; align-items: flex-end; justify-content: center; font: 700 .55rem/1 system-ui, sans-serif; letter-spacing: .02em; padding-bottom: 6px; }
.plate-name { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 6px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.plate-count { display: block; font-size: .85rem; color: var(--muted); margin-top: 5px; padding-left: 2px; }
.plate-link:hover .plate { border-color: var(--accent); }
.plate-link:hover .plate-name { color: var(--accent-dark); }
.more-makes { margin-top: 14px; }
.more-makes summary { cursor: pointer; font-weight: 600; color: var(--navy-2); padding: 8px 0; }
.more-makes .plates { margin-top: 8px; }

.home-finder { margin-top: 30px; }
.home-finder h2 { font-size: 1.3rem; margin-bottom: 12px; }

.cat-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-tile { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; text-decoration: none; color: var(--ink); height: 100%; }
.cat-tile svg { width: 64px; height: 40px; color: var(--navy); margin-bottom: 10px; }
.cat-name { font-family: var(--display); font-weight: 700; font-size: 1.4rem; line-height: 1; }
.cat-count { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.cat-tile:hover .cat-name { color: var(--accent-dark); }

.why { margin-top: 34px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; }
.why-grid { display: grid; gap: 16px; margin-bottom: 18px; }
.why h3 { font-size: 1.02rem; margin-bottom: 4px; }
.why p { color: var(--muted); margin: 0; }

.make-head { margin-bottom: 8px; }
.back-link { display: inline-block; margin-bottom: 12px; font-weight: 600; text-decoration: none; }
.plate-lg { display: inline-flex; height: 68px; margin: 0 0 10px; max-width: 100%; }
.plate-lg .plate-name { font-size: 2rem; padding: 0 18px; }
.plate-lg .plate-ind { width: 30px; font-size: .65rem; }
.make-sub { color: var(--muted); margin-bottom: 12px; }
.model-chips .chip small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.model-chips .chip.on small { color: #c7d2e4; }

@media (min-width: 560px) {
  .promises { grid-template-columns: repeat(4, 1fr); }
  .plates { grid-template-columns: repeat(4, 1fr); }
  .cat-tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.1fr 1fr; padding: 40px 36px; align-items: center; gap: 32px; }
  .hero-shot img { aspect-ratio: 1; }
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .why { padding: 28px; }
}

/* ---------- owner: online / offline ---------- */
.status-tabs { margin-top: 4px; }
.status-tabs .chip small { color: var(--muted); font-weight: 500; margin-left: 3px; }
.status-tabs .chip.on small { color: #c7d2e4; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff; border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.check-all { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-right: auto; }
.bulk-count { color: var(--muted); font-size: .88rem; }
.ap-row { grid-template-columns: 22px 56px 1fr; }
.ap-check { display: flex; align-items: center; justify-content: center; height: 100%; }
.ap-check input, .check-all input { width: 20px; height: 20px; accent-color: var(--navy); }
.ap-row.hidden-product { opacity: 1; background: #f7f8fa; }
.ap-row.hidden-product img, .ap-row.hidden-product .ap-info { opacity: .6; }
.ap-online { grid-column: 1 / 3; margin: 0; align-self: end; }
.ap-quick { grid-column: 3; }
.switch { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: #eceff3; color: var(--muted); font: 600 .82rem/1 system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.switch .knob { width: 30px; height: 18px; border-radius: 999px; background: #c3cad5; position: relative; flex: none; }
.switch .knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch.on { background: var(--green-bg); border-color: #b7e2c5; color: var(--green); }
.switch.on .knob { background: var(--green); }
.switch.on .knob::after { left: 14px; }
@media (min-width: 820px) {
  .ap-row { grid-template-columns: 22px 56px 1fr auto 300px auto; }
  .ap-online, .ap-quick { grid-column: auto; align-self: center; }
}
.pay-full { margin: 12px 0 8px; border-top: 1px dashed #e7c79a; padding-top: 10px; }
.pay-full summary { cursor: pointer; font-weight: 600; color: var(--navy-2); }
.pay-full > p { margin: 8px 0; font-size: .92rem; }
/* header with a logo: keep name, phone and cart from overlapping on small phones */
.brand strong { overflow: hidden; text-overflow: ellipsis; }
.shop-nav { flex: none; }
@media (max-width: 420px) {
  .brand:has(.brand-logo) small { display: none; }
  .brand:has(.brand-logo) strong { font-size: .95rem; }
  .brand-logo { height: 34px; max-width: 110px; }
  .shop-nav a { padding: 10px 8px; }
}
.check-all { flex-basis: 100%; }
.bulk-count { margin-right: auto; }
.make-head .back-link { display: block; width: fit-content; }

/* ---------- company banner photo, brands, footer details ---------- */
.hero-shot { margin: 0; background: #0d1830; }
.hero-shot img { aspect-ratio: 1136 / 572; object-fit: cover; }
.hero-card { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.95); color: var(--ink); border-radius: 8px; padding: 7px 12px 7px 9px; font-size: .8rem; line-height: 1.25; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.hero-card img { width: 50px; height: auto; aspect-ratio: auto; }
.hero-card strong { font-size: .9rem; }
.sec-sub { color: var(--muted); max-width: 62ch; margin: -6px 0 14px; }
.brand-logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brand-logos li { background: #fff; border-radius: 10px; box-shadow: var(--shadow); height: 68px; display: grid; place-items: center; padding: 10px 12px; }
.brand-logos img { max-height: 44px; max-width: 100%; width: auto; object-fit: contain; }
.brand-logo { width: auto; }
.footer { padding-top: 26px; }
.footer-inner { gap: 18px; }
.foot-brand img { width: 150px; height: auto; margin-bottom: 8px; background: #fff; border-radius: 10px; padding: 8px 10px; box-sizing: content-box; }
.foot-contact address { font-style: normal; color: var(--ink); margin: 4px 0 8px; max-width: 40ch; }
@media (min-width: 560px) { .brand-logos { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1fr 1.25fr; }
  .hero-shot img { aspect-ratio: 1136 / 572; }
  .brand-logos { grid-template-columns: repeat(9, 1fr); }
  .brand-logos li { height: 76px; }
  .hero-card { left: 14px; bottom: 14px; font-size: .85rem; }
}
@media (max-width: 559px) {
  .hero-card { position: static; border-radius: 0; box-shadow: none; padding: 8px 10px; }
}
.upi-offer { background: var(--green-bg); color: var(--green); border-radius: 8px; padding: 8px 12px; font-size: .9rem; margin: 6px 0 12px; }
.pay-full summary { color: var(--green); }
@media (max-width: 559px) { .foot-brand img { width: 120px; } }

/* ---------- clear fitment on cards and product page ---------- */
.pos { display: inline-block; vertical-align: 2px; font: 700 .68rem/1 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; padding: 4px 6px; border-radius: 5px; margin-right: 2px; }
.pos-front { background: #e3ecfb; color: #1d4ea6; }
.pos-rear { background: #fdeee4; color: #a8431a; }
.buy h1 .pos { font-size: .8rem; vertical-align: 5px; }
.fit-box { background: #f1f5fb; border: 1px solid #dbe4f1; border-radius: 10px; padding: 8px 10px; margin: 2px 0 10px; }
.fit-label { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: .74rem; font-weight: 700; color: var(--navy-2); text-transform: uppercase; letter-spacing: .05em; }
.fit-label svg { width: 18px; height: 18px; color: var(--navy-2); }
.fit-make + .fit-make { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #d3dcea; }
.fit-make strong { display: block; font-size: .88rem; color: var(--ink); margin-bottom: 4px; }
.fit-models { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.fit-models li { background: #fff; border: 1px solid #cdd8e8; border-radius: 6px; padding: 3px 8px; font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.fit-models li small { font-weight: 500; color: var(--muted); }
.fit-models li.more { background: none; border-style: dashed; color: var(--muted); }
.fit-more { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.fit-box.big { padding: 12px 14px; margin: 6px 0 14px; }
.fit-box.big .fit-make strong { font-size: 1rem; }
.fit-box.big .fit-models li { font-size: .95rem; padding: 5px 10px; }
.card .partno { margin-bottom: 8px; }
/* hero: product photo first, then the words */
.hero-shot { order: -1; }
.hero-now { color: #c9d3e3; font-size: .92rem; margin: -6px 0 18px; }
.hero-now span { color: #f2a57f; font-weight: 700; }
.brand-text { font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; color: var(--ink); text-align: center; line-height: 1; }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.15fr 1fr; }
}
.brand-logos { grid-template-columns: repeat(2, 1fr); }
.brand-logos li { height: 60px; }
@media (min-width: 560px) { .brand-logos { grid-template-columns: repeat(5, 1fr); } .brand-logos li { height: 68px; } }
@media (min-width: 820px) { .brand-logos { grid-template-columns: repeat(10, 1fr); } }
.hero-shot { align-self: center; }
@media (max-width: 420px) { .cart-link > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- shopping flow: cart bar, sticky buy bar ---------- */
.cart-bar { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: #fff; text-decoration: none; box-shadow: 0 -4px 16px rgba(19, 33, 58, .25); }
.cart-bar .cb-count { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.cart-bar svg { width: 22px; height: 22px; }
.cart-bar .cb-go { background: var(--accent); padding: 9px 16px; border-radius: 8px; font-weight: 700; white-space: nowrap; }
.sticky-price { display: none; }
@media (max-width: 819px) {
  .add-form { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: #fff; margin: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 16px rgba(19, 33, 58, .16); align-items: center; }
  main:has(.add-form) { padding-bottom: 96px; }
  .sticky-price { display: block; margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; white-space: nowrap; }
  .sticky-price s { font-family: system-ui, sans-serif; font-weight: 400; font-size: .8rem; color: var(--muted); display: block; margin-top: 2px; }
  .add-form .qty span { display: none; }
}
.card:target { outline: 3px solid #9fd3b2; outline-offset: 2px; }

/* ---------- checkout ---------- */
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 4px 0 14px; counter-reset: none; }
.steps li { flex: 1; }
.steps a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; font-size: .88rem; }
.steps b, .step-title b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: .78rem; flex: none; }
.steps li.on a { border-color: var(--navy); color: var(--navy); }
.steps li.on b { background: var(--navy); color: #fff; }
.step-title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 6px 0 12px; }
.step-title b { background: var(--navy); color: #fff; width: 26px; height: 26px; font-size: .85rem; }
.step-title small { margin-left: auto; font-size: .85rem; color: var(--muted); font-weight: 500; }
#pay-title { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.cart-line { grid-template-columns: 72px 1fr; align-items: start; }
.cart-line img { border-radius: 8px; background: #eef1f5; object-fit: cover; }
.cl-name { color: var(--ink); text-decoration: none; font-weight: 700; display: block; line-height: 1.3; margin-bottom: 2px; }
.cl-info .partno { margin: 0 0 2px; }
.cl-fits { font-size: .85rem; color: var(--navy-2); margin: 0 0 8px; }
.cl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0; background: #fff; }
.stepper button { width: 40px; height: 40px; border: 0; background: #f4f6f9; font-size: 1.3rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.stepper button:disabled { color: #b8c0cc; cursor: not-allowed; }
.stepper span { min-width: 36px; text-align: center; font-weight: 700; }
.cl-price { text-align: right; line-height: 1.2; }
.cl-price s { display: block; font-size: .8rem; color: var(--muted); }
.cl-price strong { font-size: 1.05rem; }
.cl-remove { margin: 4px 0 0; }
.cl-remove .linkish { font-size: .85rem; padding: 4px 0; }
.free-meter { margin: 12px 0 8px; }
.free-meter p { margin: 0 0 6px; font-size: .9rem; }
.free-meter span { display: block; height: 8px; border-radius: 999px; background: #e3e8ef; position: relative; overflow: hidden; }
.free-meter span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--done); background: var(--green); border-radius: 999px; }
.sum-title { font-size: 1rem; margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.you-save { background: var(--green-bg); color: var(--green); border-radius: 8px; padding: 9px 12px; font-weight: 600; margin: 10px 0 8px; }
.prefix-input { display: flex; align-items: stretch; }
.prefix-input .prefix { display: grid; place-items: center; padding: 0 12px; background: #eef1f5; border: 1px solid #c9d1dc; border-right: 0; border-radius: 8px 0 0 8px; font-weight: 600; color: var(--muted); }
.prefix-input input { border-radius: 0 8px 8px 0; flex: 1; min-width: 0; }
.more-fields { margin: 4px 0 6px; }
.more-fields summary { cursor: pointer; font-weight: 600; color: var(--navy-2); padding: 8px 0; }
.more-fields summary small { color: var(--muted); font-weight: 500; }
.how-pay { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.how-pay li { background: #f4f6f9; border-radius: 8px; padding: 8px 10px; font-size: .86rem; line-height: 1.3; }
.how-pay b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--navy-2); margin-bottom: 2px; }
.place-bar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.place-bar .pb-total { display: flex; flex-direction: column; line-height: 1.1; }
.place-bar .pb-total small { color: var(--muted); font-size: .78rem; }
.place-bar .pb-total strong { font-family: var(--display); font-size: 1.7rem; }
.place-bar .btn { flex: 1; }
.trust { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: .82rem; color: var(--muted); }
@media (max-width: 819px) {
  .place-bar { position: sticky; bottom: 0; z-index: 4; background: #fff; margin: 14px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 16px rgba(19, 33, 58, .14); }
}

[hidden] { display: none !important; }
.field > .prefix-input { display: flex; font-weight: 400; font-size: 1rem; margin: 0; }
/* "Added to cart" and other notices: a short pop-up at the top of the screen */
.shop .flash { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 32px), 520px); margin: 0; z-index: 30; box-shadow: 0 8px 24px rgba(19, 33, 58, .2); animation: flash-out 4.5s forwards; pointer-events: none; }
@keyframes flash-out { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* ---------- owner: categories ---------- */
.cat-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.cat-add .field { flex: 1 1 220px; margin: 0; }
.cat-add p { flex-basis: 100%; margin: 0; }
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin-bottom: 10px; padding: 12px; }
.cat-order { display: flex; flex-direction: column; gap: 4px; grid-row: span 2; }
.cat-order form { margin: 0; }
.cat-order .btn { min-height: 34px; padding: 4px 10px; }
.cat-rename { display: flex; gap: 8px; margin: 0; }
.cat-rename label { flex: 1; }
.cat-rename input { width: 100%; min-height: 40px; }
.cat-count { margin: 0; }
.cat-row > form:last-child:not(.cat-rename) { grid-column: 2; margin: 0; }

/* ---------- WhatsApp button on every shop page ---------- */
.wa-float { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25; display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 10px 16px 10px 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: #1ebe5a; }
/* sit above the bottom bars (cart bar, product buy bar, checkout total) */
body:has(.cart-bar) .wa-float { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 819px) {
  body:has(.add-form) .wa-float, body:has(.place-bar) .wa-float { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .wa-float { padding: 12px; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- payment choice: UPI badge ---------- */
.pay-badge { font-style: normal; background: var(--green); color: #fff; font-size: .72rem; padding: 2px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 2px; }
.pay-options .radio-card + .radio-card { margin-top: 8px; }
.totals dt small { color: var(--muted); font-weight: 400; }

/* ---------- product photos: show the whole photo, never a cropped slice ---------- */
.card-img { background: #fff; align-self: start; }
.card-img img, .card-img img.noimg { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.card-img:has(img.noimg) { display: block; }
.card-img img.noimg { padding: 14%; background: #eef1f5; }
@media (max-width: 559px) {
  .card { grid-template-columns: 128px 1fr; align-items: start; }
  .card-img { margin: 10px 0 10px 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
}
@media (max-width: 559px) {
  .card { grid-template-columns: 136px 1fr; }
  .card-img { overflow: visible; border: 0; }
  .card-img img { border: 1px solid var(--line); border-radius: 10px; }
  .card-img .fit-badge { position: static; display: block; margin-top: 6px; text-align: center; }
}
.card-img .fit-badge { text-decoration: none; }

/* ---------- pay on the checkout page ---------- */
.pay-now { border: 2px solid var(--green); background: #f3fbf6; border-radius: 12px; padding: 12px; margin: 12px 0; }
.pay-now-title { margin: 0 0 10px; line-height: 1.4; }
.pn-step { display: inline-block; background: var(--green); color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; margin-right: 4px; vertical-align: 1px; }
.pay-now-body { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.pay-qr { width: 120px; height: 120px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.pay-now-info p { margin: 6px 0 0; }
.pay-now .upi-id { font-family: var(--mono); font-weight: 700; word-break: break-all; }
.cod-rest { margin: 10px 0 8px; font-size: .92rem; }
.pay-now .field { margin: 6px 0 0; }
.pb-now { color: var(--green) !important; font-weight: 600; }
.wa-btn { background: #25d366; border-color: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 8px; }
.wa-btn svg { width: 22px; height: 22px; }
@media (min-width: 560px) { .pay-now-body { grid-template-columns: 160px 1fr; } .pay-qr { width: 160px; height: 160px; } }
.cart-bar .cb-text { display: flex; flex-direction: column; line-height: 1.25; }
.cart-bar .cb-text small { color: #9fe0b5; font-size: .78rem; font-weight: 600; }
.pay-app-btn { display: block; text-align: center; min-height: 50px; font-size: 1.05rem; }
.pay-app-note { margin: 6px 0 10px; text-align: center; }
.pay-now-body { padding-top: 10px; border-top: 1px dashed #b7e2c5; }
.pay-now .upi-id { font-size: .8rem; }
.cat-rename { flex-wrap: wrap; align-items: flex-end; }
.cat-rename .cr-name { flex: 1 1 100%; }
.cat-rename .cr-small { flex: 0 0 82px; }
.cat-rename .cr-small span { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.billing-form h2 { margin-top: 6px; }
.billing-form .field small { display: block; margin-top: 4px; font-weight: 400; }
.bill-btn { margin: 10px 0; }

/* ---------- policy pages ---------- */
.policy h2 { font-size: 1.05rem; margin: 18px 0 6px; }
.policy ul, .policy ol { padding-left: 20px; margin: 0 0 8px; }
.policy li { margin-bottom: 4px; }
.policy .lead { font-size: 1.05rem; background: var(--green-bg); border-radius: 8px; padding: 10px 12px; }
.policy-updated { margin-top: 18px; }
.policy-nav, .foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.policy-nav { justify-content: center; margin: 4px 0 20px; }
.foot-links { grid-column: 1 / -1; }
.foot-links a { color: var(--navy-2); }
.agree { margin: 10px 0 0; }
.return-note { color: var(--muted); } .return-note a { color: var(--navy-2); font-weight: 600; }

/* ---------- COD: salesperson calls for the advance ---------- */
.sales-call { display: flex; gap: 12px; align-items: flex-start; background: #fff7ec; border: 1.5px solid #f3c58a; border-radius: 14px; padding: 14px; margin: 4px 0 16px; }
.sales-call .sc-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.sales-call .sc-icon svg { width: 20px; height: 20px; }
.sales-call strong { display: block; font-size: 1rem; line-height: 1.35; color: var(--navy); }
.sales-call p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.sales-call p strong { display: inline; font-size: inherit; }

/* ---------- owner order: WhatsApp messages to send, shipping fields ---------- */
.wa-send-box { background: #effaf2; border: 1px solid #bfe6cb; border-radius: 14px; padding: 14px; margin: 14px 0; }
.wa-send-box h2 { margin-top: 0; font-size: 1.05rem; }
.wa-send + .wa-send { border-top: 1px solid #cfe9d7; margin-top: 12px; padding-top: 12px; }
.wa-text { background: #fff; border-radius: 10px; padding: 10px 12px; font-size: .92rem; margin: 6px 0 10px; white-space: pre-wrap; }
.wa-btn { background: #25d366; color: #fff; border-color: #25d366; }
.ship-fields { flex-basis: 100%; width: 100%; margin-top: 10px; background: #f6f8fb; border-radius: 12px; padding: 10px 12px; }
.ship-fields p { margin: 0 0 6px; }

/* ---------- product photos: show the whole photo, never a cropped slice ---------- */
.card-img { background: #fff; align-self: start; }
.card-img img, .card-img img.noimg { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.card-img:has(img.noimg) { display: block; }
.card-img img.noimg { padding: 14%; background: #eef1f5; }
@media (max-width: 559px) {
  .card { grid-template-columns: 128px 1fr; align-items: start; }
  .card-img { margin: 10px 0 10px 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
}
@media (max-width: 559px) {
  .card { grid-template-columns: 136px 1fr; }
  .card-img { overflow: visible; border: 0; }
  .card-img img { border: 1px solid var(--line); border-radius: 10px; }
  .card-img .fit-badge { position: static; display: block; margin-top: 6px; text-align: center; }
}
.card-img .fit-badge { text-decoration: none; }

/* ---------- pay on the checkout page ---------- */
.pay-now { border: 2px solid var(--green); background: #f3fbf6; border-radius: 12px; padding: 12px; margin: 12px 0; }
.pay-now-title { margin: 0 0 10px; line-height: 1.4; }
.pn-step { display: inline-block; background: var(--green); color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; margin-right: 4px; vertical-align: 1px; }
.pay-now-body { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.pay-qr { width: 120px; height: 120px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.pay-now-info p { margin: 6px 0 0; }
.pay-now .upi-id { font-family: var(--mono); font-weight: 700; word-break: break-all; }
.cod-rest { margin: 10px 0 8px; font-size: .92rem; }
.pay-now .field { margin: 6px 0 0; }
.pb-now { color: var(--green) !important; font-weight: 600; }
.wa-btn { background: #25d366; border-color: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 8px; }
.wa-btn svg { width: 22px; height: 22px; }
@media (min-width: 560px) { .pay-now-body { grid-template-columns: 160px 1fr; } .pay-qr { width: 160px; height: 160px; } }
.cart-bar .cb-text { display: flex; flex-direction: column; line-height: 1.25; }
.cart-bar .cb-text small { color: #9fe0b5; font-size: .78rem; font-weight: 600; }
.pay-app-btn { display: block; text-align: center; min-height: 50px; font-size: 1.05rem; }
.pay-app-note { margin: 6px 0 10px; text-align: center; }
.pay-now-body { padding-top: 10px; border-top: 1px dashed #b7e2c5; }
.pay-now .upi-id { font-size: .8rem; }
.cat-rename { flex-wrap: wrap; align-items: flex-end; }
.cat-rename .cr-name { flex: 1 1 100%; }
.cat-rename .cr-small { flex: 0 0 82px; }
.cat-rename .cr-small span { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.billing-form h2 { margin-top: 6px; }
.billing-form .field small { display: block; margin-top: 4px; font-weight: 400; }
.bill-btn { margin: 10px 0; }

/* ---------- policy pages ---------- */
.policy h2 { font-size: 1.05rem; margin: 18px 0 6px; }
.policy ul, .policy ol { padding-left: 20px; margin: 0 0 8px; }
.policy li { margin-bottom: 4px; }
.policy .lead { font-size: 1.05rem; background: var(--green-bg); border-radius: 8px; padding: 10px 12px; }
.policy-updated { margin-top: 18px; }
.policy-nav, .foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.policy-nav { justify-content: center; margin: 4px 0 20px; }
.foot-links { grid-column: 1 / -1; }
.foot-links a { color: var(--navy-2); }
.agree { margin: 10px 0 0; }
.return-note { color: var(--muted); } .return-note a { color: var(--navy-2); font-weight: 600; }

/* ---------- owner: change photo from the product list ---------- */
.ap-photo { margin: 0; }
.ap-photo label { position: relative; display: block; width: 56px; height: 56px; cursor: pointer; border-radius: 8px; }
.ap-photo label:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.ap-photo img { display: block; }
.ap-photo-tag { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(13, 27, 52, .82); color: #fff; font-size: .62rem; font-weight: 700;
  text-align: center; padding: 2px 0; border-radius: 0 0 8px 8px; letter-spacing: .02em; }
.ap-photo.uploading img { opacity: .4; }

/* ---------- product photos: swipe / arrows / side thumbnails ---------- */
.gallery-main { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; background: #fff; }
.g-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 2px 10px rgba(13, 27, 52, .22); display: grid; place-items: center; cursor: pointer; }
.g-arrow svg { width: 22px; height: 22px; }
.g-arrow.prev { left: 10px; } .g-arrow.next { right: 10px; }
.g-arrow[hidden] { display: none; }
.g-count { position: absolute; right: 10px; bottom: 10px; background: rgba(13, 27, 52, .78); color: #fff; font-size: .78rem; padding: 3px 9px; border-radius: 12px; }
.thumb { cursor: pointer; }
.thumb img { object-fit: contain; }
