/* Shared shopkit styles. Brand colours and fonts come from theme.css (generated per shop). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 20px; }
.brand strong { display: block; font-size: 18px; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; }
.top-links { display: flex; gap: 20px; margin-left: auto; }
.top-links a { color: var(--ink); text-decoration: none; font-weight: 500; }
.call { font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); white-space: nowrap; }
@media (max-width: 720px) { .top-links { display: none; } .call { margin-left: auto; } }

/* hero */
.hero { background: linear-gradient(160deg, var(--brand-soft), var(--bg) 70%); padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--brand-ink); font-weight: 600; font-size: 14px; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.12; margin: 0 0 16px; letter-spacing: -0.02em; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.trust b { color: var(--ink); }
.hero-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 20px 40px -24px rgb(0 0 0 / .25); display: grid; gap: 18px; }
.hero-stat span { font-size: 40px; font-weight: 800; color: var(--brand); display: block; line-height: 1; }
.hero-stat small { color: var(--muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-card { display: none; } }
.hero-note { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 16px; }
.btn.primary { background: var(--brand); color: var(--on-brand); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* catalog */
main { padding: 40px 0 56px; }
.catalog-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.catalog-head h2 { margin: 0; font-size: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters select, .filters input { height: 42px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; font: inherit; background: var(--card); color: var(--ink); }
.filters input { min-width: 240px; }
@media (max-width: 600px) { .filters input { min-width: 0; width: 100%; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font: inherit; font-size: 14px; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.result-count { color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgb(0 0 0 / .35); }
.card .photo { aspect-ratio: 4 / 3; background: var(--brand-soft); position: relative; cursor: pointer; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--card); color: var(--ink); }
.badge.new { background: var(--accent); color: var(--on-accent); }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 16px; margin: 0; line-height: 1.3; cursor: pointer; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); }
.price-row { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.price { font-size: 22px; font-weight: 800; }
.price small { display: block; font-size: 11px; font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .04em; }
.card .btn { padding: 9px 14px; font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* how + contact */
.how { background: var(--card); border-block: 1px solid var(--line); padding: 48px 0; }
.how h2, .contact h2 { margin-top: 0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; padding: 20px; border-radius: 14px; background: var(--bg); display: grid; gap: 6px; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; }
.steps span { color: var(--muted); }
.contact { padding: 48px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.policy { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.policy h3 { margin-top: 0; }
.foot { padding: 24px 0 40px; color: var(--muted); font-size: 14px; }

/* dialogs */
.sheet { width: min(640px, 100% - 24px); max-height: 90vh; border: 0; border-radius: 20px; padding: 24px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .5); }
.sheet::backdrop { background: rgb(15 20 30 / .55); }
.close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); font-size: 22px; cursor: pointer; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.gallery img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
.spec-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.spec-table td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--muted); width: 45%; }
.order-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg); margin-bottom: 14px; }
.order-item img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
#order-form { display: grid; gap: 12px; }
#order-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
#order-form input:not([type=radio]):not([type=checkbox]), #order-form textarea { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.delivery { border: 1px solid var(--line); border-radius: 10px; display: flex; gap: 18px; flex-wrap: wrap; }
.delivery label { display: flex !important; align-items: center; gap: 6px; font-weight: 500 !important; }
.consent { display: flex !important; gap: 8px; align-items: start; font-weight: 400 !important; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-weight: 600; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }
.trader { font-size: 13px; margin: 0 0 6px; }
.demo-bar { background: #111827; color: #f9fafb; text-align: center; font-size: 13px; padding: 6px 12px; }
.card .photo .ph { width: 52%; height: 70%; position: absolute; inset: 15% 24%; color: var(--brand); opacity: .55; }
.badge.example { left: auto; right: 10px; background: #fef3c7; color: #92400e; }
