:root {
  --pine: #12352b;
  --pine-700: #1c4a3c;
  --pine-600: #276152;
  --clay: #e2703a;
  --clay-dark: #c85c29;
  --paper: #f6f1e8;
  --paper-2: #efe7d8;
  --card: #ffffff;
  --ink: #17221d;
  --muted: #5e6a62;
  --line: #e2dccf;
  --gold: #c99a3a;
  --ok: #2f7d5b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(18,53,43,.06), 0 2px 8px rgba(18,53,43,.05);
  --shadow-md: 0 8px 30px rgba(18,53,43,.12);
  --shadow-lg: 0 24px 60px rgba(18,53,43,.22);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font: inherit; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 6px 18px rgba(226,112,58,.35); }
.btn-primary:hover { background: var(--clay-dark); }
.btn-dark { background: var(--pine); color: #fff; }
.btn-dark:hover { background: var(--pine-700); }
.btn-ghost { background: transparent; color: var(--pine); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--pine); background: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-link { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; padding: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,241,232,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--pine); font-weight: 700; }
.brand-mark { display: grid; place-items: center; color: var(--clay); }
.brand-name { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-weight: 500; }
.site-nav a { color: var(--ink); opacity: .82; transition: opacity .2s; }
.site-nav a:hover { opacity: 1; color: var(--pine); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px; position: relative;
  background: var(--pine); color: #fff; border: none; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 600;
  transition: background .2s, transform .12s;
}
.cart-btn:hover { background: var(--pine-700); }
.cart-btn:active { transform: translateY(1px); }
.cart-count { position: absolute; top: -6px; right: -6px; background: var(--clay); color: #fff; min-width: 20px; height: 20px; border-radius: 999px; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; background:
  radial-gradient(1100px 500px at 80% -10%, rgba(226,112,58,.12), transparent 60%),
  radial-gradient(900px 500px at 0% 0%, rgba(39,97,82,.10), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--pine);
  border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.hero-text h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }
.hero-text > p { font-size: 19px; color: var(--muted); max-width: 30ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink); font-weight: 500; font-size: 15px; }
.hero-points li { display: inline-flex; align-items: center; gap: 9px; }
.hero-points .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pine-600); }

/* Hero visual */
.hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.case { position: relative; width: 300px; height: 230px; background: linear-gradient(160deg, var(--pine-700), var(--pine)); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 20px; transform: rotate(-4deg); }
.case-lid { position: absolute; inset: 0 0 auto 0; height: 46px; background: rgba(255,255,255,.07); border-radius: 22px 22px 0 0; border-bottom: 2px dashed rgba(255,255,255,.18); }
.case-body { position: absolute; inset: 58px 20px 20px; display: flex; gap: 14px; align-items: flex-end; }
.pouch { flex: 1; border-radius: 12px; background: linear-gradient(170deg, #f7efe2, #e6d8c1); display: grid; place-items: center; color: var(--pine); font-family: 'Fraunces', serif; font-weight: 700; box-shadow: inset 0 2px 6px rgba(0,0,0,.08); border: 2px solid rgba(255,255,255,.5); }
.pouch span { font-size: 28px; }
.pouch-sm { height: 92px; }
.pouch-lg { height: 128px; background: linear-gradient(170deg, #f4c9a6, #e2703a); color: #fff; }
.case-latch { position: absolute; top: 40px; width: 26px; height: 16px; background: var(--gold); border-radius: 4px; box-shadow: var(--shadow-sm); }
.latch-l { left: 54px; } .latch-r { right: 54px; }
.float-chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-md); }
.chip-1 { top: 22px; right: 4px; color: var(--pine); }
.chip-2 { bottom: 26px; left: -6px; color: var(--clay-dark); }

/* ---------- Foreningsbar ---------- */
.forening-bar { background: var(--pine); color: #fff; }
.forening-inner { display: flex; align-items: center; gap: 20px 32px; padding: 22px 24px; flex-wrap: wrap; }
.forening-copy { display: flex; flex-direction: column; }
.forening-copy strong { font-size: 16px; }
.forening-copy span { color: rgba(255,255,255,.72); font-size: 14px; }
.forening-form { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.forening-form input { padding: 11px 16px; border-radius: 999px; border: none; font: inherit; min-width: 180px; }
.forening-form input:focus { outline: 2px solid var(--clay); }
.forening-bar .btn-link { color: rgba(255,255,255,.8); }
.forening-msg { width: 100%; margin: 0; font-size: 14px; font-weight: 600; min-height: 0; }
.forening-msg.ok { color: #bfe9cf; }
.forening-msg.err { color: #ffc7ad; }
.forening-bar.active { background: linear-gradient(100deg, var(--pine), var(--pine-600)); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--paper-2); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-sub { color: var(--muted); margin: 10px 0 0; font-weight: 500; }
.section-sub .pill { background: var(--clay); color: #fff; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 860px; margin: 0 auto; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-media { height: 180px; display: grid; place-items: center; background:
  radial-gradient(400px 200px at 70% 10%, rgba(226,112,58,.14), transparent),
  linear-gradient(160deg, #f1ead9, #e7dcc6); position: relative; }
.product-media .pbag { width: 108px; height: 128px; border-radius: 14px 14px 18px 18px; background: linear-gradient(170deg, #fbf4e8, #e9dcc2); border: 2px solid rgba(255,255,255,.7); box-shadow: inset 0 3px 8px rgba(0,0,0,.08), var(--shadow-sm); position: relative; display: grid; place-items: center; }
.product-media.lg .pbag { width: 128px; height: 150px; background: linear-gradient(170deg, #f6cba6, #e2703a); }
.product-media .pbag::before { content: ""; position: absolute; top: -9px; width: 46px; height: 12px; border-radius: 10px 10px 0 0; background: inherit; filter: brightness(.95); }
.product-media .pbag b { font-family: 'Fraunces', serif; color: var(--pine); font-size: 30px; }
.product-media.lg .pbag b { color: #fff; }
.product-media img { height: 100%; width: 100%; object-fit: cover; }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { font-size: 23px; }
.product-desc { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.price-now { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; color: var(--pine); }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.price-save { background: #eafaef; color: var(--ok); font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.product-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 38px; height: 42px; border: none; background: #fff; font-size: 20px; cursor: pointer; color: var(--pine); }
.stepper button:hover { background: var(--paper-2); }
.stepper input { width: 42px; text-align: center; border: none; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow-sm); }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--pine); color: #fff; font-family: 'Fraunces', serif; font-weight: 600; margin-bottom: 14px; }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Features ---------- */
.features { padding: 56px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 26px; border-left: 3px solid var(--clay); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm); }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: rgba(255,255,255,.85); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.brand--footer .brand-name { color: #fff; font-size: 26px; }
.site-footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; font-weight: 700; }
.footer-muted { color: rgba(255,255,255,.65); font-size: 14px; white-space: pre-line; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.8); }
.footer-links a:hover { color: var(--clay); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 20px; color: rgba(255,255,255,.55); font-size: 13px; }

/* ---------- Drawer / Checkout ---------- */
.overlay { position: fixed; inset: 0; background: rgba(18,34,29,.45); z-index: 50; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(460px, 100%);
  background: var(--paper); z-index: 60; transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.1,1); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-head h2 { font-size: 22px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--paper-2); }
.drawer-body { overflow-y: auto; padding: 20px 22px 28px; flex: 1; }

/* cart items */
.cart-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-thumb { width: 54px; height: 54px; border-radius: 10px; background: linear-gradient(170deg, #f7efe2, #e6d8c1); display: grid; place-items: center; font-family: 'Fraunces', serif; font-weight: 700; color: var(--pine); }
.cart-thumb.lg { background: linear-gradient(170deg, #f6cba6, #e2703a); color: #fff; }
.cart-item-name { font-weight: 600; font-size: 15px; }
.cart-item-meta { color: var(--muted); font-size: 13px; }
.cart-item-right { text-align: right; }
.cart-item-price { font-weight: 700; color: var(--pine); }
.mini-stepper { display: inline-flex; align-items: center; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.mini-stepper button { width: 28px; height: 28px; border: none; background: none; cursor: pointer; font-size: 16px; color: var(--pine); }
.mini-stepper span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }
.remove-link { background: none; border: none; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; margin-top: 4px; }

.cart-empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.cart-empty svg { opacity: .35; margin-bottom: 14px; }

.summary { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: var(--pine); }
.summary-row.muted { color: var(--muted); font-size: 13px; }
.drawer-foot { margin-top: 18px; }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: #fff; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pine-600); }
.field textarea { resize: vertical; min-height: 64px; }
.field-row { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.choice-group { display: grid; gap: 10px; margin-bottom: 18px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: var(--pine-600); }
.choice.selected { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay); background: #fff8f3; }
.choice input { margin-top: 3px; accent-color: var(--clay); }
.choice-main { font-weight: 600; }
.choice-sub { color: var(--muted); font-size: 13px; }
.choice-price { margin-left: auto; font-weight: 700; color: var(--pine); white-space: nowrap; }
.step-label { font-family: 'Fraunces', serif; font-size: 18px; margin: 20px 0 12px; display: flex; align-items: center; gap: 10px; }
.step-label::before { content: ""; width: 20px; height: 2px; background: var(--clay); }
.form-error { background: #fff0ea; color: var(--clay-dark); border: 1px solid #f6cdb8; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.back-link { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; margin-bottom: 10px; padding: 4px 0; }

/* confirmation */
.confirm-hero { text-align: center; padding: 10px 0 22px; }
.confirm-check { width: 64px; height: 64px; border-radius: 50%; background: #eafaef; display: grid; place-items: center; margin: 0 auto 16px; }
.confirm-check svg { stroke: var(--ok); }
.confirm-hero h2 { font-size: 26px; margin-bottom: 6px; }
.order-no { display: inline-block; background: var(--pine); color: #fff; font-weight: 700; letter-spacing: .04em; padding: 8px 18px; border-radius: 999px; margin-top: 8px; }
.pay-box { background: #fff; border: 1.5px solid var(--clay); border-radius: var(--radius-sm); padding: 18px; margin: 16px 0; }
.pay-box h3 { font-size: 18px; margin-bottom: 10px; color: var(--clay-dark); }
.pay-line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.pay-line:last-child { border-bottom: none; }
.pay-line b { font-weight: 700; color: var(--pine); }
.info-box { background: var(--paper-2); border-radius: var(--radius-sm); padding: 16px; font-size: 14px; color: var(--ink); margin: 14px 0; }
.info-box strong { color: var(--pine); }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--pine); color: #fff; padding: 13px 22px; border-radius: 999px; font-weight: 600; z-index: 80; box-shadow: var(--shadow-md); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { min-height: 300px; order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .site-nav { display: none; }
  .header-inner { gap: 12px; }
  .cart-btn span:not(.cart-count) { display: none; }
  .forening-form { margin-left: 0; width: 100%; }
  .forening-form input { flex: 1; min-width: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 24px; }
  .section { padding: 48px 0; }
  .field-row { grid-template-columns: 1fr; }
}
