/* ══════════════════════════════════════════════════════════════
   Components added in the template rebuild (and styles that used to
   be inline style="" attributes). Loaded on every page after the
   design system, so it may refine existing components.
   ══════════════════════════════════════════════════════════════ */

/* ── Kitsune icons (View::icon) ─────────────────────────────── */
/* Sized by the font-size of the slot they sit in, like the emojis they replaced. */
.kitsune-icon { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; }

/* ── Accessibility helpers ──────────────────────────────────── */
/* "hidden" always wins, also over component rules that set display. */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px; background: var(--gold-alt, #e8870d); color: #1a1a1a;
  font-weight: 800; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-alt, #e8870d); outline-offset: 2px; }

/* ── Layout bits ────────────────────────────────────────────── */
.shop-closed-banner {
  position: sticky; top: 0; z-index: 60; background: #f59e0b; color: #1a1a1a;
  font-weight: 700; font-size: 14px; text-align: center; padding: 10px 16px; line-height: 1.4;
}
.v4-hero { min-height: 600px; }
.home-band {
  background: linear-gradient(180deg, transparent, rgba(26,23,36,.4), transparent);
  border-top: 1px solid var(--border-home); border-bottom: 1px solid var(--border-home);
}
.v4-footer__company { margin-top: 10px; font-size: 12px; font-style: normal; line-height: 1.6; color: #6b7280; }
.v4-footer__company a { color: inherit; }
.v4-footer__giveaway { display: inline-block; margin-top: 16px; padding: 10px 16px; border-radius: 9px; background: var(--gold-alt); color: var(--bg-home); font-size: 14px; font-weight: 800; line-height: 1.3; text-decoration: none; transition: opacity .15s; }
.v4-footer__giveaway:hover { opacity: .88; }

/* ── Product tiles and product page ─────────────────────────── */
.product-card__title a { color: inherit; text-decoration: none; }
.product-card__title a:hover { text-decoration: underline; }
.stock--low { border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.12); color: #fbbf24; }

/* ── Category page ──────────────────────────────────────────── */
fieldset.cat-filter-section { border-left: 0; border-right: 0; border-top: 0; margin: 0; min-width: 0; }
.cat-filter-section legend { padding: 0; float: left; width: 100%; }   /* float: same spacing as a normal heading */
.cat-filter-section legend + * { clear: both; }
.cat-filter-section--last { border-bottom: none; }
.cat-price-slider { width: 100%; accent-color: var(--gold-alt, #e8870d); margin: 8px 0 4px; }
.cat-empty { color: var(--muted, #888); padding: 24px 0; }
.seo-box { margin-top: 0; }

/* ── Forms: messages and invalid fields ─────────────────────── */
[data-form-message]:empty, [data-form-message][hidden] { display: none; }
[data-form-message][data-state] { display: block; }
[data-form-message][data-state="busy"] { color: var(--muted-warm, #9ca3af); }
[data-form-message][data-state="ok"] { color: #10b981; }
[data-form-message][data-state="error"] { color: #ef4444; }
[aria-invalid="true"] { border-color: #ef4444 !important; }
.contact-form__submit:disabled { opacity: .6; cursor: progress; }

/* ── FAQ (native <details>) ─────────────────────────────────── */
.faq { margin-top: 48px; }
.faq__title { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 12px; color: var(--text-warm); }
.faq__intro { font-size: 15px; color: var(--muted-warm); line-height: 1.7; margin: 0 0 28px; max-width: 540px; }
.faq-cat-title { margin: 0; }
summary.faq-question, summary.faq-question-f { list-style: none; }
summary.faq-question::-webkit-details-marker, summary.faq-question-f::-webkit-details-marker { display: none; }
details.faq-item .faq-answer, details.faq-item-f .faq-answer-f { max-height: none; }
details.faq-item:not([open]) .faq-answer, details.faq-item-f:not([open]) .faq-answer-f { display: none; }
details.faq-item[open] .faq-chevron, details.faq-item-f[open] .faq-chevron-f { transform: rotate(180deg); }

/* ── Info pages (shipping, returns, terms) ───────────── */
.fragt-steps, .giveaway-steps, .co-stepper { list-style: none; padding-left: 0; }
.fragt-steps { margin-top: 20px; }
.fragt-info-title { font-size: clamp(22px, 3vw, 32px); font-weight: 900; letter-spacing: -.02em; margin: 8px 0 24px; }
.fragt-partner { margin-top: 16px; }
.fragt-faq { margin-top: 8px; }
.fragt-cta { margin-top: 60px; }
.info-layout { margin-top: 28px; }
.info-highlight--green { margin-top: 24px; background: rgba(16,185,129,.07); border-color: rgba(16,185,129,.2); }
.withdraw-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.withdraw-callout p { margin: 0; flex: 1 1 320px; min-width: 0; }
/* The info box colours its links gold (style_v3.css); the button keeps the button text colour. */
body.page-info .withdraw-callout .btn--primary { color: #0d0d0d; }
.table-scroll { overflow-x: auto; }

/* ── Checkout ───────────────────────────────────────────────── */
.co-note { font-size: 12px; color: var(--muted, #888); margin-top: 10px; }
.co-service-points { margin-top: 16px; }
.co-input--postcode { max-width: 140px; }
.co-service-point-list { gap: 8px; max-height: 340px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.co-terms-note { font-size: 12px; line-height: 1.6; color: var(--muted, #888); margin: 12px 0 0; }
.co-terms-note a { color: inherit; text-decoration: underline; }
.co-submit-btn:disabled { opacity: .55; cursor: not-allowed; }


/* ── Notices (templates/pages/notice.php) ─────────────────── */
.not-found { text-align: center; padding: 72px 0; }
.not-found h1 { margin: 12px 0; }
.not-found__lead { max-width: 520px; margin: 0 auto 28px; color: var(--muted-warm, #9ca3af); line-height: 1.7; }
.not-found__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ── 404 (templates/pages/not_found.php, opgave 11) ─────────── */
.nf { position: relative; isolation: isolate; overflow: hidden; }
.nf__inner { max-width: 1000px; margin: 0 auto; padding: 40px 24px 90px; text-align: center; }
.nf__code {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  font-size: clamp(96px, 16vw, 190px); font-weight: 900; line-height: 1; letter-spacing: -.04em;
  color: #fff1c2; text-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.nf__zero {
  position: relative; flex: none;
  width: clamp(92px, 14.2vw, 170px); height: clamp(92px, 14.2vw, 170px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #2a1420 0, #16101c 70%);
  border: 3px solid rgba(255,241,194,.45);
  box-shadow: 0 0 70px rgba(227,38,47,.55);
  transform: rotate(-8deg);
}
.nf__zero img { width: 65%; height: auto; }
.nf__tag {
  position: absolute; top: -26px; right: -10px;
  padding: 6px 10px; border-radius: 10px;
  background: #fff1c2; color: #7a0a0a;
  font-size: 15px; font-weight: 800; letter-spacing: 0; line-height: 1.2; white-space: nowrap;
  transform: rotate(14deg);
}
.nf__title { margin: 26px 0 10px; font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -.02em; color: var(--text-warm, #f5f0e8); }
.nf__lead { max-width: 560px; margin: 0 auto; color: #e2d6cf; font-size: 16px; line-height: 1.65; }
.nf__search {
  display: flex; max-width: 520px; margin: 26px auto 0;
  border: 1px solid #3a3346; border-radius: 14px; overflow: hidden; background: #0f0c16;
}
.nf__search:focus-within { border-color: var(--gold-alt, #e8870d); }
.nf__search-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 16px; color: #6f6878; cursor: text; }
.nf__search-field svg { flex: none; }
.nf__search-input {
  flex: 1; min-width: 0; height: 50px; padding: 0;
  border: 0; outline: 0; background: transparent;
  color: var(--text-warm, #f5f0e8); font: inherit; font-size: 16px;   /* 16px: phones don't zoom in on focus */
  text-overflow: ellipsis;
}
.nf__search-input::placeholder { color: #6f6878; text-overflow: ellipsis; }
.nf__search-btn {
  flex: none; padding: 0 22px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #f4a82a, #e8870d); color: #1a1a1a;
  font: inherit; font-size: 15px; font-weight: 800;
}
.nf__search-btn:hover { filter: brightness(1.06); }
.nf__cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.nf__cat {
  position: relative; isolation: isolate; overflow: hidden;
  height: 170px; padding: 18px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; justify-content: flex-end;
  text-align: left; color: var(--text-warm, #f5f0e8); text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.nf__cat::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--nf-bg) right top / auto 260% no-repeat; }
.nf__cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.75)); }
.nf__cat:hover, .nf__cat:focus-visible { border-color: var(--nf-accent); transform: translateY(-2px); }
.nf__cat--pokemon   { --nf-bg: url("../img/kategori/kategori_pokemon_computer.webp");   --nf-accent: #DB3A3A; }
.nf__cat--onepiece  { --nf-bg: url("../img/kategori/kategori_onepiece_computer.webp");  --nf-accent: #1A5A8A; }
.nf__cat--riftbound { --nf-bg: url("../img/kategori/kategori_riftbound_computer.webp"); --nf-accent: #C8A832; }
.nf__cat-line { position: absolute; top: 14px; left: 16px; width: 34px; height: 4px; border-radius: 4px; background: var(--nf-accent); }
.nf__cat-name { font-size: 20px; font-weight: 900; }
.nf__cat-text { margin-top: 3px; color: #e2d6cf; font-size: 13px; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.nf__link {
  padding: 12px 18px; border: 1px solid #3a3346; border-radius: 10px;
  color: var(--text-warm, #f5f0e8); font-size: 14px; font-weight: 700; text-decoration: none;
}
.nf__link:hover, .nf__link:focus-visible { border-color: var(--gold-alt, #e8870d); }

/* Christmas skin (1 Nov to 6 Jan, config christmas): the product page's
   background behind the content, mirrored, fading into the page. */
.nf--xmas::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1200px; z-index: -1;
  background: url("../img/jul/produkt_jul_computer.webp") center top / cover no-repeat;
  transform: scaleX(-1); opacity: .75;
}
.nf--xmas::after {
  content: ""; position: absolute; left: 0; right: 0; top: 500px; height: 700px; z-index: -1;
  background: linear-gradient(180deg, rgba(13,10,20,0), var(--bg-home, #0d0a14));
}

@media (max-width: 900px) {
  .nf__tag { top: -20px; right: -16px; font-size: 11px; }
  .nf__cats { grid-template-columns: minmax(0, 1fr); }
  .nf__cat { height: 120px; }
  .nf--xmas::before { background-image: url("../img/jul/produkt_jul_telefon.webp"); transform: none; height: 900px; }
}
@media (max-width: 480px) {
  .nf__search-field { padding: 0 12px; }
  .nf__search-field svg { display: none; }   /* room for the placeholder text */
  .nf__search-btn { padding: 0 18px; }
}

/* Small product pictures in the search, checkout and receipt: a real <img>
   (opgave 14) filling its box, the whole picture shown ("contain"). */
.search-result-img > img, .checkout-item__img > img, .conf-receipt__thumb > img {
  display: block; width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.checkout-item__img:has(> img) { background-image: none; }
