/* Papis Canvas Puzzles: shared stylesheet */

:root {
  --bg:         #f8f6f3;
  --surface:    #ffffff;
  --border:     #e5e1da;
  --text:       #1a1a18;
  --muted:      #6b6860;
  --accent:     #2d6a4f;
  --accent-light:#edf7f2;
  --radius:     10px;
  --max-w:      1080px;
  --shop-w:     900px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

/* ─── Site header ─────────────────────────────────────────────── */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  text-decoration: none;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover { color: var(--text); }

.site-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

/* ─── Shop inner wrapper ──────────────────────────────────────── */

.shop-inner {
  max-width: var(--shop-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Featured product hero ──────────────────────────────────── */

.feature-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
}

.feature-inner {
  max-width: var(--shop-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  aspect-ratio: 4/3;
  background: #f0ede8;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.feature-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.feature-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.feature-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.btn-buy {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.12s;
}

.btn-buy:hover { background: #235e44; }

.feature-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ─── More products ───────────────────────────────────────────── */

.shop-section {
  padding: 48px 0;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
}

.products-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.product-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.product-tile-image {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-tile-image.teal   { background: #ddf0e8; }
.product-tile-image.purple { background: #ece9fb; }
.product-tile-image.coral  { background: #fdeee8; }
.product-tile-image.img { padding: 0; overflow: hidden; }
.product-tile-image.img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.product-tile-body {
  padding: 14px 16px 18px;
}

.product-tile-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-tile-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.product-tile-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.products-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.products-note a {
  color: var(--accent);
  text-decoration: none;
}

.products-note a:hover { text-decoration: underline; }

/* ─── Product selector ────────────────────────────────────────── */

.selector-section {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}

.selector-inner {
  max-width: var(--shop-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}

.sel-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.sel-featured-image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: #f0ede8;
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}

.sel-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sel-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.sel-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.sel-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.sel-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.sel-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

.sel-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.btn-app {
  display: inline-block;
  background: var(--surface);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid var(--accent);
  transition: background 0.12s, color 0.12s;
}

.btn-app:hover { background: var(--accent); color: #fff; }

.sel-others {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sel-thumb {
  display: flex;
  gap: 0;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sel-thumb:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(45,106,79,0.12);
}

.sel-thumb-img {
  width: 80px;
  height: 68px;
  flex-shrink: 0;
  overflow: hidden;
}

.sel-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sel-thumb-body {
  padding: 0 14px;
}

.sel-thumb-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.sel-thumb-price {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 720px) {
  .selector-inner { grid-template-columns: 1fr; }
  .sel-others { flex-direction: row; flex-wrap: wrap; }
  .sel-thumb { flex: 1 1 calc(50% - 5px); }
  .sel-featured { grid-template-columns: 1fr; gap: 20px; }
}

/* ─── Gallery ─────────────────────────────────────────────────── */

.gallery-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.gallery-tile {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f0ede8;
}

.gallery-tile img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.gallery-tile-label {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px;
  font-weight: 500;
}

.gallery-note {
  font-size: 13px;
  color: var(--muted);
}

.gallery-note a {
  color: var(--accent);
  text-decoration: none;
}

.gallery-note a:hover { text-decoration: underline; }

/* ─── Trust bar ───────────────────────────────────────────────── */

.trust-section {
  padding: 40px 0;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-item div {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.trust-item strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* ─── Footer ──────────────────────────────────────────────────── */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

/* ─── Responsive ──────────────────────────────────────────────── */

@media (max-width: 680px) {
  .feature-inner { grid-template-columns: 1fr; gap: 24px; }
  .feature-title { font-size: 26px; }
  .feature-price { font-size: 22px; }
  .products-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   Legacy styles for checkout, payment, confirmation pages
   ═══════════════════════════════════════════════════════════════ */

/* Container used on checkout/payment/confirmation */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header used on checkout/payment/confirmation */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.brand h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 1px;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--accent); font-weight: 600; }

/* ── Hero (index page) ── */

.hero { padding: 40px 0 32px; }

/* ── Puzzle hero ── */
.puzzle-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.puzzle-board-outer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.puzzle-board-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.side-controls {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 32px;
}

.zoom-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
}

.zoom-btn:hover { background: var(--bg); }
.zoom-btn.active { background: var(--text); color: var(--surface); border-color: var(--text); }
.zoom-btn:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

.board-color-btn {
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  background: var(--surface);
}
.board-color-btn::-webkit-color-swatch-wrapper { padding: 2px; }
.board-color-btn::-webkit-color-swatch { border: none; border-radius: 3px; }
.board-color-btn::-moz-color-swatch { border: none; border-radius: 3px; }

.zoom-slider-wrap {
  height: 120px;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

#zoomSlider {
  width: 120px;
  transform: rotate(-90deg);
  cursor: pointer;
  accent-color: var(--text);
}

#puzzleBoard,
#puzzleTray {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 8px;
}

#puzzleTray { border-radius: 6px; }

.puzzle-btn-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.mystery-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 40px;
  font-size: 20px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.mystery-btn:hover { background: var(--bg); }

.puzzle-dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
}

.puzzle-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

#gameBoard {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
}

#gameTray {
  display: block;
  max-width: 800px;
  border-radius: 6px;
  cursor: grab;
  touch-action: none;
}

.hero h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

/* ── Auth nav dropdown ────────────────────────────────────────────────── */
.auth-nav-btn {
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.auth-nav-btn:hover { color: var(--text); }
.auth-nav-btn.open  { color: var(--text); font-weight: 600; }

.auth-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 90px;
  left: auto;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  z-index: 200;
  padding: 8px;
}
.auth-dropdown.open { display: block; }
.auth-drop-email {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  word-break: break-all;
}
.auth-drop-item {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.auth-drop-item:hover { background: var(--bg); }
.auth-drop-signout { color: #c0392b; }
.auth-drop-signout:hover { background: #fdf0ee; }
.auth-drop-register { color: var(--accent); font-weight: 600; }

/* ── Category tiles (account page) ───────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 40px;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.cat-tile:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}
.cat-tile-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.cat-tile-label {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Tip jar ──────────────────────────────────────────────────────────── */
.tip-nav-btn {
  font-size: 14px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.tip-nav-btn:hover { color: var(--text); }
.tip-nav-btn.open  { color: var(--text); font-weight: 600; }

.tip-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 24px;
  left: auto;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  z-index: 200;
}
.tip-dropdown.open { display: block; }

.tip-dropdown-inner {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tip-amounts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.tip-amt {
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.tip-amt:hover  { background: var(--bg); }
.tip-amt.active { background: var(--text); color: var(--surface); border-color: var(--text); }

.tip-custom {
  height: 32px;
  width: 76px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  -moz-appearance: textfield;
}
.tip-custom::-webkit-outer-spin-button,
.tip-custom::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tip-custom:focus { outline: none; border-color: var(--text); }

/* ── Continue puzzle button (hero) ───────────────────────────────────── */
.continue-puzzle-btn {
  display: none;
  margin-top: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.continue-puzzle-btn:hover { filter: brightness(0.88); }

/* ── Back button in game view ─────────────────────────────────────────── */
.game-back-btn {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 10;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.game-back-btn:hover { background: #fff; }

/* ── Board colour swatch panel ────────────────────────────────────────── */
.color-panel-wrap { position: relative; }
.color-toggle-btn {
  background: conic-gradient(
    #2c2c2c 0deg 60deg,
    #c8e6c9 60deg 120deg,
    #bbdefb 120deg 180deg,
    #f8bbd0 180deg 240deg,
    #fff9c4 240deg 300deg,
    #ede8dd 300deg 360deg
  ) !important;
  overflow: hidden;
}
.color-panel {
  position: absolute;
  left: 38px;
  top: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: none;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  width: 114px;
}
.color-panel.open { display: block; }
.color-swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color .12s, transform .1s;
  box-sizing: border-box;
}
.color-swatch:hover  { transform: scale(1.12); }
.color-swatch.active { border-color: var(--text); }
.color-custom-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.color-custom-row label { font-size: 10px; color: var(--muted); flex: 1; }
.color-custom-input {
  width: 28px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px;
  cursor: pointer;
}

/* ── Completion overlay ───────────────────────────────────────────────── */
/* Fixed light scrim regardless of OS/browser colour scheme or the user's
   chosen board colour, so the card and buttons always have guaranteed
   contrast. The rest of the site is light-only (color-scheme: light in
   styles.css) so this overlay must not react to prefers-color-scheme
   independently — that mismatch was the cause of invisible/low-contrast
   buttons and text on completion. */
.completion-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  pointer-events: auto;
  background: rgba(20,18,14,0.55);
}
.completion-overlay.tl-playing {
  background: #000;
  align-items: stretch;
  padding: 0;
}
.completion-overlay.hint-phase {
  background: rgba(20,18,14,0.35);
  cursor: pointer;
}
.completion-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 28px 24px 22px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
/* Intentionally no prefers-color-scheme override here: the completion card
   is always the fixed light palette above, matching the rest of the
   (light-only) site, so its contrast never depends on the user's OS theme. */
.completion-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.completion-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-top: -6px;
}
.completion-row {
  display: flex;
  gap: 10px;
  width: 100%;
}
.completion-btn {
  flex: 1;
  padding: 13px 0;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
}
.completion-btn:hover { background: var(--bg); }
.completion-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.completion-btn.primary:hover { filter: brightness(0.88); }
.timelapse-skip {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.95);
  border: none;
  color: #111;
  border-radius: 22px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  z-index: 10;
  letter-spacing: 0.01em;
}
.timelapse-skip:hover { background: #fff; }
#timelapseCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tap-pill {
  background: rgba(255,255,255,0.92);
  border-radius: 20px;
  padding: 10px 22px;
  font-size: 14px;
  color: var(--muted);
  font-family: inherit;
  margin-bottom: 40px;
}
/* No dark-mode override: tap-pill stays on its fixed light background so
   the muted-gray label text always has guaranteed contrast. */

.points-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.points-badge .points-bar {
  display: inline-block;
  width: 80px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.points-badge .points-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s;
}
.cat-card.locked {
  opacity: 0.55;
  cursor: default;
  pointer-events: auto;
}
.cat-card.locked .cat-card-lock {
  display: flex;
}
.cat-card-lock {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.32);
  font-size: 22px;
}
.cat-card { position: relative; }
.points-unlock-msg {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  z-index: 500;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.points-unlock-msg.visible {
  display: block;
  animation: fadeInUp 0.2s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.tip-paypal-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 18px;
  background: #0070ba;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.12s;
}
.tip-paypal-btn:hover { background: #005ea6; color: #fff; }

.hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 24px;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* ── Card grid (index page) ── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding: 24px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card a { color: var(--accent); text-decoration: none; font-size: 14px; }
.card a:hover { text-decoration: underline; }

/* ── Content pages (help, privacy) ── */

.content { padding: 32px 0 40px; }
.content h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }
.content h3 { font-size: 16px; font-weight: 600; margin: 28px 0 10px; }
.content p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.content ul, .content ol { padding-left: 20px; margin-bottom: 14px; }
.content li { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.content a { color: var(--accent); text-decoration: none; }
.content a:hover { text-decoration: underline; }
.content strong { color: var(--text); font-weight: 600; }

/* ── Forms ── */

.form-section { margin-bottom: 28px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group { margin-bottom: 14px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}

label .optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 9px 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}

input::placeholder { color: var(--muted); opacity: 0.6; }

/* ── Buttons (checkout/payment) ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, opacity 0.12s;
  width: 100%;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #235e44; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  width: auto;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ── Steps indicator ── */

.steps {
  display: flex;
  margin: 20px 0 28px;
  border-bottom: 1px solid var(--border);
}

.step {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.step.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.step.done { border-bottom-color: var(--accent); }

/* ── Shipping options ── */

.shipping-options { margin: 16px 0 20px; }

.shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  background: var(--surface);
}

.shipping-option:hover { border-color: var(--accent); }
.shipping-option.selected { border-color: var(--accent); background: var(--accent-light); }
.shipping-option input[type="radio"] { width: auto; flex-shrink: 0; accent-color: var(--accent); }
.shipping-option-info { flex: 1; }
.shipping-option-name { font-size: 14px; font-weight: 500; color: var(--text); }
.shipping-option-detail { font-size: 12px; color: var(--muted); margin-top: 1px; }
.shipping-option-price { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }

/* ── Alerts ── */

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-error { background: #fdecea; color: #b91c1c; border: 1px solid #fca5a5; }
.alert-info { background: var(--accent-light); color: var(--accent); border: 1px solid #b2d8c8; }

/* ── Summary card ── */

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

.summary-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
  color: var(--muted);
}

.summary-row span:last-child { color: var(--text); }

.summary-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 0 0;
  color: var(--text);
}

/* ── Product detail page ── */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 28px 0 36px;
  align-items: start;
}

.product-detail-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: #f0ede8;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-info h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.product-detail-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.product-detail-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.product-specs {
  list-style: none;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.product-specs li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.product-specs li:last-child { border-bottom: none; }

/* ── Spinner ── */

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

.spinner.dark {
  border-color: rgba(45,106,79,0.3);
  border-top-color: var(--accent);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Confirmation ── */

.confirm-box {
  text-align: center;
  padding: 40px 0 32px;
}

.confirm-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.confirm-box h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.confirm-box p { font-size: 15px; color: var(--muted); margin-bottom: 12px; }

.order-ref {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 8px 0 24px;
}

/* ── Footer (inner pages) ── */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}

.small-links { display: flex; gap: 16px; }
.small-links a, .footer a { color: var(--muted); text-decoration: none; }
.small-links a:hover, .footer a:hover { color: var(--text); }

/* ── Responsive (inner pages) ── */

@media (max-width: 560px) {
  .product-detail { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   Mobile enhancements
   ═══════════════════════════════════════════════════════════════ */

/* ── Section label (checkout / payment headings) ── */

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  padding-top: 2px;
}

/* ── Site header: stack nav below brand on narrow screens ── */

@media (max-width: 540px) {
  .site-header-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 16px;
    row-gap: 10px;
  }
  .brand-name { font-size: 15px; }
  .site-nav { gap: 16px; }
  .site-nav a {
    font-size: 13px;
    padding: 4px 0;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 360px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { width: 100%; justify-content: space-between; gap: 0; }
}

/* ── Reduce section padding on mobile ── */

@media (max-width: 680px) {
  .feature-section  { padding: 24px 16px; }
  .selector-section { padding: 24px 16px; }
  .gallery-section  { padding: 24px 0; }
  .trust-section    { padding: 24px 0; }
  .shop-section     { padding: 24px 0; }
  .shop-inner       { padding: 0 16px; }
  .section-title    { font-size: 19px; }
  .btn-buy { display: block; text-align: center; }
}

/* ── Products grid: 2 cols on medium mobile instead of jumping to 1 ── */

@media (max-width: 680px) and (min-width: 420px) {
  .products-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Trust bar: 2-col on medium mobile ── */

@media (max-width: 680px) and (min-width: 420px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Site footer links: stack on small screens ── */

@media (max-width: 540px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
  .footer-links a { font-size: 13px; }
}

/* ── Touch targets: enlarge tappable areas ── */

@media (max-width: 680px) {
  .shipping-option { padding: 14px 16px; }
  .btn { padding: 14px 20px; font-size: 16px; }
  .btn-buy { padding: 16px 24px; }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select { padding: 11px 12px; font-size: 16px; } /* 16px prevents iOS zoom */
}

/* ── Container horizontal padding on very small screens ── */

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .hero h2   { font-size: 22px; }
  .hero p    { font-size: 15px; }
}

/* ── Cookie consent banner ─────────────────────────────────────────────────── */
#cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 10000;
  padding: 14px 24px;
}
.cc-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cc-text {
  flex: 1;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  min-width: 200px;
  line-height: 1.5;
}
.cc-text a { color: var(--accent); text-decoration: none; }
.cc-text a:hover { text-decoration: underline; }
.cc-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cc-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  font-family: inherit;
}
.cc-accept { background: var(--accent); color: #fff; border-color: var(--accent); }
.cc-decline { background: transparent; color: var(--muted); }
.cc-decline:hover { background: var(--border); }

/* ── Mobile app prompt overlay ─────────────────────────────────────────────── */
.mobile-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mobile-prompt-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 32px 24px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.mobile-prompt-icon { font-size: 44px; margin-bottom: 14px; }
.mobile-prompt-card h2 { font-size: 20px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.02em; }
.mobile-prompt-card .mobile-prompt-sub { font-size: 15px; color: var(--muted); margin: 0 0 22px; line-height: 1.45; }
.mobile-prompt-store img { height: 50px; }
.mobile-prompt-android-msg { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }
.mobile-prompt-email-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.mobile-prompt-email-btn:hover { opacity: 0.88; }
.mobile-prompt-proceed {
  display: block;
  width: 100%;
  margin-top: 18px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 6px;
  text-decoration: underline;
  font-family: inherit;
}

/* ── Page h1 / tagline ─────────────────────────────────────────────────────── */
.page-h1 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin: 28px 0 6px;
  letter-spacing: -0.02em;
}
.page-tagline {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ── Category showcase ─────────────────────────────────────────────────────── */
.cat-showcase { padding: 0 0 32px; }
.cat-showcase-title { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.cat-showcase-sub   { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s;
}
.cat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }
.cat-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}
.cat-card-body { padding: 9px 11px 11px; }
.cat-card-body h3 { font-size: 13px; font-weight: 600; margin: 0 0 3px; }
.cat-card-body p  { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.4; }

