/* Kerstshop storefront (01/12/2026) — static, no external resources. */
:root {
  --green: #0f3d2e; --green2: #17553f; --red: #b3262d; --red2: #8f1c22; --gold: #c9a24b;
  --bg: #faf6ee; --card: #ffffff; --ink: #1d2a24; --dim: #66736c; --line: #e6dfd0; --shadow: 0 6px 22px rgba(15, 61, 46, .10);
  --serif: Georgia, 'Times New Roman', serif; --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.testbar { background: var(--red); color: #fff; text-align: center; font-size: 14px; padding: 7px 16px; letter-spacing: .02em; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 48px); background: var(--green); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand b { display: block; font: 700 24px/1 var(--serif); letter-spacing: .01em; }
.brand small { display: block; margin-top: 3px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #f3d9a4; }
.search { flex: 1 1 220px; max-width: 520px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 21px; }
.search:focus-within { background: rgba(255, 255, 255, .2); border-color: var(--gold); }
.search svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; }
.search input::placeholder { color: rgba(255, 255, 255, .7); }
.tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang { display: flex; border: 1px solid rgba(255, 255, 255, .3); border-radius: 18px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 6px 11px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--green); }
.cartbtn { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 21px; border: 0;
  background: var(--red); color: #fff; font-weight: 600; }
.cartbtn:hover { background: var(--red2); }
.cartbtn svg { width: 20px; height: 20px; fill: currentColor; }
.cartbtn i { min-width: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--red); font-style: normal; font-size: 13px; line-height: 22px; text-align: center; }

.hero { padding: clamp(28px, 6vw, 64px) clamp(16px, 4vw, 48px); color: #fff; text-align: center;
  background:
    radial-gradient(circle at 12% 30%, rgba(201, 162, 75, .35) 0 2px, transparent 3px) 0 0 / 90px 90px,
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .28) 0 1.5px, transparent 2.5px) 0 0 / 60px 60px,
    linear-gradient(160deg, var(--green2), var(--green) 60%, #0a2a20); }
.hero h1 { margin: 0 0 8px; font: 700 clamp(30px, 5vw, 52px)/1.1 var(--serif); text-wrap: balance; }
.hero p { margin: 0 auto; max-width: 620px; color: #e9e3d2; font-size: clamp(15px, 1.6vw, 18px); text-wrap: pretty; }

main { max-width: 1280px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 48px) 56px; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: thin; }
.cats button { flex: none; padding: 7px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; white-space: nowrap; }
.cats button span { color: var(--dim); margin-left: 6px; font-size: 12px; }
.cats button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.cats button[aria-pressed="true"] span { color: #f3d9a4; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 16px; color: var(--dim); font-size: 14px; }
.bar label { display: flex; align-items: center; gap: 8px; }
.bar select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.p { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transition: transform .15s, box-shadow .15s; }
.p:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.p .ph { position: relative; aspect-ratio: 1; background: #f3efe5; border: 0; padding: 0; display: block; width: 100%; }
.p img, .pd img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ph.noimg::after, .pdimg.noimg::after { content: ''; position: absolute; inset: 30%; opacity: .25;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='37' r='21' fill='%230f3d2e'/%3E%3Crect x='27' y='8' width='10' height='9' rx='2' fill='%230f3d2e'/%3E%3C/svg%3E"); }
.p .in { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px 14px 14px; }
.p .ct { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.p h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.p .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font: 700 20px/1 var(--serif); color: var(--green); font-variant-numeric: tabular-nums; }
.add { height: 36px; padding: 0 14px; border-radius: 18px; border: 0; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; }
.add:hover { background: var(--green2); }

.empty { text-align: center; padding: 56px 16px; color: var(--dim); }
.empty svg { width: 72px; height: 72px; color: var(--green); opacity: .5; }
.empty h2 { margin: 12px 0 6px; font: 700 24px var(--serif); color: var(--ink); }
.empty p { margin: 0 auto; max-width: 460px; }

footer { padding: 26px clamp(16px, 4vw, 48px) 34px; background: var(--green); color: #d9d3c2; text-align: center; font-size: 13px; }
footer p { margin: 4px 0; }

dialog { border: 0; padding: 0; color: var(--ink); background: var(--card); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(10, 30, 22, .55); }
.x { width: 36px; height: 36px; border-radius: 18px; border: 0; background: #f0ebde; font-size: 22px; line-height: 1; }
.pd { width: min(860px, calc(100vw - 32px)); border-radius: 16px; }
.pd .w { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pdimg { position: relative; aspect-ratio: 1; background: #f3efe5; }
.pd .tx { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.pd .tx .x { align-self: flex-end; }
.pd h2 { margin: 0; font: 700 22px/1.25 var(--serif); }
.pd .price { font-size: 28px; }
.pd .meta { color: var(--dim); font-size: 14px; }
.pd .add { height: 46px; border-radius: 23px; font-size: 16px; margin-top: auto; }
.cart { width: min(430px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 18px; flex-direction: column; gap: 12px; }
.cart[open] { display: flex; }
.cart header { display: flex; align-items: center; justify-content: space-between; }
.cart h2 { margin: 0; font: 700 22px var(--serif); }
.cart .rows { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.ci { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ci .ph { position: relative; width: 56px; height: 56px; background: #f3efe5; border-radius: 8px; overflow: hidden; }
.ci img { width: 100%; height: 100%; object-fit: contain; }
.ci .nm { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ci .qty { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--dim); }
.ci .qty button { width: 26px; height: 26px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); line-height: 1; }
.ci b { font-variant-numeric: tabular-nums; }
.sum { display: flex; justify-content: space-between; font-size: 18px; padding-top: 6px; border-top: 2px solid var(--green); }
.vat, .note { margin: 0; font-size: 13px; color: var(--dim); }
.pay { height: 48px; border-radius: 24px; border: 0; background: var(--red); color: #fff; font-weight: 700; font-size: 16px; }
.pay:disabled { background: #cfc8b8; color: #fff; cursor: not-allowed; }
.note { padding: 10px 12px; background: #fbf0d9; border-left: 4px solid var(--gold); border-radius: 6px; color: var(--ink); }

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .p .row { flex-direction: column; align-items: stretch; }
  .cartbtn span { display: none; }
  .pd .w { grid-template-columns: minmax(0, 1fr); }
  .tools { margin-left: auto; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
