:root {
  --ink: #12263F; --bg: #F7FAFB; --card: #FFFFFF; --muted: #5B6B7D; --line: #E1EAEE;
  --accent: #A31511; --accent-ink: #FFFFFF; --gold: #C99A2E; --green: #2F7D4F; --err: #B42318;
  --shadow: 0 1px 2px rgba(18,38,63,.06), 0 6px 18px rgba(18,38,63,.07);
  --head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #E8EEF4; --bg: #0F1720; --card: #17212C; --muted: #9AA9B8; --line: #26323F; --accent: #E0483F;
    --shadow: none; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); } h2 { font-size: 1.3rem; } h3 { font-size: 1rem; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 22px; padding-bottom: 48px; min-height: 60vh; outline: none; }
.loading { text-align: center; margin-top: 40vh; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: .85rem; } .err { color: var(--err); } .ok { color: var(--green); }
.row-between { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
section { margin: 28px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 1px solid transparent; font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.light { background: #fff; color: #12263F; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px; }
.icon-btn { background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; padding: 6px; min-width: 44px; min-height: 44px; }

/* header */
.announce { background: var(--ink); color: var(--bg); text-align: center; padding: 6px 16px; font-size: .9rem; }
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
/* Skatescape wordmark + ZOOS logo (both black artwork: on dark mode they sit on a white panel) */
.brand .logo-ss { height: 26px; width: auto; }
.brand .logo-zoos { height: 36px; width: auto; }   /* square ZOOS mark */
.brand-sep { width: 1px; height: 30px; background: var(--line); }
@media (prefers-color-scheme: dark) { .brand { background: #fff; padding: 6px 12px; border-radius: 10px; } .brand-sep { background: #D5DDE3; } }
.search { flex: 1; max-width: 460px; margin-left: auto; }
.search input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; background: var(--bg); color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 6px 10px; font: 600 .8rem var(--body); color: var(--muted); cursor: pointer; min-height: 36px; }
.lang button[aria-pressed=true] { background: var(--ink); color: var(--bg); }
.cart-link { text-decoration: none; font-weight: 600; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.cart-link span:not(:empty) { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .8rem; margin-left: 2px; }
.menu-btn { display: none; }
.mainnav { border-top: 1px solid var(--line); }
.nav-row { display: flex; gap: 22px; align-items: center; min-height: 46px; }
.nav-row > a, .dd > summary { text-decoration: none; font-weight: 500; cursor: pointer; list-style: none; }
.dd { position: relative; } .dd > summary::-webkit-details-marker { display: none; } .dd > summary::after { content: ' ▾'; font-size: .8em; }
.dd-menu { position: absolute; top: 34px; left: -12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 2px; z-index: 30; }
.dd-menu a { padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: .92rem; }
.dd-menu a:hover { background: var(--bg); }

/* hero + home */
.hero { border-radius: 20px; padding: clamp(28px, 6vw, 64px); color: #fff; margin-top: 4px;
  background: linear-gradient(120deg, rgba(18,38,63,.92), rgba(163,21,17,.75)), var(--hero, none) center/cover, #12263F; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); max-width: 16ch; } .hero p { max-width: 50ch; opacity: .92; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { position: relative; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); text-decoration: none; aspect-ratio: 1; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile span { position: absolute; inset: auto 0 0 0; padding: 22px 10px 8px; color: #fff; font: 700 .85rem var(--head);
  background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.promo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.promo.dark { background: #12263F; color: #fff; border-color: #12263F; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 1; background: #fff; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 10px 12px 14px; }
.card-body h3 { font: 500 .95rem var(--body); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { margin: 0; }
.badge { position: absolute; top: 10px; left: 10px; border-radius: 999px; padding: 2px 10px; font: 600 .75rem var(--body); }
.badge.out { background: #5B6B7D; color: #fff; } .badge.pre { background: #1F5FAD; color: #fff; }
.pre-tag { color: #1F5FAD; font-weight: 600; } .pre-note { margin-top: 8px; font-size: .85rem; }
.gift-note { margin: 8px 0; padding: 8px 12px; border-radius: 10px; font-size: .9rem; background: color-mix(in srgb, var(--green) 10%, var(--card)); }
.gift-note.in { font-weight: 600; }
@media (prefers-color-scheme: dark) { .pre-tag { color: #7FB2F0; } } .badge.sale { background: var(--accent); color: #fff; }
.price { font-weight: 600; } .was { color: var(--muted); font-size: .9em; }
/* discounts: red price + "RM… OFF NOW!" banner across the top of the photo / above the price */
.price.sale { color: #D7191C; }
@media (prefers-color-scheme: dark) { .price.sale { color: #FF5A52; } }
.off-banner { position: absolute; top: 0; left: 0; right: 0; background: #D7191C; color: #fff; text-align: center;
  font: 800 .85rem var(--body); letter-spacing: .02em; padding: 6px 8px; text-transform: uppercase; z-index: 1; }
.off-banner ~ .badge { top: 38px; }
.off-banner.big-off { position: static; display: inline-block; border-radius: 10px; font-size: 1.05rem; padding: 8px 14px; margin: 6px 0 2px; }
.off-banner[hidden] { display: none; }
/* sets & promotions, class offers (R035) */
.perk-chip { margin-top: 4px !important; font-size: .8rem; color: var(--green); font-weight: 600; }
.perk-banner { background: color-mix(in srgb, var(--green) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line));
  border-radius: 14px; padding: 12px 16px; margin: 0 0 18px; font-weight: 500; }
.promo-sets { background: color-mix(in srgb, var(--gold) 10%, var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 22px; }
.promo-sets h2 { margin-bottom: 2px; }
.nav-promo { background: #D7191C; color: #fff !important; font-weight: 800; letter-spacing: .03em; border-radius: 999px; padding: 4px 12px !important; text-decoration: none; }
.nav-zoos { font-weight: 800; letter-spacing: .04em; }
.zoos-banner { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; background: #12263F; color: #fff; border-radius: 18px; padding: 20px 28px 0; overflow: hidden; }
.zoos-banner img { width: 100%; height: 230px; object-fit: contain; object-position: bottom; align-self: end; border-radius: 12px 12px 0 0; }
.zoos-banner > div { padding-bottom: 20px; }
.zoos-banner h2 { color: #fff; margin: 4px 0 8px; }
.zoos-banner p { color: #d5dbe8; margin: 0 0 16px; }
.zb-eye { color: #ffd60a; font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.zoos-links { display: grid; gap: 6px; margin: 10px 0; }
.zoos-links a { font-weight: 600; }
.badge.inline { position: static; display: inline-block; margin-bottom: 6px; }
.ends { color: var(--accent); font-weight: 600; margin: 4px 0; }
.set-box { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 12px 0; background: var(--card); }
.set-box h2 { font-size: 1rem; margin: 0 0 6px; } .set-box ul { margin: 0; padding-left: 20px; } .set-box li { margin: 2px 0; }
.perk-box ul { margin: 6px 0; padding-left: 20px; } .perk-box .btn { margin-top: 8px; }
.perk-box { background: color-mix(in srgb, var(--green) 12%, var(--card)); border-radius: 14px; padding: 12px 16px; margin: 12px 0; }
.sort select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: 6px 10px; font: inherit; background: var(--card); color: var(--ink); }

/* product page */
.back { display: inline-block; margin-bottom: 10px; color: var(--muted); text-decoration: none; }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.gallery > img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 16px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs button { border: 1px solid var(--line); border-radius: 10px; padding: 0; background: #fff; cursor: pointer; flex: 0 0 68px; height: 68px; overflow: hidden; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.big { font-size: 1.4rem; }
.opts { border: 0; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opts legend { font-weight: 600; margin-bottom: 6px; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: inline-block; border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; background: var(--card); min-height: 40px; }
.opt input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); font-weight: 600; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt.off span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.stock { color: var(--accent); font-weight: 600; min-height: 1.4em; margin: 4px 0; }
.qty-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 10px 0; }
.qty-row input { width: 80px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; font: inherit; display: block; background: var(--card); color: var(--ink); }
.desc { line-height: 1.7; }
.policy { max-width: 820px; } .policy h2 { font-size: 1.15rem; margin: 26px 0 8px; } .policy h3 { font-size: 1rem; margin: 18px 0 6px; }
.policy p { margin: 0 0 10px; } .policy ul { margin: 0 0 12px; padding-left: 22px; } .policy li { margin: 3px 0; }

/* cart + checkout */
.cart { display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) 80px 100px auto; gap: 12px; align-items: center; background: var(--card);
  border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
.cart-line img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; }
.cart-line input { width: 70px; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; font: inherit; background: var(--card); color: var(--ink); }
.cart-line strong { text-align: right; }
.cart-foot { text-align: right; margin-top: 16px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.checkout fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; background: var(--card); }
.checkout legend { font: 700 1rem var(--head); padding: 0 6px; }
.checkout label { display: block; margin: 8px 0; font-weight: 500; font-size: .92rem; }
.checkout input:not([type=radio]), .checkout select, .checkout textarea { display: block; width: 100%; margin-top: 4px; min-height: 44px; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 12px; font: inherit; background: var(--bg); color: var(--ink); }
.checkout label.radio { display: flex; gap: 10px; align-items: center; min-height: 40px; cursor: pointer; }
.checkout label.radio input { width: 20px; height: 20px; accent-color: var(--accent); }
.two { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.co-side { background: var(--card); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); position: sticky; top: 130px; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.sum-line.total { font-weight: 700; font-size: 1.1rem; border-bottom: 0; }
.box { background: var(--card); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); margin: 14px 0; }
.box pre { white-space: pre-wrap; font: inherit; background: var(--bg); border-radius: 10px; padding: 12px; }
.banner { background: #FFF6E5; color: #6B4A00; border: 1px solid #F3D9A4; border-radius: 12px; padding: 12px 14px; }
@media (prefers-color-scheme: dark) { .banner { background: #2E2510; color: #F3D9A4; border-color: #5A4A20; } }
.pill { display: inline-block; border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 600; background: var(--line); }
.pill.completed { background: #DDF2E5; color: #1F5C38; } .pill.unpaid { background: #FFF1C2; color: #6B4A00; } .pill.cancelled { background: #F8DCDC; color: #7A1C1C; }
.plain { list-style: none; padding: 0; } .plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.contact p { margin: 14px 0; } .lead { font-size: 1.1rem; max-width: 65ch; }

/* skating classes landing page (classpage.js) */
.cp section { margin: 36px 0; }
.cp-hero { border-radius: 22px; overflow: hidden; color: #fff; margin-top: 4px;
  background: linear-gradient(100deg, rgba(18,38,63,.94) 0%, rgba(18,38,63,.78) 45%, rgba(163,21,17,.35) 100%), var(--cp-img) center/cover, #12263F; }
.cp-hero-in { padding: clamp(28px, 6vw, 72px); max-width: 680px; }
.cp-hero h1 { font-size: clamp(1.8rem, 4.6vw, 3rem); }
.cp-hero p { opacity: .92; }
.cp-kicker { font: 700 .8rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: #F5C26B; opacity: 1 !important; margin: 0 0 8px; }
.cp-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cp-small { font-size: .85rem; margin-top: 10px; }
.cp-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: -10px !important; }
.cp-hl { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.cp-hl .cp-ico { font-size: 1.5rem; } .cp-hl span:last-child { color: var(--muted); font-size: .9rem; }
.cp-rates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.cp-rate { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.cp-row { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding: 8px 0; }
.cp-row b { font: 700 1.4rem var(--head); }
.cp-save { align-self: flex-start; background: #DDF2E5; color: #1F5C38; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; }
.cp-trial { background: #12263F; color: #fff; border-color: #12263F; }
.cp-trial .cp-big { font: 700 2.6rem var(--head); color: #F5C26B; } .cp-trial p { opacity: .85; margin: 0; } .cp-trial .btn { margin-top: auto; }
.cp-offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.cp-pax { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center; }
.cp-pax b { font: 700 1.6rem var(--head); } .cp-pax small { color: var(--muted); }
.cp-locs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 12px; }
.cp-loc { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; font-weight: 500; min-height: 44px; }
.cp-loc:hover { border-color: var(--accent); }
.cp-steps { list-style: none; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.cp-steps li { counter-increment: s; background: var(--card); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.cp-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 6px; }
.cp-steps span { color: var(--muted); font-size: .92rem; }
.cp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.cp-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; background: var(--card); }
.cp-final { text-align: center; background: var(--card); border-radius: 22px; padding: 36px 20px; box-shadow: var(--shadow); }
@media (max-width: 820px) {
  .cp-highlights, .cp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-rates { grid-template-columns: minmax(0, 1fr); }
}

/* footer */
.foot { background: #12263F; color: #DCE6EF; padding: 32px 0 12px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot h3 { color: #fff; } .foot a { display: block; color: #DCE6EF; text-decoration: none; padding: 3px 0; }
.foot a:hover { text-decoration: underline; } .copy { font-size: .85rem; opacity: .75; margin-top: 18px; }

/* phones */
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .top-row { flex-wrap: wrap; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
  .brand { gap: 9px; } .brand .logo-ss { height: 22px; } .brand .logo-zoos { height: 30px; } .brand-sep { height: 24px; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .top-actions { margin-left: auto; }
  .mainnav { display: none; } .mainnav.open { display: block; }
  .nav-row { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .nav-row > a, .dd > summary { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .dd-menu { position: static; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .product, .checkout, .promo-row, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .zoos-banner { grid-template-columns: 110px 1fr; gap: 14px; padding: 16px 16px 0; }
  .zoos-banner img { height: 170px; }
  .co-side { position: static; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cart-line { grid-template-columns: 56px minmax(0, 1fr) 64px; }
  .cart-line img { width: 56px; height: 56px; }
  .cart-line strong, .cart-line .link { grid-column: 2 / -1; text-align: left; }
}

/* Atome pay-later badge (R013) - Atome's lime with dark text, readable in light and dark mode */
.laters { margin: -4px 0 10px; } .laters:empty { display: none; }
.later { display: inline-block; font-size: .85rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.later.atome { background: #F0FF5F; color: #111; }

/* buy now from the ZOOS page: plain checkout header (no menu / search / cart) */
.top.express .top-row { justify-content: space-between; }
.top.express .secure { font-weight: 700; color: var(--green, #1f9d55); white-space: nowrap; }
@media (max-width: 600px) { .top.express .secure { display: none; } }

/* page content sent by index.php for search engines / AI; app.js replaces it once loaded */
.seo-page { max-width: 1100px; margin: 0 auto; padding: 16px; font-size: 14px; color: #12263F; }
.seo-page img { max-width: 120px; height: auto; vertical-align: middle; margin-right: 8px; }
.seo-page ul { list-style: none; padding: 0; } .seo-page li { margin: 4px 0; } .seo-page nav li { display: inline-block; margin-right: 12px; }
