/* My Fitness — light theme, phone first. Brand: bike logo + volt (#C6F432) used for buttons only. */
:root {
  --bg: #FFFFFF;
  --surface: #F4F5F1;
  --surface-2: #FAFAF7;
  --chip: #ECEEE8;
  --line: #E6E8E2;
  --line-2: #D3D7CE;
  --text: #16191D;
  --soft: #30363D;
  --muted: #5E656E;
  --faint: #727A84;
  --volt: #C6F432;
  --volt-hover: #B5E61F;
  --on-volt: #16191D;
  --ink: #3F6212;      /* dark lime for links/labels: 7:1 on white */
  --green: #15803D;    /* discount / savings */
  --red: #B42318;
  --wa: #1FA855;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif; /* logo only */
  --body: "Poppins", system-ui, sans-serif;
  --gutter: 32px;
  --radius: 14px;
  color-scheme: light;
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--volt); color: var(--on-volt); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--volt); color: var(--on-volt); padding: 8px 12px; z-index: 80; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
body.locked { overflow: hidden; }
.m-only { display: none; }

/* ---------- Type ---------- */
.display { font-family: var(--body); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--text); }
.d-xl { font-size: clamp(28px, 4vw, 48px); }
.d-lg { font-size: clamp(24px, 3vw, 36px); }
.d-md { font-size: clamp(20px, 2.4vw, 28px); }
.d-sm { font-size: 22px; }
.eyebrow, .label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.label { color: var(--muted); }
.lead { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; background: transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .12s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.volt { background: var(--volt); color: var(--on-volt); }
.btn.volt:hover { background: var(--volt-hover); }
.btn.white, .btn.line { background: #fff; border-color: var(--line-2); color: var(--text); }
.btn.white:hover, .btn.line:hover { border-color: var(--text); }
.btn.quiet { border-color: var(--line-2); background: #fff; color: var(--text); min-height: 40px; padding: 0 12px; font-size: 13px; }
.btn.quiet:hover { border-color: var(--text); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.danger { border-color: var(--line-2); color: var(--red); background: #fff; }
.link-under { font-size: 14px; font-weight: 600; color: var(--ink); }
.link-under:hover { text-decoration: underline; }

/* ---------- Top bar + header ---------- */
.bar { background: var(--text); color: #E9ECE6; font-size: 12.5px; }
.bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
.bar b { color: var(--volt); font-weight: 400; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand svg { width: 42px; height: 24px; flex: none; color: var(--ink); }
.brand b { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: .9; letter-spacing: .02em; color: var(--text); }
.brand small { display: block; margin-top: 2px; font-size: 8.5px; font-weight: 600; letter-spacing: .3em; color: var(--ink); }
.nav { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a { padding: 10px 0; white-space: nowrap; color: var(--soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--volt); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 900px) {
  .nav, .top-actions .btn { display: none; }
  .menu-btn { display: flex; }
}

/* Full-screen phone menu */
.m-menu { position: fixed; inset: 0; z-index: 70; background: #fff; display: flex; flex-direction: column; padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; animation: fade-in .2s ease; }
@keyframes fade-in { from { opacity: 0; } }
.m-menu-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.menu-close { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.m-menu nav { display: flex; flex-direction: column; padding: 8px 0; }
.m-menu nav a { display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 600; padding: 16px 0; border-bottom: 1px solid var(--line); }
.m-menu nav a::after { content: "›"; font-size: 24px; color: var(--faint); }
.m-menu-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.m-menu-foot p { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- Phone quick bar: search + round categories ---------- */
.m-quick { padding: 12px 0 0; }
.m-search { display: flex; align-items: center; gap: 10px; height: 46px; margin: 0 var(--gutter); padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.m-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.m-search input[type="search"] { flex: 1; min-width: 0; min-height: 0; border: 0; padding: 0; background: transparent; font-size: 15px; outline: none; box-shadow: none; }
.chips { display: grid; grid-auto-flow: column; grid-auto-columns: 72px; gap: 12px; overflow-x: auto; padding: 14px var(--gutter) 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--soft); text-align: center; line-height: 1.25; }
.chip img, .chip-icon { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; background: var(--surface); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.chip-icon { display: grid; place-items: center; color: var(--ink); }
.chip-icon svg { width: 26px; height: 26px; }

/* ---------- Hero / promo (card: photo + text, never text on photo) ---------- */
.hero { max-width: 1240px; margin: 20px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.hero > * { background: var(--surface); }
.hero-copy { grid-column: 1; grid-row: 1; border-radius: var(--radius) 0 0 var(--radius); padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
#slides { grid-column: 2; grid-row: 1; position: relative; min-height: 420px; border-radius: 0 var(--radius) var(--radius) 0; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slide.on { opacity: 1; }
.slide-media { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: #fff; }
.slide-media.one { grid-template-columns: 1fr; }
.slide-media img, .slide-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-copy p { color: var(--muted); max-width: 460px; }
.hero-foot { display: flex; flex-direction: column; gap: 18px; }
.hero-foot > div:first-child { display: flex; flex-direction: column; gap: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dots { display: flex; align-items: center; gap: 6px; }
.dots > span { display: none; }
.dots button { width: 22px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.dots button::after { content: ""; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width .2s; }
.dots button[aria-current="true"]::after { width: 18px; left: 2px; background: var(--text); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; margin-top: 14px; }
  #slides { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) 0 0; }
  .hero-copy { grid-column: 1; grid-row: 2; border-radius: 0 0 var(--radius) var(--radius); padding: 18px 16px 20px; gap: 10px; }
  .hero-copy br { display: none; }
  .hero-copy .actions { flex-wrap: nowrap; }
  .hero-copy .actions .btn { flex: 1 1 0; padding: 0 8px; font-size: 13px; }
  .hero-foot, .hero-foot > div:first-child { gap: 14px; }
}


/* ---------- Sections ---------- */
.sec { padding-top: 56px; }
.sec:last-of-type { padding-bottom: 64px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.sec-head > div { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 640px) { .sec { padding-top: 36px; } .sec:last-of-type { padding-bottom: 40px; } .sec-head { margin-bottom: 14px; align-items: center; } }

/* Two range cards: photo on top, words underneath */
.ranges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 32px; }
.range { display: flex; flex-direction: column; }
.range img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.range .sub { font-size: 14px; color: var(--muted); }
.range > span { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 2px; }
.range .display { font-size: clamp(16px, 2vw, 22px); }
.range .go { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) {
  .ranges { gap: 10px; padding-top: 20px; }
  .range > span { padding: 8px 2px 0; }
  .range .sub { font-size: 12.5px; line-height: 1.4; }
  .range .display { font-size: 14px; line-height: 1.3; }
  .range .go { display: none; }
}

/* Category tiles (desktop) */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cat { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 600; }
.cat > span:first-child { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat:hover img { transform: scale(1.04); }
.cat > span:last-child { display: flex; justify-content: space-between; }

/* ---------- Product grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
@media (max-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 6px 20px rgba(22, 25, 29, .08); }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } /* absolute: portrait photos can't stretch the square */
.card-media img.stock-photo { opacity: .45; filter: grayscale(.5); }
.no-photo { position: absolute; left: 10px; bottom: 10px; font-size: 11px; font-weight: 500; color: var(--soft); background: rgba(255, 255, 255, .85); padding: 2px 8px; border-radius: 99px; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 700; color: var(--on-volt); background: var(--volt); padding: 3px 8px; border-radius: 6px; }
.badge.out { left: auto; right: 10px; background: var(--text); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 4px; flex: 1; }
.tag { font-size: 12px; color: var(--muted); }
.card h3 { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 4px; }
.price { font-size: 17px; font-weight: 700; color: var(--text); }
.mrp { font-size: 13px; color: var(--faint); text-decoration: line-through; }
.off { font-size: 12.5px; font-weight: 600; color: var(--green); }
.off.big { font-size: 14px; padding: 2px 8px; border-radius: 6px; background: #E8F5EC; }
.card .btn { margin: 10px 12px 12px; }
.card .btn svg { width: 15px; height: 15px; }
.empty { grid-column: 1 / -1; color: var(--muted); padding: 24px 0; }

/* Swipe rails (phones) */
@media (max-width: 640px) {
  .rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
}

/* ---------- Offer band, repair, visit ---------- */
.band { border-radius: var(--radius); background: #F2FAD9; border: 1px solid #DDEFA6; padding: 36px 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.band > div { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.repair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.repair > img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; border-radius: var(--radius); }
.panel-dark { padding: 8px 0 8px 24px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 14px; color: var(--soft); }
.ticks li::before { content: "✓  "; color: var(--green); font-weight: 700; }
.visit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.visit > div { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.visit > div:last-child { justify-content: center; }
.visit .label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.visit a[data-tel] { font-weight: 600; color: var(--ink); }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); margin-top: 16px; }
@media (max-width: 760px) {
  .band { padding: 22px 18px; }
  .band .btn, .panel-dark .btn { width: 100%; }
  .repair { grid-template-columns: 1fr; }
  .repair > img { min-height: 0; height: 200px; }
  .panel-dark { padding: 16px 0 0; }
  .ticks { grid-template-columns: 1fr 1fr; font-size: 13px; }
  .visit { grid-template-columns: 1fr 1fr; gap: 10px; }
  .visit > div { padding: 14px; font-size: 13.5px; }
  .visit > div:first-child, .visit > div:last-child { grid-column: 1 / -1; }
  .map { height: 240px; }
}

/* ---------- Footer + floating WhatsApp ---------- */
.foot { background: var(--surface); margin-top: 24px; }
.foot .wrap:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 32px; padding-bottom: 32px; font-size: 13.5px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot nav a { color: var(--soft); }
.foot .huge { display: none; }
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 54px; height: 54px; border-radius: 999px; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.wa-float:hover { color: #fff; }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 640px) { .foot .wrap:first-child { padding-bottom: 88px; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], select, textarea {
  width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--text); padding: 0 12px; font-size: 15px; font-weight: 400;
}
textarea { padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(198, 244, 50, .45); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); }
.check { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 14.5px; cursor: pointer; }
.msg { font-size: 14px; min-height: 1.2em; }
.msg.ok { color: var(--green); }
.msg.err { color: var(--red); }
.search-box { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; }
.search-box svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.search-box input { border: 0; min-height: 0; padding: 0; box-shadow: none !important; }

/* ---------- Shop page ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px; padding: 10px 0 18px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 500; color: var(--soft); cursor: pointer; white-space: nowrap; }
.tabs button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.shop { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 20px; }
.filters { flex: 1 1 230px; max-width: 260px; display: flex; flex-direction: column; gap: 26px; }
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filters legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { min-width: 52px; height: 38px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.pills button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.results { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.toolbar .search-box { flex: 1 1 260px; max-width: 420px; }
.toolbar label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.toolbar select { width: auto; }
.filter-toggle { display: none; }
.more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 16px; font-size: 13px; color: var(--muted); }
.sheet-done { display: none; }
@media (max-width: 860px) {
  .filter-toggle { display: inline-flex; }
  .filters { max-width: none; flex-basis: 100%; }
  .filters:not(.open) { display: none; }
  .filters.open .sheet-done { display: block; }
}
@media (max-width: 640px) {
  .toolbar label { flex: 1; }
  .toolbar select { flex: 1; }
  .filters.open { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 86svh; overflow-y: auto; border-radius: 18px 18px 0 0; background: #fff; padding: 20px var(--gutter) 0; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
  .sheet-done { position: sticky; bottom: 0; margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
}
@keyframes sheet-in { from { transform: translateY(100%); } }

/* ---------- Product page ---------- */
.pd { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 16px; }
.gallery { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery .main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); touch-action: pan-y; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .count { position: absolute; bottom: 12px; right: 12px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .9); padding: 3px 10px; border-radius: 99px; }
.thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumbs button { aspect-ratio: 1 / 1; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--surface); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pd-info > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pd-price .price { font-size: 30px; }
.pd-price .mrp { font-size: 16px; }
.save { font-size: 14px; font-weight: 600; color: var(--green); }
.stock-line { flex-basis: 100%; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.stock-line::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--green); }
.stock-line.low::before { background: #D97706; }
.stock-line.out::before { background: var(--red); }
.pd-desc { font-size: 15px; line-height: 1.7; color: var(--soft); white-space: pre-line; }
.pd-actions { display: flex; flex-direction: column; gap: 10px; }
.pd-actions small { font-size: 12.5px; color: var(--muted); text-align: center; }
.perks { font-size: 14px; color: var(--muted); }
.specs-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px; }
.specs-wrap > div { display: flex; flex-direction: column; gap: 12px; }
.specs { margin: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); border-top: 1px solid var(--line); font-size: 14.5px; }
.specs dt, .specs dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.features { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.features li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.features li::before { content: "✓"; color: var(--green); font-weight: 700; }
.buy-bar { display: none; }
@media (max-width: 640px) {
  .pd { gap: 18px; padding-top: 10px; }
  .gallery { margin: 0 calc(-1 * var(--gutter)); }
  .gallery .main { border-radius: 0; }
  .thumbs { padding: 0 var(--gutter); }
  .specs { grid-template-columns: 120px minmax(0, 1fr); }
  .pd-actions .btn.volt { display: none; } /* the sticky bar carries the main button */
  .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(22, 25, 29, .06); }
  .buy-bar > div { display: flex; flex-direction: column; line-height: 1.25; }
  .buy-bar .price { font-size: 19px; }
  .buy-bar small { font-size: 12px; color: var(--faint); }
  .buy-bar .btn { min-height: 48px; padding: 0 18px; }
  body.has-buy-bar { padding-bottom: 76px; }
  body.has-buy-bar .wa-float { display: none; }
}

/* ---------- Order / repair form ---------- */
.order-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.order-dialog::backdrop { background: rgba(22, 25, 29, .5); }
.order-dialog form { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.od-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.od-head > div { display: flex; flex-direction: column; gap: 2px; }
.od-head .display { font-size: 20px; }
.od-x { width: 40px; height: 40px; flex: none; border: 0; border-radius: 99px; background: var(--surface); font-size: 22px; line-height: 1; cursor: pointer; }
.od-note { font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .order-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92svh; animation: sheet-in .28s cubic-bezier(.2, .8, .2, 1); }
  .order-dialog form { padding: 10px var(--gutter) calc(18px + env(safe-area-inset-bottom)); }
  .order-dialog form::before { content: ""; align-self: center; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); }
}

/* ---------- Admin ---------- */
.admin-top { border-bottom: 1px solid var(--line); padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #fff; }
.pill-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--on-volt); background: var(--volt); padding: 3px 8px; border-radius: 6px; }
.admin-user { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
.admin-shell { display: flex; flex-wrap: wrap; min-height: calc(100vh - 66px); background: var(--surface-2); }
.side { flex: 1 1 210px; max-width: 230px; border-right: 1px solid var(--line); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; font-weight: 500; background: #fff; }
.side button, .side a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--muted); background: none; border: 0; cursor: pointer; text-align: left; }
.side svg { width: 18px; height: 18px; }
.side [aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 600; }
.side [aria-current="page"] svg { color: var(--ink); }
.admin-main { flex: 999 1 640px; min-width: 0; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.list-col { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.list-head > div { display: flex; flex-direction: column; gap: 4px; }
.list-head span { font-size: 13.5px; color: var(--muted); }
.table-wrap { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: #fff; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.sel td { background: #F6FBE6; }
.prod-cell { display: flex; align-items: center; gap: 12px; }
.thumb { width: 46px; height: 46px; flex: none; border-radius: 8px; background: var(--surface); object-fit: cover; }
.prod-cell small { display: block; font-size: 12px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.stepper output { min-width: 30px; text-align: center; font-weight: 600; }
.mini-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--chip); color: var(--soft); margin: 2px 4px 2px 0; }
.mini-tag.v { background: var(--volt); color: var(--on-volt); }
.row-actions { text-align: right; white-space: nowrap; }
.row-actions button { height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: 13px; margin-left: 6px; }
.row-actions button.del { color: var(--red); }
.editor { flex: 1 1 360px; max-width: 460px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.editor-head h2 { font-size: 17px; font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.slot { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot.cover { border: 2px solid var(--ink); }
.slot .cover-tag { position: absolute; left: 4px; bottom: 4px; font-size: 9px; font-weight: 700; color: var(--on-volt); background: var(--volt); padding: 1px 5px; border-radius: 4px; }
.slot .x { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 99px; border: 0; background: rgba(22, 25, 29, .75); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.slot .mk { position: absolute; inset: auto 3px 3px 3px; height: 22px; border: 0; border-radius: 6px; background: rgba(22, 25, 29, .75); color: #fff; font-size: 10px; cursor: pointer; }
.slot.add { border-style: dashed; display: grid; place-items: center; color: var(--muted); font-size: 22px; cursor: pointer; }
.slot.add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.switches { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.switches label { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.switches label span { display: flex; flex-direction: column; gap: 1px; font-weight: 600; }
.switches small { font-size: 12px; color: var(--muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.price-preview { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stats div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.stats b { font-size: 26px; line-height: 1.1; }
.stats span { font-size: 12px; color: var(--muted); }
.status-new { color: var(--ink); font-weight: 600; }
td select { min-height: 36px; width: auto; font-size: 13px; }
.cust a { color: var(--ink); font-weight: 500; }
.login { max-width: 400px; margin: 64px auto; padding: 28px; display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.note { max-width: 640px; margin: 48px auto; padding: 0 16px; color: var(--soft); }
@media (max-width: 760px) {
  .side { max-width: none; flex-basis: 100%; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .side > * { flex: none; }
  .admin-main { padding: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .table-wrap { border: 0; overflow: visible; background: none; }
  table { min-width: 0; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; padding: 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  tbody td { padding: 0; border: 0; }
  tr.sel { border-color: var(--ink); }
  tr.sel td { background: none; }
  .row-actions { text-align: left; grid-column: 1 / -1; }
  .row-actions button { margin: 0 6px 0 0; height: 40px; padding: 0 16px; }
  .editor { padding: 16px; }
}

/* ---------- Visibility helpers ---------- */
@media (max-width: 640px) {
  .m-only { display: block; }
  .d-only { display: none; }
  .bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.offer-line { padding-top: 20px; font-weight: 600; }
