/* ============================================================
   Rekaman demo catalogue — shared stylesheet
   ------------------------------------------------------------
   ONE stylesheet, six category demo pages. Each page is a mock
   product page for a fictional brand; it sets a handful of CSS
   custom properties (--accent, --page-bg, --heading-font, ...)
   in its own <head>, and this file does the rest.

   Aesthetic target: premium Indian e-commerce (Pepperfry /
   Urban Ladder / a polished Shopify store) — familiar to the
   brand owners we demo to, not weird or experimental.
   ============================================================ */

:root {
  /* Per-page overrides set these; these are safe fallbacks. */
  --accent: #5A4FCF;
  --accent-ink: #ffffff;          /* text on an --accent fill */
  --page-bg: #faf9f7;
  --card-bg: #ffffff;
  --ink: #16140f;
  --ink-soft: #5c574e;
  --ink-faint: #9a958b;
  --hairline: #ece9e3;
  --heading-font: "Fraunces", Georgia, "Times New Roman", serif;
  --body-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ── Brand bar ─────────────────────────────────────────── */
.brandbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--hairline);
}
.brandbar .brand {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex; align-items: center; gap: 9px;
}
.brandbar .brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
  font-family: var(--body-font);
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.brandbar .links {
  font-size: 13px; color: var(--ink-faint); letter-spacing: 0.01em;
}

/* ── Breadcrumb ────────────────────────────────────────── */
.crumb {
  font-size: 12.5px; color: var(--ink-faint);
  padding: 18px 0 4px;
  letter-spacing: 0.01em;
}
.crumb a { color: var(--ink-faint); }
.crumb a:hover { color: var(--accent); }

/* ── Product layout ────────────────────────────────────── */
.product { padding: 8px 0 40px; }

.gallery { margin-bottom: 26px; }
.gallery .hero {
  width: 100%; aspect-ratio: 4 / 3;
  border-radius: 16px; overflow: hidden;
  background: #f1efea;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.06);
}
.gallery .hero img { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 9px;
}

h1.title {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 12px;
}

.pricerow {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.price { font-size: 26px; font-weight: 600; color: var(--ink); }
.price-was { font-size: 16px; color: var(--ink-faint); text-decoration: line-through; }
.price-off {
  font-size: 12px; font-weight: 600; color: #1f8f4e;
  background: #1f8f4e14; padding: 3px 8px; border-radius: 6px;
}
.price-note { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 22px; }

.desc {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 22px;
  font-size: 15px;
}
.desc strong { color: var(--ink); font-weight: 600; }

/* spec list */
.specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 12px; overflow: hidden;
  margin-bottom: 22px;
}
.specs .s { background: var(--card-bg); padding: 12px 14px; }
.specs .s .k { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em; text-transform: uppercase; }
.specs .s .v { font-size: 14px; color: var(--ink); font-weight: 500; margin-top: 2px; }

/* trust badges */
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 26px;
}
.trust .b {
  background: var(--card-bg); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 13px 10px; text-align: center;
}
.trust .b .bt { font-size: 13px; font-weight: 600; color: var(--ink); }
.trust .b .bs { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; line-height: 1.35; }

/* the AR slot — generous breathing room around the SDK button(s) */
.ar-slot {
  padding: 6px 0 2px;
  margin-bottom: 4px;
}
.ar-hint {
  font-size: 12.5px; color: var(--ink-faint);
  margin-top: 2px;
}

/* ── Footer ────────────────────────────────────────────── */
.foot {
  margin-top: 40px; padding: 22px 0 40px;
  border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--ink-faint);
}
.foot .powered {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.foot .powered .rk { font-weight: 600; }
.foot .powered .rk a { color: var(--accent); }
.foot .disclaimer { margin-top: 8px; font-size: 11px; color: var(--ink-faint); opacity: 0.8; }

/* ============================================================
   Category-picker hub (index.html)
   ============================================================ */
.hub { padding: 36px 0 56px; }
.hub .hub-head { text-align: center; margin-bottom: 36px; }
.hub .hub-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.hub h1 {
  font-family: var(--heading-font); font-weight: 600;
  font-size: clamp(30px, 7vw, 46px); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px;
}
.hub .hub-sub {
  color: var(--ink-soft); font-size: 16px; max-width: 460px;
  margin: 0 auto;
}
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 620px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
.cat {
  display: block; background: var(--card-bg);
  border: 1px solid var(--hairline); border-radius: 16px;
  overflow: hidden; color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 14px 30px rgba(0,0,0,0.09);
}
.cat .thumb {
  aspect-ratio: 4 / 3; background: #f1efea; overflow: hidden;
}
.cat .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat .body { padding: 14px 15px 16px; }
.cat .body .ct {
  font-family: var(--heading-font); font-weight: 600;
  font-size: 18px; color: var(--ink); letter-spacing: -0.01em;
}
.cat .body .cs {
  font-size: 12.5px; color: var(--ink-faint); margin-top: 3px;
}
.cat .body .cgo {
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  margin-top: 9px;
}
