/* Burda Electronics — public site. Mobile-first; breakpoints at 640px and 1024px. */
:root {
  --ink: #17191e;
  --ink-2: #3f444d;
  --muted: #6d737c;
  --line: #e6e6e9;
  --bg: #f6f6f7;
  --card: #ffffff;
  --logo-red: #ed1c24;   /* exact logo colour, for the mark */
  --brand: #e01b23;       /* buttons/fills: logo red, slightly deeper for AA contrast with white */
  --brand-dark: #b3121a;
  --brand-soft: #fdeced;
  --accent: #e01b23;      /* offers use the brand red */
  --accent-soft: #fff4f4;
  --wa: #128c4a;          /* WhatsApp action, AA contrast with white */
  --wa-dark: #0e723c;
  --ok: #1c8a4c;
  --warn: #b7791f;
  --bad: #c0392b;
  --sample: #7a4dd8;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 25, 30, .06), 0 4px 16px rgba(23, 25, 30, .06);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.3rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- sample banner ---------- */
.sample-banner { background: var(--sample); color: #fff; font-size: .82rem; padding: 8px 0; text-align: center; }
.sample-banner strong { font-weight: 700; }

/* ---------- header ---------- */
.topbar { display: none; background: var(--ink); color: #cfd9e2; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 20px; align-items: center; height: 36px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.topbar .spacer { flex: 1; }
.header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; gap: 8px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-mark { width: 26px; height: 45px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-weight: 800; font-size: 1.45rem; letter-spacing: -.035em; }
.logo-sub { font-size: .6rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--bg); }
.icon-btn .icon { width: 24px; height: 24px; }
.icon-btn.wa { color: var(--wa); }
.search { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 12px; font: inherit; color: inherit; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search button { border: 0; background: var(--brand); color: #fff; padding: 0 14px; cursor: pointer; display: flex; align-items: center; }
.header .search { margin: 0 0 10px; }
.header .search-desktop { display: none; }
.catbar { border-top: 1px solid var(--line); background: var(--card); }
.catbar ul { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.catbar ul::-webkit-scrollbar { display: none; }
.catbar a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: .9rem; }
.catbar a.active, .catbar a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.catbar .icon { width: 18px; height: 18px; }

/* ---------- drawer menu ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(23, 25, 30, .45); }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 340px); background: var(--card); padding: 16px; overflow-y: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer h3 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border-radius: 12px;
  padding: 12px 18px; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--brand); color: #fff; }
.hero .btn-primary { box-shadow: 0 6px 20px rgba(224, 27, 35, .35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); }
.btn-light { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { background: #c9d2d9; color: #4a5a68; cursor: not-allowed; }

/* ---------- sections ---------- */
main { padding-bottom: 40px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 14px 0 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { margin-top: 16px; border-radius: 20px; color: #fff; overflow: hidden; position: relative;
  background: radial-gradient(90% 120% at 100% 100%, rgba(237, 28, 36, .38) 0%, rgba(237, 28, 36, 0) 60%), linear-gradient(135deg, #1d1f25 0%, #111216 100%); }
.hero-inner { position: relative; padding: 28px 20px 24px; z-index: 1; }
.hero-kicker { color: #fff; display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--brand); padding: 5px 10px; border-radius: 999px; }
.hero h1 { font-size: 1.9rem; margin: 14px 0 8px; max-width: 16ch; }
.hero p { color: #c9ccd2; margin: 0 0 18px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: absolute; right: -30px; bottom: -40px; width: 170px; height: auto; aspect-ratio: 870 / 1497; opacity: .28; }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--card); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border: 1px solid transparent; }
.cat-tile:hover { border-color: var(--brand); }
.cat-tile .cat-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; }
.cat-tile .cat-ico .icon { width: 28px; height: 28px; }
.cat-tile strong { font-size: .95rem; }
.cat-tile span { font-size: .8rem; color: var(--muted); }

/* ---------- product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.scroller > * { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; text-decoration: none; color: inherit; border: 1px solid transparent; transition: border-color .15s; }
.card:hover { border-color: var(--brand); }
.card-img { aspect-ratio: 1 / 1; background: #f0f3f4; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-name { font-size: .92rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-model { font-family: var(--mono); font-size: .75rem; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.chip { font-size: .72rem; background: var(--bg); color: var(--ink-2); padding: 2px 7px; border-radius: 6px; }
.card-foot { margin-top: auto; padding-top: 6px; }
.price { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .85rem; margin-left: 6px; font-weight: 500; }
.price-ask { font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 1; }
.badge { font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; color: #fff; background: var(--ink); }
.badge-offer { background: var(--accent); }
.badge-sample { background: var(--sample); }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-2); }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.avail-in_stock::before { background: var(--ok); }
.avail-preorder::before { background: var(--warn); }
.avail-out_of_stock::before { background: var(--bad); }

/* ---------- services strip ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.service { display: flex; gap: 12px; align-items: flex-start; background: var(--card); padding: 14px; border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.service .icon { width: 26px; height: 26px; color: var(--brand); margin-top: 2px; }
.service strong { display: block; font-size: .92rem; }
.service span { font-size: .8rem; color: var(--muted); }

/* ---------- contact block ---------- */
.contact-card { background: var(--card); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--brand); margin-top: 2px; }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--muted); }
.notice { background: var(--accent-soft); border: 1px solid #f8cfd1; color: #7d1117; border-radius: var(--radius-sm); padding: 10px 12px; font-size: .88rem; }
.notice-sample { background: #f1ebfd; border-color: #d9c9f7; color: #4a2a91; }
.notice-ok { background: #e7f6ee; border-color: #bfe5cf; color: #14532d; }

/* ---------- catalog ---------- */
.catalog-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin: 6px 0 12px; }
.catalog-head h1 { margin: 0; font-size: 1.4rem; }
.catalog-head .count { color: var(--muted); font-size: .9rem; }
.toolbar { display: flex; gap: 8px; width: 100%; }
.toolbar select, .toolbar .btn { flex: 1; }
select, input[type="text"], input[type="number"], input[type="search"], input[type="tel"], input[type="email"], input[type="url"], textarea {
  font: inherit; color: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; width: 100%; }
.catalog-layout { display: grid; gap: 16px; }
.filters { scroll-margin-top: 150px; background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: none; }
.filters.open { display: block; }
.no-js .filters { display: block; }
.filter-group { border-bottom: 1px solid var(--line); padding: 12px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 { font-size: .85rem; margin: 0 0 8px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding: 4px 0; cursor: pointer; }
.filter-group label .n { margin-left: auto; color: var(--muted); font-size: .78rem; }
.filter-group input[type="checkbox"], .filter-group input[type="radio"] { width: 18px; height: 18px; accent-color: var(--brand); }
.range { display: flex; gap: 8px; }
.filter-actions { display: flex; gap: 8px; padding-top: 12px; }
.filter-actions .btn { flex: 1; }
.cat-links { list-style: none; margin: 0; padding: 0; }
.cat-links a { display: block; padding: 5px 0; text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.cat-links a.active { color: var(--brand-dark); font-weight: 700; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-filters a { font-size: .8rem; background: var(--brand-soft); color: var(--brand-dark); padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; }
.empty { background: var(--card); border-radius: var(--radius); padding: 32px 16px; text-align: center; color: var(--muted); }

/* ---------- product page ---------- */
.product { display: grid; gap: 20px; margin-top: 8px; }
.gallery { background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); position: relative; }
.gallery-main { aspect-ratio: 1 / 1; display: grid; place-items: center; background: #f0f3f4; border-radius: var(--radius-sm); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { border: 2px solid transparent; border-radius: 10px; padding: 0; background: #f0f3f4; width: 64px; height: 64px; flex: none; cursor: pointer; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pinfo h1 { font-size: 1.45rem; margin: 4px 0 6px; }
.pinfo .card-brand { font-size: .8rem; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--ink-2); margin-bottom: 14px; }
.meta-line code { font-family: var(--mono); font-size: .85rem; background: var(--bg); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.buybox { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.buybox .price { font-size: 1.8rem; }
.buybox .price-old { font-size: 1rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.facts li { display: flex; gap: 10px; align-items: center; }
.facts .icon { color: var(--brand); }
.key-attrs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.key-attr { background: var(--card); border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow); }
.key-attr small { display: block; color: var(--muted); font-size: .74rem; }
.key-attr strong { font-size: 1rem; }
.specs { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .92rem; }
.specs th, .specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 45%; color: var(--ink-2); font-weight: 500; background: #fafbf9; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.prose { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.prose p:first-child { margin-top: 0; }
.prose p:last-child, .prose ul:last-child { margin-bottom: 0; }
.prose ul { padding-left: 1.2em; }
.prose h2 { font-size: 1.1rem; margin-top: 1.2em; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; box-shadow: 0 -4px 16px rgba(23, 25, 30, .08); }
.sticky-buy .price { font-size: 1.15rem; white-space: nowrap; }
.sticky-buy .btn { flex: 1; padding: 12px; }
body.has-sticky { padding-bottom: 76px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: .9rem; font-weight: 500; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #b9c7d3; padding: 32px 0 24px; font-size: .9rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 24px; }
.footer h3 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer .logo { color: #fff; }
.footer .logo-sub { color: #9ba1aa; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 16px; font-size: .8rem; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  h1 { font-size: 1.9rem; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .scroller { grid-auto-columns: 31%; }
  .services { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { padding: 40px 36px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-art { width: 210px; right: 24px; bottom: -30px; opacity: .6; }
  .contact-card { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 28px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .key-attrs { grid-template-columns: repeat(3, 1fr); }
  .toolbar { width: auto; }
}

/* ---------- ≥ 1024px ---------- */
@media (min-width: 1024px) {
  .topbar { display: block; }
  .header-row { height: 72px; gap: 16px; }
  .logo { margin-right: 8px; }
  .header .search-mobile { display: none; }
  .header .search-desktop { display: flex; flex: 1; max-width: 560px; margin: 0 auto; }
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
  .cat-tile { padding: 18px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .catalog-layout .grid { grid-template-columns: repeat(3, 1fr); }
  .scroller { grid-auto-columns: calc(25% - 12px); }
  .hero-inner { padding: 56px 48px; }
  .hero h1 { font-size: 2.9rem; }
  .hero-art { width: 190px; right: 80px; top: 50%; bottom: auto; transform: translateY(-50%); opacity: 1; }
  .catalog-layout { grid-template-columns: 270px 1fr; align-items: start; }
  .filters { display: block; position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
  .filter-toggle { display: none; }
  .product { grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: start; }
  .gallery { position: sticky; top: 90px; }
  .sticky-buy { display: none; }
  body.has-sticky { padding-bottom: 0; }
  .product-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
}
