/* ============================================================
   JOEREA homepage sections (Phase One). Loaded after main.css and
   built only from the tokens defined there (--ax-*), so it follows
   the site palette automatically.
   ============================================================ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Spam honeypot: invisible to people, tempting to bots. */
.news-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Section frame ---------- */
.hp-section { padding-top: 72px; padding-bottom: 8px; }
.hp-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.hp-head h2 {
  margin: 0; font-size: 22px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.hp-viewall {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ax-white); border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.hp-viewall:hover { color: var(--ax-silver-dim); }
.hp-admin-note {
  font-size: 13px; color: var(--ax-silver-dim); border: 1px dashed var(--ax-border); padding: 14px 16px; margin: 0;
}

/* ---------- Product cards (shared) ---------- */
.product-tag { border-radius: 0; font-weight: 600; letter-spacing: .12em; }
.price-was { margin-left: 8px; font-weight: 400; color: var(--ax-silver-dim); font-size: .85em; }
.pc-sizes { margin: 10px 0 0; font-size: 11px; letter-spacing: .14em; color: var(--ax-silver); word-spacing: 4px; }
.pc-colors { margin: 8px 0 0; font-size: 11px; color: var(--ax-silver); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pc-swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--ax-border); display: inline-block; }
.pc-cta {
  display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ax-border);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ax-white);
}
.product-card:hover .pc-cta { color: var(--ax-silver-dim); }

/* ---------- Promotional banner ---------- */
.promo {
  position: relative; margin-top: 72px; color: #fff; background: #111; overflow: hidden;
  min-height: clamp(260px, 38vw, 420px); display: flex; align-items: center;
}
.promo .promo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo:not(.promo--plain)::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .42); }
.promo-inner { position: relative; z-index: 1; padding-top: 48px; padding-bottom: 48px; max-width: 1240px; }
.promo-badge {
  display: inline-block; margin-bottom: 14px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.7);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.promo h2 { margin: 0; color: #fff; font-size: clamp(26px, 4.4vw, 46px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.08; max-width: 18ch; }
.promo p { margin: 14px 0 0; max-width: 46ch; color: rgba(255,255,255,.86); line-height: 1.6; }
.promo .btn { margin-top: 26px; background: #fff; color: #0d0d0d; border-color: #fff; border-radius: 0; }
.promo .btn:hover { background: transparent; color: #fff; }

/* ---------- Shop by category ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cat-card { display: flex; flex-direction: column; }
.cat-media {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ax-black-soft);
}
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.cat-media:hover img { transform: scale(1.04); }
.cat-media-empty { position: absolute; inset: 0; background: var(--ax-black-soft); }
.cat-badge {
  position: absolute; left: 14px; bottom: 14px; background: #fff; color: #0d0d0d;
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px;
}
.cat-card.is-soon .cat-media img { filter: grayscale(1); opacity: .75; }
.cat-card.is-soon .cat-badge { background: #0d0d0d; color: #fff; }
.cat-body { padding: 16px 2px 0; }
.cat-body h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cat-desc { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--ax-silver-dim); }
.cat-subs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.cat-subs a { color: var(--ax-silver); border-bottom: 1px solid transparent; }
.cat-subs a:hover { color: var(--ax-white); border-bottom-color: currentColor; }
.cat-subs span { color: var(--ax-silver-dim); }
.cat-subs em { font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-left: 4px; }

/* ---------- Brand statement ---------- */
.brand-statement { margin-top: 88px; padding: 88px 0; background: var(--ax-black-soft); }
.brand-inner { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
.brand-statement.has-image .brand-inner { grid-template-columns: 1.1fr .9fr; }
.brand-copy { max-width: 56ch; }
.brand-statement:not(.has-image) .brand-copy { margin: 0 auto; text-align: center; }
.brand-copy h2 { margin: 0 0 26px; font-size: clamp(26px, 4vw, 42px); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; }
.brand-copy p { margin: 0 0 18px; font-size: 16px; line-height: 1.75; color: var(--ax-silver); }
.brand-copy .btn { margin-top: 10px; border-radius: 0; }
.brand-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }

/* ---------- Reviews ---------- */
.rv-summary { font-size: 13px; color: var(--ax-silver); letter-spacing: .04em; }
.rv-stars { color: var(--ax-white); letter-spacing: 2px; }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.rv-card { border: 1px solid var(--ax-border); padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--ax-panel); }
.rv-card h3 { margin: 0; font-size: 14px; font-weight: 600; }
.rv-card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ax-silver); }
.rv-card footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ax-border); display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ax-silver-dim); }
.rv-card footer strong { color: var(--ax-white); }
.rv-card footer a { color: var(--ax-silver); border-bottom: 1px solid var(--ax-border); }
.rv-verified { color: var(--ax-bronze, #8a6d4b); font-weight: 600; letter-spacing: .06em; font-size: 11px; text-transform: uppercase; }
.rv-photo { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--ax-border); }
.rv-empty { border: 1px solid var(--ax-border); padding: 48px 24px; text-align: center; }
.rv-empty p { margin: 0; }
.rv-empty-sub { margin-top: 8px !important; color: var(--ax-silver-dim); font-size: 14px; max-width: 52ch; margin-left: auto !important; margin-right: auto !important; line-height: 1.6; }
.rv-empty .hp-viewall { display: inline-block; margin-top: 20px; }

/* Product page review form */
.rv-summary-line { color: var(--ax-silver); margin: 0 0 20px; }
.rv-form-wrap { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ax-border); max-width: 620px; }
.rv-form-wrap h3 { margin: 0 0 16px; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.rv-rating { border: 0; padding: 0; margin: 0 0 18px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.rv-rating legend { float: left; width: 100%; font-size: 13px; margin-bottom: 8px; color: var(--ax-silver); }
.rv-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-rating label { font-size: 30px; line-height: 1; color: var(--ax-border); cursor: pointer; padding: 0 3px; }
.rv-rating input:checked ~ label, .rv-rating label:hover, .rv-rating label:hover ~ label { color: var(--ax-white); }
.rv-rating input:focus-visible + label { outline: 2px solid var(--ax-white); outline-offset: 2px; }
.soon-note { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--ax-border); font-size: 14px; }

/* ---------- Newsletter ---------- */
.news { margin-top: 88px; padding: 80px 0; background: #0d0d0d; color: #fff; text-align: center; }
.news-inner { max-width: 620px; }
.news h2 { margin: 0; color: #fff; font-size: clamp(24px, 3.6vw, 34px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news p { margin: 14px 0 0; color: rgba(255,255,255,.78); line-height: 1.6; }
.news-msg { margin: 24px auto 0; padding: 12px 16px; font-size: 14px; border: 1px solid rgba(255,255,255,.4); }
.news-msg--ok { background: rgba(255,255,255,.08); }
.news-msg--err { border-color: #e59a96; color: #ffd9d6; }
.news-form { margin-top: 26px; }
.news-row { display: flex; gap: 10px; }
.news-row .form-control { flex: 1; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 0; }
.news-row .form-control::placeholder { color: rgba(255,255,255,.55); }
.news-row .btn { background: #fff; color: #0d0d0d; border-color: #fff; border-radius: 0; white-space: nowrap; }
.news-row .btn:hover { background: transparent; color: #fff; }
.news-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; text-align: left; font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.7); }
.news-consent input { margin-top: 3px; flex: none; }
.news-consent a { color: #fff; text-decoration: underline; }

/* ---------- Footer: social + newsletter ---------- */
.footer-social { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.footer-news-row { display: flex; gap: 8px; margin-top: 12px; }
.footer-news-row .form-control { padding: 10px 12px; }
.footer-news-row .btn { padding: 10px 18px; }
.footer-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 11px; line-height: 1.5; opacity: .8; }
.footer-consent input { margin-top: 2px; flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .brand-statement.has-image .brand-inner { grid-template-columns: 1fr; }
  .brand-media { order: -1; max-width: 420px; }
}
@media (max-width: 640px) {
  .hp-section { padding-top: 52px; }
  .hp-head h2 { font-size: 18px; }
  .promo { margin-top: 52px; }
  .brand-statement { margin-top: 60px; padding: 56px 0; }
  .news { margin-top: 60px; padding: 56px 0; }
  .news-row { flex-direction: column; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-body h3 { font-size: 13px; }
  .rv-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-media img { transition: none; }
}

/* ---------- Newsletter popup ---------- */
.news-pop { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.65); }
.news-pop[hidden] { display: none; }
.news-pop-card { position: relative; width: 100%; max-width: 480px; padding: 44px 34px 28px; background: #0d0d0d; color: #fff; text-align: center; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: newsPopIn .35s ease both; }
.news-pop-card h2 { margin: 0; color: #fff; font-size: 24px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-pop-card p { margin: 12px 0 0; color: rgba(255,255,255,.78); line-height: 1.6; font-size: 14px; }
.news-pop-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.news-pop-skip { margin-top: 16px; background: none; border: 0; color: rgba(255,255,255,.55); font-size: 12px; text-decoration: underline; cursor: pointer; }
.news-pop-skip:hover, .news-pop-close:hover { color: #fff; }
body.news-pop-open { overflow: hidden; }
@keyframes newsPopIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .news-pop-card { animation: none; } }
@media (max-width: 520px) { .news-pop-card { padding: 40px 20px 22px; } }
