/* ========= Base ========= */
*,
*::before,
*::after { box-sizing: border-box; }

:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#6b7280;
  --line:#e5e7eb;
  --shadow: 0 12px 30px rgba(15,23,42,.08);

  --primary:#2563eb;
  --primary2:#1d4ed8;

  --radius:16px;
}

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  line-height:1.5;
  position: relative;

  /* Mer “händer”: fler soft blobs + bättre djup */
  background:
    radial-gradient(1000px 620px at 50% -12%, rgba(59,130,246,.22), transparent 62%),
    radial-gradient(900px 560px at 12% 10%, rgba(99,102,241,.16), transparent 64%),
    radial-gradient(900px 560px at 88% 14%, rgba(16,185,129,.12), transparent 66%),
    radial-gradient(800px 520px at 20% 85%, rgba(245,158,11,.10), transparent 62%),
    linear-gradient(180deg, #fbfcff 0%, #f6f7fb 55%, #f6f7fb 100%);
}

/* Subtil “grain” overlay (ser proffsigare ut än platt gradient) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .10;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(15,23,42,.18) 1px, transparent 0);
  background-size: 14px 14px;
  mix-blend-mode: soft-light;
}

/* All content above background overlay */
header, nav, main, footer{ position: relative; z-index: 1; }

.wrap{
  width:min(1120px, calc(100% - 28px));
  margin:0 auto;
}

/* ========= Topbar ========= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.07);
}

.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand__mark{
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
}

.brand__text{
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
  color: rgba(15,23,42,.88);
}

.nav{
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a{
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: rgba(15,23,42,.62);
  padding: 8px 10px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}

.nav a:hover{
  background: rgba(15,23,42,.05);
  color: rgba(15,23,42,.88);
}

/* Extra clean focus */
.nav a:focus-visible,
.brand:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18);
  border-radius: 999px;
}

/* Mobile */
@media (max-width: 860px){
  .nav{ display:none; }
  .topbar__inner{ padding: 12px 0; }
}

.mobnav{
  display:none;
  position:sticky;
  top:56px;
  z-index:55;
  padding:10px 12px;
  background: rgba(248,250,252,.88);
  border-bottom:1px solid rgba(15,23,42,.07);
  backdrop-filter: blur(14px);
  overflow:auto;
  gap:10px;
  -webkit-overflow-scrolling: touch;
}

.mobnav a{
  flex:0 0 auto;
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  color:rgba(15,23,42,.70);
  border:1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.75);
  padding:9px 12px;
  border-radius:999px;
  white-space:nowrap;
}

.mobnav a:hover{
  color: rgba(15,23,42,.88);
}

/* ========= Hero ========= */
.hero-simple{
  padding:52px 0 22px;
  text-align:center;
  position: relative;
}

/* liten “divider” under hero för mer liv */
.hero-simple::after{
  content:"";
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom:-8px;
  width:min(720px, 92%);
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(15,23,42,.10), transparent);
}

.hero-simple h1{
  margin:0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing:-.6px;
}

.hero-simple p{
  margin:10px 0 0;
  color:var(--muted);
  font-weight:650;
}

/* ========= Sections ========= */
.section{
  padding:30px 0;
  position: relative;
}

/* Subtila section-dividers (alternating) */
main > .section:nth-of-type(even)::before{
  content:"";
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  top:0;
  width:min(980px, 92%);
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.14), transparent);
}

.section__head h2{
  margin:0 0 14px;
  font-size:22px;
  letter-spacing:-.2px;
}

/* ========= Grid ========= */
.grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:16px;
}

/* ========= Cards ========= */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  min-height: 100%;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover{
  transform: translateY(-4px);
  border-color: rgba(15,23,42,.16);
  box-shadow: 0 22px 45px rgba(15,23,42,.14);
}

.card__link{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  height:100%;
}

.card__media{
  position:relative;
  display:block;
  aspect-ratio: 4 / 3;
  background:#ffffff;
  overflow:hidden;
  padding: 14px;              /* contain-look */
}

/* ========= Gallery (carousel) ========= */
.gallery{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(800px 320px at 50% 0%, rgba(37,99,235,.08), transparent 60%);
}

.gallery__main{
  width:100%;
  height:100%;
  object-fit: contain;
  object-position: center;
  display:block;
  transform: translateZ(0);
}

/* arrows */
.gallery__nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(15,23,42,.10);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  color: rgba(15,23,42,.80);
  display:grid;
  place-items:center;
  transition: transform .12s ease, background .12s ease, opacity .12s ease;
  opacity: .0;
  pointer-events: none;
}

.gallery__prev{ left: 10px; }
.gallery__next{ right: 10px; }

.card:hover .gallery__nav,
.gallery:focus-within .gallery__nav{
  opacity: 1;
  pointer-events: auto;
}

.gallery__nav:hover{
  background: rgba(255,255,255,.96);
  transform: translateY(-50%) scale(1.03);
}

.gallery__nav:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18), 0 12px 26px rgba(15,23,42,.12);
}

/* thumbs */
.gallery__thumbs{
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display:flex;
  gap:8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15,23,42,.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery__thumbs::-webkit-scrollbar{ display:none; }

.gallery__thumb{
  flex: 0 0 auto;
  width: 44px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.9);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  display:grid;
  place-items:center;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.gallery__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.gallery__thumb.is-active{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 10px 18px rgba(37,99,235,.15);
  transform: translateY(-1px);
}

.gallery__thumb:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18);
}

/* ========= Badges ========= */
.badge{
  position:absolute;
  top:12px;
  left:12px;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  color:#fff;
  background: linear-gradient(180deg, #111827, #1f2937);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
}

.badge--soft{
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

.badge--new{
  background: linear-gradient(180deg, #16a34a, #15803d);
}

.card__body{
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1; /* push CTA to same line */
}

.card__title{
  margin:0;
  font-size:16px;
  letter-spacing:-.2px;
}

/* ========= Rating ========= */
.rating{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:-2px;
  font-size:14px;
  font-weight:800;
}

.stars{
  color:#f59e0b;
  letter-spacing:1px;
  font-size:14px;
}

.rating__value{
  color:#111827;
}

.rating__count{
  color:rgba(15,23,42,.6);
  font-weight:650;
}

/* ========= Small description ========= */
.tagline{
  font-size:14px;
  color:rgba(15,23,42,.75);
  font-weight:650;
  margin-top:-2px;
}

/* ========= Bullets ========= */
.bullets{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:6px;
  color:rgba(15,23,42,.78);
  font-weight:750;
  font-size:14px;
}

.bullets li{
  position:relative;
  padding-left:18px;
}

.bullets li::before{
  content:"•";
  position:absolute;
  left:6px;
  top:0;
  color: rgba(37,99,235,.9);
}

/* ========= Pills (Topprankad / Editors) ========= */
.pillrow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:2px;
}

.pill{
  display:inline-flex;
  align-items:center;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  background: rgba(15,23,42,.06);
  border: 1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.78);
  font-weight:900;
  font-size:12px;
}

.pill--top{
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.20);
  color: rgba(146,64,14,.95);
}

.pill--editors{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.18);
  color: rgba(29,78,216,.95);
}

/* ========= Trust ========= */
.trust{
  margin-top:2px;
  font-size:13px;
  color:rgba(15,23,42,.68);
  font-weight:650;
  line-height:1.35;
}

/* actions always at bottom */
.card__actions{
  margin-top:auto;
}

/* ========= Button ========= */
.btn{
  display:block;
  text-align:center;
  padding:14px 16px;
  border-radius:999px;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  color:#fff;
  font-weight:950;
  letter-spacing:.2px;
  border:1px solid rgba(37,99,235,.28);
  box-shadow: 0 12px 26px rgba(37,99,235,.20);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.card:hover .btn{
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(37,99,235,.26);
  filter:saturate(1.05);
}

.btn--disabled{
  background:#cbd5e1;
  color:#475569;
  border:1px solid #cbd5e1;
  box-shadow:none;
}

/* ========= Placeholder cards ========= */
.card--placeholder .card__media{
  display:grid;
  place-items:center;
  background: repeating-linear-gradient(
    45deg,
    #f1f5f9,
    #f1f5f9 12px,
    #e2e8f0 12px,
    #e2e8f0 24px
  );
  padding:0;
}

.ph{
  font-weight:950;
  color:rgba(15,23,42,.55);
}

/* =========================================================
   ✅ FEATURED CARD (NYTT)
   Gör EN vald produkt “bild vänster / text höger”
   utan att ändra resten av layouten.
   Lägg class: "card card--featured" på den produkten.
========================================================= */
.card--featured .card__link{
  display:grid;
  grid-template-columns: 42% 58%;
  align-items: stretch;
}

.card--featured .card__media{
  aspect-ratio: auto; /* låt den bli som en “vänsterkolumn” */
  min-height: 260px;  /* ungefär samma visuella höjd som ett vanligt kort */
}

.card--featured .card__body{
  padding: 18px 18px 18px 6px;
}

.card--featured .card__title{
  font-size:18px;
}

.card--featured .tagline,
.card--featured .bullets,
.card--featured .trust{
  font-size:14px;
}

/* På mobil ska featured-card bli stackad som vanligt */
@media (max-width: 860px){
  .card--featured .card__link{
    grid-template-columns: 1fr;
  }

  .card--featured .card__media{
    min-height: 0;
    aspect-ratio: 4 / 3; /* tillbaka till normal */
  }

  .card--featured .card__body{
    padding:16px;
  }
}

/* ========= Footer ========= */
.footer{
  margin-top:40px;
  padding:40px 0 20px;
  border-top:1px solid rgba(15,23,42,.08);
  background:#f8fafc;
}

.footer__inner{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap:40px;
  align-items:start;
}

.footer__logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
}

.footer__mark{
  width:30px;
  height:30px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:#111827;
  color:#fff;
  font-size:14px;
  font-weight:600;
}

.footer__name{
  font-size:16px;
  letter-spacing:.2px;
}

.footer__tagline{
  margin:12px 0 0;
  font-size:14px;
  color:rgba(15,23,42,.55);
  max-width:320px;
}

.footer__center{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer__center a{
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  color:rgba(15,23,42,.65);
  transition:.15s ease;
}

.footer__center a:hover{
  color:#111827;
}

.footer__right{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.footer__disclaimer{
  font-size:13px;
  color:rgba(15,23,42,.50);
  line-height:1.5;
}

.footer__link{
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  color:rgba(15,23,42,.70);
}

.footer__link:hover{
  color:#111827;
}

.footer__bottom{
  margin-top:30px;
  padding-top:15px;
  border-top:1px solid rgba(15,23,42,.06);
  text-align:center;
  font-size:13px;
  color:rgba(15,23,42,.45);
}

/* ========= Responsive (mobile aggressive) ========= */
@media (max-width: 920px){
  .grid{ grid-template-columns: 1fr; }
}

@media (max-width: 860px){
  .nav{ display:none; }
  .mobnav{ display:flex; }
  .hero-simple{ padding:38px 0 16px; }
  .section{ padding:22px 0; }
  .btn{ padding:16px; font-size:16px; }
  .card__body{ padding:16px; }

  /* Visa pilar även utan hover på mobil */
  .gallery__nav{
    opacity: 1;
    pointer-events: auto;
  }
}

/* Mobile footer */
@media (max-width: 900px){
  .footer__inner{
    grid-template-columns:1fr;
    gap:28px;
  }

  .footer__tagline{
    max-width:100%;
  }

  .footer__center{
    flex-direction:row;
    flex-wrap:wrap;
    gap:16px;
  }
}