/* ─── PRODUCTS SECTION ─── */
.products-section { background: transparent; }

/* Filter Bar — tabs + sort only; course selector is a preceding sibling, not inside */
.products-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  position: sticky;
  top: var(--nav-height);
  z-index: 10;
  padding: var(--space-3) 0;
  /* Transition only the edge/shadow — NOT background, so the opaque navy snaps in
     instantly when stuck (a background fade would pass through translucency and let
     cards bleed through mid-transition). */
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
/* Stuck state: FULLY OPAQUE site navy (#080E1C) so tab text never ghosts over the
   card images / catalog photo behind it. z-index:10 already sits above the cards
   (z-index ≤ 2); a 1px edge + soft shadow make it read as a bar while stuck. */
.products-filter-bar.is-stuck {
  background: #080E1C;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
/* When the gold top-bar is visible it occupies 40px above the nav; shift the
   filter bar past both so it never slides behind the nav on scroll. */
body.top-bar-visible .products-filter-bar {
  top: calc(var(--nav-height) + 40px);
}

/* ─── TICKET CARD ─── */
.tkt-wrap {
  background-color: #ECE5D6;
  background-image:
    linear-gradient(rgba(28,21,12,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,21,12,.045) 1px, transparent 1px);
  background-size: 28px 28px;
  border-radius: 14px;
  padding: 24px 18px 22px;
}

/* Header */
.tkt-eyebrow {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9A7220;
  margin: 0 0 10px;
}
.tkt-headline {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.14;
  color: #1C150C;
  margin: 0 0 10px;
}
.tkt-hi {
  background: linear-gradient(transparent 68%, rgba(198,149,46,.45) 0);
}
.tkt-subline {
  font-family: var(--font-heading);
  font-size: 12.5px;
  color: rgba(28,21,12,.62);
  line-height: 1.45;
  margin: 0 0 18px;
}

/* Ticket stack */
.tkt-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

/* Individual ticket */
.tkt {
  background: #FFFDF7;
  border: 1px solid rgba(28,21,12,.16);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(28,21,12,.07);
  overflow: hidden;
  position: relative;
}
.tkt.tkt-open {
  box-shadow: 0 10px 26px rgba(198,149,46,.28);
}

/* Perforation circles — sit on the dashed line, clipped by overflow:hidden to half-circles */
.tkt-perf {
  position: absolute;
  right: 70px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ECE5D6;
  border: 1px solid rgba(28,21,12,.16);
  pointer-events: none;
  z-index: 2;
}
.tkt-perf-t { top: -9px; }
.tkt-perf-b { bottom: -9px; }

/* Ticket header button — two-column grid */
.tkt-hdr {
  display: grid;
  grid-template-columns: 1fr 78px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.tkt-hdr:focus-visible { outline: 2px solid #9A7220; outline-offset: -2px; }

/* Left content */
.tkt-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 12px 14px 16px;
}
.tkt-label {
  font-family: var(--font-heading);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9A7220;
}
.tkt-name {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: #1C150C;
  line-height: 1.25;
}
.tkt-desc {
  font-family: var(--font-heading);
  font-size: 12px;
  color: rgba(28,21,12,.58);
  line-height: 1.4;
}
.tkt-tagline {
  font-family: var(--font-heading);
  font-size: 11px;
  color: rgba(28,21,12,.55);
  line-height: 1.3;
  margin-top: 1px; /* gap:3px + 1px = 4px total from tkt-name */
}
.tkt-logos {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  margin-top: 5px; /* gap:3px + 5px = 8px total from tagline */
}
.tkt-logo-tile {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #FFF;
  border: 0.5px solid #E0D8C4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tkt-logo-tile img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  display: block;
}

/* Glass chips — all 9 platform tiles.
   SVG-branded chips (X, Instagram, LinkedIn, Snapchat) carry their own full-color
   rounded rects; glass removes only the white corners, logos stay crisp. */
.tkt-logo-tile:has(img[src*="meta"]),
.tkt-logo-tile:has(img[src*="instagram"]),
.tkt-logo-tile:has(img[src*="x."]),
.tkt-logo-tile:has(img[src*="linkedin"]),
.tkt-logo-tile:has(img[src*="snapchat"]),
.tkt-logo-tile:has(img[src*="google-ads"]),
.tkt-logo-tile:has(img[src*="google-analytics"]),
.tkt-logo-tile:has(img[src*="looker-studio"]) {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
}
/* TikTok: center glyph layer is #010101 — stronger glass keeps the note visible */
.tkt-logo-tile:has(img[src*="tiktok"]) {
  background: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.2);
}

/* Right stub */
.tkt-stub {
  border-left: 1.5px dashed rgba(28,21,12,.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 14px 10px;
}
.tkt-count {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: #1C150C;
  line-height: 1;
}
.tkt-mword {
  font-family: var(--font-heading);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(28,21,12,.55);
}
.tkt-chev {
  color: #9A7220;
  transition: transform 250ms ease;
  margin-top: 4px;
}
.tkt-hdr[aria-expanded="true"] .tkt-chev { transform: rotate(180deg); }

/* Ticket body — animated via JS-set max-height */
.tkt-body {
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Module list */
.tkt-mods {
  list-style: none;
  margin: 0;
  padding: 0 12px;
  border-top: 1.5px dashed rgba(28,21,12,.22);
}

.tkt-mod { border-bottom: 1px solid rgba(28,21,12,.08); }
.tkt-mod:last-child { border-bottom: none; }

.tkt-mod-btn {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  background: none;
  border: none;
  padding: 10px 4px 10px 0;
  cursor: pointer;
  text-align: left;
}
.tkt-mod-btn:focus-visible { outline: 2px solid #9A7220; outline-offset: 1px; }

.tkt-mod-num {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 600;
  color: #9A7220;
  width: 22px;
  flex-shrink: 0;
}
.tkt-mod-name {
  font-family: var(--font-heading);
  font-size: 12.5px;
  color: #1C150C;
  flex: 1;
  line-height: 1.35;
}
.tkt-mod-price {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: #9A7220;
  flex-shrink: 0;
  margin-left: 8px;
}
.tkt-mod-chev {
  color: #B09B6A;
  flex-shrink: 0;
  margin-left: 6px;
  transition: transform 250ms ease;
}
.tkt-mod-btn[aria-expanded="true"] .tkt-mod-chev { transform: rotate(180deg); }

/* Module expanded panel — currently empty; drop content here later */
.tkt-mod-panel {
  overflow: hidden;
  transition: max-height 280ms cubic-bezier(0.16, 1, 0.3, 1);
  /* Minimum padding when content is present; zero height when empty+collapsed */
}

/* Reduce motion: disable all transitions */
@media (prefers-reduced-motion: reduce) {
  .tkt-chev,
  .tkt-mod-chev,
  .tkt-body,
  .tkt-mod-panel { transition: none; }
}

/* CTA */
.tkt-cta {
  display: block;
  width: 100%;
  background: #C6952E;
  color: #221807;
  border: none;
  border-radius: 10px;
  padding: 13px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.tkt-cta:hover { opacity: 0.88; }
.tkt-cta:focus-visible { outline: 2px solid #9A7220; outline-offset: 2px; }

.tkt-disclaimer {
  font-family: var(--font-heading);
  font-size: 10px;
  color: rgba(28,21,12,.4);
  line-height: 1.5;
  text-align: center;
  margin: 0 0 12px;
}

.filter-tabs {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  /* 2px padding prevents active-tab's 1px gold border from being clipped
     by the scroll container's overflow edge at narrow widths */
  padding: 2px;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(250,247,242,.68);
  /* 44px min tap target (was ~33px) — vertical centering keeps the pill's look */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
  cursor: pointer;
  background: rgba(255,255,255,.06);
  transition: all var(--transition-fast);
}
.filter-tab:hover {
  color: rgba(230,193,90,.92);
  background: rgba(200,150,62,.12);
  border-color: rgba(200,150,62,.28);
}
.filter-tab.active {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: rgba(200,150,62,.16);
  font-weight: 600;
}

.filter-controls { display: flex; gap: var(--space-2); align-items: center; flex-shrink: 0; }
.sort-select {
  width: auto;
  font-size: var(--text-sm);
  padding: 0.5em 2em 0.5em 0.8em;
  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='%237A7060' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6em center;
  cursor: pointer;
}

.products-count {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  /* No half rows (Angie, 20 Oct 2026): when a full-width item (the OFW Bundle card, the fit-check strip) would
     leave a card alone in its row, the next card moves up into the gap. Every column count + filter; no card
     is removed or duplicated, and the order is otherwise unchanged. */
  grid-auto-flow: row dense;
}

/* Product Card */
.product-card {
  background-color: rgba(16,26,52,.88);
  background-image: linear-gradient(165deg,
    rgba(255,255,255,.10),
    rgba(255,255,255,.04) 50%,
    rgba(230,193,90,.06));
  border: 1px solid rgba(224,180,90,.62);
  border-top: 2px solid rgba(224,180,90,.62);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(6,13,26,.42), inset 0 1px 0 rgba(255,255,255,.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -14px rgba(0,0,0,.80);
  border-color: rgba(230,193,90,.45);
}
.product-card.hidden { display: none; }

.product-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  border-color: var(--color-gold);
}
.product-card--featured .product-thumb {
  width: 280px;
  flex-shrink: 0;
  aspect-ratio: auto;
  height: 100%;
}
.product-card--featured .product-body { flex: 1; }

/* Thumbnail */
.product-thumb {
  aspect-ratio: 4/3;
  background: var(--thumb-bg, var(--color-cream));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-thumb--wide { aspect-ratio: 2/3; }
.product-thumb-icon {
  font-size: 6.5rem;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.22));
}

.product-badge-left,
.product-badge-right {
  position: absolute;
  top: var(--space-3);
}
.product-badge-left  { left:  var(--space-3); }
.product-badge-right { right: var(--space-3); }

/* #137 COMING SOON — disabled buy button (keeps the gold btn-primary look, dimmed
   + non-interactive). Matches the existing not-purchasable disabled pattern. */
.btn-coming-soon { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Card Body */
.product-body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }

.product-category {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(250,247,242,.65);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-includes {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-top: auto;
}
.product-includes li {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: #C7D3E6;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.product-includes li::before {
  content: '✓';
  color: #7FC79A;
  font-weight: 700;
  flex-shrink: 0;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.rating-score {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-ink);
}
.rating-count {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

/* Card Footer */
.product-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: transparent;
}

.product-price-block { display: flex; flex-direction: column; gap: 2px; }
.price-current {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}
.price-original {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(250,247,242,.45);
  text-decoration: line-through;
}
.price-php {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(250,247,242,.40);
}

.product-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}
.product-actions .btn { font-size: var(--text-xs); padding: 0.5em 0.9em; }

/* Empty State */
.products-empty {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.empty-icon { font-size: 4rem; }
.products-empty .no-results-title { font-weight: 700; }
.products-empty h3, .products-empty .no-results-title { font-family: var(--font-display); font-size: var(--text-xl); }
.products-empty p { color: var(--color-muted); font-family: var(--font-body); }

/* "BEST FEATURE · MATTHEW" box under the bullets (js/products.js, flag NP_BEST_FEATURE).
   Height fits its own content (Angie, 20 Oct 2026). Rows stay even because the cards stretch and .product-body is
   flex:1 — the spare space falls between the box and the price line, so price + buttons stay aligned at the bottom. */
.np-bestfeat {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(224,180,90,.45);
  background: rgba(230,193,90,.10);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  font-family: var(--font-heading);   /* same face as the bullets above */
}
.np-bestfeat-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #E6C15A;
}
.np-bestfeat-line {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(250,247,242,.92);
}
.np-bestfeat-line svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: #E6C15A; }
.np-bestfeat-soon {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #D9A93C;
  color: #0D1B2E;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
  vertical-align: 1px;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card--featured { grid-column: 1 / -1; flex-direction: column; }
  .product-card--featured .product-thumb { width: 100%; height: 200px; aspect-ratio: auto; }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  /* filter-bar stacks to column on mobile */
  .products-filter-bar { flex-direction: column; align-items: flex-start; }

  /* Mobile card: glass shadow calibrated for dark photo background */
  .product-card { box-shadow: 0 8px 24px rgba(0,0,0,.55); }
  .product-card:active { transform: scale(0.984); box-shadow: 0 2px 10px rgba(0,0,0,.45); transition: transform 0.12s ease, box-shadow 0.12s ease; }
  /* Category label pops in gold */
  .product-category { color: var(--color-gold); font-weight: 700; }
  /* Product name slightly bigger */
  .product-name { font-size: var(--text-md); }
  /* Price: much more prominent */
  .price-current { font-size: var(--text-2xl); }
  /* Stack price ABOVE full-width action buttons — core mobile shop UX */
  .product-footer { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .product-price-block { order: -1; }
  .product-actions { width: 100%; }
  .product-actions .btn-primary { flex: 1; min-height: 48px; font-weight: 700; font-size: var(--text-base); }
  .product-actions .btn:not(.btn-primary) { min-height: 44px; font-size: var(--text-sm); }
  /* flex:1 expanded to viewport height (height bug — fixed). min-width:0 overrides
     min-width:auto which resolves to min-content of all 7 nowrap buttons (~600px),
     defeating width:100% and making the strip widen the PAGE instead of scrolling
     internally. With min-width:0 the element is bounded to width:100% and
     overflow-x:auto scrolls the buttons inside the strip.
     NOTE: -webkit-overflow-scrolling:touch and scroll-snap-type were removed —
     the former creates a composited layer inside position:sticky that can swallow
     touch events across the page; the latter is a nice-to-have, not functional. */
  .filter-tabs { flex: none; width: 100%; min-width: 0; }
  /* flex-shrink:0 keeps each button at its natural width inside the scroll strip */
  .filter-tab  { flex-shrink: 0; }
  .filter-controls { width: 100%; }
  .sort-select { width: 100%; }
}

/* ── MOBILE COMPACT 2-COLUMN GRID ≤768px ─────────────────────
   This block is placed AFTER the ≤640px block so it wins the
   cascade on small phones: it overrides the 1-col grid and the
   oversized button/price touch targets from the 640px block.
   All rules live inside this single @media so desktop (>768px)
   is completely unaffected.
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* 1. Grid: 2 equal columns, tight gap; both cards in a row stretch to the same height
        so every row ends level (Angie, 20 Oct 2026) — the body is flex:1, so the footer stays at the bottom */
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
  }

  /* Featured/bundle card always spans both columns */
  .product-card--featured { grid-column: 1 / -1; }

  /* 2. Card shell — slightly tighter radius than desktop 16px */
  .product-card { border-radius: 14px; }

  /* 3. Emoji hero — keep 4/3 ratio; shrink emoji to fit column */
  .product-thumb { aspect-ratio: 4/3; }
  .product-thumb-icon { font-size: 3.25rem; } /* ≈52px */

  /* 4. Card body — compact internal padding */
  .product-body { padding: 10px 11px; gap: 4px; }

  /* 5. Category eyebrow */
  .product-category { font-size: 9.5px; letter-spacing: 0.14em; }

  /* 6. Title — 14.5px, 2-line clamp, min-height keeps rows aligned
        2.8em = 14.5px × line-height 1.4 × 2 lines */
  .product-name {
    font-size: 14.5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
  }

  /* 7. Hide description; checklist stays visible but compact */
  .product-desc { display: none; }

  /* Checklist: compact, clean wrapping — green ✓ kept from desktop */
  .product-includes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
  }
  .product-includes li {
    font-size: 11px;
    line-height: 1.35;
    align-items: flex-start;
    gap: 5px;
  }

  /* Best-feature box: tighter; min-height fits the longest line in the 2-column grid at 360px */
  .np-bestfeat { margin-top: 8px; padding: 7px 8px; gap: 3px; }
  .np-bestfeat-label { font-size: 8.5px; }
  .np-bestfeat-line { font-size: 11px; gap: 5px; }
  .np-bestfeat-line svg { width: 13px; height: 13px; margin-top: 1px; }

  /* 8. Footer — compact, price block above button */
  .product-footer {
    padding: 8px 11px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .product-price-block {
    order: -1;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
  }

  /* 9. Price sizing — override the ≤640px enlarged values */
  .price-current  { font-size: 19px; }
  .price-original { font-size: 11.5px; }
  .price-php      { display: none; } /* no room in narrow column */

  /* 10. Actions — Add to Cart fills the column; Preview hidden */
  .product-actions { width: 100%; flex-direction: column; gap: 0; }
  .product-actions .add-to-cart {
    width: 100%;
    font-size: 12.5px;
    padding: 9px 0;
    border-radius: 9px;
    min-height: unset;  /* override ≤640px 48px min-height */
    font-weight: 600;
    flex: none;         /* override ≤640px flex:1 */
  }
  .product-actions .preview-btn { display: none; }
}
/* Phones (≤440px): the longest best-feature line wraps to 3 lines — every box takes that height */

/* ═══════════════════════════════════════════════════════════
   CATEGORY COLOR PALETTE
   CSS targets data-category already present on .product-card
   from the buildCard() render — no JS change needed.
   ═══════════════════════════════════════════════════════════ */

/* ── Thumbnail gradient backgrounds ──────────────────────── */
[data-category="retail"]   .product-thumb { background: linear-gradient(145deg, #B86820 0%, #E09840 100%); }
[data-category="food"]     .product-thumb { background: linear-gradient(145deg, #C8341C 0%, #F06040 100%); }
[data-category="property"] .product-thumb { background: linear-gradient(145deg, #1A6848 0%, #2E9E6A 100%); }
[data-category="services"] .product-thumb { background: linear-gradient(145deg, #162E62 0%, #2A52A0 100%); }
[data-category="online"]   .product-thumb { background: linear-gradient(145deg, #4E1880 0%, #8A3CC8 100%); }
[data-category="bundle"]   .product-thumb { background: linear-gradient(145deg, #6A4006 0%, #C8963E 55%, #E8BE74 100%); }

/* ── Category label text colors — brightened for navy glass background ── */
[data-category="retail"]   .product-category { color: #E8A850; }
[data-category="food"]     .product-category { color: #F07868; }
[data-category="property"] .product-category { color: #4CC89A; }
[data-category="services"] .product-category { color: #7099E8; }
[data-category="online"]   .product-category { color: #B080F0; }
[data-category="bundle"]   .product-category { color: #E6C15A; }

/* ── Colored top-border accent on each card — brightened for navy glass ── */
.product-card[data-category="retail"]   { border-top: 3px solid #E8A850; }
.product-card[data-category="food"]     { border-top: 3px solid #F07868; }
.product-card[data-category="property"] { border-top: 3px solid #4CC89A; }
.product-card[data-category="services"] { border-top: 3px solid #7099E8; }
.product-card[data-category="online"]   { border-top: 3px solid #B080F0; }
.product-card[data-category="bundle"]   { border-top: 3px solid #E6C15A; }

/* ── Save badge: stronger contrast over colorful backgrounds */
.product-badge-right.badge-red {
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   PHOTO HERO (slug-matched images in images/products/<slug>.jpg)
   All photo elements are hidden until .has-photo is present.
   onerror on the <img> removes .has-photo → exact emoji fallback.
   ═══════════════════════════════════════════════════════════ */

.product-thumb-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 1;
}
.product-thumb.has-photo .product-thumb-photo { display: block; }
.product-thumb.has-photo .product-thumb-icon  { display: none; }

/* Thin gold strip across top edge */
.photo-strip {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #C8963E;
  display: none;
  z-index: 3;
}
.product-thumb.has-photo .photo-strip { display: block; }

/* Category glass pill — top-left */
.photo-cat-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(251,248,241,0.94);
  color: #7A5C1E;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 20px;
  line-height: 1.4;
  white-space: nowrap;
  display: none;
  z-index: 4;
}
.product-thumb.has-photo .photo-cat-pill { display: block; }


/* Subtle bottom scrim */
.photo-scrim {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 52px;
  background: linear-gradient(to top, rgba(20,16,12,0.35), transparent);
  display: none;
  z-index: 2;
}
.product-thumb.has-photo .photo-scrim { display: block; }

/* Products surface — restored to original paper tone */
#products {
  background: #EFE8DB;
  box-shadow: inset 0 1px 0 rgba(120,95,55,0.14);
  padding-top: 0;
  padding-bottom: 0;
}

/* Catalog-only photo background — full-bleed band, excludes #courses */
.np-photo-catalog {
  background-image:
    /* fade-band: hero navy in at top, catalog dark out at bottom */
    linear-gradient(180deg,
      #12233C               0%,
      rgba(18,35,60,0)      120px,
      rgba(6,12,24,0)       calc(100% - 140px),
      rgba(6,12,24,1)       100%),
    linear-gradient(180deg,
      rgba(6,12,24,.60)  0%,
      rgba(8,16,32,.54) 40%,
      rgba(8,16,32,.54) 60%,
      rgba(6,12,24,.64) 100%),
    url('../images/brand/catalog-city-blue.jpg');
  background-size: auto, auto, cover;
  background-position: center, center, center;
  background-color: #12233C;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
@media (max-width: 640px) {
  .np-photo-catalog {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }
}

/* Text legibility on dark photo */
.np-photo-catalog .section-title  { color: #ffffff; }
.np-photo-catalog .section-sub    { color: rgba(220, 235, 255, 0.92); }
.np-photo-catalog .products-count { color: rgba(250,247,242,.60); }

/* Sort dropdown — dark glass field on photo */
.np-photo-catalog .sort-select {
  background-color: rgba(8,14,28,.60);
  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='%23C8963E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color: rgba(250,247,242,.88);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
}
.np-photo-catalog .sort-select:focus {
  outline: none;
  border-color: rgba(200,150,62,.70);
  box-shadow: 0 0 0 2px rgba(200,150,62,.18);
}

/* Wizard trigger: dark-glass pill readable on photo */
.np-photo-catalog .wizard-trigger-btn {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(6, 12, 24, 0.52);
  border: 1px solid rgba(200, 150, 62, 0.48);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.np-photo-catalog .wizard-trigger-btn:hover {
  background: rgba(6, 12, 24, 0.72);
  border-color: rgba(200, 150, 62, 0.72);
}


/* Add to Cart: readable CTA size */
.product-actions .btn {
  font-size: 0.8125rem;
  padding: 0.5em 1em;
}

/* Preview / Quick View button — muted on glass, gold on hover */
.product-actions .btn-quick-view {
  color: rgba(250,247,242,.60);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}
.product-actions .btn-quick-view:hover {
  color: #E6C15A;
  background: rgba(200,150,62,.10);
  border-color: rgba(200,150,62,.35);
}

/* Coming Soon cards — whole card dimmed, badge stays at card-level opacity */
.product-card:has([disabled]) { opacity: 0.56; }

/* ≤375px: shrink logo tiles so all six fit (217px → 194px) */
@media (max-width: 375px) {
  .tkt-logo-tile { width: 29px; height: 29px; }
  .tkt-logos { gap: 4px; }
  .tkt-logo-tile img { width: 19px; height: 19px; }
}

/* npDrawerShine keyframe — referenced by .np-dual-btn--active::after in courses-drawer.css */
@keyframes npDrawerShine {
  0%,  68% { transform: translateX(-100%); }
  92%, 100% { transform: translateX(160%); }
}

/* ── Perf: static skeleton reserves the grid's space before products.js paints,
   so injecting the real 137 cards causes no layout shift (CLS). Uses the real
   .product-card / .product-thumb chrome so the reserved height ≈ the real card.
   products.js replaces the whole grid on first render, removing these. ── */
.product-card.is-skel { pointer-events: none; }
.product-card.is-skel .product-thumb { background: rgba(255,255,255,.05); }
.skel-line  { height: 12px; border-radius: 6px; background: rgba(255,255,255,.08); margin: 9px 0; }
.skel-line.w40 { width: 40%; } .skel-line.w70 { width: 70%; } .skel-line.w90 { width: 90%; }
.skel-badge { height: 24px; width: 62%; border-radius: 12px; background: rgba(255,255,255,.07); margin: 10px 0; }
.skel-btn   { height: 44px; border-radius: 10px; background: rgba(255,255,255,.07); margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .product-card.is-skel .product-thumb, .skel-line, .skel-badge, .skel-btn { animation: skelPulse 1.4s ease-in-out infinite; }
}
@keyframes skelPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Early Access (Angie, Oct 26) — dashboard box on store cards (approved mockup: green = full, blue dashed = Early Access).
   Shown only while NP_EARLY_ACCESS is on; otherwise the gold pill stays. */
.np-eabox { display: grid; gap: 3px; margin: 10px 0 2px; padding: 9px 10px; border-radius: 12px; font-family: var(--font-heading); font-size: 11.5px; line-height: 1.38; }   /* store sans (Plus Jakarta Sans), smaller → shorter cards on phones (Oct 27) */
.product-body .np-freedash[hidden] { display: none !important; }   /* the gold pill makes room for the Early Access box */
.np-eabox[hidden] { display: none; }
.np-eabox--full { background: #E2F2EA; color: #174E38; }
.np-eabox--ea { background: #E6ECF8; color: #1E3360; border: 1px dashed #A9BBE0; }
.np-eabox-k { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.np-eabox--full .np-eabox-k { color: #1F6B4B; }
.np-eabox--ea .np-eabox-k { color: #2F4E8C; }
.np-eapill { justify-self: start; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: #fff; }
.np-eabox--full .np-eapill { background: #1F6B4B; }
.np-eabox--ea .np-eapill { background: #2F4E8C; }
