/*
Theme Name: Ploppsi
Theme URI: https://ploppsi.se/
Author: ploppsi
Description: Ett tema för ploppsi – andrahandsbutik för tv-spel, filmer och leksaker i Örebro. Retro-speltema med tjocka konturer, klistermärkes-skuggor och pixelrubriker. Allt innehåll (texter, bilder, kontaktuppgifter, öppettider) går att redigera direkt i WordPress.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ploppsi
*/

/* ---------------------------------------------
   Design tokens — retro cartridge / sticker system
--------------------------------------------- */
:root{
  --bg: #FBF1DE;          /* varm papperston */
  --surface: #FFFFFF;
  --ink: #221A14;         /* nästan-svart, varm */
  --ink-soft: #79695A;
  --yellow: #FFC53D;      /* kassett-gul */
  --red: #E8483A;         /* prisbricka-röd */
  --teal: #2F9C8B;        /* retro-skärm-turkos */
  --line: #221A14;
  --contrast: #221A14;    /* fast "stämpel"-färg — ändras INTE i mörkt läge,
                             används för saker som alltid ska vara mörka
                             (ticker, cta-banner, text på gul/röd/turkos) */
  --radius: 10px;
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-md: 5px 5px 0 var(--ink);
  --shadow-lg: 7px 7px 0 var(--ink);
  --font-display: 'Pixelify Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --maxw: 1140px;
}

:root[data-theme="dark"]{
  --bg: #14100C;
  --surface: #241C16;
  --ink: #F7ECD8;
  --ink-soft: #B7AA98;
  --line: #F7ECD8;
}

:where(body.ploppsi) :where(*){
  transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease, color .35s ease;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body.ploppsi{
  margin:0;
  padding-top: 6px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; border-radius: var(--radius); }
a{ color: var(--ink); text-decoration: none; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: 0;
  line-height: 1.15;
}

p{ margin: 0 0 1em; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}
:focus-visible{ outline: 3px solid var(--ink); outline-offset: 2px; }

/* Subtle halftone dot texture, used behind the hero only */
.dotted-bg{
  background-image: radial-gradient(var(--ink) 1px, transparent 1.6px);
  background-size: 16px 16px;
  background-position: -4px -4px;
  opacity: .06;
  position:absolute; inset:0; z-index:0; pointer-events:none;
}

/* ---------------------------------------------
   Sticker / cartridge-label tag
--------------------------------------------- */
.tag{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  background: var(--contrast);
  color:#fff;
  padding:.5em 1em;
  border-radius: 6px;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-sm);
  position:relative;
  white-space:nowrap;
}
.tag--yellow{ background: var(--yellow); color: var(--contrast); }
.tag--red{ background: var(--red); color:#fff; }
.tag--teal{ background: var(--teal); color:#fff; }
.tag--ghost{ background: var(--surface); color: var(--ink); }
.tag--rot-l{ transform: rotate(-2.5deg); }
.tag--rot-r{ transform: rotate(2deg); }

/* ---------------------------------------------
   Buttons — chunky, pressable
--------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family: var(--font-body);
  font-weight:700;
  font-size: .96rem;
  padding: .8em 1.5em;
  border-radius: 8px;
  border: 2.5px solid var(--ink);
  box-shadow: var(--shadow-sm);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover{ transform: translate(-2px,-2px); box-shadow: var(--shadow-md); }
.btn:active{ transform: translate(0,0); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary{ background: var(--yellow); color: var(--contrast); }
.btn--outline{ background: var(--surface); color: var(--ink); }

/* ---------------------------------------------
   Motion: scroll-reveal, ticker, counter, logo bounce
   (progressive enhancement — everything is visible by
   default; JS + the .js class only add the animation)
--------------------------------------------- */
.js .reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible{ opacity: 1; transform: translateY(0); }
.grid-3 .card.reveal:nth-child(1){ transition-delay: 0s; }
.grid-3 .card.reveal:nth-child(2){ transition-delay: .08s; }
.grid-3 .card.reveal:nth-child(3){ transition-delay: .16s; }

.ticker{
  background: var(--contrast);
  border-top: 3px solid var(--contrast);
  border-bottom: 3px solid var(--contrast);
  overflow: hidden;
  padding: 13px 0;
}
.ticker-track{
  display:flex;
  align-items:center;
  width: max-content;
  gap: 2.2em;
  animation: ticker-scroll 24s linear infinite;
}
.ticker:hover .ticker-track{ animation-play-state: paused; }
.ticker-item{
  font-family: var(--font-mono);
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: var(--yellow);
  font-size:.9rem;
  white-space:nowrap;
}
.ticker-sep{ color: var(--red); font-size:.7rem; }
@keyframes ticker-scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

.since-badge{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  padding: .5em 1em;
  box-shadow: var(--shadow-sm);
  margin-top: 18px;
}
.since-number{
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight:700;
  color: var(--red);
  min-width: 1.8ch;
  text-align:right;
}
.since-label{
  font-family: var(--font-mono);
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color: var(--ink-soft);
}

.logo-wordmark{ animation: dpad-bounce .8s ease .2s 1; }
@keyframes dpad-bounce{
  0%{ transform: translateY(0) scale(1); }
  30%{ transform: translateY(-5px) scale(1.12); }
  55%{ transform: translateY(0) scale(0.96); }
  75%{ transform: translateY(-2px) scale(1.04); }
  100%{ transform: translateY(0) scale(1); }
}

/* CRT boot-up intro (plays once per browser session) */
.crt-boot{
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display:flex; align-items:center; justify-content:center;
  pointer-events: none;
  animation: crt-fadeout .35s ease-out .95s forwards;
}
.crt-boot::before{
  content:""; position:absolute; inset:0;
  background:#fff;
  transform: scaleY(0.006);
  box-shadow: 0 0 50px 12px rgba(255,255,255,.7);
  animation: crt-expand .4s cubic-bezier(.2,.9,.2,1) .1s forwards;
}
.crt-logo{
  position:relative; z-index:1;
  font-family: var(--font-display); font-size: 1.7rem; color:#111;
  opacity:0;
  animation: crt-logo-in .25s ease .55s forwards;
}
@keyframes crt-expand{ to{ transform: scaleY(1); } }
@keyframes crt-logo-in{ to{ opacity:1; } }
@keyframes crt-fadeout{ to{ opacity:0; visibility:hidden; } }

/* Scroll progress "health bar" */
.scroll-health{
  position:fixed; top:0; left:0; width:100%; height:6px;
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  z-index: 60;
}
.scroll-health-fill{
  height:100%; width:0%;
  background: linear-gradient(90deg, var(--teal), var(--yellow), var(--red));
  position:relative;
}
.scroll-health-fill::after{
  content:""; position:absolute; inset:0;
  background-image: repeating-linear-gradient(90deg, transparent 0 14px, rgba(0,0,0,.18) 14px 16px);
}

/* Live open/closed status badge */
.status-badge{
  display:inline-flex; align-items:center; gap:.6em;
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  padding: .5em 1em;
  box-shadow: var(--shadow-sm);
}
.status-dot{
  position:relative;
  width:10px; height:10px; border-radius:50%;
  background: #9CA3AF; flex:none;
}
.status-dot.is-open{ background:#3CCB6F; }
.status-dot.is-closed{ background: var(--red); }
.status-dot::after{
  content:""; position:absolute; inset:-4px; border-radius:50%;
  background:inherit; opacity:.45;
  animation: status-pulse 1.8s ease-out infinite;
}
.status-dot:not(.is-open):not(.is-closed)::after{ animation:none; opacity:0; }
@keyframes status-pulse{ 0%{ transform:scale(.6); opacity:.5; } 100%{ transform:scale(1.9); opacity:0; } }
.status-text{
  font-family: var(--font-mono); font-size:.78rem;
  text-transform:uppercase; letter-spacing:.04em; color: var(--ink);
  white-space:nowrap;
}
.hero-badges{ display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
.hero-badges .since-badge, .hero-badges .status-badge{ margin-top:0; }

/* Retro flip-digit hit counter */
.hit-counter{ display:inline-flex; align-items:center; gap:.6em; font-family: var(--font-mono); }
.hit-counter-label{ font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; color: var(--ink-soft); }
.hit-counter-digits{ display:inline-flex; gap:3px; }
.digit{
  display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:28px;
  background: var(--contrast); color:#fff;
  border-radius:3px; font-weight:700; font-size:.95rem;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.35);
  transform-origin:50% 100%;
  opacity:0;
  animation: digit-flip .4s ease forwards;
}
.digit:nth-child(1){ animation-delay:.05s; }
.digit:nth-child(2){ animation-delay:.12s; }
.digit:nth-child(3){ animation-delay:.19s; }
.digit:nth-child(4){ animation-delay:.26s; }
.digit:nth-child(5){ animation-delay:.33s; }
.digit:nth-child(6){ animation-delay:.40s; }
@keyframes digit-flip{ from{ transform:rotateX(90deg); opacity:0; } to{ transform:rotateX(0deg); opacity:1; } }

/* ---------------------------------------------
   Header
--------------------------------------------- */
.site-header{
  border-bottom: 3px solid var(--ink);
  background: var(--bg);
  position: sticky;
  top: 6px;
  z-index: 50;
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:16px;
  padding-bottom:16px;
}
.brand{
  font-family: var(--font-display);
  font-size:1.5rem;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:.55em;
}
.brand img{ height:38px; width:auto; border-radius:6px; }
.brand-mark{ display:inline-flex; flex:none; }
.header-right{ display:flex; align-items:center; }
.primary-nav ul{ list-style:none; display:flex; gap:1.8em; margin:0; padding:0; }
.primary-nav a{ font-size:.95rem; font-weight:600; color: var(--ink-soft); font-family: var(--font-body); }
.primary-nav a:hover, .primary-nav a.active{ color: var(--ink); }
.nav-toggle{
  display:none;
  background: var(--surface);
  border:2.5px solid var(--ink);
  border-radius:8px;
  box-shadow: var(--shadow-sm);
  padding:.5em .7em;
  font-family: var(--font-mono);
  font-weight:600;
  margin-left: 14px;
}

.theme-toggle{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:.6em;
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px 4px 4px;
  box-shadow: var(--shadow-sm);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .35s ease, border-color .35s ease;
  margin-left: 14px;
  font-family: var(--font-mono);
}
.theme-toggle:hover{ transform: translate(-2px,-2px); box-shadow: var(--shadow-md); }
.theme-toggle:active{ transform: translate(0,0); box-shadow: 1px 1px 0 var(--ink); }
.toggle-track{
  position:relative;
  width:46px; height:26px;
  border-radius:999px;
  border: 2px solid var(--ink);
  background: var(--bg);
  flex:none;
}
.toggle-thumb{
  position:absolute;
  top:1px; left:1px;
  width:18px; height:18px;
  border-radius:50%;
  background: var(--yellow);
  border: 2px solid var(--contrast);
  display:flex; align-items:center; justify-content:center;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background-color .35s ease;
}
:root[data-theme="dark"] .toggle-track{ background: var(--surface); }
:root[data-theme="dark"] .toggle-thumb{ transform: translateX(20px); background: var(--teal); }
.toggle-thumb svg{
  position:absolute;
  width:11px; height:11px;
  color: var(--contrast);
  transition: opacity .35s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.toggle-thumb .icon-sun{ opacity:1; transform: rotate(0deg) scale(1); }
.toggle-thumb .icon-moon{ opacity:0; transform: rotate(-90deg) scale(.4); color:#fff; }
:root[data-theme="dark"] .toggle-thumb .icon-sun{ opacity:0; transform: rotate(90deg) scale(.4); }
:root[data-theme="dark"] .toggle-thumb .icon-moon{ opacity:1; transform: rotate(0deg) scale(1); }
.toggle-label{
  font-size:.74rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.04em;
  color: var(--ink);
  white-space:nowrap;
}

/* ---------------------------------------------
   Hero
--------------------------------------------- */
.hero{ padding: 60px 0 84px; position:relative; overflow:hidden; }
.hero .wrap{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items:center;
  position:relative; z-index:1;
}
.hero-eyebrow{ margin-bottom: 20px; }
.hero h1{
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  max-width: 15ch;
}
.hero .lede{
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38ch;
  font-weight:500;
}
.hero-ctas{ display:flex; gap:14px; margin-top: 26px; flex-wrap:wrap; }
.hero-art{ position:relative; }
.hero-art img{ aspect-ratio: 4/5; object-fit:cover; width:100%; border:3px solid var(--ink); box-shadow: var(--shadow-lg); }
.hero-art .img-placeholder{
  aspect-ratio:4/5; width:100%; border-radius: var(--radius);
  background: var(--surface); border:3px solid var(--ink); box-shadow: var(--shadow-lg);
  display:flex; align-items:center; justify-content:center;
}
.hero-art .img-placeholder span{ font-family:var(--font-mono); font-size:.82rem; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.04em; }
.hero-art .tag{ position:absolute; bottom:-16px; left:-12px; font-size:.8rem; }

/* ---------------------------------------------
   Sections / cards
--------------------------------------------- */
section{ padding: 68px 0; }
.section-head{ max-width: 50ch; margin-bottom: 38px; }
.section-head h2{ font-size: clamp(1.6rem, 2.5vw, 2.1rem); }
.section-head p{ color: var(--ink-soft); }

.grid-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card{
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{ transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.card .tag{ margin-bottom: 16px; }
.card h3{ font-size: 1.2rem; }
.card p{ color: var(--ink-soft); margin-bottom:0; }

/* ---------------------------------------------
   Storefront photo + Hitta oss / contact block
--------------------------------------------- */
.store-photo{ position:relative; margin-bottom: 24px; }
.store-photo img{ width:100%; max-height:380px; object-fit:cover; border-radius: var(--radius); border:3px solid var(--ink); box-shadow: var(--shadow-lg); }
.store-photo .tag{ position:absolute; bottom:-14px; left:20px; }

.findus{
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow:hidden;
  display:grid;
  grid-template-columns: 1fr 1fr;
}
.findus-info{ padding: 34px; }
.findus-info h3{ font-size:1.3rem; }
.findus-map iframe{ width:100%; height:100%; min-height:320px; border:0; display:block; }
.map-placeholder{ width:100%; height:100%; min-height:260px; background:var(--bg); border-left:3px solid var(--ink); display:flex; align-items:center; justify-content:center; font-family:var(--font-mono); font-size:.82rem; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.04em; text-align:center; }

.hours-table{ font-family: var(--font-mono); font-size:.92rem; width:100%; border-collapse:collapse; margin: 16px 0; }
.hours-table td{ padding: 6px 0; border-bottom:2px dashed var(--line); }
.hours-table td:last-child{ text-align:right; color: var(--ink-soft); font-weight:600; }

.contact-line{ display:flex; align-items:baseline; gap:.6em; margin-bottom:.5em; }
.contact-line .label{ font-family:var(--font-mono); font-size:.76rem; color:var(--ink-soft); text-transform:uppercase; letter-spacing:.05em; min-width:5.4em; }

/* ---------------------------------------------
   Reviews
--------------------------------------------- */
.review-card, blockquote, .entry-content blockquote{
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 1.4em 0;
  position:relative;
  box-shadow: var(--shadow-sm);
}
blockquote::before, .entry-content blockquote::before{
  content:"\201C";
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--yellow);
  position:absolute;
  top:6px; right:16px;
  line-height:1;
}
blockquote p, .entry-content blockquote p{ color: var(--ink-soft); }
blockquote cite, .entry-content blockquote cite{
  display:block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size:.8rem;
  color: var(--ink);
  margin-top:.5em;
}

.cta-banner{
  background: var(--contrast);
  color:#fff;
  border-radius: var(--radius);
  border: 2.5px solid var(--contrast);
  box-shadow: var(--shadow-md);
  padding: 42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
  flex-wrap:wrap;
}
.cta-banner h3{ color:#fff; margin-bottom:.3em; }
.cta-banner p{ color: #D8CFC2; margin-bottom:0; }
.cta-banner .btn--primary{ background: var(--yellow); color:var(--contrast); }

/* ---------------------------------------------
   Generic page banner
--------------------------------------------- */
.page-banner{ padding: 54px 0 14px; }
.page-banner h1{ font-size: clamp(1.9rem,3.3vw,2.7rem); margin-top:.6em; }
.about-wordmark{ max-width: 320px; width:100%; height:auto; margin-bottom: 18px; border-radius:0; box-shadow:none; }

/* Logotype — a clean vector recreation of the hand-painted shop sign,
   not a literal photo. Bold rounded font, yellow fill, dark outline,
   each letter tilted slightly for that loose hand-lettered wobble. */
.logo-wordmark{
  --stroke: 2px;
  display:inline-flex;
  font-family: 'Chewy', cursive;
  font-size: 1.7rem;
  color: var(--yellow);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.logo-wordmark span{
  display:inline-block;
  text-shadow:
    calc(var(--stroke) * -1) calc(var(--stroke) * -1) 0 var(--contrast),
    var(--stroke) calc(var(--stroke) * -1) 0 var(--contrast),
    calc(var(--stroke) * -1) var(--stroke) 0 var(--contrast),
    var(--stroke) var(--stroke) 0 var(--contrast),
    calc(var(--stroke) * -1) 0 0 var(--contrast),
    var(--stroke) 0 0 var(--contrast),
    0 calc(var(--stroke) * -1) 0 var(--contrast),
    0 var(--stroke) 0 var(--contrast);
}
.logo-wordmark span:nth-child(1){ transform: rotate(-5deg) translateY(3px); }
.logo-wordmark span:nth-child(2){ transform: rotate(3deg) translateY(-2px); }
.logo-wordmark span:nth-child(3){ transform: rotate(-2deg); }
.logo-wordmark span:nth-child(4){ transform: rotate(4deg) translateY(2px); }
.logo-wordmark span:nth-child(5){ transform: rotate(-3deg); }
.logo-wordmark span:nth-child(6){ transform: rotate(5deg) translateY(-3px); }
.logo-wordmark span:nth-child(7){ transform: rotate(-4deg) translateY(1px); }
.logo-wordmark--lg{ --stroke: 3px; font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: 6px; }
.page-content{ padding-bottom: 70px; }
.entry-content{ max-width: 70ch; }
.entry-content img{ margin: 1.2em 0; border:3px solid var(--ink); }
.entry-content h2,.entry-content h3{ font-size:1.4rem; margin-top:1.5em; }

/* "Till salu" listings — turns the core Media & Text block into an
   item card automatically, no custom classes needed from the editor. */
.entry-content.listings .wp-block-media-text{
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin: 0 0 28px;
  background: var(--surface);
  transition: transform .15s ease, box-shadow .15s ease;
}
.entry-content.listings .wp-block-media-text:hover{ transform: translate(-3px,-3px); box-shadow: var(--shadow-md); }
.entry-content.listings .wp-block-media-text__media img{ border-radius:0; margin:0; height:100%; object-fit:cover; }
.entry-content.listings .wp-block-media-text__content{ padding: 22px 26px; }
.entry-content.listings .wp-block-media-text__content h2,
.entry-content.listings .wp-block-media-text__content h3{ margin-top:0; font-size:1.2rem; }
.entry-content.listings .wp-block-media-text__content p{ color: var(--ink-soft); margin-bottom:0; }

.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items:start; }
.contact-card,.contact-form-area{
  background: var(--surface); border:2.5px solid var(--ink); border-radius: var(--radius);
  padding:28px; box-shadow: var(--shadow-md);
}
.contact-form-placeholder{
  border: 2.5px dashed var(--ink-soft);
  border-radius: 8px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--ink-soft);
}
.mock-field{ display:block; width:100%; padding:.7em .9em; margin-bottom:12px; border:2px solid var(--ink-soft); border-radius:6px; font-family: var(--font-body); font-size:.95rem; background:var(--bg); }

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.site-footer{ border-top:3px solid var(--ink); margin-top: 36px; padding: 46px 0 26px; }
.footer-grid{ display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; margin-bottom: 26px; }
.footer-grid h4{ font-family: var(--font-mono); font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-soft); margin-bottom: .9em; }
.footer-nav ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.5em; }
.footer-nav a{ color: var(--ink-soft); font-size:.95rem; font-weight:600; }
.footer-nav a:hover{ color:var(--ink); }
.footer-bottom{ border-top:2px dashed var(--ink-soft); padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.85rem; color: var(--ink-soft); }

/* ---------------------------------------------
   Responsive
--------------------------------------------- */
@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; }
  .grid-3{ grid-template-columns: 1fr; }
  .findus{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 680px){
  .primary-nav{ display:none; }
  .primary-nav.is-open{
    display:block; position:absolute; top:100%; left:0; right:0;
    background:var(--bg); border-bottom:3px solid var(--ink); padding: 18px 24px 28px;
  }
  .primary-nav.is-open ul{ flex-direction:column; gap:1em; }
  .nav-toggle{ display:inline-flex; }
  .cta-banner{ flex-direction:column; align-items:flex-start; }
  .theme-toggle .toggle-label{ display:none; }
  .theme-toggle{ padding:4px; }
}

/* =============================================
   I butiken — kategoriflikar
   ============================================= */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cat-tab {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .55em 1.2em;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .2s, color .2s, box-shadow .15s;
}
.cat-tab:hover {
  background: var(--bg);
  color: var(--ink);
}
.cat-tab.active {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-md);
}

/* =============================================
   Öppettider aktuellt — varningsruta
   ============================================= */
.hours-notice {
  background: var(--surface);
  border: 2.5px solid var(--yellow);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.hours-notice-icon {
  font-size: 1.1rem;
  flex: none;
  margin-top: 2px;
}
.hours-notice-text {
  font-size: .9rem;
  color: var(--ink);
  line-height: 1.55;
}
.hours-notice-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 4px;
}

/* =============================================
   I butiken — listing card image support
   ============================================= */
.entry-content.listings .wp-block-media-text img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 0;
}
.entry-content.listings .wp-block-media-text__media {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.entry-content.listings .wp-block-media-text {
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 0;
  background: var(--surface);
  overflow: hidden;
  grid-template-columns: 1fr;
  transition: transform .15s ease, box-shadow .15s ease;
}
.entry-content.listings .wp-block-media-text:hover {
  transform: translate(-3px,-3px); box-shadow: var(--shadow-lg);
}
.entry-content.listings .wp-block-media-text__content {
  padding: 18px 22px;
}
.entry-content.listings .wp-block-media-text__content h2,
.entry-content.listings .wp-block-media-text__content h3 {
  font-size: 1.05rem; margin-top: 0; margin-bottom: 6px;
}
.entry-content.listings .wp-block-media-text__content p {
  color: var(--ink-soft); font-size: .88rem; margin-bottom: 0; line-height: 1.55;
}
/* Grid layout for listings */
.entry-content.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
@media (max-width: 600px) {
  .entry-content.listings { grid-template-columns: 1fr; }
}

/* =============================================
   I butiken — butiken-grid product cards
   ============================================= */
.butiken-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.butiken-card {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.butiken-card:hover {
  transform: translate(-3px,-3px);
  box-shadow: var(--shadow-lg);
}
.butiken-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
.butiken-placeholder {
  height: 200px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.butiken-card-body {
  padding: 16px 18px;
}
.butiken-platform {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
  margin-bottom: 5px;
}
.butiken-card-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  margin-top: 0;
}
.butiken-card-body p {
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .butiken-grid { grid-template-columns: 1fr; }
}

/* =============================================
   I butiken — lightbox gallery
   ============================================= */
.butiken-card {
  cursor: pointer;
}
.butiken-card:hover .butiken-gallery-hint {
  opacity: 1;
}
.butiken-gallery-hint {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--teal);
  margin-top: 8px;
  opacity: 0.6;
  transition: opacity .2s;
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  display: flex;
}
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-lg);
  display: block;
}
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: var(--ink);
  color: var(--bg);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  width: 38px; height: 38px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--bg);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  width: 44px; height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background .2s;
}
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.lightbox-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.lb-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: background .2s;
}
.lb-dot.active { background: var(--yellow); }
@media (max-width: 600px) {
  .lightbox-prev { left: -40px; }
  .lightbox-next { right: -40px; }
}

/* =============================================
   I butiken — product cards with animations
   ============================================= */
.butiken-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
  transition: opacity .18s ease, transform .18s ease;
}
.butiken-grid.bk-fade-out { opacity: 0; transform: translateY(6px); }
.butiken-grid.bk-fade-in  { opacity: 1; transform: translateY(0); }

.butiken-card {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
  position: relative;
}
.butiken-card:hover {
  transform: translate(-4px, -4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

/* Image wrapper — zoom + shimmer on hover */
.bk-img-wrap {
  position: relative;
  overflow: hidden;
  height: 210px;
  background: var(--bg);
}
.bk-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform .45s ease;
}
.butiken-card:hover .bk-img-wrap img {
  transform: scale(1.07);
}
/* Shimmer sweep on hover */
.bk-img-wrap::after {
  content: ;
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.18) 50%, transparent 75%);
  transform: translateX(-110%);
}
.butiken-card:hover .bk-img-wrap::after {
  animation: bk-shimmer .6s ease forwards;
}
@keyframes bk-shimmer {
  from { transform: translateX(-110%); }
  to   { transform: translateX(110%); }
}

/* Zoom hint badge */
.bk-zoom-hint {
  position: absolute;
  bottom: 10px; right: 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .35em .7em;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.butiken-card:hover .bk-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Placeholder (emoji) */
.butiken-placeholder {
  height: 210px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: transform .4s ease;
}
.butiken-card:hover .butiken-placeholder {
  transform: scale(1.1) rotate(-3deg);
}

/* Card body */
.butiken-card-body { padding: 16px 18px; }
.butiken-platform {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
  margin-bottom: 5px;
}
.butiken-card-body h3 { font-size: 1rem; margin: 0 0 5px; }
.butiken-card-body p  { font-size: .875rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }

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

/* =============================================
   I butiken — lightbox
   ============================================= */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.lightbox-img {
  max-width: 88vw; max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-lg);
  transition: opacity .12s ease;
}
.lightbox-close {
  position: absolute; top: -50px; right: 0;
  background: var(--ink); color: var(--bg);
  border: 2.5px solid var(--ink); border-radius: 999px;
  width: 40px; height: 40px; font-size: 1.3rem;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  transition: background .2s;
}
.lightbox-close:hover { background: var(--red); border-color: var(--red); color:#fff; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 40%;
  background: var(--ink); color: var(--bg);
  border: 2.5px solid var(--ink); border-radius: 999px;
  width: 46px; height: 46px; font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); transition: background .2s, border-color .2s;
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--yellow); border-color: var(--yellow); color: var(--ink);
}
.lightbox-dots { display: flex; gap: 8px; justify-content: center; }
.lb-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: 2px solid var(--ink);
  cursor: pointer; transition: background .2s;
}
.lb-dot.active { background: var(--yellow); }
@media (max-width: 600px) {
  .lightbox-prev { left: -38px; }
  .lightbox-next { right: -38px; }
}

/* =============================================
   Gaming Grannarna — videospelarsida
   ============================================= */
.gm-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  margin-bottom: 36px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #000;
}
.gm-player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: calc(var(--radius) - 2px);
}
.gm-playlist-heading {
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: .02em;
}
.gm-playlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.gm-thumb {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  position: relative;
  overflow: hidden;
}
.gm-thumb:hover {
  transform: translate(-3px,-3px);
  box-shadow: var(--shadow-md);
}
.gm-thumb.active {
  border-color: var(--yellow);
  box-shadow: 4px 4px 0 var(--yellow);
}
.gm-thumb-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.gm-thumb-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.gm-thumb:hover .gm-thumb-img img {
  transform: scale(1.05);
}
.gm-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .2s;
}
.gm-thumb:hover .gm-play-icon,
.gm-thumb.active .gm-play-icon {
  opacity: 1;
}
.gm-thumb.active .gm-play-icon {
  background: rgba(0,0,0,.55);
  color: var(--yellow);
}
.gm-thumb-title {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  padding: 8px 10px 4px;
  color: var(--ink);
  line-height: 1.3;
}
.gm-ep-num {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--ink-soft);
  padding: 0 10px 10px;
  letter-spacing: .04em;
}
@media (max-width: 600px) {
  .gm-playlist { grid-template-columns: repeat(2, 1fr); }
}
