:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #2b2a27;
  --muted: #6f6a62;
  --line: #e7e1d7;
  --accent: #3f5e45;      /* skogsgrön */
  --accent-ink: #ffffff;
  --rose: #b6455c;
  --soft: #f1ebe1;
  --radius: 14px;
  /* Systemtypsnitt – inga anrop till Google Fonts (bra för GDPR och snabbhet) */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.25rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250,247,242,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; margin: 0; }
.logo span { color: var(--rose); }
.icon-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); position: relative; font-size: 1.1rem; border-radius: 8px; }
.icon-btn:hover { background: var(--soft); }
.cart-btn { margin-left: auto; }
.cart-count[hidden] { display: none; }
.cart-count { position: absolute; top: 0; right: -2px; background: var(--rose); color: #fff; font-size: .7rem; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.usp-bar { background: var(--accent); color: #eef3ec; font-size: .8rem; text-align: center; padding: 6px 16px; }

.main-nav { display: flex; gap: 4px; margin-left: 24px; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 22px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-item > a:hover, .nav-item > a.active { color: var(--rose); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.08); display: none; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.dropdown a:hover { background: var(--soft); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 110px); background: var(--bg); margin: 0; flex-direction: column; overflow-y: auto; padding: 8px 16px 40px; }
  .main-nav.open { display: flex; }
  .nav-item > a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .dropdown { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 8px 12px; background: none; }
  .logo { font-size: 1.35rem; }
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 40px 0 24px; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 32em; }
.hero-art { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 13px 26px; font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.block { width: 100%; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } .hero-art { order: -1; aspect-ratio: 16/10; } }

section { padding: 28px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }

/* Tillfälle-brickor */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; text-decoration: none; color: var(--ink); font-weight: 500; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--rose); transform: translateY(-2px); }

/* Produktrutnät */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
.card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.card .img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: var(--soft); position: relative; }
.card .img img, .card .img svg { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .img img, .card:hover .img svg { transform: scale(1.04); }
.card h3 { font-size: 1.2rem; margin: 10px 0 2px; }
.card .price { color: var(--muted); font-size: .92rem; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--surface); color: var(--ink); font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: var(--ink); text-decoration: none; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
select, input, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
select { width: auto; }
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }

/* Produktsida */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 20px 0 40px; }
.product .gallery-wrap { position: sticky; top: 120px; align-self: start; }
.product .gallery { border-radius: 20px; overflow: hidden; aspect-ratio: 1/1; background: #f4f4f2; }
.img-note { font-size: .82rem; color: var(--muted); margin: 8px 2px 0; }
.product .gallery img, .product .gallery svg { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; gap: 20px; } .product .gallery-wrap { position: static; } }
.lead { font-size: 1.05rem; color: var(--muted); }
.from-price { font-size: 1.3rem; font-weight: 600; margin: 4px 0 18px; }
.label { font-weight: 600; font-size: .9rem; margin: 22px 0 10px; display: block; }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.size { position: relative; cursor: pointer; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; text-align: center; align-items: center; }
.size input { position: absolute; opacity: 0; pointer-events: none; }
.size .s-ico { color: var(--accent); }
.size strong { font-size: 1rem; }
.size .s-price { font-weight: 600; }
.size:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, white); box-shadow: 0 0 0 1px var(--accent); }
.size:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.size-desc { font-size: .9rem; color: var(--muted); margin-top: 10px; min-height: 1.5em; }
@media (max-width: 400px) { .sizes { gap: 6px; } .size { padding: 12px 6px; } }
.addons { display: grid; gap: 8px; }
.addon { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface); cursor: pointer; }
.addon input { width: auto; accent-color: var(--accent); }
.addon span { flex: 1; }
.addon small { color: var(--muted); display: block; }
.buy-row { display: flex; gap: 10px; margin-top: 24px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { background: none; border: 0; width: 38px; height: 44px; font-size: 1.1rem; cursor: pointer; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; }
.buy-row .btn { flex: 1; }
.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.facts details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.facts summary { cursor: pointer; font-weight: 600; }
.facts p { color: var(--muted); margin: 8px 0 0; }
.note-ok { color: var(--accent); font-size: .9rem; }

/* Varukorg */
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--bg); z-index: 40; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -12px 0 30px rgba(0,0,0,.1); }
.cart-drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 30; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .thumb { width: 64px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--soft); }
.line .thumb svg, .line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .name { font-weight: 600; }
.line .meta { font-size: .85rem; color: var(--muted); }
.line .qty { margin-top: 6px; width: max-content; }
.line .qty button { width: 30px; height: 30px; }
.remove { background: none; border: 0; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; padding: 0; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { font-weight: 600; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.drawer-foot { margin-top: auto; padding-top: 16px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Kassa */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 20px 0 48px; align-items: start; }
@media (max-width: 860px) { .checkout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.panel + .panel { margin-top: 18px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 4px; }
.zone-msg { font-size: .88rem; margin-top: 6px; min-height: 1.3em; }
.zone-msg.ok { color: var(--accent); }
.zone-msg.bad { color: #b3261e; }
.form-error { background: #fdecea; color: #8c1d18; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.summary { position: sticky; top: 120px; }
.char-count { font-size: .78rem; color: var(--muted); text-align: right; }

.thanks { text-align: center; padding: 70px 0; max-width: 560px; margin: 0 auto; }
.thanks .big { font-size: 3rem; }
.info-page { max-width: 720px; padding: 30px 0 60px; }
.info-page table { width: 100%; border-collapse: collapse; margin: 14px 0; background: var(--surface); border-radius: 12px; overflow: hidden; }
.info-page td, .info-page th { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }

/* Sidfot */
.site-footer { background: #2f3a30; color: #e7ece5; margin-top: 40px; padding: 40px 0 24px; }
.site-footer .muted { color: #b9c4b7; }
.site-footer a { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: #f0a9b7; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.demo-flag { margin-top: 24px; font-size: .8rem; color: #f3d38a; }

/* Kassa – villkor och betalning */
.terms { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin: 18px 0 14px; cursor: pointer; }
.terms input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.pay-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.klarna-box { margin: 20px 0; min-height: 120px; }
.demo-pay { border: 2px dashed var(--line); border-radius: 18px; padding: 32px; text-align: center; background: var(--surface); }
.pay-step { max-width: 760px; padding-bottom: 40px; }
.from-price small { font-size: .8rem; font-weight: 400; }

/* Policysidor */
.policy { max-width: 760px; padding: 30px 0 60px; }
.policy h2 { font-size: 1.45rem; margin-top: 1.6em; }
.policy p, .policy li { color: #45423d; }
.policy .updated { color: var(--muted); font-size: .9rem; }
.policy mark { background: #fff1c2; padding: 0 4px; border-radius: 4px; }
.policy .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.company-line { font-size: .82rem; color: #b9c4b7; margin-top: 24px; }
.pay-badge { margin-top: 12px; font-size: .85rem; }
.footer-grid a { line-height: 1.9; }

/* Förtroende & informationskort */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 8px 0 12px; }
.trust > div { background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; }
.trust strong { font-size: .95rem; }
.trust span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr 1fr; } }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
@media (max-width: 760px) { .cards3 { grid-template-columns: 1fr; } }
.infocard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.infocard h3 { font-size: 1.2rem; }
.infocard p { margin: 0; color: var(--muted); font-size: .95rem; }
.infocard .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.steps { padding-left: 1.2em; }
.steps li { margin: 8px 0; }
.form-template { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.8; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; }
.pay-badge { margin-top: 14px; font-size: .85rem; color: #b9c4b7; }
.pay-badge strong { display: inline-block; border: 1px solid #b9c4b7; color: #fff; border-radius: 6px; padding: 1px 8px; margin-left: 4px; font-weight: 600; }

.areas { font-size: .82rem; margin-top: 10px; }
.areas a { color: #d7e0d5; }

.pay-title { margin: 0 0 12px; }
.pay-methods { display: grid; gap: 10px; margin-bottom: 16px; }
.pay-method-wrap { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.pay-method-wrap:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pay-method { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 14px 16px; cursor: pointer; font-weight: 600; }
.pay-method input { width: 20px; height: 20px; padding: 0; margin: 0; flex: none; accent-color: var(--accent); }
.pay-method span { flex: 1; text-align: left; }
.pay-widget { padding: 0 16px 12px; }
.pay-widget[hidden] { display: none; }
.pre { white-space: pre-line; }

/* ---------- Skapa din egen bukett ---------- */
.eb-promo { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--soft); border-radius: var(--radius); padding: 24px 28px; }
.eb-promo h2 { margin: 0 0 6px; } .eb-promo p { margin: 0; color: var(--muted); max-width: 560px; }
.eb-steps { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 22px; font-size: .9rem; color: var(--muted); }
.eb-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .78rem; margin-right: 6px; }
.eb-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.eb-h { font-size: 1.2rem; margin: 6px 0 12px; } .eb-h small { font: 400 .85rem var(--sans); color: var(--muted); }
.eb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 26px; }
.eb-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; text-align: center; transition: border-color .15s; }
.eb-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.eb-img { aspect-ratio: 1; display: grid; place-items: center; background: #f6f3ee; border-radius: 10px; overflow: hidden; }
.eb-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.eb-name { font-weight: 600; margin-top: 8px; font-size: .95rem; } .eb-color { color: var(--muted); font-size: .82rem; }
.eb-price { font-size: .88rem; margin: 4px 0 8px; }
.eb-qty { justify-content: center; margin: 0 auto; }
.eb-wraps { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.eb-wrap { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px 7px 8px; cursor: pointer; font-size: .9rem; }
.eb-wrap input { position: absolute; opacity: 0; pointer-events: none; }
.eb-wrap.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.eb-sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.eb-side { position: sticky; top: 90px; }
.eb-side h3 { margin-top: 0; }
.eb-preview { background: #f6f3ee; border-radius: 12px; min-height: 160px; display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; }
.eb-preview > img { width: 100%; display: block; }
.eb-strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; justify-content: center; }
.eb-strip div { position: relative; width: 52px; height: 52px; background: #fff; border-radius: 8px; display: grid; place-items: center; }
.eb-strip img { max-width: 46px; max-height: 46px; }
.eb-strip span { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff; font-size: .72rem; border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.eb-views { display: flex; gap: 8px; margin: 8px 0; } .eb-views .chip { cursor: pointer; }
.eb-lines { margin: 12px 0; }
.eb-small { font-size: .8rem; color: var(--muted); margin: 6px 0; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.eb-back { position: fixed; inset: 0; background: rgba(20,20,20,.55); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 16px; }
.eb-box { position: relative; background: var(--surface); border-radius: 16px; max-width: 440px; width: 100%; padding: 24px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.eb-box h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.3rem; }
.eb-box input[type=email], .eb-box input[type=text] { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; margin: 8px 0; }
.eb-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); }
.eb-check { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; margin: 8px 0; }
.eb-err { color: #a3202e; font-size: .85rem; min-height: 1.1em; margin-bottom: 6px; }
.eb-spin { width: 40px; height: 40px; border: 4px solid var(--soft); border-top-color: var(--accent); border-radius: 50%; animation: ebspin 1s linear infinite; margin: 20px auto; }
@keyframes ebspin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .eb-layout { grid-template-columns: 1fr; } .eb-side { position: static; } .eb-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }
.eb-check input { width: auto !important; flex: none; margin: 3px 0 0; padding: 0; }
.eb-addons { margin: 8px 0 14px; } .eb-side .label { display: block; margin-top: 14px; font-weight: 600; font-size: .9rem; }
