/* Klikko storefront — crimson + gold on warm paper. Mobile first. */
:root {
  --ink: #241c18;
  --ink-2: #5b4d45;
  --muted: #8a7b72;
  --paper: #fbf7f1;
  --card: #ffffff;
  --line: #ece3d8;
  --red: #a51f24;
  --red-2: #c6343a;
  --red-soft: #fbe9e7;
  --gold: #e3a93b;
  --gold-soft: #fdf3dc;
  --green: #1d7a4c;
  --blue: #1f5fa8;
  --gcash: #007dfe;
  --r: 14px;
  --shadow: 0 1px 2px rgba(60, 30, 10, .05), 0 6px 20px rgba(60, 30, 10, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 15px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 16px; padding-bottom: 40px; min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

.announce { background: var(--ink); color: #f7e3bd; text-align: center; font-size: .8rem; padding: 6px 12px; letter-spacing: .02em; }

/* header */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 241, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.25rem; color: var(--red); letter-spacing: -.02em; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 40px; color: var(--muted); min-width: 0; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; color: var(--ink); min-width: 0; }
.topnav { display: flex; align-items: center; gap: 14px; }
.topnav a { text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.topnav a.on { color: var(--red); }
.topnav a[href="/track.php"] { display: none; }
.cart-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: .7rem; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
@media (min-width: 720px) {
  .topnav a[href="/track.php"] { display: inline; }
  .search { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 340px) { .topbar .brand span { display: none; } }

/* hero */
.hero {
  border-radius: 20px; padding: 26px 22px; margin-bottom: 16px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #d8454b 0%, var(--red) 45%, #7c1418 100%);
}
.hero::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #f7d27e, var(--gold) 55%, transparent 56%); opacity: .35;
}
.hero h1 { font-size: 1.6rem; max-width: 18ch; position: relative; z-index: 1; }
.hero p { margin: 0 0 14px; opacity: .9; max-width: 46ch; position: relative; z-index: 1; }
.trust { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.trust span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 4px 11px; font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }
@media (min-width: 720px) { .hero { padding: 40px 36px; } .hero h1 { font-size: 2.2rem; } }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.section-title { font-size: 1rem; margin: 6px 0 12px; }

/* grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s; }
.card:active { transform: scale(.98); }
.thumb { aspect-ratio: 1; background: #f3ece3; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; background: linear-gradient(135deg, hsl(var(--h) 70% 92%), hsl(calc(var(--h) + 20) 75% 82%)); }
.ph span { font-weight: 800; font-size: 2.6rem; color: hsl(var(--h) 55% 38%); opacity: .55; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-name { font-size: .9rem; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.price { font-weight: 800; color: var(--red); }
.was { color: var(--muted); font-size: .8rem; }
.off { font-size: .72rem; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 1px 6px; border-radius: 6px; }
.price-row.big .price { font-size: 1.6rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px;
  background: var(--red); color: #fff; border: 0; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn-ghost:hover { background: var(--red-soft); }
.btn.block { width: 100%; }

/* product page */
.back { display: inline-block; text-decoration: none; color: var(--ink-2); font-size: .9rem; margin-bottom: 10px; }
.pdp { display: grid; gap: 18px; }
@media (min-width: 820px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: start; } }
.gallery { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); background: #f3ece3; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: none; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; }
.thumb.big { border-radius: var(--r); }
.thumb.big span { font-size: 6rem; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--red); }
.pdp-info h1 { font-size: 1.35rem; font-weight: 700; }
.buy { margin: 16px 0; display: grid; gap: 14px; }
.opt { border: 0; padding: 0; margin: 0; }
.opt legend { font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.opt-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-vals input { position: absolute; opacity: 0; pointer-events: none; }
.opt-vals span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: .9rem; cursor: pointer; }
.opt-vals input:checked + span { border-color: var(--red); color: var(--red); background: var(--red-soft); font-weight: 600; }
.opt-vals input:focus-visible + span { outline: 2px solid var(--gold); }
.qty-row { display: flex; align-items: center; justify-content: space-between; }
.lbl { font-weight: 700; font-size: .85rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.stepper input { width: 44px; text-align: center; border: 0; font: inherit; font-weight: 700; -moz-appearance: textfield; background: transparent; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm button { width: 32px; height: 32px; }
.stepper.sm input { width: 34px; }
.buy-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { background: var(--gold-soft); border: 1px solid #f3dfae; border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.note p { margin: 4px 0 0; }
.desc { margin-top: 18px; }
.desc p { color: var(--ink-2); }

/* panels, layout */
.page-title { font-size: 1.4rem; font-weight: 800; }
.panel { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.two-col { display: grid; gap: 14px; align-items: start; }
.two-col > * { min-width: 0; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 360px; } .summary { position: sticky; top: 76px; } }
.empty { text-align: center; padding: 50px 16px; color: var(--ink-2); }

/* cart lines */
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line:last-of-type { border-bottom: 0; }
.lt { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: #f3ece3; flex: none; }
.lt.ph span { font-size: 1.4rem; }
.line-name { font-weight: 600; text-decoration: none; }
.line-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.line-total { font-weight: 700; }
.x { border: 0; background: transparent; font-size: 1.4rem; color: var(--muted); cursor: pointer; line-height: 1; padding: 0 4px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-weight: 800; font-size: 1.1rem; }
.summary .btn { margin: 12px 0 8px; }
.hint { font-size: .85rem; color: var(--ink-2); background: var(--gold-soft); border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.hint.warn { background: var(--red-soft); color: var(--red); }
.mini-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; font-size: .9rem; }
.mini-line .lt { width: 48px; height: 48px; }
.mini-line .lt.ph span { font-size: 1rem; }

/* forms */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field em { display: block; font-style: normal; font-size: .8rem; margin-top: 4px; }
.field .err { color: var(--red); }
.field .hint { background: none; padding: 0; color: var(--muted); margin: 4px 0 0; }
.has-err input { border-color: var(--red); }
.row2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }

.pay-opts { display: grid; gap: 10px; margin-bottom: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; font: inherit; text-align: left; color: var(--ink); width: 100%; }
.pay-opt small { display: block; color: var(--muted); font-size: .8rem; }
.pay-opt:has(input:checked) { border-color: var(--gcash); background: #eef6ff; }
.pay-opt input { accent-color: var(--gcash); }
.pay-opt.as-btn:hover { border-color: var(--gcash); background: #eef6ff; }
.gcash-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--gcash); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }

/* flash */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .92rem; }
.flash-ok { background: #e7f5ed; color: var(--green); }
.flash-err { background: var(--red-soft); color: var(--red); }

/* order page */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.order-head p { margin: 0; }
.order-head .page-title { margin: 0; }
.pill { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.pill-gray { background: #efe9e2; color: var(--ink-2); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-amber { background: var(--gold-soft); color: #9a6410; }
.pill-blue { background: #e6effa; color: var(--blue); }
.pill-green { background: #e7f5ed; color: var(--green); }
.pay-box h2 { font-size: 1.15rem; }
.confirm { display: flex; gap: 14px; align-items: center; background: #eef6ff; }
.confirm p { margin: 2px 0 0; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #cfe3ff; border-top-color: var(--gcash); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 4px 0 12px; counter-reset: s; }
.steps li { position: relative; text-align: center; font-size: .78rem; color: var(--muted); }
.steps li i { display: block; width: 14px; height: 14px; margin: 0 auto 6px; border-radius: 50%; background: var(--line); position: relative; z-index: 1; }
.steps li::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::before { display: none; }
.steps li.done { color: var(--ink); font-weight: 600; }
.steps li.done i, .steps li.done::before { background: var(--red); }
.steps li.now i { box-shadow: 0 0 0 4px var(--red-soft); }
.tracking { background: var(--paper); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.copyable { cursor: copy; font-size: 1.05rem; }
.timeline { list-style: none; padding: 0; margin: 0 0 12px; }
.timeline li { padding: 6px 0 6px 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; font-size: .9rem; }
.mini-order { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mini-order small { display: block; }

/* footer */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 22px 0 28px; }
.how { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how div { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 12px; padding: 10px 12px; font-size: .88rem; font-weight: 600; }
.how b { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .8rem; flex: none; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot-links { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.brand-foot { font-size: 1.05rem; }
.copy { margin-top: 18px; }
.timeline li b { font-weight: 700; }
.latest { display: flex; flex-direction: column; gap: 2px; background: var(--gold-soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }

/* welcome screen: Download APK / Download iOS / continue to browser */
html.gate-open, html.gate-open body { overflow: hidden; }
.gate {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; overflow-y: auto;
  background: radial-gradient(120% 80% at 50% 0%, #c93a40 0%, var(--red) 45%, #6f1115 100%); color: #fff;
}
.gate[hidden] { display: none; }
.gate-top { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(36px + env(safe-area-inset-top)) 24px 24px; }
.gate-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3), 0 0 0 4px rgba(255, 255, 255, .12); }
.gate-top h1 { font-size: 2.1rem; font-weight: 800; margin: 16px 0 4px; letter-spacing: -.02em; }
.gate-top p { margin: 0 0 14px; opacity: .9; max-width: 30ch; }
.gate-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.gate-pills span { font-size: .75rem; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px 10px; }
.gate-card {
  background: var(--paper); color: var(--ink); border-radius: 24px 24px 0 0; width: 100%; max-width: 520px; margin: 0 auto;
  padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px;
}
.gate-card[hidden] { display: none; }
.gate-card h2 { font-size: 1.15rem; margin: 2px 0 0; }
.gate-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border-radius: 14px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1.02rem; text-decoration: none; text-align: left;
}
.gate-btn small { display: block; font-weight: 500; font-size: .78rem; opacity: .8; }
.gate-btn .gi { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .16); }
.gate-apk { background: var(--red); color: #fff; }
.gate-ios { background: var(--ink); color: #fff; }
.gate.is-ios .gate-ios { order: -1; }
.gate.is-ios .gate-apk:not(.center-btn) { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.gate.is-ios .gate-apk:not(.center-btn) .gi { background: var(--red-soft); }
.gate.is-android .gate-ios { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.gate.is-android .gate-ios .gi { background: #efe9e2; }
.center-btn { justify-content: center; }
.gate-note { margin: 0; font-size: .83rem; color: var(--ink-2); background: var(--gold-soft); border-radius: 10px; padding: 8px 11px; }
.gate-note[hidden] { display: none; }
.inapp-note { display: none; }
.gate.in-app .inapp-note { display: block; }
.gate-skip { background: none; border: 0; color: var(--ink-2); font: inherit; font-weight: 600; padding: 10px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ios-steps { margin: 4px 0; padding-left: 22px; display: grid; gap: 8px; }
.ios-steps li { padding-left: 4px; }
@media (min-width: 720px) {
  .gate { justify-content: center; }
  .gate-top { flex: none; padding-top: 0; }
  .gate-card { border-radius: 24px; max-width: 420px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
}
