/* Webleads Shopping. Farver, fonte og komponenter følger webleads.dk (assets/css/main.css). */
:root {
  --bg: #fbfaf8;
  --ink: #111;
  --accent: #e0552b;
  --muted: #6b6760;
  --faint: #b3aea6;
  --line: #ecebe7;
  --line-strong: #d9d5ce;
  --green: #2f9e5b;
  --red: #d93025;
  --cream: #f2ede4;
  --card: #fff;
  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #fff; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 520px) { .wrap { padding-left: 16px; padding-right: 16px; } }

@keyframes vbFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes vbPop { from { opacity: 0; transform: translateY(40px) scale(.96) } to { opacity: 1; transform: none } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

/* Type */
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.04em; line-height: 1; margin: 0; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 8px; }
.dim { color: var(--faint); }
.hot { color: var(--accent); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head__title { display: flex; flex-direction: column; gap: 14px; }
.sec-head__lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 440px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; border-radius: 999px; font-weight: 700; transition: background .2s, color .2s, transform .2s; }
.btn--dark { background: var(--ink); color: #fff; padding: 15px 26px; font-size: 16px; }
.btn--dark:hover { background: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; padding: 13px 22px; font-size: 15px; }
.btn--accent:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; border: 1px solid var(--line-strong); padding: 10px 18px; font-size: 15px; }
.link { background: none; border: none; padding: 0; cursor: pointer; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--accent); }

/* Nav (som webleads.dk) */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251,250,248,0.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.nav__in { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.045em; line-height: 1; display: flex; align-items: center; gap: 0.32em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__icon { width: 1.12em; height: 1.12em; flex-shrink: 0; }
.logo__dot { color: var(--accent); }
.logo__tag { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 4px 9px; margin-left: 4px; }
.nav__links { display: flex; gap: 28px; align-items: center; font-size: 15px; font-weight: 500; }
.nav__cta { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; }
.nav__cta:hover { background: var(--accent); color: #fff; }
@media (max-width: 860px) { .nav__links a:not(.nav__cta) { display: none; } }
@media (max-width: 420px) { .nav__in { padding: 14px 16px; } .logo__tag { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(224,85,43,0.16) 0%, rgba(224,85,43,0) 62%); pointer-events: none; }
.hero__in { position: relative; max-width: 1200px; margin: 0 auto; padding: 80px 24px 56px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 24px; }
.hero__badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,158,91,0.15); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 8vw, 104px); line-height: 0.95; letter-spacing: -0.045em; margin: 0 0 36px; max-width: 12ch; }
.hero__stats { margin: 18px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .hero__in { padding: 48px 16px 36px; } }

.search { display: flex; align-items: center; gap: 10px; max-width: 760px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 8px 8px 22px; box-shadow: 0 24px 50px -30px rgba(17,17,17,0.35); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 24px 50px -24px rgba(224,85,43,0.45); }
.search svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-size: 18px; padding: 10px 0; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
@media (max-width: 520px) { .search { padding-left: 16px; } .search input { font-size: 16px; } .search .btn { padding: 13px 18px; } }

/* Shop layout */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding-top: 24px; padding-bottom: 96px; align-items: start; }
@media (max-width: 900px) { .shop { grid-template-columns: 1fr; gap: 0; } }

.filters { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.filters__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filters__head strong { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.filters fieldset { border: none; border-bottom: 1px solid var(--line); margin: 0; padding: 18px 0; }
.filters legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 12px; }
.price-row { display: flex; align-items: center; gap: 8px; }
.price-row label { flex: 1; }
.price-row input { width: 100%; border: 1px solid var(--line-strong); background: var(--card); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.checks { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow: auto; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; padding: 5px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex-shrink: 0; }
.check span { flex: 1; }
.check small { color: var(--faint); font-size: 13px; }
.filters-toggle { display: none; }
@media (max-width: 900px) {
  .filters { display: none; position: static; max-height: none; padding: 0 0 12px; }
  .filters.is-open { display: block; animation: rise .3s ease both; }
  .filters-toggle { display: inline-flex; }
}

.results__bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.results__count { margin: 0; flex: 1; color: var(--muted); font-size: 15px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select { border: 1px solid var(--line-strong); background: var(--card); border-radius: 999px; padding: 9px 14px; font-size: 15px; color: var(--ink); cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 0; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border: none; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip:hover { background: var(--accent); }

/* Produktkort */
.grid { list-style: none; margin: 0; padding: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.card { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; width: 100%; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; animation: rise .35s ease both; }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 24px 40px -28px rgba(17,17,17,0.35); }
.card__img { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__brand { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card__title { font-weight: 700; font-size: 15px; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.price small { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.card__shops { font-size: 13px; color: var(--muted); }
.card__shops b { color: var(--accent); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.tag--out { background: var(--ink); }
@media (max-width: 520px) { .card__body { padding: 12px; } .card__title { font-size: 14px; } .price { font-size: 17px; } }

.empty { text-align: center; padding: 64px 16px; color: var(--muted); }
.more { display: flex; margin: 36px auto 0; }

/* Butikker */
.merchants { padding-top: 24px; padding-bottom: 96px; border-top: 1px solid var(--line); padding-top: 80px; }
.merchant-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.merchant { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; cursor: pointer; text-align: left; transition: border-color .2s, transform .2s; }
.merchant:hover { border-color: var(--ink); transform: translateY(-2px); }
.merchant strong { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; display: block; }
.merchant span { color: var(--muted); font-size: 14px; }
.merchant .arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }

/* Om */
.about { padding-top: 80px; padding-bottom: 80px; border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; margin-top: 40px; }
.about h3 { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin: 0 0 10px; }
.about p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 16px; }

.company { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.7; color: var(--muted); }
.company strong { color: var(--ink); }
.company a { color: var(--ink); font-weight: 500; }
.company a:hover { color: var(--accent); }
.todo { background: #fff3cd; color: #8a5a00; padding: 0 4px; border-radius: 4px; }

.footer { max-width: 1200px; margin: 0 auto; padding: 0 24px 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer a { color: inherit; }
.footer a:hover { color: var(--ink); }

/* Modal med prissammenligning (som modal på webleads.dk) */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(17,17,17,0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: vbFade .3s ease both; }
.modal[hidden] { display: none; }
.modal__box { background: var(--bg); border-radius: 28px; width: 100%; max-width: 860px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; position: relative; box-shadow: 0 60px 120px -40px rgba(0,0,0,0.55); animation: vbPop .5s cubic-bezier(.2,.9,.2,1) both; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: none; background: #fff; color: var(--ink); cursor: pointer; font-size: 16px; box-shadow: 0 6px 18px -6px rgba(17,17,17,0.35); }
.modal__scroll { overflow: auto; flex: 1; overscroll-behavior: contain; }
body.is-locked { overflow: hidden; }

.pd { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 32px; }
.pd__img { background: #fff; border: 1px solid var(--line); border-radius: 22px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.pd__img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.pd__info h2 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.035em; line-height: 1.05; margin: 8px 0 12px; padding-right: 40px; }
.pd__meta { color: var(--muted); font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.pd__meta span + span::before { content: '·'; margin-right: 8px; }
.pd__desc { color: var(--muted); line-height: 1.6; font-size: 15px; margin: 16px 0 0; }
.pd__desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.offers { padding: 0 32px 32px; }
.offers h3 { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin: 0 0 14px; }
.offer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; }
.offer.is-best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.offer__shop strong { display: block; font-size: 16px; }
.offer__shop span { font-size: 13px; color: var(--muted); }
.offer__stock { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.offer__stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.offer__stock.is-out { color: var(--muted); }
.offer__stock.is-out::before { background: var(--faint); }
.offer__price { text-align: right; }
.offer__price s { display: block; font-size: 13px; color: var(--faint); }
.best { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.offers__note { font-size: 13px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
@media (max-width: 700px) {
  .pd { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .pd__img { max-width: 260px; }
  .offers { padding: 0 20px 24px; }
  .offer { grid-template-columns: 1fr auto; }
  .offer .btn { grid-column: 1 / -1; }
}
