/* =========================================================
   VIA3 SHOWROOM — CLEAN (Stil B)
   ========================================================= */

/* ---------- Vars ---------- */
:root{
  --via3-green:#4EA33E;
  --ink:#111;
  --muted:#6b7280;
  --container-w:1200px;
  --container-pad:16px;
  --plate:#F3F3F2;           /* nøytral “studio-plate” bak bildene */
}

/* ---------- Global ---------- */
body.showroom{ background:#fafafa; color:var(--ink); }
.showroom h1,.showroom h2,.showroom h3{ margin:0 0 .6em; }
.showroom p + p{ margin-top:.6em; }
.showroom .navbar{ display:none !important; } /* hvis finnes globalt */

/* =========================================================
   HERO
   ========================================================= */
.showroom .hero-banner{
  position:relative; border-radius:0; /* rette kanter */
  min-height:420px; display:flex; justify-content:center; align-items:center;
  background-size:cover; background-position:center; color:#fff; overflow:hidden;
}
.showroom .hero-banner::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(rgba(0,0,0,.10) 0%, rgba(0,0,0,.25) 40%, rgba(0,0,0,.35) 100%);
  pointer-events:none;
}
.showroom .hero-inner{
  position:relative; z-index:2; width:100%; max-width:var(--container-w);
  padding:60px var(--container-pad) 80px;
  display:flex; justify-content:flex-end; align-items:center;
  text-shadow:0 2px 6px rgba(0,0,0,.35);
}
.showroom .hero-content{ max-width:600px; text-align:right; }
.showroom .hero-content .btn{
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--via3-green); color:#fff; padding:12px 24px; border-radius:8px; font-weight:600; text-decoration:none;
  transition:filter .2s;
}
.showroom .hero-content .btn:hover{ filter:brightness(1.05); }

/* Topp-lenke (tilbake) – alltid lesbar */
.showroom .showroom-topbar{ top: 24px; right:0; left:0; bottom:auto; }
.showroom .showroom-topbar a{ pointer-events:auto; }
.showroom .showroom-topbar .home-chip{
  color:#fff; text-decoration:none; font-weight:600;
  background:rgba(0,0,0,.55); padding:8px 14px; border-radius:999px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
  backdrop-filter:blur(4px) saturate(100%);
  transition:filter .10s;
}
.showroom .showroom-topbar .home-chip:hover{ filter:brightness(1.12); }

@media (max-width:768px){
  .showroom .hero-inner{ justify-content:center; text-shadow:none; }
  .showroom .hero-content{ text-align:center; }
}

/* =========================================================
   TOPPSEKSJON (kategorier + “Viser”)
   ========================================================= */
.showroom .shop-layout{
  max-width:var(--container-w); margin:0 auto;
  padding:24px var(--container-pad);
  display:grid; grid-template-columns:1fr; gap:12px;  /* kategorier øverst i full bredde */
}

/* Tittel + “Viser” */
.showroom .shop-card{ background:none; border:0; box-shadow:none; padding:0; }
.showroom .shop-card-title{ font-weight:700; margin:0 0 6px; display:inline-block; }
.showroom .shop-toolbar{
  margin:0 0 6px; display:flex; justify-content:flex-end; align-items:center; gap:8px;
  color:var(--muted);
}
.showroom .toolbar-left strong{ color:var(--ink); }

/* Kategorier: kun tekst */
.showroom .category-list{
  display:flex; flex-wrap:wrap; gap:18px; margin:0; padding:0; list-style:none;
}
.showroom .category-list li{ margin:0; }
.showroom .cat-btn{
  background:none; border:0; padding:0;
  font-size:1rem; font-weight:500; color:#515151; cursor:pointer;
  text-decoration:none; transition:opacity .15s, text-decoration-color .15s;
}
.showroom .cat-btn:hover{ text-decoration:underline; opacity:.8; }
/* Aktiv = samme farge + underline */
.showroom .cat-btn.active{ color:#515151; font-weight:400; text-decoration:underline; }
/* Skjul antall */
.showroom .cat-btn .count{ display:none !important; }

/* =========================================================
   PRODUCT GRID + CARDS
   ========================================================= */
.showroom .product-grid{ display:grid; gap:32px; grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:900px){ .showroom .product-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .showroom .product-grid{ grid-template-columns:1fr; } }

/* Kort uten ramme/skygge; bilde og typografi bærer alt */
.showroom .product-card{
  background:none; border:0; box-shadow:none; padding:0;
  display:flex; flex-direction:column; transition:transform .16s ease;
}
.showroom .product-card .image-link{
  display:block; position:relative; overflow:hidden; background:var(--plate);
}
.showroom .product-card img{
  display:block; width:100%; aspect-ratio:1/1; object-fit:cover;
  transform:scale(1); transition:transform .22s ease;
}

/* Hover: mini-løft + outline + 2% zoom */
.showroom .product-card:hover{ transform:translateY(-2px); }
.showroom .product-card .image-link::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  border:1px solid rgba(0,0,0,.06); opacity:0; transition:opacity .18s ease;
}
.showroom .product-card:hover .image-link::after{ opacity:1; }
.showroom .product-card:hover img{ transform:scale(1.02); }

/* Typografi i kortet */
.showroom .product-card .card-body{ padding:10px 0 0; text-align:center; }
.showroom .product-card h3{ margin:8px 0 2px; font-weight:600; letter-spacing:-.2px; }
.showroom .price-row{ display:flex; flex-direction:column; align-items:center; gap:6px; margin-top:4px; }
.showroom .price{ font-weight:700; font-size:18px; }

/* CTA som tekstlenke */
.showroom .order-btn{
  background:transparent; color:#0f5132; padding:0; border:0;
  font-weight:600; line-height:1.1; text-decoration:none;
}
.showroom .order-btn::after{ content:" →"; display:inline-block; transition:transform .16s; }
.showroom .order-btn:hover::after{ transform:translateX(2px); }
.showroom .order-btn:focus-visible{ outline:2px solid #9ad0b4; outline-offset:2px; }

/* Valgfritt: subtil plate per kategori (hold dem lyse) */
.product-card[data-cat="Gaver"]    .image-link{ background:#F1F4F5; }
.product-card[data-cat="Interiør"] .image-link{ background:#F2F4F2; }
.product-card[data-cat="Julepynt"] .image-link{ background:#EEF2F6; }
.product-card[data-cat="Kjøkken"]  .image-link{ background:#F5F4F1; }
.product-card[data-cat="Spill"]    .image-link{ background:#F3F4F6; }

/* === PRODUKTDETALJSIDE – riktig bilde-proporsjon === */

.showroom .product-detail .gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;     /* fjern tvungen 1:1 */
  object-fit: contain;    /* viser hele bildet */
  border-radius: 0;       /* rette kanter */
  box-shadow: none;
  background: none;
}


/* =========================================================
   PRODUKTDETALJ (matchende stil)
   Markup antas fra din PHP: .product-detail .container / .gallery / .info
   ========================================================= */
.showroom .product-detail .container{
  max-width:var(--container-w); margin:24px auto; padding:0 var(--container-pad);
  display:grid; grid-template-columns:1.1fr 1fr; gap:24px;
}
@media (max-width:980px){ .showroom .product-detail .container{ grid-template-columns:1fr; } }

/* Bildepresentasjon – rett kant, nøytral plate */
.showroom .product-detail .media-frame{
  background:var(--plate);
  padding:0;
}
.showroom .product-detail .gallery img{
  display:block; width:100%; height:auto; border-radius:0; box-shadow:none; background:transparent;
  aspect-ratio:4/5; object-fit:cover; /* fin høyde på produktsiden */
}

/* Tekstside */
.showroom .product-detail .info .crumb{ display:inline-block; margin-bottom:8px; color:var(--muted); text-decoration:none; }
.showroom .product-detail .info h1{ margin:.2rem 0 .4rem; letter-spacing:-.2px; }
.showroom .product-detail .price{ font-size:28px; font-weight:800; margin:.2rem 0 1rem; }
.showroom .product-detail .desc{ color:#444; line-height:1.6; }
.showroom .product-detail .specs{ margin:12px 0 18px; padding-left:18px; }

/* Kjøpsknapp i detalj: grønn pille for tydelig handling */
.showroom .order-btn.xl{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 22px; border-radius:999px; font-weight:700;
  background:var(--via3-green); color:#fff; border:0; text-decoration:none;
}
.showroom .order-btn.xl:hover{ filter:brightness(1.05); }

/* =========================================================
   ANIMASJON: Fade-in med stagger
   ========================================================= */
.product-card.is-hidden{ display:none; }
.product-card.appear{ animation:fadeInUp .60s ease-out forwards; animation-delay:var(--d,0ms); }
@keyframes fadeInUp{ from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:translateY(0);} }
@media (prefers-reduced-motion:reduce){ .product-card.appear{ animation:none !important; opacity:1 !important; transform:none !important; } }

/* =========================================================
   FOOTER — full bredde
   ========================================================= */
.showroom footer,.showroom .site-footer,.showroom #site-footer,.showroom .footer{
  width:100%; max-width:none; margin:0; border-radius:0;
}
.showroom footer .container,.showroom .site-footer .container,.showroom .footer .container,
.showroom footer .footer-inner,.showroom .site-footer .footer-inner{
  max-width:var(--container-w); padding:24px var(--container-pad); margin:0 auto; box-sizing:border-box;
}

/* ---- PRODUKTDETALJ: vis hele bildet, ingen cropping ---- */
.showroom .product-detail .gallery,
.showroom .product-detail .media-frame {
  background: var(--plate);                 /* valgfri lys plate */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sterk override – uansett hva som står over */
.showroom .product-detail .gallery img,
.showroom .product-detail .media-frame img,
.showroom .product-detail img {
  width: 100% !important;
  height: auto !important;
  max-height: 80vh !important;             /* pen høyde på store skjermer */
  object-fit: contain !important;          /* vis hele bildet */
  aspect-ratio: auto !important;           /* fjern tvungen 4:5 / 1:1 */
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* === VIA3 BESTILLINGSMODAL === */
.order-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  backdrop-filter: blur(5px);
}

.order-modal.show { display: flex; }

.order-modal-content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  padding: 34px 30px 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  position: relative;
  animation: fadeIn .25s ease;
  font-family: "Inter", sans-serif;
}

.order-modal-content h2 {
  color: #111;
  font-weight: 700;
  margin-top: 0;
}

.order-modal-content p {
  color: #555;
  font-size: .95rem;
  margin-bottom: 20px;
}

.order-modal form label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: .9rem;
  color: #222;
}

.order-modal form input,
.order-modal form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 1rem;
  background: #F9F9F8;
  margin-top: 4px;
  transition: border-color .2s;
}

.order-modal form input:focus,
.order-modal form textarea:focus {
  border-color: #4EA33E;
  outline: none;
}

.order-submit {
  margin-top: 22px;
  width: 100%;
  background: #4EA33E;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: filter .2s;
}

.order-submit:hover { filter: brightness(1.08); }

.order-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Strong, visible CTA in Via3 style */
.order-cta{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:12px 18px; border:0; border-radius:999px;
  background:#4EA33E; color:#fff; font-weight:700; font-size:1rem;
  cursor:pointer; text-decoration:none;
  box-shadow:0 6px 14px rgba(78,163,62,.25);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.order-cta:hover{ transform:translateY(-1px); box-shadow:0 10px 24px rgba(78,163,62,.28); filter:brightness(1.05); }
.order-cta:focus-visible{ outline:2px solid #9ad0b4; outline-offset:2px; }
.order-cta .arrow{ transition:transform .15s ease; }
.order-cta:hover .arrow{ transform:translateX(2px); }

/* Modal visning */
.order-modal{ position:fixed; inset:0; display:none; z-index:3000; }
.order-modal.show{ display:block; }
.order-modal-overlay{ position:absolute; inset:0; background:rgba(0,0,0,.45); backdrop-filter:blur(4px); }
.order-modal-box{
  position:relative; z-index:1; max-width:460px; margin:8vh auto; background:#fff;
  border-radius:16px; padding:34px 30px 40px; box-shadow:0 10px 40px rgba(0,0,0,.2);
}
/* ====== PRODUKTDETALJ – stabil, to-kolonne layout ====== */
.showroom .product-detail .container{
  max-width: var(--container-w);
  margin: 24px auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Bildekolonne */
.showroom .product-detail .gallery img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;   /* ikke crop */
  aspect-ratio: auto;    /* fjern evt. 1:1-tvang fra grid-stil B */
  border-radius: 0;      /* rette kanter ifølge Stil B */
  box-shadow: none;
  background: transparent;
}

/* Tekstkolonne – typografi og luft */
.showroom .product-detail .info{ max-width: 560px; }
.showroom .product-detail .info .crumb{
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  text-decoration: none;
}
.showroom .product-detail .info .crumb:hover{ text-decoration: underline; }

.showroom .product-detail .info h1{
  margin: 0 0 .4rem;
  font-weight: 700;
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  line-height: 1.2;
}
.showroom .product-detail .price{
  display: block;              /* viktig – ikke havne på samme linje som h1 */
  font-weight: 800;
  font-size: 1.25rem;
  margin: .2rem 0 1rem;
}
.showroom .product-detail .desc{
  color: #333;
  line-height: 1.6;
  margin: 0 0 12px;
}

/* Spesifikasjoner (ul) */
.showroom .product-detail .specs{
  list-style: none;
  padding-left: 0;
  margin: 10px 0 16px;
}
.showroom .product-detail .specs li{
  margin: 6px 0;
  color: #222;
}
.showroom .product-detail .specs strong{ font-weight: 700; }

/* CTA – plassert pent under teksten */
.showroom .product-detail .order-cta{
  margin-top: 12px;
}

/* Responsivt: stack kolonnene på mobil */
@media (max-width: 980px){
  .showroom .product-detail .container{
    grid-template-columns: 1fr;
  }
  .showroom .product-detail .info{ max-width: none; }
}
/* ===== Tilbake-chip – responsiv og lesbar ===== */
.showroom .showroom-topbar{
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
  pointer-events: none; /* vi slår på for selve lenken under */
}
.showroom .showroom-topbar .topbar-inner{
  /* litt luft fra kanten + støtte for notch/safe area */
  padding: 8px max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.showroom .showroom-topbar .home-chip{
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  max-width: calc(100% - 24px); /* unngå å presse seg utenfor skjermen */
  white-space: nowrap;           /* ingen linjebryting */
  overflow: hidden;              /* klipp overskytende */
  text-overflow: ellipsis;       /* … hvis teksten blir for lang */
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  backdrop-filter: saturate(120%) blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

/* Litt mindre på smale skjermer */
@media (max-width: 520px){
  .showroom .showroom-topbar .home-chip{
    font-size: 0.9rem;
    padding: 6px 10px;
    max-width: calc(100% - 16px);
  }
}

/* Ekstra smalt: enda litt kompakt */
@media (max-width: 380px){
  .showroom .showroom-topbar .home-chip{
    font-size: 0.85rem;
    padding: 5px 9px;
  }
}

/* (Valgfritt) Flytt chipen under hero på veldig smalt,
   hvis du vil ha helt ren hero-tittel uten overlapping. */
/*
@media (max-width: 360px){
  .showroom .showroom-topbar{
    position: static;  /* da havner den i dokumentflyten, rett over kategoriraden */
/*  }
}
*/
/* --- HERO rotator --- */
.hero-rotator,
.hero-rotator-sub {
  opacity: 1;
  transition: opacity .5s ease;
  will-change: opacity;
}
.hero-rotator.is-fading,
.hero-rotator-sub.is-fading {
  opacity: 0;
}

/* Subtil Ken-Burns på bakgrunn (kan fjernes om ønskelig) */
@keyframes kb-panzoom {
  0%   { transform: scale(1) translate3d(0,0,0); }
  100% { transform: scale(1.04) translate3d(0,0,0); }
}
.showroom .hero-banner {
  animation: kb-panzoom 16s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .showroom .hero-banner { animation: none; }
}

/* Litt mer luft på små skjermer */
@media (max-width: 768px) {
  .showroom .hero-content h1 { font-size: 1.8rem; }
  .showroom .hero-content p  { font-size: 1rem; }
}

/* Rammen: innholdet (tekst/knapp) skal ligge over bakgrunnslaget */
.showroom .hero-banner{
  position: relative;
  overflow: hidden;
  /* behold background-* her; vi "arver" den i ::before */
}

/* Ken Burns-laget */
.showroom .hero-banner::before{
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;              /* arver background-image/-position/-size */
  background-size: cover;
  background-position: center;
  transform-origin: center;
  animation: kenburns 18s ease-in-out infinite alternate;
  z-index: 0;                       /* bak innhold */
}

/* Sørg for at toppbar og tekst ligger over */
.showroom .showroom-topbar,
.showroom .hero-inner{
  position: relative;
  z-index: 2;
}

/* Din Ken Burns animasjon – juster tallene etter smak */
@keyframes kenburns {
  0%   { transform: scale(1)   translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(0, 0, 0); }
}

/* Legg inn trygg kant, også på små skjermer */
.showroom .showroom-topbar{
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;   /* for sikkerhets skyld */
  z-index: 3;
}

/* Dynamisk «clamp» for ekstra robusthet */
@media (max-width: 600px){
  .showroom .showroom-topbar{
    top: clamp(8px, 3vw, 16px);
    left: clamp(8px, 3vw, 16px);
  }
}

/* Trekk knappen ut av skalert kontekst */
.showroom .showroom-topbar{
  position: fixed;    /* <- følger vinduet, ikke skaleringen */
  top: 12px;
  left: 12px;
  z-index: 1000;
}

/* Always on top of the page, never affected by hero transforms */
.showroom #showroomTopbar{
  position: fixed;        /* viewport, not hero */
  top: clamp(8px, 2.5vw, 16px);
  left: clamp(8px, 2.5vw, 16px);
  z-index: 9999;
  pointer-events: none;   /* so hero is still clickable */
}
.showroom #showroomTopbar .home-chip{
  pointer-events: auto;   /* but the link IS clickable */
  display: inline-block;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  backdrop-filter: blur(6px) saturate(120%);
}

/* ======= COLLECTION VIEW (variant C) ======= */
:root{
  --container-w:1200px;
  --container-pad:16px;
  --ink:#111;
  --muted:#6b7280;
  --via3-green:#4EA33E;
}

/* Topbar-lenke (allerede brukt hos deg) */
.showroom .showroom-topbar{
  position: absolute; top: 12px; left: 12px; z-index: 10; pointer-events: none;
}
.showroom .showroom-topbar .home-chip{
  pointer-events: auto;
  color:#fff; text-decoration:none; font-weight:600;
  background: rgba(0,0,0,.55);
  padding:8px 14px; border-radius:999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  backdrop-filter: blur(6px) saturate(120%);
}

/* Header/hero for samlesiden */
.collection-hero{
  background:#F4F4F3;
  border-bottom:1px solid #e9e7e3;
}
.collection-hero .collection-inner{
  max-width:var(--container-w);
  padding:24px var(--container-pad);
  margin:0 auto;
}
.collection-hero h1{ margin:0 0 6px; font-size:1.8rem; }
.collection-hero p{ margin:0; color:#444; }

/* Layout: venstre filter + høyre grid */
.collection-layout{
  max-width:var(--container-w);
  padding:18px var(--container-pad) 28px;
  margin:0 auto;
  display:grid;
  grid-template-columns:260px 1fr;
  gap:24px;
}
@media (max-width:980px){
  .collection-layout{ grid-template-columns:1fr; }
}

/* Filterkolonne */
.filters h3{ margin:0 0 10px; }
.filter-list{
  list-style:none; padding:0; margin:0 0 12px;
  display:flex; flex-direction:column; gap:8px;
}
.filter-list button{
  appearance:none; background:none; border:0; padding:0;
  font:inherit; color:var(--ink); cursor:pointer;
  text-align:left;
}
.filter-list button:hover{ text-decoration:underline; opacity:.85; }
.filter-list button.active{
  color:var(--via3-green); font-weight:600; text-decoration:underline;
}

/* Søk + sortering */
.search-block{ margin:12px 0 10px; }
.search-block input{
  width:100%; padding:8px 10px; border:1px solid #e4e2de; border-radius:8px;
}
.sort-block{ margin-top:10px; }
.sort-block label{ display:block; margin-bottom:6px; color:var(--muted); }
.sort-block select{
  width:100%; padding:8px 10px; border:1px solid #e4e2de; border-radius:8px; background:#fff;
}

/* Resultatteller / verktøylinje over grid hvis du vil ha den der */
.collection-toolbar{
  display:flex; align-items:center; justify-content:flex-end;
  color:var(--muted); margin-bottom:10px;
}

/* Grid */
.collection-grid{
  display:grid;
  gap:24px;
  grid-template-columns:repeat(3, minmax(0,1fr));
}
@media (max-width:900px){ .collection-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .collection-grid{ grid-template-columns:1fr; } }

/* Stil B – kortet “forsvinner”, bildet bærer uttrykket */
.product-card{
  background:none; border:0; box-shadow:none; padding:0;
  display:flex; flex-direction:column;
  transition: transform .16s ease;
}
.product-card .image-link{
  display:block; position:relative; overflow:hidden;
  background:#F3F3F2;  /* nøytral plate */
}
.product-card img{
  width:100%; aspect-ratio:1/1; object-fit:cover;
  transform:scale(1); transition:transform .22s ease;
}
.product-card:hover{ transform:translateY(-2px); }
.product-card .image-link::after{
  content:""; position:absolute; inset:0; border:1px solid rgba(0,0,0,.06); opacity:0;
  transition:opacity .18s ease; pointer-events:none;
}
.product-card:hover .image-link::after{ opacity:1; }
.product-card:hover img{ transform:scale(1.02); }

.product-card .card-body{
  text-align:center; padding:10px 0 0;
}
.product-card h3{ margin:6px 0 2px; font-weight:600; }
.product-card .price{ font-weight:700; }

/* Vis/skjul ved filtrering + myk “appear” */
.product-card.is-hidden{ display:none !important; }
.product-card.appear{ animation:fadeInUp .42s ease-out forwards; animation-delay:var(--d,0ms); }
@keyframes fadeInUp{
  from{ opacity:0; transform: translateY(8px); }
  to  { opacity:1; transform: translateY(0); }
}
.campaign-hero{
  background-size:cover;
  background-position:center;
  color:#fff;
  min-height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:40px var(--container-pad);
  position:relative;
}
.campaign-hero::after{
  content:""; position:absolute; inset:0;
  background:rgba(0,0,0,.4);
}
.campaign-inner{ position:relative; z-index:2; max-width:800px; }

.campaign-products{
  background:#F4F4F3;
  padding:30px var(--container-pad) 50px;
}
.campaign-products .campaign-grid{
  display:grid; gap:24px;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  max-width:var(--container-w); margin:0 auto;
}
.campaign-products h3{ color:#111; }

[data-action="toggle-autoplay"] {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0,0,0,.4);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 0;
  background-image: url('../ikoner/pause.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}
.card img {
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid #eee;
}

/* Ny stil for header */

.hero-banner {
  position: relative;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.05) 100%
  );
  pointer-events: none;
}
.hero-banner .hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.hero-banner .hero-content p {
  font-size: 1.3rem;
  margin-top: 6px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.hero-content {
  animation: heroFade 1.2s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

