/* Habemus Juegos Redesign — design system (ported from Claude Design prototype) */

/* Self-hosted variable fonts (one woff2 per family, latin) */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/space-grotesk.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
}

:root {
  --hj-orange: #f7951e;
  --hj-orange-deep: #e3801a;
  --hj-orange-ink: #b85e08;
  --hj-orange-soft: #fff1dc;
  --hj-honey: #ffb547;
  --hj-ink: #1a1611;
  --hj-charcoal: #2a2520;
  --hj-graphite: #54504a;
  --hj-mute: #8a857d;
  --hj-line: #e7e1d4;
  --hj-line-2: #efe9dc;
  --hj-cream: #fdf7eb;
  --hj-cream-deep: #f7efde;
  --hj-paper: #ffffff;
  --hj-discount: #d83838;
  --hj-success: #2f8f4f;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px;

  --r-1: 6px; --r-2: 10px; --r-3: 14px; --r-4: 20px; --r-pill: 999px;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --sh-1: 0 1px 0 rgba(26,22,17,.05);
  --sh-2: 0 4px 16px -8px rgba(26,22,17,.18);
  --sh-3: 0 18px 40px -22px rgba(26,22,17,.28);
}

.hj-btn, .pcard, .hj-buybox, .hj-search, .hj-filters, .hj-megapanel, .hj-pdp,
.hj-pdp *, .hj-buybox *, .hj-filters * { box-sizing: border-box; }

/* Remove the default block gap between header / main / footer (it showed as a
   cream strip above the dark hero). */
.wp-site-blocks > * + * { margin-block-start: 0; }

body {
  font-family: var(--font-body);
  color: var(--hj-ink);
  background: var(--hj-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@keyframes hjFade { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }

.hj-display, .hj-h1, .hj-h2, .hj-h3 { font-family: var(--font-display); letter-spacing: -0.01em; }
.hj-h1 { font-size: clamp(34px, 6vw, 44px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
.hj-h2 { font-size: clamp(24px, 4vw, 28px); line-height: 1.1; margin: 0; font-weight: 600; }
.hj-h3 { font-size: 18px; line-height: 1.2; margin: 0; font-weight: 600; }
.hj-eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hj-orange-ink); font-weight: 700;
}
.hj-muted { color: var(--hj-mute); }

/* ── Promo bar ─────────────────────────────────────── */
.promo-bar { background: var(--hj-ink); color: #f0e9d7; font-size: 12px; letter-spacing: 0.02em; }
.promo-bar .inner { display: flex; gap: 18px; align-items: center; justify-content: center; padding: 7px 14px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
@media (max-width: 560px) { .promo-bar .inner { gap: 12px; font-size: 11px; } }
.promo-bar .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--hj-orange); display: inline-block; }
.promo-bar a { color: #f7951e; }
.promo-bar .item { display: inline-flex; gap: 8px; align-items: center; }
.promo-bar svg { width: 13px; height: 13px; }

/* Mobile rotating promo */
.promo-bar.compact .inner { padding: 8px 14px; }
.promo-bar.compact .ticker { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-bar.compact .ticker .ico { color: var(--hj-orange); display: inline-flex; }

/* ── Header ────────────────────────────────────────── */
.hj-header { background: var(--hj-paper); border-bottom: 1px solid var(--hj-line); position: sticky; top: 0; z-index: 50; }
.hj-header.hj-header--mega { position: relative; z-index: 50; }
.hj-header .row { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 64px; }
.hj-header .brand { display: flex; align-items: center; }
.hj-header .brand img { display: block; height: 44px; width: auto; }
.hj-header .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.hj-icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--hj-charcoal); position: relative; background: none; border: none; cursor: pointer; text-decoration: none; }
.hj-icon-btn:hover { background: var(--hj-cream-deep); }
.hj-icon-btn .badge { position: absolute; top: 4px; right: 4px; background: var(--hj-orange); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; padding: 0 4px; display: flex; align-items: center; justify-content: center; }

/* Desktop mega nav (hidden on mobile) */
.hj-nav { display: none; }
.hj-nav-item { position: static; display: flex; align-items: stretch; }
.hj-nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; font-weight: 500; font-size: 15px; color: var(--hj-charcoal); border-bottom: 2px solid transparent; cursor: pointer; }
.hj-nav-link.accent { color: var(--hj-orange-ink); }
.hj-nav-link svg { transition: transform .15s; }
.hj-megapanel { position: absolute; left: 0; right: 0; top: 100%; background: var(--hj-paper); border-top: 1px solid var(--hj-line); box-shadow: var(--sh-3); z-index: 50; display: none; animation: hjFade .14s ease-out; }
.hj-nav-item.has-panel:hover .hj-nav-link, .hj-nav-item.has-panel:focus-within .hj-nav-link { border-bottom-color: var(--hj-orange); }
.hj-nav-item.has-panel:hover .hj-nav-link svg, .hj-nav-item.has-panel:focus-within .hj-nav-link svg { transform: rotate(180deg); }
.hj-nav-item.has-panel:hover .hj-megapanel, .hj-nav-item.has-panel:focus-within .hj-megapanel { display: block; }
.hj-megapanel-inner { max-width: 1200px; margin: 0 auto; padding: 24px 32px 28px; }
.hj-megapanel.is-mega .hj-megapanel-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.hj-megacol-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--hj-mute); font-weight: 700; margin-bottom: 10px; }
.hj-megacol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hj-megacol a { font-size: 14px; color: var(--hj-charcoal); padding: 4px 0; display: block; font-weight: 500; }
.hj-megacol a:hover { color: var(--hj-orange-ink); }
.hj-megacard { background: var(--hj-cream-deep); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.hj-simplegrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hj-simplegrid a { padding: 12px 14px; border-radius: 10px; background: var(--hj-cream-deep); font-weight: 600; font-size: 14px; color: var(--hj-ink); }
.hj-simplegrid a:hover { background: var(--hj-orange-soft); color: var(--hj-orange-ink); }

@media (min-width: 960px) {
  .hj-header .row { padding: 0 32px; gap: 28px; min-height: 84px; align-items: stretch; }
  .hj-header .brand { padding: 0; }
  .hj-header .brand img { height: 84px; }
  .hj-header .right { align-items: center; }
  .hj-nav { display: flex; gap: 4px; align-items: stretch; }
  .menu-toggle { display: none; }
}

/* ── Mobile drawer ─────────────────────────────────── */
.hj-drawer { position: fixed; inset: 0; z-index: 100; }
.hj-drawer[hidden] { display: none; }
.hj-drawer-overlay { position: absolute; inset: 0; background: rgba(26,22,17,0.55); }
.hj-drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: 320px; max-width: 88%; background: var(--hj-paper); display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0,0,0,0.3); animation: hjSlideLeft .22s ease-out; }
@keyframes hjSlideLeft { from { transform: translateX(-100%); } to { transform: none; } }
.hj-drawer-head { padding: 14px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--hj-line); }
.hj-drawer-logo { height: 32px; width: 32px; }
.hj-drawer-title { font-family: var(--font-display); font-size: 16px; flex: 1; }
.hj-drawer-close { font-size: 22px; color: var(--hj-graphite); }
.hj-drawer-body { flex: 1; overflow: auto; }
.hj-drawer-root { list-style: none; margin: 0; padding: 0; }
.hj-drawer-root > li { border-bottom: 1px solid var(--hj-line-2); }
.hj-drawer-item { width: 100%; padding: 16px 18px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--hj-ink); font-family: var(--font-display); text-align: left; background: none; border: none; cursor: pointer; text-decoration: none; }
.hj-drawer-item span:first-child { flex: 1; }
.hj-drawer-sub[hidden] { display: none; }
.hj-drawer-seeall { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--hj-line-2); background: var(--hj-cream-deep); font-size: 14px; font-weight: 700; color: var(--hj-orange-ink); }
.hj-drawer-group { border-bottom: 1px solid var(--hj-line-2); }
.hj-drawer-group-title { padding: 14px 18px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--hj-mute); font-weight: 700; }
.hj-drawer-group ul { list-style: none; margin: 0; padding: 0; }
.hj-drawer-group a { padding: 12px 18px; display: block; font-size: 14px; color: var(--hj-charcoal); }
@media (min-width: 960px) { .hj-drawer { display: none !important; } }

/* ── Search ────────────────────────────────────────── */
.hj-search { position: relative; display: flex; align-items: center; background: var(--hj-paper); border: 1.5px solid var(--hj-line); border-radius: var(--r-pill); padding: 0 8px 0 16px; height: 52px; transition: border-color .15s, box-shadow .15s; }
.hj-search.sm { height: 42px; }
.hj-search:focus-within { border-color: var(--hj-ink); box-shadow: 0 0 0 4px rgba(247,149,30,0.18); }
.hj-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 15px; padding: 0 8px; min-width: 0; }
.hj-search .icon { color: var(--hj-graphite); display: inline-flex; }
.hj-search .go { background: var(--hj-ink); color: #fff; height: 36px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; border: none; cursor: pointer; white-space: nowrap; }
.hj-search .go:hover { background: var(--hj-orange); color: var(--hj-ink); }

.hj-search-pop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--hj-paper); border: 1px solid var(--hj-line); border-radius: var(--r-3); box-shadow: var(--sh-3); padding: 12px; z-index: 60; }
.hj-search-pop .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--hj-mute); padding: 6px 8px; }
.hj-search-pop .quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 4px 10px; align-items: center; }
.hj-search-pop .result { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; }
.hj-search-pop .result:hover { background: var(--hj-cream-deep); }
.hj-search-pop .result .thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--hj-cream-deep); flex-shrink: 0; object-fit: cover; }
.hj-search-pop .result .meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.hj-search-pop .result .title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hj-search-pop .result .sub { font-size: 12px; color: var(--hj-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hj-search-pop .result .price { font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.hj-search-pop .result .stock-tag { align-self: flex-start; margin-top: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: var(--r-pill); line-height: 1.3; border: 1px solid transparent; }
.hj-search-pop .result .stock-tag.available { background: rgba(47,143,79,0.12); color: var(--hj-success); border-color: rgba(47,143,79,0.4); }
.hj-search-pop .result .stock-tag.reserve { background: var(--hj-orange-soft); color: var(--hj-orange-ink); border-color: var(--hj-honey); }

/* Search skeleton */
.hj-search-pop .result.is-skeleton { pointer-events: none; }
.hj-search-pop .sk { background: var(--hj-cream-deep); border-radius: 6px; display: block; }
.hj-search-pop .sk-line { height: 12px; margin: 3px 0; }
.hj-search-pop .sk-sm { height: 10px; }
.hj-search-pop .result .thumb.sk { width: 44px; height: 44px; border-radius: 8px; }
@keyframes hjPulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.hj-search-pop .is-skeleton .sk { animation: hjPulse 1.1s ease-in-out infinite; }

.qpill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--hj-cream-deep); border: 1px solid transparent; font-size: 12px; font-weight: 600; color: var(--hj-charcoal); cursor: pointer; }
.qpill.active { background: var(--hj-ink); color: #fff; }
.qpill:hover { border-color: var(--hj-ink); }

/* ── Buttons ───────────────────────────────────────── */
.hj-btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-weight: 700; border-radius: var(--r-pill); padding: 10px 18px; font-size: 14px; transition: transform .08s, background .15s; cursor: pointer; border: none; }
.hj-btn:active { transform: translateY(1px); }
.hj-btn-primary { background: var(--hj-orange); color: var(--hj-ink); }
.hj-btn-primary:hover { background: var(--hj-honey); }
.hj-btn-ink { background: var(--hj-ink); color: #fff; }
.hj-btn-ink:hover { background: var(--hj-orange); color: var(--hj-ink); }
.hj-btn-ghost { background: var(--hj-paper); color: var(--hj-ink); border: 1.5px solid var(--hj-line); }
.hj-btn-ghost:hover { border-color: var(--hj-ink); }
.hj-btn-block { width: 100%; }

/* ── Product card ──────────────────────────────────── */
.pcard { background: var(--hj-paper); border: 1px solid var(--hj-line); border-radius: var(--r-3); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; height: 100%; }
.pcard:hover { border-color: var(--hj-ink); box-shadow: var(--sh-2); }
.pcard .thumb-wrap { aspect-ratio: 1 / 1; background: var(--hj-paper); position: relative; overflow: hidden; flex-shrink: 0; }
/* The .woocommerce archive selector (.woocommerce ul.products li.product a img { height:auto })
   outweighs a bare .pcard rule, so on shop/category/search pages the img took its intrinsic
   height and overflow:hidden clipped vertical box art. Match that specificity to keep contain. */
/* Uniform inset so every box art (square, wide or tall) sits centred with the
   same breathing room — keeps the two mobile columns reading as even tiles
   without cropping the box. box-sizing keeps the padding inside the square. */
.pcard .thumb-wrap img,
.woocommerce ul.products li.product .thumb-wrap a img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 16px; box-sizing: border-box; }
.pcard .thumb-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.thumb-tag { display: inline-block; background: var(--hj-orange); color: var(--hj-ink); font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: var(--r-pill); letter-spacing: .02em; line-height: 1.2; }
.thumb-tag.new { background: var(--hj-ink); color: var(--hj-orange); }
.thumb-tag.discount { background: var(--hj-discount); color: #fff; }
.thumb-tag.preorder { background: var(--hj-honey); color: var(--hj-ink); }
.pcard .heart { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.9); display: grid; place-items: center; color: var(--hj-charcoal); border: none; cursor: pointer; z-index: 2; }
.pcard .heart:hover, .pcard .heart.on { color: var(--hj-discount); }

.pcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard .editorial { font-size: 11px; color: var(--hj-mute); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .title { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.15em * 2); margin: 0; }
.pcard .title a { color: inherit; text-decoration: none; }
.pcard .stats { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; min-height: 24px; }
.pcard .stat { display: inline-flex; align-items: center; gap: 4px; background: var(--hj-cream-deep); padding: 4px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; color: var(--hj-charcoal); }
.pcard .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; min-height: 28px; }
.pcard .price { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.pcard .price-old { font-size: 13px; color: var(--hj-mute); text-decoration: line-through; }
.pcard .save { font-size: 11px; font-weight: 700; color: var(--hj-discount); }
.pcard .cta { width: 100%; background: var(--hj-orange); color: var(--hj-ink); font-weight: 700; padding: 10px; border-radius: var(--r-2); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; border: none; cursor: pointer; }
.pcard .cta:hover { background: var(--hj-honey); }
.pcard .cta.added { background: var(--hj-ink); color: var(--hj-orange); }
.pcard.oos .thumb-wrap { filter: grayscale(0.4); }
.pcard.oos .cta { background: var(--hj-line); color: var(--hj-graphite); cursor: not-allowed; }

/* Cart quantity stepper (replaces "Añadir" once in cart) */
.qty-stepper { display: flex; align-items: center; justify-content: space-between; background: var(--hj-ink); border-radius: var(--r-2); overflow: hidden; height: 38px; }
.qty-stepper button { width: 40px; height: 100%; display: grid; place-items: center; color: #fff; background: none; border: none; cursor: pointer; }
.qty-stepper button:hover { background: rgba(255,255,255,0.14); color: var(--hj-orange); }
.qty-stepper .qty { flex: 1; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--hj-orange); }

/* BGG hex score */
.bgg-hex { position: absolute; bottom: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); z-index: 2; }
.bgg-hex .hex-shape { position: absolute; inset: 0; background: var(--hj-paper); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.bgg-hex .stack { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; gap: 1px; }
.bgg-hex .val { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.bgg-hex .lbl { position: relative; font-size: 8px; font-weight: 700; color: var(--hj-mute); letter-spacing: .08em; }

/* Weight pips */
.weight-pips { display: inline-flex; gap: 2px; }
.weight-pips .pip { width: 6px; height: 12px; border-radius: 2px; background: var(--hj-line); }
.weight-pips .pip.on { background: var(--hj-orange); }

/* ── Section header ────────────────────────────────── */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; gap: 16px; }
.sec-head .titles { display: flex; flex-direction: column; gap: 4px; }
.sec-head .more { font-weight: 600; font-size: 13px; color: var(--hj-charcoal); display: inline-flex; gap: 4px; align-items: center; }
.sec-head .more:hover { color: var(--hj-orange-ink); }

/* ── Recommender ───────────────────────────────────── */
.rec { background: var(--hj-paper); color: var(--hj-ink); border: 1px solid var(--hj-line); border-radius: var(--r-4); padding: 24px; }
.rec .opt { color: var(--hj-charcoal); }
.rec .step-label { font-size: 12px; font-weight: 700; color: var(--hj-mute); letter-spacing: .04em; text-transform: uppercase; }
.rec .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.rec .opt { padding: 8px 14px; border-radius: var(--r-pill); background: var(--hj-cream); border: 1.5px solid var(--hj-line); font-size: 13px; font-weight: 600; cursor: pointer; }
.rec .opt.on { background: var(--hj-ink); color: #fff; border-color: var(--hj-ink); }
.rec .opt:hover { border-color: var(--hj-ink); }
.rec .result-strip { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--hj-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Hex category tile ─────────────────────────────── */
.hex-tile { aspect-ratio: 1; background: var(--hj-orange); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--hj-ink); font-weight: 700; font-family: var(--font-display); transition: transform .15s, background .15s; }
.hex-tile:hover { transform: translateY(-4px); background: var(--hj-honey); }

/* ── Footer ────────────────────────────────────────── */
.hj-footer { background: var(--hj-ink); color: #d6cebc; padding: 40px 24px 20px; }
.hj-footer .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1200px; margin: 0 auto; }
.hj-footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; letter-spacing: .04em; font-family: var(--font-display); }
.hj-footer a { display: block; padding: 4px 0; font-size: 13px; color: #c8c0ad; }
.hj-footer a:hover { color: var(--hj-orange); }
.hj-footer .bottom { margin: 28px auto 0; max-width: 1200px; padding-top: 20px; border-top: 1px solid #2a2520; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #8a857d; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .hj-footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px; } }

/* ── Filter chip ───────────────────────────────────── */
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--hj-paper); border: 1.5px solid var(--hj-line); font-size: 13px; font-weight: 600; color: var(--hj-charcoal); white-space: nowrap; cursor: pointer; }
.filter-chip:hover { border-color: var(--hj-ink); }
.filter-chip.active { background: var(--hj-ink); color: #fff; border-color: var(--hj-ink); }
.filter-chip .count { background: var(--hj-orange); color: var(--hj-ink); border-radius: var(--r-pill); padding: 0 6px; font-size: 11px; }

/* ── PDP ───────────────────────────────────────────── */
.pdp-gallery { background: var(--hj-paper); border-radius: var(--r-3); aspect-ratio: 1; overflow: hidden; position: relative; border: 1px solid var(--hj-line); }
.pdp-gallery img { width: 100%; height: 100%; object-fit: contain; }
.statblock { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hj-line); border-radius: var(--r-3); overflow: hidden; border: 1px solid var(--hj-line); }
.statblock .cell { background: var(--hj-paper); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.statblock .cell .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--hj-mute); font-weight: 700; }
.statblock .cell .val { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.statblock .cell .sub { font-size: 11px; color: var(--hj-graphite); }
@media (min-width: 700px) { .statblock { grid-template-columns: repeat(4, 1fr); } }

/* ── Utilities ─────────────────────────────────────── */
.hj-row { display: flex; }
.hj-col { display: flex; flex-direction: column; }
.hj-center { align-items: center; }
.hj-scroll-x { overflow-x: auto; scrollbar-width: none; }
.hj-scroll-x::-webkit-scrollbar { display: none; }

/* Responsive product grid (shop).
   minmax(0, 1fr) — not bare 1fr (= minmax(auto, 1fr)) — so a wide box-art image
   can't blow its column past the equal share and leave the columns lopsided. */
.hj-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; grid-auto-rows: 1fr; }
@media (min-width: 700px) { .hj-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .hj-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* WooCommerce default loop (e.g. product search) → match the redesign grid */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; grid-auto-rows: 1fr; }
ul.products::before, ul.products::after { content: none !important; display: none !important; } /* WC clearfix would occupy a grid cell */
ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important; }
ul.products li.product::before { display: none !important; }
@media (min-width: 700px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Load more / infinite scroll */
.hj-loadmore { display: flex; justify-content: center; margin-top: 24px; position: relative; }
.hj-loadmore-sentinel { position: absolute; top: -400px; left: 0; width: 1px; height: 1px; }

/* Home product carousel: horizontal scroll on mobile, grid on desktop */
.hj-carousel { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.hj-carousel::-webkit-scrollbar { display: none; }
.hj-carousel > .pcard { flex: 0 0 60%; max-width: 240px; scroll-snap-align: start; }
@media (min-width: 700px) {
  .hj-carousel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; overflow: visible; }
  .hj-carousel > .pcard { flex: none; max-width: none; }
}

/* ── Hero ──────────────────────────────────────────── */
.hj-hero { background: var(--hj-ink); color: #fff; padding: 28px 16px 32px; }
.hj-hero-inner { max-width: 1100px; margin: 0 auto; }
.hj-hero-copy h1 { color: #fff; }
.hj-hero-sub { color: #c8c0ad; margin: 10px 0 18px; font-size: 15px; max-width: 460px; }
.hj-hero-rec { margin-top: 20px; }
.hj-hex-q { width: 36px; height: 36px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--hj-orange); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--hj-ink); }
.rec-line { display: flex; flex-direction: column; gap: 6px; }
.rec .opt { position: relative; }
.rec .opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rec .opt:has(input:checked) { background: var(--hj-ink); color: #fff; border-color: var(--hj-ink); }
@media (min-width: 900px) {
  .hj-hero { padding: 56px 32px; }
  .hj-hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
  .hj-hero-copy h1 { font-size: clamp(48px, 6vw, 72px); line-height: 0.96; }
  .hj-hero-sub { font-size: 17px; }
  .hj-hero-rec { margin-top: 0; }
  .rec-line { flex-direction: row; align-items: center; gap: 12px; }
  .rec-line .step-label { min-width: 90px; }
}

/* ── Event banner ──────────────────────────────────── */
.hj-event-wrap { padding: 20px 16px; max-width: 1232px; margin: 0 auto; }
.hj-event { background: var(--hj-ink); color: #fff; border-radius: var(--r-4); padding: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.hj-event-hex { position: absolute; right: -60px; top: -60px; opacity: 0.18; }
@media (min-width: 900px) {
  .hj-event-wrap { padding: 32px; }
  .hj-event { flex-direction: row; align-items: center; gap: 32px; padding: 40px 48px; }
}

/* Home section wrapper */
.hj-home-section { max-width: 1232px; margin: 0 auto; padding: 20px 16px; }

/* ── PDP ───────────────────────────────────────────── */
.hj-pdp { max-width: 1200px; margin: 0 auto; padding: 12px 16px 32px; }
.hj-pdp-crumbs { font-size: 12px; color: var(--hj-mute); margin-bottom: 12px; }
.hj-pdp-crumbs a:hover { color: var(--hj-orange-ink); }
.hj-pdp-top { display: grid; grid-template-columns: 1fr; gap: 24px; }
.hj-buybox { background: var(--hj-paper); border: 1px solid var(--hj-line); border-radius: var(--r-3); padding: 20px; margin-top: 18px; }
.hj-pdp-cart { margin-top: 16px; }
.hj-pdp-cart .stock { display: none; } /* redundant with our own stock line */
.hj-pdp-cart form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.hj-pdp-cart .quantity { display: inline-flex; margin: 0; }
.hj-pdp-cart .quantity input { width: 64px; padding: 14px 10px; border: 1.5px solid var(--hj-line); border-radius: var(--r-pill); text-align: center; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.hj-pdp-cart .quantity input::-webkit-outer-spin-button,
.hj-pdp-cart .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hj-pdp-cart .single_add_to_cart_button { flex: 1; min-width: 180px; }
.hj-pdp-cart button, .hj-pdp-cart .button { background: var(--hj-orange); color: var(--hj-ink); font-weight: 700; border: none; border-radius: var(--r-pill); padding: 14px 22px; font-size: 15px; cursor: pointer; }
.hj-pdp-cart button:hover, .hj-pdp-cart .button:hover { background: var(--hj-honey); }
/* WhatsApp chip (click-to-chat plugin): own row, left-aligned with the button */
.hj-pdp-cart .ctc_chat { flex-basis: 100%; text-align: left !important; margin: 0 !important; }
.hj-pdp-cart .ctc_chip { margin: 0 !important; }

/* PDP gallery thumbnails */
.pdp-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pdp-thumbs .t { width: 64px; height: 64px; border-radius: 8px; background: var(--hj-cream-deep); border: 2px solid transparent; overflow: hidden; padding: 0; cursor: pointer; }
.pdp-thumbs .t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumbs .t.active { border-color: var(--hj-orange); }
.hj-ship-progress { margin-top: 16px; padding: 12px; background: var(--hj-cream-deep); border-radius: 12px; }
.hj-ship-bar { height: 6px; background: var(--hj-paper); border-radius: 999px; overflow: hidden; }
.hj-ship-bar > div { height: 100%; background: var(--hj-orange); border-radius: 999px; }
.hj-trust { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--hj-graphite); }
.hj-trust > div { display: flex; align-items: center; gap: 8px; }

.hj-pdp-detail { display: grid; grid-template-columns: 1fr; gap: 32px; border-top: 1px solid var(--hj-line); margin-top: 24px; padding-top: 24px; }
.hj-prose { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--hj-charcoal); }
.hj-prose p { margin: 0 0 12px; }
.hj-spec-card { background: var(--hj-paper); border: 1px solid var(--hj-line); border-radius: var(--r-3); padding: 18px; margin-bottom: 12px; }
.hj-spec-card h4 { font-family: var(--font-display); font-size: 14px; margin: 0 0 10px; }
.hj-spec-card dl { margin: 0; font-size: 13px; }
.hj-spec-card dl > div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--hj-line); }
.hj-spec-card dt { color: var(--hj-mute); }
.hj-spec-card dd { margin: 0; font-weight: 600; }
.hj-taxgroup { margin-bottom: 12px; }
.hj-taxgroup-label { font-size: 11px; color: var(--hj-mute); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 6px; }
.hj-taxchips { display: flex; flex-wrap: wrap; gap: 4px; }
.hj-taxchips a { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--hj-cream-deep); color: var(--hj-charcoal); font-weight: 600; }
.hj-taxchips a:hover { background: var(--hj-orange-soft); color: var(--hj-orange-ink); }

.hj-sticky-buy { position: sticky; bottom: 0; z-index: 30; background: var(--hj-paper); border-top: 1px solid var(--hj-line); padding: 10px 16px; display: flex; gap: 10px; align-items: center; box-shadow: 0 -10px 24px -8px rgba(0,0,0,0.08); }

@media (min-width: 900px) {
  .hj-pdp-top { grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: flex-start; }
  .hj-pdp-detail { grid-template-columns: 2fr 1fr; gap: 48px; }
  .hj-sticky-buy { display: none; }
}

/* ── Shop filters ──────────────────────────────────── */
.hj-shop-toolbar { display: flex; align-items: center; gap: 8px; padding: 4px 0 12px; }
.hj-active-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-bottom: 12px; }
.hj-clear-all { font-size: 12px; font-weight: 700; color: var(--hj-orange-ink); padding: 0 8px; }
.hj-shop-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }

.hj-filters-form { display: flex; flex-direction: column; }
.hj-filters-head { display: flex; align-items: center; justify-content: space-between; }
.hj-filters-close { display: none; font-size: 24px; color: var(--hj-graphite); background: none; border: none; cursor: pointer; }
.hj-fgroup { border-bottom: 1px solid var(--hj-line); padding: 12px 0; }
.hj-fgroup summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; font-size: 14px; font-family: var(--font-display); list-style: none; }
.hj-fgroup summary::-webkit-details-marker { display: none; }
.hj-fgroup summary::after { content: '+'; color: var(--hj-graphite); font-size: 18px; }
.hj-fgroup[open] summary::after { content: '–'; }
.hj-fgroup-body { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.hj-check { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.hj-check input { display: none; }
.hj-check .box { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--hj-line); flex-shrink: 0; display: grid; place-items: center; }
.hj-check input:checked + .box { background: var(--hj-orange); border-color: var(--hj-orange); }
.hj-check input:checked + .box::after { content: '✓'; font-size: 12px; color: var(--hj-ink); font-weight: 700; }
.hj-check .lbl { flex: 1; color: var(--hj-charcoal); }
.hj-check .cnt { font-size: 11px; color: var(--hj-mute); }
.hj-range { display: flex; align-items: center; gap: 8px; }
.hj-range input { flex: 1; min-width: 0; padding: 8px 10px; border: 1.5px solid var(--hj-line); border-radius: var(--r-1); font-size: 13px; }
.hj-filters-actions { display: flex; gap: 8px; margin-top: 16px; }

.hj-filters-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 70; }

/* Mobile: filters as a bottom sheet */
@media (max-width: 899px) {
  .hj-filters { position: fixed; inset: 0; top: auto; z-index: 80; background: var(--hj-cream); max-height: 88%; overflow: auto; border-radius: 20px 20px 0 0; padding: 16px 20px; transform: translateY(100%); transition: transform .25s ease; box-shadow: var(--sh-3); }
  .hj-filters.open { transform: translateY(0); }
  .hj-filters-close { display: block; }
}

@media (min-width: 900px) {
  .hj-shop-toolbar { display: none; }
  .hj-shop-layout { grid-template-columns: 260px 1fr; }
  .hj-filters { position: sticky; top: 80px; height: fit-content; background: var(--hj-paper); border: 1px solid var(--hj-line); border-radius: var(--r-3); padding: 4px 18px 18px; }
  .hj-filters-overlay { display: none !important; }
}

/* ──────────────────────────────────────────────────
   WooCommerce classic pages (cart / checkout / account / search)
   ────────────────────────────────────────────────── */
.woocommerce { font-family: var(--font-body); }
.woocommerce, .woocommerce *, .woocommerce *::before, .woocommerce *::after { box-sizing: border-box; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { width: 100%; }

/* Mobile: stack first/last name rows; tighter card padding */
@media (max-width: 699px) {
  .woocommerce-checkout #customer_details { padding: 16px; }
  .woocommerce .form-row-first, .woocommerce .form-row-last { width: 100%; float: none; }
}

/* Inputs & selects */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce #order_review input.input-text,
.woocommerce-ordering select,
.woocommerce .select2-container .select2-selection,
.woocommerce table.cart td.actions .input-text {
  border: 1.5px solid var(--hj-line); border-radius: var(--r-2);
  padding: 12px 12px; font-size: 14px; background: var(--hj-paper); color: var(--hj-ink);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus { outline: none; border-color: var(--hj-ink); box-shadow: 0 0 0 3px rgba(247,149,30,0.18); }
.woocommerce form .form-row label { font-weight: 600; font-size: 13px; }

/* Buttons */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce #place_order, .woocommerce button[type="submit"] {
  background: var(--hj-orange); color: var(--hj-ink); border: none;
  border-radius: var(--r-pill); font-weight: 700; font-size: 14px;
  padding: 12px 22px; cursor: pointer; transition: background .15s; line-height: 1.2;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover,
.woocommerce input.button:hover, .woocommerce #place_order:hover { background: var(--hj-honey); color: var(--hj-ink); }
.woocommerce .button.alt, .woocommerce #place_order { background: var(--hj-orange); }
.woocommerce a.button.wc-backward { background: var(--hj-paper); color: var(--hj-ink); border: 1.5px solid var(--hj-line); }

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  border-radius: var(--r-2); border-top: none; border-right: none; border-bottom: none;
  border-left: 3px solid var(--hj-orange); background: var(--hj-cream-deep); color: var(--hj-ink);
  padding: 14px 16px;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { color: var(--hj-orange-ink); }
.woocommerce-message { border-left-color: var(--hj-success); }
.woocommerce-error { border-left-color: var(--hj-discount); }

/* Tables (cart, order review, account orders) */
.woocommerce table.shop_table { border: 1px solid var(--hj-line); border-radius: var(--r-3); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { font-family: var(--font-display); }
.woocommerce .cart_totals h2, .woocommerce #order_review_heading { font-family: var(--font-display); }

/* Result count + ordering (shop / search toolbar) */
.woocommerce .woocommerce-result-count { color: var(--hj-mute); font-size: 13px; margin: 0; }
.woocommerce .woocommerce-ordering { margin-bottom: 16px; }
.woocommerce .woocommerce-ordering select { border-radius: var(--r-pill); font-weight: 600; }

/* ── Checkout: 2 columns on desktop ── */
@media (min-width: 900px) {
  form.checkout.woocommerce-checkout {
    display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto 1fr;
    column-gap: 40px; align-items: start;
  }
  form.checkout #customer_details { grid-column: 1; grid-row: 1 / 3; }
  form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 12px; align-self: start; }
  form.checkout #order_review { grid-column: 2; grid-row: 2; align-self: start; }
}
.woocommerce-checkout #payment { background: var(--hj-cream-deep); border-radius: var(--r-3); }

/* Checkout polish: card panels, stacked billing/shipping, subtle toggles */
.woocommerce-checkout #customer_details {
  background: var(--hj-paper); border: 1px solid var(--hj-line);
  border-radius: var(--r-3); padding: 24px;
}
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 { width: 100%; max-width: 100%; float: none; }
.woocommerce-checkout #customer_details .woocommerce-shipping-fields,
.woocommerce-checkout #customer_details .woocommerce-additional-fields { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hj-line-2); }
.woocommerce-checkout h3 { font-family: var(--font-display); font-size: 20px; }
.woocommerce-checkout #order_review { border: 1px solid var(--hj-line); border-radius: var(--r-3); padding: 20px; background: var(--hj-paper); }
.woocommerce-checkout #order_review .shop_table { border: none; }
.woocommerce-checkout #order_review .shop_table th,
.woocommerce-checkout #order_review .shop_table td { padding: 12px 4px; }
.woocommerce-checkout #place_order { width: 100%; padding: 16px; font-size: 15px; margin-top: 8px; }

/* Login / coupon toggles → quiet inline links, no info box / icon */
.woocommerce-checkout .woocommerce-form-login-toggle,
.woocommerce-checkout .woocommerce-form-coupon-toggle {
  background: transparent !important; border: none !important; padding: 4px 0 !important; margin: 0 0 6px !important;
  font-size: 13px; color: var(--hj-graphite);
}
.woocommerce-checkout .woocommerce-form-login-toggle::before,
.woocommerce-checkout .woocommerce-form-coupon-toggle::before { display: none !important; }
.woocommerce-checkout .woocommerce-form-login-toggle svg,
.woocommerce-checkout .woocommerce-form-coupon-toggle svg { display: none !important; }
.woocommerce form.checkout_coupon, .woocommerce form.login { border: 1px solid var(--hj-line); border-radius: var(--r-3); padding: 20px; }

/* ── My Account: nav sidebar + content ── */
@media (min-width: 900px) {
  .woocommerce-account .woocommerce { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
  .woocommerce-account .woocommerce > .woocommerce-notices-wrapper { flex: 1 0 100%; }
  .woocommerce-account .woocommerce-MyAccount-navigation { flex: 0 0 240px; }
  .woocommerce-account .woocommerce-MyAccount-content { flex: 1; min-width: 0; }
}
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--hj-line-2); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 12px 4px; font-weight: 600; color: var(--hj-charcoal); }
.woocommerce-MyAccount-navigation li.is-active a { color: var(--hj-orange-ink); }
.woocommerce-MyAccount-navigation li a:hover { color: var(--hj-orange-ink); }

/* Icon sprite: presentation attrs live here so each hj_icon() svg stays tiny (paths in the wp_body_open sprite) */
.hj-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Login / register columns already styled by theme buttons; tidy boxes */
.woocommerce .col2-set .col-1, .woocommerce .col2-set .col-2 { box-sizing: border-box; }
.woocommerce-account .u-columns > .col-1, .woocommerce-account .u-columns > .col-2 { background: var(--hj-paper); border: 1px solid var(--hj-line); border-radius: var(--r-3); padding: 20px; }
