:root {
  --navy-950: #061528;
  --navy: #0b2341;
  --navy-700: #14335c;
  --navy-100: #e7edf5;
  --green: #16c55a;
  --green-600: #0e9a44;
  --green-700: #0b7d37;
  --green-50: #eafbf1;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #0e1b2c;
  --text-2: #3d4b5c;
  --muted: #6a7788;
  --line: #e3e8ef;
  --line-2: #eef2f6;
  --danger: #cf3434;
  --danger-50: #fdecec;
  --warn: #a86400;
  --warn-50: #fff4de;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 35, 65, .06);
  --shadow: 0 1px 3px rgba(11, 35, 65, .06), 0 6px 20px rgba(11, 35, 65, .05);
  --shadow-lg: 0 18px 50px rgba(6, 21, 40, .22);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Poppins', var(--font);

  /* product placeholder art */
  --art-fill: #fff;
  --art-glass: #dfe9f6;
  --art-shine: #ffffff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy-700); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.01em; line-height: 1.2; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.hidden, [hidden] { display: none !important; }
.ic { flex-shrink: 0; display: block; }
[data-icon] { display: inline-flex; }
:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }

/* ================= info bar + header ================= */
.infobar { background: var(--navy-950); color: #aebdd0; font-size: 12.5px; }
.infobar-inner { display: flex; gap: 22px; height: 34px; align-items: center; justify-content: flex-end; }
.infobar-inner > * { display: inline-flex; align-items: center; gap: 6px; }
.infobar a { color: #dfe8f3; text-decoration: none; }
.infobar .ic { color: var(--green); }
@media (max-width: 720px) { .infobar { display: none; } }

.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex-shrink: 0; }
.logo span { display: flex; flex-direction: column; line-height: 1.05; }
.logo strong { font-family: var(--display); font-size: 21px; letter-spacing: 4px; font-weight: 800; }
.logo small { font-size: 9px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--green); font-weight: 600; margin-top: 3px; }

.search { flex: 1; display: flex; align-items: center; max-width: 560px; background: #fff; border-radius: 12px; padding: 4px 4px 4px 12px; gap: 8px; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--green); }
.search-ic { color: var(--muted); }
.search input { flex: 1; border: 0; padding: 8px 0; outline: none; min-width: 0; color: var(--text); background: transparent; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { border: 0; background: var(--green); color: #fff; padding: 9px 18px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 14px; }
.search button:hover { background: var(--green-600); }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link, .lang, .cart-link { display: inline-flex; align-items: center; gap: 7px; color: #dbe5f0; text-decoration: none; font-size: 14px; font-weight: 500; padding: 9px 11px; border-radius: 10px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-link:hover, .lang:hover, .cart-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.cart-link { background: rgba(255,255,255,.08); color: #fff; position: relative; }
.badge { background: var(--green); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 6px; }

@media (max-width: 860px) {
  .nav-link span:last-child, .cart-text { display: none; }
}
@media (max-width: 720px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 12px; row-gap: 10px; }
  .topbar-inner { column-gap: 8px; }
  .nav { gap: 2px; }
  .nav-link, .lang, .cart-link { padding: 8px; }
  .logo img { width: 34px; height: 34px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search button { padding: 8px 14px; }
}

main.wrap { min-height: 60vh; padding-top: 24px; padding-bottom: 64px; outline: none; }

/* ================= buttons, tags ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; text-decoration: none; font-size: 14.5px; line-height: 1.2; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #cdd6e1; background: #fafbfc; }
.btn-outline { background: #fff; border-color: #bfe9cf; color: var(--green-700); }
.btn-outline:hover { background: var(--green-50); border-color: var(--green); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb457; }
.btn-on-dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-on-dark:hover { background: rgba(255,255,255,.18); }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 22px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.in { background: var(--green-50); color: var(--green-700); }
.tag.low { background: var(--warn-50); color: var(--warn); }
.tag.out { background: var(--danger-50); color: var(--danger); }
.tag.plain::before { display: none; }
.tag.jumla { background: var(--navy); color: #fff; }
.tag.jumla::before { display: none; }

/* ================= hero ================= */
.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--navy); color: #fff; display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; padding: 44px 44px 40px; margin-bottom: 18px; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: auto -120px -160px auto; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(22,197,90,.38), rgba(22,197,90,0) 65%); z-index: -1; }
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; z-index: -1; mask-image: linear-gradient(90deg, transparent, #000 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--green); background: rgba(22,197,90,.12); border: 1px solid rgba(22,197,90,.3); padding: 5px 11px; border-radius: 999px; }
.hero h1 { font-size: clamp(28px, 4.2vw, 44px); margin: 16px 0 12px; font-weight: 800; }
.hero h1 em { color: var(--green); font-style: normal; }
.hero p.lead { margin: 0 0 22px; color: #b9c8da; font-size: 16px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #9fb2c8; }
.popular a { color: #e6eef7; text-decoration: none; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.popular a:hover { background: rgba(255,255,255,.16); }
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.hero-tile { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 14px; text-decoration: none; color: #fff; display: flex; flex-direction: column; gap: 6px; transition: background .15s, transform .15s; }
.hero-tile:hover { background: rgba(255,255,255,.11); transform: translateY(-2px); }
.hero-tile .art { width: 100%; height: 92px; color: #9fd9b6; --art-fill: rgba(255,255,255,.06); --art-glass: rgba(22,197,90,.22); --art-shine: rgba(255,255,255,.35); }
.hero-tile strong { font-size: 14px; }
.hero-tile small { color: #9fb2c8; font-size: 12px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 30px 22px; } .hero-tiles { display: none; } }

/* ================= trust strip ================= */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 34px; }
.trust-item { background: var(--card); border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line-2); }
.trust-item .ti { width: 40px; height: 40px; border-radius: 11px; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; flex-shrink: 0; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust { gap: 8px; } .trust-item { padding: 11px; gap: 9px; } .trust-item .ti { width: 34px; height: 34px; } .trust-item small { display: none; } }

/* ================= section headers ================= */
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-title h2 { font-size: 21px; margin: 0; }
.section-title .sub { color: var(--muted); font-size: 14px; margin: 3px 0 0; }
.section-title a { font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; color: var(--green-700); }

/* ================= categories + brands ================= */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 30px; }
.cat { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 12px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat:hover { border-color: #c6eed6; box-shadow: var(--shadow); transform: translateY(-1px); }
.cat.active { border-color: var(--green); background: var(--green-50); }
.cat .ci { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.cat strong { font-size: 14px; line-height: 1.25; display: block; }
.cat small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) {
  .cats { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 auto; scroll-snap-align: start; padding: 10px 14px 10px 10px; }
  .cat .ci { width: 38px; height: 38px; }
}

.brands { display: flex; flex-wrap: wrap; gap: 8px; margin: -14px 0 30px; }
.brand-chip { background: #fff; border: 1px solid var(--line); color: var(--text-2); text-decoration: none; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.brand-chip:hover, .brand-chip.active { border-color: var(--navy); color: var(--navy); }
.brand-chip.active { background: var(--navy); color: #fff; }

/* ================= filters + grid ================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filters select { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 32px 8px 12px; font-size: 14px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a7788' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; cursor: pointer; }
.toggle { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--green-600); width: 16px; height: 16px; margin: 0; }
.filters .count { margin-left: auto; color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 14px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.card { background: var(--card); border-radius: var(--r); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s, border-color .18s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line); }
.card a.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.thumb { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #eef3f8; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .art { width: 62%; height: 78%; }
.thumb .badges { position: absolute; top: 9px; left: 9px; right: 9px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.card-body { padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.meta-line { font-size: 11.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }
.card-body .name { font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.card-body .fits { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-row { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.price { font-weight: 700; font-size: 17px; color: var(--navy); letter-spacing: -.01em; }
.price small { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.wholesale { font-size: 12.5px; color: var(--green-700); font-weight: 600; }
.card-foot { padding: 0 14px 14px; }
.card-foot .btn { padding: 9px 12px; }
@media (max-width: 560px) {
  .card-body { padding: 10px 11px 8px; }
  .card-body .name { font-size: 13.5px; }
  .meta-line { display: none; }
  .price { font-size: 15.5px; }
  .card-foot { padding: 0 11px 11px; }
  .card-foot .btn span.lbl { display: none; }
}

/* placeholder art colours per category */
.ph-screens { background: linear-gradient(160deg, #eaf1fb, #dbe7f6); color: #2f5f9e; }
.ph-back-covers { background: linear-gradient(160deg, #f0edfb, #e3ddf6); color: #5b46a8; }
.ph-batteries { background: linear-gradient(160deg, #fdf5e4, #f8e8c6); color: #a06a00; --art-glass: #fbe3a8; }
.ph-charging-flex { background: linear-gradient(160deg, #e6f7f3, #d2efe8); color: #0d7d68; --art-glass: #bde8dc; }
.ph-other { background: linear-gradient(160deg, #eff2f5, #e2e7ed); color: #4c5b6d; }

.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 26px; }

.empty { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty .empty-ic { width: 64px; height: 64px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; margin: 0 auto 14px; color: var(--navy-700); }
.empty p { margin: 0 0 16px; }

/* ================= product page ================= */
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: start; }
.product .gallery { position: sticky; top: 96px; }
.product .gallery .thumb { border-radius: var(--r-lg); aspect-ratio: 1; border: 1px solid var(--line-2); }
.product .gallery .thumb .art { width: 55%; height: 70%; }
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; gap: 18px; }
  .product .gallery { position: static; }
  .product .gallery .thumb { aspect-ratio: 4 / 3; }
}
.p-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.product h1 { font-size: clamp(22px, 3vw, 30px); margin: 10px 0 6px; }
.p-fits { color: var(--text-2); margin: 0 0 18px; }
.buy-box { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.buy-box .price { font-size: 30px; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 18px; }
.tier { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; transition: border-color .15s, background .15s; }
.tier small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.tier strong { font-size: 16px; }
.tier span { display: block; font-size: 12.5px; color: var(--muted); }
.tier.active { border-color: var(--green-600); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-600); }
.tier.active small { color: var(--green-700); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: #f3f6f9; width: 42px; height: 46px; cursor: pointer; display: grid; place-items: center; color: var(--text-2); }
.qty button:hover { background: #e8edf3; }
.qty input { width: 58px; text-align: center; border: 0; height: 46px; outline: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.buy-row .btn-lg { flex: 1; min-width: 180px; }
.line-total { color: var(--muted); font-size: 14px; margin: 10px 0 0; min-height: 1.4em; }
.ask-wa { margin-top: 12px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 9px 22px; font-size: 14px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.assurances { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; font-size: 14px; color: var(--text-2); }
.assurances li { display: flex; gap: 10px; align-items: center; }
.assurances .ic { color: var(--green-600); }
.p-desc { color: var(--text-2); margin: 16px 0 0; }

/* ================= cart / checkout ================= */
.page-title { font-size: 26px; margin: 0 0 18px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--card); border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.panel h2, .panel h3 { margin-top: 0; }
.panel h3 { font-size: 17px; }
.sticky-side { position: sticky; top: 96px; }
@media (max-width: 880px) { .sticky-side { position: static; } }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.line:first-child { padding-top: 0; }
.line:last-child { border-bottom: 0; padding-bottom: 0; }
.line .thumb { width: 72px; height: 72px; border-radius: 12px; aspect-ratio: auto; }
.line .thumb .art { width: 70%; height: 80%; }
.line .meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line .meta .name { font-weight: 600; font-size: 14.5px; color: var(--text); text-decoration: none; }
.line .meta .name:hover { color: var(--navy-700); }
.line .right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.line .qty { border-radius: 10px; }
.line .qty button { width: 32px; height: 34px; }
.line .qty input { width: 40px; height: 34px; }
@media (max-width: 520px) {
  .line { grid-template-columns: 56px minmax(0, 1fr); }
  .line .thumb { width: 56px; height: 56px; }
  .line .right { grid-column: 1 / -1; flex-direction: row-reverse; justify-content: space-between; align-items: center; }
}
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0; display: inline-flex; gap: 4px; align-items: center; }
.link-btn:hover { color: var(--danger); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.sum-row span:first-child { color: var(--text-2); }
.sum-row > span:last-child, .sum-row > strong:last-child { white-space: nowrap; }
.sum-row.total { font-weight: 700; font-size: 19px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.sum-row.total span:first-child { color: var(--text); }
.note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin: 8px 0 14px; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.form input, .form select, .form textarea { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: #fff; outline: none; width: 100%; font-weight: 400; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,197,90,.15); }
.form .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form .row2 { grid-template-columns: 1fr; } }
.form-section { font-size: 15px; margin: 6px 0 -4px; display: flex; align-items: center; gap: 10px; }
.form-section .step-n { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12.5px; display: grid; place-items: center; font-family: var(--font); }
.radio-cards { display: grid; gap: 8px; }
.radio-card { display: flex !important; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 500 !important; color: var(--text) !important; transition: border-color .15s, background .15s; }
.radio-card:hover { border-color: #cdd6e1; }
.radio-card:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.radio-card input { width: 18px; height: 18px; accent-color: var(--green-600); margin: 0; }
.radio-card .rc-ic { color: var(--navy-700); }
.radio-card .rc-price { margin-left: auto; font-weight: 700; }
.error, .info, .success { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.error { background: var(--danger-50); color: var(--danger); }
.info { background: #eaf2fb; color: var(--navy-700); }
.success { background: var(--green-50); color: var(--green-700); }

/* ================= order page ================= */
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-head h2 { margin: 0; font-size: 20px; }
.order-head small { display: block; color: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 400; margin-top: 2px; }
.steps { display: flex; margin: 24px 0 8px; }
.step { flex: 1; text-align: center; font-size: 12.5px; color: var(--muted); position: relative; padding-top: 36px; font-weight: 500; }
.step::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--line); z-index: 1; box-sizing: border-box; }
.step::after { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.step:first-child::after { display: none; }
.step.done { color: var(--text); }
.step.done::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center no-repeat; border-color: var(--green); }
.step.done::after { background: var(--green); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--line-2); color: var(--text-2); }
.status-pill.paid, .status-pill.completed, .status-pill.ready, .status-pill.shipped, .status-pill.processing { background: var(--green-50); color: var(--green-700); }
.status-pill.pending_payment { background: var(--warn-50); color: var(--warn); }
.status-pill.cancelled { background: var(--danger-50); color: var(--danger); }
.pay-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 12px; }
.pay-card .methods { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-card .methods span { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: var(--line-2); color: var(--text-2); }
.detail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; }
.detail-list li { display: flex; gap: 10px; }
.detail-list .ic { color: var(--muted); margin-top: 1px; }
.detail-list strong { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }

/* ================= footer ================= */
.footer { background: var(--navy-950); color: #aebdd0; padding: 48px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { margin: 0 0 8px; max-width: 300px; }
.footer .tagline { color: var(--green); font-weight: 600; }
.footer h4 { color: #fff; margin: 4px 0 14px; font-size: 15px; }
.footer a { color: #dbe5f0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-links, .footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .ic { color: var(--green); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #8296ad; }

/* ================= floating buttons + chat ================= */
.floaters { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 40; }
.fab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; cursor: pointer; box-shadow: 0 6px 20px rgba(6,21,40,.25); text-decoration: none; font-weight: 600; transition: transform .15s; }
.fab:hover { transform: translateY(-2px); }
.fab-wa { width: 50px; height: 50px; background: #25d366; color: #fff; }
.fab-chat { background: var(--navy); color: #fff; padding: 13px 20px 13px 16px; font-size: 14.5px; }
.fab-chat .ic { color: var(--green); }
@media (max-width: 560px) { .fab-chat { width: 54px; height: 54px; padding: 0; } .fab-label { display: none; } }

.chat { position: fixed; right: 18px; bottom: 18px; width: 380px; max-width: calc(100vw - 24px); height: 580px; max-height: calc(100vh - 36px); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; z-index: 50; animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.chat[hidden] { display: none; }
.chat-head { background: var(--navy); color: #fff; padding: 14px 14px 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.chat-head strong { display: block; font-size: 15px; }
.chat-head small { display: flex; align-items: center; gap: 6px; color: #aebdd0; font-size: 12px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22,197,90,.25); }
.chat-close { margin-left: auto; background: rgba(255,255,255,.08); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.chat-close:hover { background: rgba(255,255,255,.16); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: #f5f7fa; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.msg.assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line-2); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.msg.assistant a { color: var(--green-700); font-weight: 600; word-break: break-all; }
.msg.typing { display: inline-flex; gap: 4px; padding: 13px 15px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #b5c1cf; animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; }
.msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { background: #fff; border: 1px solid #bfe9cf; color: var(--green-700); border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; font-weight: 500; }
.quick button:hover { background: var(--green-50); }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-2); background: #fff; }
.chat-form input { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; outline: none; min-width: 0; }
.chat-form input:focus { border-color: var(--green); }
.chat-form button { border: 0; background: var(--green); color: #fff; width: 44px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; }
.chat-form button:hover { background: var(--green-600); }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 60; font-size: 14px; box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center; animation: pop .18s ease-out; }
.toast .ic { color: var(--green); }

.skeleton { background: linear-gradient(90deg, #e8edf2 25%, #f3f6f9 50%, #e8edf2 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); min-height: 280px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ================= sandbox payment page ================= */
.pay-page { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--navy); }
.pay-page .pay-card { background: #fff; border: 0; border-radius: 20px; padding: 28px; width: 100%; max-width: 400px; text-align: center; display: block; }
.pay-page .amount { font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--navy); margin: 8px 0 4px; }
.pay-page .warn { background: var(--warn-50); color: var(--warn); border-radius: 10px; padding: 8px; font-size: 13px; margin-bottom: 18px; }
.pay-actions { display: grid; gap: 10px; margin-top: 20px; }
.btn-danger { background: #fff; border: 1px solid #f0c4c4; color: var(--danger); }
.btn-danger:hover { background: var(--danger-50); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ================= Lipa kwa Simu (styled after the shop's printed boards) ================= */
.lipa-band { margin-top: 44px; }
.lipa-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.lipa-card { position: relative; overflow: hidden; border-radius: 18px; padding: 18px 18px 14px; color: #fff; box-shadow: var(--shadow); isolation: isolate; }
.lipa-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.lipa-brand { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.lipa-kind { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.22); white-space: nowrap; }
.lipa-digits { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin-bottom: 12px; }
.lipa-digits span { background: #fff; border-radius: 8px; text-align: center; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 5vw, 27px); line-height: 1.6; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.lipa-name { background: #fff; color: var(--text); border-radius: 10px; padding: 7px 12px; display: flex; align-items: baseline; gap: 10px; }
.lipa-name small { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.lipa-name strong { font-family: var(--display); font-size: 17px; letter-spacing: .5px; }
.lipa-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.lipa-copy { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12); color: #fff; border-radius: 9px; padding: 7px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.lipa-copy:hover { background: rgba(255,255,255,.22); }
.lipa-copy.done { background: #fff; color: var(--green-700); border-color: #fff; }
.lipa-ussd { color: #fff; text-decoration: none; font-size: 13px; opacity: .92; }
.lipa-ussd strong { font-family: var(--display); letter-spacing: .5px; }
.lipa-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13.5px; margin: 12px 0 0; }

/* M-Pesa board: red */
.lipa-mpesa { background: linear-gradient(135deg, #e60000, #b70000); }
.lipa-mpesa .lipa-digits span { color: #1f2a8a; }
.lipa-mpesa::after { content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; border: 18px solid rgba(255,255,255,.08); z-index: -1; }
/* Mixx by Yas board: indigo with a yellow sweep */
.lipa-mixx { background: linear-gradient(135deg, #2a2f86, #1d2166); }
.lipa-mixx .lipa-brand { color: #ffd200; }
.lipa-mixx .lipa-digits span { color: #2a2f86; }
.lipa-mixx::after { content: ''; position: absolute; right: -60px; bottom: -70px; width: 220px; height: 160px; border-radius: 50%; background: #ffd200; opacity: .9; z-index: -1; }
.lipa-mixx footer .lipa-ussd { color: #1d2166; opacity: 1; font-weight: 600; }

/* inside the order page */
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pay-amount span { color: var(--muted); font-weight: 600; }
.pay-amount strong { font-family: var(--display); font-size: 24px; }
.pay-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--text-2); font-size: 14px; }
.pay-card .lipa-cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.footer-bottom #footerLipa strong { color: #fff; }

/* compact Lipa strip (product page + checkout) */
.lipa-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.lipa-inline .ic { color: var(--green-600); }
.lipa-checkout { background: var(--line-2); border-radius: 12px; padding: 10px 12px; margin-top: 0; }
.lipa-checkout > span:first-child { flex-basis: 100%; }
.lipa-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 8px; padding: 4px 9px; font-family: var(--display); font-weight: 700; font-size: 13.5px; letter-spacing: .5px; color: #fff; }
.lipa-pill b { font-family: var(--font); font-weight: 600; font-size: 11.5px; letter-spacing: 0; opacity: .9; }
.lipa-pill-mpesa { background: #d40000; }
.lipa-pill-mixx { background: #2a2f86; }
.lipa-pill-mixx b { color: #ffd200; opacity: 1; }
