/* nettbutikk.css — sidestil for Dekkstra nettbutikk.
   Farger og former KUN fra /dekkstra.css (kjedens designstandard).
   Uttrykket følger «Oversikten»: navy topplinje med logo rett på flaten,
   hvite fliser på krem, gul flis/knapp for hovedhandlingen. */

html, body { margin: 0; background: var(--bakgrunn); color: var(--tekst);
  font-family: var(--font); font-size: 16px; line-height: 1.5; }
a { color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(22px, 3.2vw, 30px); font-weight: 800; margin: 0 0 6px; }
h2 { font-size: 19px; font-weight: 800; margin: 0 0 10px; }
h3 { font-size: 15.5px; font-weight: 700; margin: 16px 0 8px; }
p { margin: 0 0 12px; }
.ingress { color: var(--tekst-svak); font-size: 15.5px; max-width: 70ch; margin: 0 0 18px; }
.under { color: var(--tekst-svak); font-size: 13.5px; }
.skjult { position: absolute; left: -9999px; }

/* ---------- topplinje ---------- */
.topp { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,226,41,.16); }
.topp-inn { max-width: none; margin: 0; padding: 12px clamp(14px, 2vw, 28px);
  display: flex; align-items: center; gap: 18px; min-height: 100px; flex-wrap: wrap; }
.topp img { height: 80px; width: auto; display: block; }
.topp .merke { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.topp .navn { display: flex; flex-direction: column; line-height: 1.15; }
.topp .navn b { font-size: 14px; font-weight: 800; letter-spacing: .06em; color: var(--gul); text-transform: uppercase; }
.topp .navn span { font-size: 11.5px; color: var(--pa-navy-svak); }
.topp .hoyre { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topp .hoyre a { color: var(--pa-navy); text-decoration: none; font-size: 14.5px; }
.topp .hoyre a:hover { color: #fff; text-decoration: underline; }
.topp select { padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--navy-lys);
  background: var(--navy-lys); color: #fff; font-size: 15px; }
.topp .forhandler { font-size: 13.5px; color: var(--pa-navy-svak); }
.topp .forhandler a { margin-left: 10px; }
.kurvknapp { display: inline-flex; align-items: center; gap: 8px; background: var(--gul); color: var(--navy);
  text-decoration: none !important; font-weight: 800; padding: 9px 16px; border-radius: var(--radius-sm); font-size: 15px; }
.kurvknapp:hover { background: var(--gul-dyp); }
/* Lenkefargen i topplinjen (lys) skal ikke slå gjennom på den gule knappen: mørk tekst på gult */
.topp .hoyre .kurvknapp, .topp .hoyre .kurvknapp:hover { color: var(--navy); text-decoration: none; }
.kurvknapp span { background: var(--navy); color: #fff; border-radius: 999px; min-width: 23px; height: 23px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

/* ---------- side ---------- */
main { max-width: 1120px; margin: 0 auto; padding: clamp(16px, 3vw, 26px) clamp(14px, 4vw, 24px) 48px; }
main.smal { max-width: 720px; }
main.lesing { max-width: 760px; }
.kort { background: var(--flate); border: 1px solid var(--linje); border-radius: var(--radius);
  box-shadow: var(--skygge-sm); padding: 20px 20px 22px; margin-bottom: 18px; }
.kort.gul { background: var(--gul); border-color: var(--gul); }
.rad { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.felt { display: flex; flex-direction: column; gap: 5px; margin-bottom: 13px; min-width: 0; }
.felt label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tekst-svak); font-weight: 700; }
.felt label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.felt input, .felt select, .felt textarea { padding: 11px 12px; border: 1px solid var(--linje);
  border-radius: var(--radius-sm); font-size: 16px; font-family: inherit; background: var(--flate); color: var(--tekst); width: 100%; }
.felt .fast { padding: 10px 0; font-weight: 600; }
.knapp { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy);
  color: var(--gul); border: 1px solid transparent; border-radius: var(--radius-sm); padding: 12px 20px;
  font-size: 15.5px; font-weight: 800; letter-spacing: .02em; cursor: pointer; text-decoration: none; font-family: inherit; }
.knapp:hover { background: var(--navy-lys); }
.knapp[disabled] { opacity: .5; cursor: not-allowed; }
.knapp.gul { background: var(--gul); color: var(--navy); }
.knapp.gul:hover { background: var(--gul-dyp); }
.knapp.stille { background: transparent; color: var(--tekst); border-color: var(--linje); }
.knapp.stille:hover { background: var(--flate-2); }
.knapp.bred { width: 100%; padding: 15px 20px; font-size: 17px; }
.merkelapp { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--linje); background: var(--flate-2); color: var(--tekst-svak); white-space: nowrap; }
.merkelapp.ok { background: var(--ok-flate); color: var(--ok); border-color: var(--ok-linje); }
.merkelapp.klasse { background: var(--flate); color: var(--navy); border-color: rgba(0, 37, 49, .35); }
.boks-info { background: var(--info-flate); border-left: 5px solid var(--info); padding: 12px 16px;
  border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 16px; }
.boks-ok { background: var(--ok-flate); border: 1px solid var(--ok-linje); color: var(--ok); padding: 16px 18px; border-radius: var(--radius-sm); }
.boks-feil { background: var(--feil-flate); border: 1px solid var(--feil-linje); color: var(--feil); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.boks-varsel { background: var(--varsel-flate); border-left: 5px solid var(--varsel); color: var(--tekst);
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.tabellboks { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tekst-svak); padding: 0 8px 8px 0; }
td { padding: 10px 8px 10px 0; border-top: 1px solid var(--linje-svak); vertical-align: top; }
td.h, th.h { text-align: right; white-space: nowrap; }

/* ---------- produktkort ---------- */
.treff { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); }
.produkt { background: var(--flate); border: 1px solid var(--linje); border-radius: var(--radius);
  box-shadow: var(--skygge-sm); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.produkt img { width: 84px; height: 84px; object-fit: contain; align-self: center; }
.produkt .ikkebilde { width: 84px; height: 84px; align-self: center; border-radius: 50%;
  border: 10px solid var(--linje-svak); background: var(--flate-2); }
.produkt .merke { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tekst-svak); font-weight: 700; }
.produkt .navn { font-weight: 700; line-height: 1.35; font-size: 15px; color: var(--navy); }
.produkt .pris { font-size: 25px; font-weight: 800; color: var(--navy); margin-top: auto; }
.produkt .pris small { font-size: 13px; font-weight: 500; color: var(--tekst-svak); }
.produkt .knapp { width: 100%; }
.lagtikurv { position: fixed; left: 50%; transform: translateX(-50%); bottom: 26px; background: var(--navy);
  color: #fff; padding: 13px 22px; border-radius: var(--radius-sm); font-weight: 600; box-shadow: var(--skygge); z-index: 50; max-width: 92vw; }

/* ---------- avdelinger / bento ---------- */
.bento { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.flis { background: var(--flate); border: 1px solid var(--linje); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--skygge-sm); text-decoration: none; color: var(--tekst); display: block; }
.flis:hover { border-color: var(--navy); }
.flis b { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.flis span { color: var(--tekst-svak); font-size: 13.5px; }

/* ---------- bunn ---------- */
footer { background: var(--flate-2); border-top: 1px solid var(--linje); margin-top: 20px; }
.bunn-inn { max-width: 1120px; margin: 0 auto; padding: 22px clamp(14px, 4vw, 24px) 30px;
  display: flex; flex-wrap: wrap; gap: 18px 36px; color: var(--tekst-svak); font-size: 13.5px; }
.bunn-inn a { color: var(--tekst); }
.bunn-inn b { color: var(--navy); }
.bunn-inn .lenker { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* ---------- valgt layout 21.09.2026: «Butikken først» + «Skiltet» ---------- */
.faner-inn { max-width: 1120px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 24px); }
.faner { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.faner::-webkit-scrollbar { display: none; }
.faner a { color: var(--pa-navy-svak); text-decoration: none; font-size: 14.5px; padding: 10px 0 9px;
  border-bottom: 3px solid transparent; white-space: nowrap; }
.faner a:hover { color: #fff; }
.faner a.aktiv { color: var(--gul); border-bottom-color: var(--gul); font-weight: 700; }

/* Forsiden (Ole 21.09): logo og navn midtstilt vertikalt over HELE topplinjen,
   litt større logo. Fanene starter rett over den hvite boksen, men aldri inn i
   logoen – på smalere skjermer flyttes de til høyre for den. */
@media (min-width: 900px) {
  .topp.med-faner { position: relative; padding-top: 12px; }
  .topp.med-faner .merke { position: absolute; left: clamp(14px, 2vw, 28px); top: 50%; transform: translateY(-50%); gap: 14px; }
  .topp.med-faner img { height: 96px; }
  .topp.med-faner .topp-inn { min-height: 54px; padding-top: 0; padding-bottom: 0; justify-content: flex-end; }
  .topp.med-faner .faner-inn { padding-left: max(clamp(14px, 4vw, 24px), calc(232px - max(0px, (100% - 1120px) / 2))); }
}

.topp-rad { display: grid; grid-template-columns: minmax(300px, 1fr) 2.1fr; gap: 16px; align-items: stretch; margin-bottom: 4px; }
.butikkort { display: flex; gap: 14px; align-items: center; padding: 16px; margin-bottom: 0; }
.butikkort .butikkinfo { min-width: 0; }
.butikknavn { font-weight: 800; color: var(--navy); font-size: 17px; }
.butikkort .linje { font-size: 14.5px; color: var(--tekst-svak); line-height: 1.5; }
.butikkort .linje a { color: var(--tekst); white-space: nowrap; }
.butikkort .tider { color: var(--tekst); }
.butikkort .tider .seg { white-space: nowrap; }
.butikkort .tider .skille-prikk { color: var(--tekst-hint); }
.butikkort .lenker { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 14px; }
.butikkort .lenker a { white-space: nowrap; }
.kart { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 10px; background: var(--navy-lys); position: relative;
  display: block; text-decoration: none; }
.kart:hover { background: var(--navy); }
.kart .naal { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; background: var(--gul);
  border-radius: 50% 50% 50% 0; transform: translate(-50%, -60%) rotate(-45deg); }
.kart .karttekst { position: absolute; right: 7px; bottom: 5px; font-size: 11px; color: var(--pa-navy-svak); }

.skilt { display: flex; align-items: stretch; border: 2px solid #16181a; border-radius: 7px; overflow: hidden; background: #fff; width: 100%; }
.skilt .eu { background: #0b4ea2; color: #fff; width: 24px; display: flex; align-items: flex-end; justify-content: center;
  font-size: 10px; font-weight: 700; padding-bottom: 4px; flex: 0 0 auto; }
.skilt input { border: 0 !important; border-radius: 0 !important; width: 10.5ch; font-family: "Bahnschrift", "Arial Narrow", Arial, sans-serif;
  font-size: 20px !important; letter-spacing: 2px; text-transform: uppercase; padding: 6px 10px !important; }
.skilt input:focus { outline: 2px solid var(--gul); outline-offset: -2px; }

.filtre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--linje); }
.filtertekst { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--tekst-svak); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--linje);
  background: var(--flate-2); color: var(--tekst-svak); cursor: pointer; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.aktiv { background: var(--navy); border-color: var(--navy); color: #fff; }
.merkevalg { padding: 7px 10px; border: 1px solid var(--linje); border-radius: 999px; font: inherit; font-size: 13.5px;
  background: var(--flate-2); color: var(--tekst); max-width: 240px; }

.liste { display: flex; flex-direction: column; gap: 10px; }
.rad-dekk { background: var(--flate); border: 1px solid var(--linje); border-radius: var(--radius); box-shadow: var(--skygge-sm);
  padding: 12px 16px; display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; }
.rad-dekk .info { min-width: 0; }
.thumb { position: relative; width: 72px; height: 72px; border: 0; background: transparent; padding: 0; cursor: zoom-in; border-radius: 8px; }
.thumb:hover { background: var(--flate-2); }
.thumb img { width: 72px; height: 72px; object-fit: contain; display: block; }
.thumb .ikkebilde { display: block; width: 60px; height: 60px; margin: 6px; border-radius: 50%; border: 9px solid var(--linje-svak); background: var(--flate-2); }
.thumb .zoom { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--gul); color: var(--navy);
  font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.rad-dekk .merke { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tekst-svak); font-weight: 700; }
.rad-dekk .navn { font-weight: 700; color: var(--navy); font-size: 15.5px; line-height: 1.3; }
.rad-dekk .lapper, .lys-tekst .lapper { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.rad-dekk .handling { display: flex; align-items: center; gap: 16px; }
.rad-dekk .pris { font-size: 22px; font-weight: 800; color: var(--navy); white-space: nowrap; text-align: right; line-height: 1.1; }
.rad-dekk .pris small { display: block; font-size: 12px; font-weight: 500; color: var(--tekst-svak); }
.rad-dekk .kjop { white-space: nowrap; }
.antallfelt { display: flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--tekst-svak); font-weight: 700; }
.rad-dekk.sett .navn { font-size: 14.5px; }
.pos { display: inline-block; min-width: 46px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--tekst-svak); font-weight: 700; }
.pris-linje { display: flex; justify-content: space-between; gap: 10px; font-size: 18px; }
.pris-linje span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--tekst-svak); font-weight: 700; align-self: center; }
.lys-tekst .pris-linje { font-size: 22px; }
.antallfelt.par { flex-direction: column; align-items: stretch; gap: 4px; }
.antallfelt.par label { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.antallfelt.par input { width: 56px; padding: 5px 4px; font-size: 14px; }
/* Dekktesten */
.lenkeknapp { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--navy); text-decoration: underline; cursor: pointer; }
.lenkeknapp:hover { color: var(--navy-lys); }
.filtre .lenkeknapp { margin-left: auto; }
.lys-kort.test-kort { display: block; max-width: 620px; }   /* etter .lys-kort i kaskaden: må vinne over grid */
.test-topp { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; padding-right: 30px; }
.test-topp .merke { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tekst-svak); font-weight: 700; }
.fremdrift { height: 8px; background: var(--linje-svak); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.fremdrift div { height: 100%; background: var(--gul); transition: width .2s; }
.test-kort h2 { font-size: 21px; margin: 6px 0 14px; }
.valgliste { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.valgknapp { text-align: left; font: inherit; font-size: 15.5px; padding: 13px 16px; border: 1px solid var(--linje); border-radius: var(--radius-sm);
  background: var(--flate-2); color: var(--tekst); cursor: pointer; }
.valgknapp:hover { border-color: var(--navy); background: var(--flate); }
.valgknapp.valgt { border-color: var(--navy); background: var(--flate); box-shadow: inset 0 0 0 2px var(--navy); }
.forslagkort { display: flex; gap: 18px; align-items: center; background: var(--flate-2); border: 1px solid var(--linje);
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 10px 0 14px; }
.forslagkort img { width: 120px; height: 120px; object-fit: contain; flex: 0 0 auto; }
.forslagkort .ikkebilde { display: block; width: 96px; height: 96px; border-radius: 50%; border: 12px solid var(--linje-svak); background: var(--flate); flex: 0 0 auto; }
.forslagkort .merke { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tekst-svak); font-weight: 700; }
.forslagkort .navn { font-weight: 800; color: var(--navy); font-size: 17px; line-height: 1.3; margin: 2px 0 6px; }
.forslagkort .lapper { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.forslagkort .pris { font-size: 24px; font-weight: 800; color: var(--navy); }
.forslagkort .pris small { font-size: 13px; font-weight: 500; color: var(--tekst-svak); }
.forslagkort .pris .pris-linje { font-size: 20px; }
@media (max-width: 560px) { .forslagkort { flex-direction: column; align-items: flex-start; } }
.anbefaling { background: var(--gul); border-radius: var(--radius-sm); padding: 12px 16px; margin: 14px 0 0; display: flex; justify-content: space-between;
  gap: 12px; align-items: center; flex-wrap: wrap; font-size: 15px; color: var(--navy); }
.anbefaling .lenkeknapp { font-size: 13.5px; }
.bil-alternativer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-size: 14px; color: var(--tekst-svak); }
.bil-alternativer .under { flex-basis: 100%; }
.tommeknapp { font: inherit; font-size: 13.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--linje);
  background: var(--flate-2); color: var(--tekst); cursor: pointer; }
.tommeknapp:hover { border-color: var(--navy); }
.tommeknapp.aktiv { background: var(--navy); border-color: var(--navy); color: #fff; }
.bil-merknad { font-size: 14px; color: var(--tekst-svak); margin-top: 6px; line-height: 1.5; }
.dimknapp { font: inherit; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--navy);
  background: var(--flate); color: var(--navy); cursor: pointer; margin: 0 2px; }
.dimknapp:hover { background: var(--navy); color: var(--gul); }
.antallfelt input { width: 60px; padding: 8px 6px; border: 1px solid var(--linje); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; text-align: center; background: var(--flate); color: var(--tekst); }

.lys { position: fixed; inset: 0; background: rgba(0, 37, 49, .62); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.lys[hidden] { display: none; }
.lys-kort { background: #fff; border-radius: var(--radius); padding: 26px; max-width: 640px; width: 100%; display: grid;
  grid-template-columns: 220px 1fr; gap: 22px; align-items: center; position: relative; box-shadow: var(--skygge); }
.lys-kort img { width: 220px; height: 220px; object-fit: contain; }
.lys-lukk { position: absolute; right: 10px; top: 4px; background: none; border: 0; font-size: 30px; color: var(--tekst-svak); cursor: pointer; font-family: inherit; }
.lys-tekst .merke { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tekst-svak); font-weight: 700; }
.lys-tekst .navn { font-weight: 800; color: var(--navy); font-size: 19px; margin: 2px 0 6px; line-height: 1.3; }
.lys-tekst .pris { font-size: 26px; font-weight: 800; color: var(--navy); margin: 12px 0 14px; }
.lys-tekst .pris small { font-size: 13px; font-weight: 500; color: var(--tekst-svak); }
.lys-knapper { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .topp-rad { grid-template-columns: 1fr; gap: 12px; }
  .butikkort { padding: 12px 14px; }
  .kart { width: 60px; height: 60px; }
  .butikknavn { font-size: 16px; }
  .rad-dekk { grid-template-columns: 56px 1fr; padding: 12px; gap: 10px 12px; }
  .thumb, .thumb img { width: 56px; height: 56px; }
  .thumb .ikkebilde { width: 46px; height: 46px; margin: 5px; border-width: 7px; }
  .rad-dekk .handling { grid-column: 1 / -1; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; }
  .rad-dekk .pris { text-align: left; }
  .rad-dekk.sett .kjop { flex: 1 1 100%; }   /* sett: pris + antall på én rad, knappen under i full bredde */
  .lys-kort { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .lys-kort img { margin: 0 auto; width: 180px; height: 180px; }
  .lys-tekst .lapper, .lys-knapper { justify-content: center; }
}

@media (max-width: 560px) {
  .topp img { height: 56px; }
  .topp-inn { min-height: 76px; }
  .kort { padding: 16px; }
  .treff { grid-template-columns: 1fr; }
}
