/* =========================================================================
   Lillehammer Utleie — premium prototype
   Designsystem: varm ivory + espresso + messing-aksent. Serif display + ren sans.
   ========================================================================= */

:root {
  /* Farger */
  --ink:        #241a20;   /* near-black, varm kullsvart */
  --charcoal:   #3a2c33;
  --muted:      #8a7480;
  --line:       #f0dde4;
  --line-soft:  #f8eef2;
  --cream:      #fff7f9;   /* sidebakgrunn — nesten hvit med rosa hint */
  --cream-deep: #ffe9f0;
  --white:      #ffffff;
  --brass:      #ff2e74;   /* rosa aksent (Pink's-stil) */
  --brass-deep: #d01a5b;
  --brass-soft: #ffe3ee;
  --sage:       #2f9e6f;   /* ledig */
  --amber:      #d68a1e;   /* få igjen */
  --rust:       #e0455f;   /* utleid */

  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 3px rgba(28,24,21,.06), 0 1px 2px rgba(28,24,21,.04);
  --shadow:     0 10px 30px -12px rgba(28,24,21,.22);
  --shadow-lg:  0 30px 60px -20px rgba(28,24,21,.35);
  --maxw:       1180px;

  /* Pink's-stil: Anton (fet, kondensert, ALL CAPS) til overskrifter, DM Sans til brødtekst. */
  --display: "Anton", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.02; letter-spacing: .01em; text-transform: uppercase; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; font-size: 1rem; }

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

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--brass-deep);
}

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 100px;
  font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brass); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brass-deep); box-shadow: var(--shadow); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-deep); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,242,234,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: baseline; gap: 2px; font-family: var(--serif); font-size: 1.42rem; letter-spacing: -.02em; }
.logo b { font-weight: 600; }
.logo .mark { color: var(--brass); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--charcoal); transition: color .15s; }
.nav-links a:hover { color: var(--brass-deep); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.cart-btn { position: relative; display: flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 100px; border: 1.5px solid var(--line); font-weight: 600; font-size: .88rem; background: var(--white); transition: border-color .15s; }
.cart-btn:hover { border-color: var(--brass); }
.cart-count { background: var(--brass); color: #fff; border-radius: 100px; min-width: 20px; height: 20px; padding: 0 6px; font-size: .72rem; display: inline-flex; align-items: center; justify-content: center; }
.link-btn { font-weight: 600; font-size: .9rem; color: var(--charcoal); white-space: nowrap; }
.link-btn:hover { color: var(--brass-deep); }

@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--cream-deep), transparent 55%),
    radial-gradient(90% 70% at 5% 110%, var(--brass-soft), transparent 50%);
  opacity: .8; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin: 18px 0 22px; color: var(--brass); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.hero h1 em { font-style: normal; color: var(--ink); -webkit-text-stroke: 0; }
.hero .lead { font-size: 1.18rem; color: var(--muted); max-width: 30ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust b { color: var(--ink); }
.ht-ico { width: 22px; height: 22px; flex: none; color: var(--brass); }

.hero-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft);
}
.hero-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.hero-card .muted { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.hero-proof { background: var(--brass-soft); color: var(--brass-deep); border-radius: 100px; padding: 9px 14px; font-size: .85rem; font-weight: 600; text-align: center; margin-bottom: 18px; }
.hero-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.hero-prod { text-align: center; }
.hero-prod-img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--cream-deep), #fff); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.hero-prod-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-prod-img svg { width: 54%; height: 54%; color: var(--brass-deep); opacity: .55; }
.hero-prod-name { font-size: .78rem; font-weight: 700; line-height: 1.2; }
.hero-prod-price { font-size: .74rem; color: var(--muted); margin-top: 2px; }
.hero-prod-price small { color: var(--muted); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 52px 0 48px; }
}

/* ---------- USP strip ---------- */
.usp { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp-item { padding: 26px 22px; display: flex; gap: 14px; align-items: flex-start; border-right: 1px solid var(--line-soft); }
.usp-item:last-child { border-right: none; }
.usp-item .ico { flex: none; width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--brass-soft); color: var(--brass-deep); }
.usp-item h4 { font-family: var(--sans); font-weight: 700; font-size: .98rem; margin-bottom: 2px; }
.usp-item p { font-size: .85rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 860px) { .usp-grid { grid-template-columns: 1fr 1fr; } .usp-item:nth-child(2){border-right:none;} }
@media (max-width: 520px) { .usp-grid { grid-template-columns: 1fr; } .usp-item { border-right: none; border-bottom: 1px solid var(--line-soft); } }

/* ---------- Seksjoner ---------- */
section.block { padding: 76px 0; }
.section-head { max-width: 56ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 12px 0 10px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Booking: datovelger ---------- */
.booking { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.date-bar { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; padding: 22px 26px; background: var(--cream); border-bottom: 1px solid var(--line); align-items: end; }
.field label { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--ink); transition: border-color .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brass); }
.date-note { padding: 0 26px; font-size: .85rem; color: var(--muted); }
.date-summary { padding: 14px 26px; background: var(--brass-soft); color: var(--brass-deep); font-weight: 600; font-size: .9rem; display: none; }
.date-summary.show { display: block; }

/* Periodevelger: Helg / Hverdager / Egne datoer */
.period-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 22px 26px; background: var(--cream); border-bottom: 1px solid var(--line); }
.period-seg button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.2;
  padding: 14px 10px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--white); color: var(--ink); font-weight: 700; font-size: .95rem; transition: all .15s;
}
.period-seg button .pico { font-size: 1.15rem; }
.period-seg button small { font-weight: 500; font-size: .76rem; color: var(--muted); }
.period-seg button:hover { border-color: var(--brass); }
.period-seg button.active { border-color: var(--brass); background: var(--brass-soft); box-shadow: var(--shadow-sm); }
.period-seg button.active small { color: var(--brass-deep); }

@media (max-width: 720px) { .date-bar { grid-template-columns: 1fr 1fr; } .date-bar .btn { grid-column: 1 / -1; } }
@media (max-width: 560px) { .period-seg { grid-template-columns: 1fr; } }

/* ---------- Booking-kalender (rullerende 8 uker, lagt opp 4 + 4) ---------- */
.calendar { padding: 22px 24px; background: var(--cream); border-bottom: 1px solid var(--line); }
.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.mc-block { min-width: 0; }
.mc-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 6px; }
.mc-weekdays span { text-align: center; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 5px; }
.mc-cell { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-weight: 600; font-size: .82rem; color: var(--ink); background: var(--white); border: 1.5px solid transparent; transition: all .12s; }
.mc-cell em { position: absolute; top: 3px; left: 0; right: 0; font-size: .52rem; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brass-deep); }
.mc-cell:not(.past):hover { border-color: var(--brass); }
.mc-cell.past { color: var(--line); background: transparent; cursor: not-allowed; }
.mc-cell.weekend:not(.past):not(.from):not(.to):not(.in-range) { color: var(--brass-deep); }
.mc-cell.today { box-shadow: inset 0 0 0 1.5px var(--brass); }
.mc-cell.in-range { background: var(--brass-soft); }
.mc-cell.from, .mc-cell.to { background: var(--brass); color: #fff; border-color: var(--brass); }
.mc-cell.from em, .mc-cell.to em { color: #fff; }

/* "Legg til alt" + antall-etikett */
.add-all-bar { padding: 4px 26px 26px; }
.qty-label { font-size: .82rem; font-weight: 600; color: var(--muted); margin-right: auto; }

@media (max-width: 720px) { .mc-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 480px) { .calendar, .add-all-bar { padding-left: 14px; padding-right: 14px; } }

/* ---------- Produktnett ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; padding: 28px 26px; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }

.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card.feature { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.card-img { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--cream-deep), #fff); display: flex; align-items: center; justify-content: center; position: relative; }
.card-img svg { width: 60%; height: 60%; color: var(--brass-deep); opacity: .55; }
.card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-photo-2 { opacity: 0; transition: opacity .3s ease; }
.card:hover .card-photo-2 { opacity: 1; }
.card-badge { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; background: var(--ink); color: var(--cream); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.22rem; margin-bottom: 3px; }
.card-body .desc { font-size: .86rem; color: var(--muted); margin-bottom: 14px; flex: 1; }
.price { font-family: var(--serif); font-size: 1.5rem; }
.price small { font-family: var(--sans); font-size: .8rem; color: var(--muted); font-weight: 500; }

.avail { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; margin: 12px 0 14px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.avail.ok { color: var(--sage); } .avail.ok .dot { background: var(--sage); }
.avail.low { color: var(--amber); } .avail.low .dot { background: var(--amber); }
.avail.none { color: var(--rust); } .avail.none .dot { background: var(--rust); }
.avail.idle { color: var(--muted); } .avail.idle .dot { background: var(--line); }

.qty-row { display: flex; align-items: center; gap: 10px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 100px; overflow: hidden; }
.stepper button { width: 38px; height: 40px; font-size: 1.2rem; color: var(--charcoal); transition: background .15s; }
.stepper button:hover:not(:disabled) { background: var(--cream); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper span { min-width: 34px; text-align: center; font-weight: 700; }
.qty-input {
  width: 48px; height: 40px; border: none; background: transparent;
  text-align: center; font-weight: 700; font-size: 1rem; color: var(--ink);
  -moz-appearance: textfield;
}
.qty-input:focus { outline: none; background: var(--cream); }
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:disabled { opacity: .4; }
.incart-note { margin-top: 10px; font-size: .82rem; font-weight: 600; color: var(--sage); }

/* ---------- Kurv (drawer) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(28,24,21,.5); backdrop-filter: blur(2px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 440px; max-width: 92vw;
  background: var(--cream); z-index: 100; box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head { padding: 22px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: var(--white); }
.drawer-head h3 { font-size: 1.4rem; }
.drawer-close { font-size: 1.7rem; color: var(--muted); line-height: 1; width: 36px; height: 36px; border-radius: 50%; transition: background .15s; }
.drawer-close:hover { background: var(--cream); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--white); }

.cart-line { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line .thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--cream-deep); flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-period { font-size: .86rem; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cart-period b { color: var(--ink); }
.cart-deal { background: #e7f3e8; color: #2f6b39; font-weight: 700; font-size: .72rem; padding: 3px 9px; border-radius: 100px; }
.totals s { color: var(--muted); font-weight: 400; }
.cart-line .thumb svg { width: 60%; height: 60%; color: var(--brass-deep); opacity: .6; }
.cart-line .meta { flex: 1; }
.cart-line .meta h4 { font-family: var(--sans); font-size: .95rem; font-weight: 700; }
.cart-line .meta .sub { font-size: .8rem; color: var(--muted); }
.cart-line .rm { font-size: .78rem; color: var(--rust); font-weight: 600; margin-top: 4px; }
.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }

.addon { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-top: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.addon.on { border-color: var(--brass); background: var(--brass-soft); }
.addon input { margin-top: 4px; accent-color: var(--brass); }
.addon .meta { flex: 1; }
.addon h4 { font-family: var(--sans); font-size: .92rem; font-weight: 700; }
.addon p { font-size: .8rem; color: var(--muted); }
.addon .amt { font-weight: 700; }

.totals { margin: 16px 0; }
.totals .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .92rem; color: var(--muted); }
.totals .row.grand { font-size: 1.25rem; color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.totals .row.grand span:last-child { font-family: var(--serif); }

/* ---------- Modal (login / checkout) ---------- */
.modal-card {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -48%) scale(.98);
  width: 480px; max-width: 94vw; max-height: 90vh; overflow-y: auto;
  background: var(--white); border-radius: var(--radius-lg); z-index: 110;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.modal-card.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-head { padding: 26px 28px 0; }
.modal-head h3 { font-size: 1.7rem; }
.modal-head p { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.modal-body { padding: 22px 28px 28px; }
.modal-body .field { margin-bottom: 14px; }

.seg { display: flex; background: var(--cream); border-radius: 100px; padding: 4px; margin-bottom: 20px; }
.seg button { flex: 1; padding: 10px; border-radius: 100px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .15s; }
.seg button.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

.pay-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-opt.on { border-color: var(--brass); background: var(--brass-soft); }
.pay-opt .vipps-logo { background: #ff5b24; color: #fff; font-weight: 800; padding: 6px 10px; border-radius: 7px; font-size: .9rem; letter-spacing: -.02em; }
.pay-opt .faktura-logo { background: var(--ink); color: var(--cream); font-weight: 800; padding: 6px 10px; border-radius: 7px; font-size: .9rem; }
.pay-opt .meta { flex: 1; }
.pay-opt h4 { font-family: var(--sans); font-size: .98rem; font-weight: 700; }
.pay-opt p { font-size: .8rem; color: var(--muted); }

/* Bekreftelse / hentekode */
.confirm { text-align: center; padding: 10px 4px; }
.confirm .check { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--sage); color: #fff; display: flex; align-items: center; justify-content: center; }
.code-box { margin: 20px 0; padding: 22px; border: 2px dashed var(--brass); border-radius: 14px; background: var(--brass-soft); }
.code-box .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--brass-deep); font-weight: 700; }
.code-box .code { font-family: var(--serif); font-size: 2.6rem; letter-spacing: .12em; color: var(--ink); margin-top: 4px; }
.confirm .pickup { font-size: .9rem; color: var(--muted); text-align: left; background: var(--cream); border-radius: 12px; padding: 16px; margin-top: 6px; }
.confirm .pickup b { color: var(--ink); }

/* ---------- "Slik fungerer det" ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 3px solid var(--brass-soft); padding-top: 16px; }
.step .num { font-weight: 800; font-size: 2.1rem; color: var(--brass); line-height: 1; letter-spacing: -.03em; }
.step .num::before { content: "0"; }
.step h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Min side ---------- */
.account-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.account-card .top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.account-card .ref { font-weight: 700; }
.account-card .status { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 100px; }
.status.kommende { background: var(--brass-soft); color: var(--brass-deep); }
.status.fullfort { background: #e3ebe3; color: var(--sage); }
.account-card .items { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: var(--cream); padding: 56px 0 30px; margin-top: 30px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
footer h4 { font-family: var(--sans); font-weight: 700; font-size: .95rem; margin-bottom: 14px; color: #fff; }
footer a, footer p { color: rgba(247,242,234,.7); font-size: .9rem; display: block; margin-bottom: 8px; }
footer a:hover { color: var(--brass); }
footer .logo { color: var(--cream); margin-bottom: 12px; }
footer .fine { border-top: 1px solid rgba(247,242,234,.15); padding-top: 22px; font-size: .82rem; color: rgba(247,242,234,.5); }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--cream); padding: 14px 22px; border-radius: 100px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); z-index: 200; opacity: 0; pointer-events: none; transition: all .25s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Chat-assistent ---------- */
.chat { max-width: 620px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; height: 560px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--brass-soft); }
.chat-ava { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--brass); color: #fff; display: flex; align-items: center; justify-content: center; }
.chat-name { font-weight: 700; font-size: .98rem; }
.chat-status { font-size: .76rem; color: var(--brass-deep); display: flex; align-items: center; gap: 6px; }
.chat-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.msg.bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--brass); color: #fff; border-bottom-right-radius: 5px; }
.msg b { font-weight: 700; }
.chat-input { padding: 14px 16px; border-top: 1px solid var(--line); background: var(--white); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chat-chip { border: 1.5px solid var(--brass); color: var(--brass-deep); background: var(--white); padding: 8px 14px; border-radius: 100px; font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .15s; }
.chat-chip:hover { background: var(--brass-soft); }
.chat-input form { display: flex; gap: 8px; flex: 1; min-width: 200px; }
.chat-input input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 100px; font-size: .92rem; background: var(--white); color: var(--ink); }
.chat-input input:focus { outline: none; border-color: var(--brass); }
.chat-send { background: var(--brass); color: #fff; border-radius: 100px; padding: 11px 18px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.chat-send:hover { background: var(--brass-deep); }
@media (max-width: 480px) { .chat { height: 70vh; } }

/* ---------- Stjerner / rating / omtaler ---------- */
.stars { color: var(--brass); letter-spacing: 2px; font-size: .95rem; }
.hero-rating { margin-top: 22px; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-rating b { color: var(--ink); }
.hero-rating .stars { font-size: 1.05rem; }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.review p { font-size: .98rem; line-height: 1.55; color: var(--charcoal); flex: 1; }
.review .who { display: flex; align-items: center; gap: 12px; }
.review .ava { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--brass-soft); color: var(--brass-deep); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.review .who b { display: block; font-size: .92rem; }
.review .who span { font-size: .82rem; color: var(--muted); }

/* Finn min ordre — resultatkort */
.order-card { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--cream); }
.order-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.order-top .ref { font-weight: 700; }
.ostatus { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; color: #fff; }
.os-pending { background: #d8b24a; color: #3a2e07; }
.os-confirmed { background: #3f73b3; }
.os-utlevert { background: #86c08a; color: #14391b; }
.os-levert { background: #3a9b8f; }
.os-kontrollert { background: #4f9d57; }
.os-avbrutt { background: #cbb6b3; color: var(--rust); }
.order-row { font-size: .92rem; margin-bottom: 6px; }
.order-row.muted { color: var(--muted); }
.order-code { display: flex; align-items: center; justify-content: space-between; background: var(--brass-soft); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.order-code span { font-size: .8rem; color: var(--brass-deep); font-weight: 600; }
.order-code b { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .1em; color: var(--ink); }

.hidden { display: none !important; }

/* =========================================================================
   ADMIN
   ========================================================================= */
.admin-tag { font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--brass); color: #fff; padding: 3px 8px; border-radius: 6px; vertical-align: middle; margin-left: 6px; }

/* Login-gate */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background:
  radial-gradient(120% 90% at 85% -10%, var(--cream-deep), transparent 55%),
  radial-gradient(90% 70% at 5% 110%, var(--brass-soft), transparent 50%), var(--cream); }
.admin-login-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px 34px; width: 400px; max-width: 92vw; box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft); }
.login-err { color: var(--rust); font-size: .86rem; text-align: center; margin-top: 12px; min-height: 1.2em; }

/* Nøkkeltall */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 30px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat-n { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--ink); }
.stat-l { font-size: .82rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Faner */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tab { padding: 12px 18px; font-weight: 600; font-size: .95rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--brass); }

/* Kort + tabell */
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 8px 18px 18px; overflow-x: auto; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 8px; }
.admin-card-head h3 { font-size: 1.3rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; padding: 12px 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 2px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 13px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .muted { color: var(--muted); }
.admin-table .sm { font-size: .8rem; }

.code-pill { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .1em; background: var(--brass-soft); color: var(--brass-deep); padding: 3px 10px; border-radius: 7px; }

/* Status-velger med fargehint */
.status-select { padding: 7px 10px; border-radius: 8px; border: 1.5px solid var(--line); font-weight: 600; font-size: .85rem; background: var(--white); cursor: pointer; }
.status-select.st-pending     { border-color: #d8b24a; background: #fdf6e3; }
.status-select.st-confirmed   { border-color: #3f73b3; background: #e8f0f9; }
.status-select.st-utlevert    { border-color: #86c08a; background: #eaf5ec; }
.status-select.st-levert      { border-color: #3a9b8f; background: #e4f1ef; }
.status-select.st-kontrollert { border-color: #4f9d57; background: #e7f3e8; }
.status-select.st-avbrutt     { border-color: #cbb6b3; background: #f6eceb; color: var(--rust); }

/* Produktrader */
.prod-name-cell { display: flex; gap: 12px; align-items: center; }
.prod-thumb { width: 44px; height: 44px; flex: none; border-radius: 9px; background: var(--cream-deep); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prod-thumb svg { width: 60%; height: 60%; color: var(--brass-deep); opacity: .65; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-thumb.upload { position: relative; cursor: pointer; }
.prod-thumb.upload:hover { box-shadow: 0 0 0 2px var(--brass); }
.thumb-cam { position: absolute; right: -5px; bottom: -5px; font-size: .62rem; background: var(--white); border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.prod-thumbs { display: flex; gap: 6px; }
.prod-thumb.alt { background: var(--cream); border: 1.5px dashed var(--line); }
.thumb-plus { font-size: 1.3rem; color: var(--muted); font-weight: 400; }
.admin-table .p-name { width: 100%; min-width: 150px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; margin-bottom: 4px; }
.admin-table .p-icon { font-size: .8rem; padding: 4px 6px; border: 1.5px solid var(--line); border-radius: 6px; color: var(--muted); }
.admin-table .num { width: 78px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; }
.admin-table input:focus, .status-select:focus { outline: none; border-color: var(--brass); }
.row-actions { display: flex; gap: 6px; white-space: nowrap; }
.new-row { background: var(--brass-soft); }
.new-row td { border-color: var(--brass); }

/* Økonomi — tjent inn (ROI) */
.roi { display: inline-block; font-weight: 700; font-size: .82rem; padding: 3px 9px; border-radius: 100px; white-space: nowrap; }
.roi-good { background: #e7f3e8; color: #2f6b39; }
.roi-mid { background: #fdf6e3; color: #8a6d1a; }
.roi-low { background: #f6eceb; color: var(--rust); }

/* Admin-kalender (ordre + beholdning) */
.kc-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 14px; }
.kc-head h3 { font-size: 1.3rem; }
.kc-nav { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); font-size: 1.2rem; line-height: 1; color: var(--ink); transition: all .15s; }
.kc-nav:hover { border-color: var(--brass); color: var(--brass-deep); }
.kc-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.kc-weekdays span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 6px; }
.kc-week { margin-bottom: 4px; }
.kc-daynums { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kc-day { min-height: 46px; border: 1px solid var(--line-soft); border-radius: 8px; padding: 5px 7px 12px; background: var(--white); position: relative; }
.kc-day.kc-out { background: var(--cream); }
.kc-day.kc-out .kc-num { color: var(--muted); opacity: .6; }
.kc-day.kc-today { border-color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass); }
.kc-num { font-size: .8rem; font-weight: 600; }
.kc-load { display: block; position: absolute; left: 7px; right: 7px; bottom: 6px; height: 4px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.kc-load i { display: block; height: 100%; border-radius: 3px; }
.kc-load.u-some i { background: var(--sage); }
.kc-load.u-high i { background: var(--amber); }
.kc-load.u-full i { background: var(--rust); }
.kc-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 4px; margin-top: 3px; }
.kc-bar { font-size: .72rem; font-weight: 600; color: #fff; padding: 2px 8px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--brass); cursor: default; }
.kc-bar.st-pending { background: #d8b24a; color: #3a2e07; }
.kc-bar.st-confirmed { background: #3f73b3; }
.kc-bar.st-utlevert { background: #86c08a; color: #14391b; }
.kc-bar.st-levert { background: #3a9b8f; }
.kc-bar.st-kontrollert { background: #4f9d57; }
.kc-bar.st-avbrutt { background: #cbb6b3; color: var(--rust); }
.kc-legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 4px 4px; font-size: .75rem; color: var(--muted); }
.kc-leg { padding: 2px 9px; border-radius: 5px; color: #fff; font-weight: 600; }
.kc-leg.st-pending { background: #d8b24a; color: #3a2e07; }
.kc-leg.st-confirmed { background: #3f73b3; }
.kc-leg.st-utlevert { background: #86c08a; color: #14391b; }
.kc-leg.st-levert { background: #3a9b8f; }
.kc-leg.st-kontrollert { background: #4f9d57; }
.kc-leg-load i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; vertical-align: middle; margin-right: 2px; }
.kc-leg-load i.u-some { background: var(--sage); }
.kc-leg-load i.u-high { background: var(--amber); }
.kc-leg-load i.u-full { background: var(--rust); }

/* Ordredetalj-modal (klikk på ordre i kalenderen) */
.adm-overlay { position: fixed; inset: 0; background: rgba(28,24,21,.5); backdrop-filter: blur(2px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.adm-overlay.show { opacity: 1; pointer-events: auto; }
.adm-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-48%) scale(.98); width: 440px; max-width: 94vw; max-height: 90vh; overflow-y: auto; background: var(--white); border-radius: var(--radius-lg); z-index: 100; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.adm-modal.show { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.adm-modal-body { padding: 26px 28px 28px; position: relative; }
.adm-close { position: absolute; top: 14px; right: 16px; font-size: 1.7rem; line-height: 1; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; }
.adm-close:hover { background: var(--cream); }
.dt-ref { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--brass-deep); }
.dt-name { font-size: 1.6rem; margin: 2px 0 16px; }
.dt-grid { display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; font-size: .92rem; margin-bottom: 18px; }
.dt-l { color: var(--muted); }
.dt-v { color: var(--ink); }
.dt-v a { color: var(--brass-deep); font-weight: 600; text-decoration: underline; }
.dt-status-label { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.adm-modal-body .status-select { width: 100%; font-size: .95rem; padding: 11px 12px; }
