:root {
  --bg: #0b0b0d;
  --bg2: #121216;
  --card: #16161b;
  --line: #26262d;
  --text: #ececef;
  --muted: #9a9aa5;
  --accent: #e9e9ee;
  --ok: #4cc38a;
  --err: #ff6b6b;
  --radius: 14px;
  --font: "Bahnschrift", "DIN Alternate", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
main { min-height: 70vh; outline: none; }

/* карбонова текстура (2x2 twill) */
.carbon {
  background-color: #101013;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.35) 0 4px, transparent 4px 8px);
  background-size: 16px 16px;
}

/* ---------- горна лента ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px); background: rgba(11,11,13,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 38px; height: 38px; color: var(--accent); display: inline-flex; }
.brand-logo svg { width: 100%; height: 100%; }
.brand-text { letter-spacing: .32em; font-size: 15px; font-weight: 600; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--text); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 13px; letter-spacing: .1em; }
.lang:hover { border-color: var(--muted); }
.ig-btn { display: inline-flex; padding: 6px; color: var(--text); opacity: .85; transition: opacity .2s; }
.ig-btn:hover { opacity: 1; }
.cart-btn { position: relative; display: inline-flex; padding: 6px; }
.cart-count { position: absolute; top: -4px; right: -6px; background: var(--accent); color: #000; font-size: 11px; font-weight: 700; border-radius: 99px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
.cart-count[data-zero="1"] { display: none; }

/* ---------- общи ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section { padding: clamp(40px, 7vw, 90px) 0; }
.eyebrow { color: var(--muted); letter-spacing: .3em; text-transform: uppercase; font-size: 12px; }
h1, h2, h3 { font-weight: 600; letter-spacing: .02em; line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: 18px; }
p { color: var(--muted); margin: 0 0 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 10px;
  background: var(--accent); color: #0b0b0d; border: 1px solid var(--accent); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; font-size: 14px; cursor: pointer; transition: transform .15s, background .2s;
}
.btn:hover { transform: translateY(-1px); background: #fff; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.muted { color: var(--muted); }
.price { font-size: 18px; font-weight: 600; }
.notice { border: 1px dashed #5a4a1f; background: #1c1709; color: #e8cf8a; padding: 10px 14px; border-radius: 10px; font-size: 14px; }

/* ---------- начало ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: clamp(48px, 8vw, 110px) 0; }
.hero-logo { width: clamp(70px, 10vw, 110px); color: var(--accent); margin-bottom: 22px; }
.hero p.lead { font-size: 18px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.usp div { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg2); }
.usp b { display: block; margin-bottom: 6px; letter-spacing: .04em; }
.usp span { color: var(--muted); font-size: 14px; }

/* ---------- продукти ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; }
.chip { border: 1px solid var(--line); background: none; padding: 7px 14px; border-radius: 99px; cursor: pointer; font-size: 14px; color: var(--muted); }
.chip.on { background: var(--accent); color: #000; border-color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.card:hover { border-color: #3a3a44; transform: translateY(-2px); }
.card .thumb { aspect-ratio: 4/3; overflow: hidden; background: #0e0e11; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .tag { font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.card h3 { margin: 0; font-size: 16px; }
.card p { font-size: 14px; margin: 0; }
.card .row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }

/* ---------- продуктова страница ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); padding: 36px 0 70px; }
.gallery .main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: #0e0e11; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 56px; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: none; opacity: .65; }
.thumbs button.on { opacity: 1; border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.opt { margin: 18px 0; }
.opt label.title { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg input { display: none; }
.seg label { border: 1px solid var(--line); padding: 8px 16px; border-radius: 10px; cursor: pointer; font-size: 14px; }
.seg input:checked + label { border-color: var(--accent); background: #1f1f26; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; }
.qty button { background: none; border: 0; width: 38px; height: 42px; cursor: pointer; font-size: 18px; }
.qty input { width: 44px; text-align: center; background: none; border: 0; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.spec { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; font-size: 14px; }
.spec div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #1c1c22; }

/* ---------- количка / поръчка ---------- */
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.line { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.line img { width: 90px; height: 68px; object-fit: cover; border-radius: 8px; }
.line .rm { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 20px; }
.summary { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.summary .r { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .r.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 600; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; padding: 30px 0 70px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: #0f0f13; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--muted); }
.field textarea { min-height: 90px; resize: vertical; }
.pay-opts { display: grid; gap: 10px; }
.pay-opts label { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.pay-opts input:checked + span { color: var(--text); }
.pay-opts label:has(input:checked) { border-color: var(--accent); background: #18181e; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check a { text-decoration: underline; }
.err { color: var(--err); font-size: 14px; min-height: 20px; }
#paypal-box { margin-top: 14px; }
.bankbox { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 15px; }
.bankbox div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid #1c1c22; }
.bankbox b { font-weight: 600; }
.ok-badge { display: inline-flex; width: 56px; height: 56px; border-radius: 99px; background: rgba(76,195,138,.12); color: var(--ok); align-items: center; justify-content: center; font-size: 28px; margin-bottom: 14px; }

/* ---------- текстови страници ---------- */
.prose { max-width: 780px; padding: 40px 0 80px; }
.prose h2 { margin-top: 28px; font-size: 22px; }
.prose p, .prose li { color: #c3c3cb; }

/* ---------- долна лента ---------- */
.footer { border-top: 1px solid var(--line); padding: 46px clamp(16px, 4vw, 48px) 26px; background: var(--bg2); margin-top: 40px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; }
.footer h4 { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin: 6px 0 12px; font-weight: 500; }
.footer a, .footer span { display: block; color: #c3c3cb; font-size: 14px; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer-brand { margin-bottom: 10px; }
.copy { max-width: 1200px; margin: 30px auto 0; font-size: 13px; color: #6d6d77; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--accent); color: #000; padding: 12px 20px; border-radius: 10px; font-weight: 600; opacity: 0; transition: all .3s; z-index: 99; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- v2: дизайн по Eventuri (премиум тъмно) + AutoTecknic (избор по шаси) ---------- */
.announce { background: #000; color: #cfcfd6; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.sel { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 13px; letter-spacing: .06em; cursor: pointer; }
.sel option { background: #111; }
.menu { display: none; background: none; border: 0; width: 34px; height: 34px; padding: 8px 5px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu span { display: block; height: 1.5px; background: var(--text); }
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,0) 0%, rgba(10,10,12,.25) 55%, rgba(10,10,12,.95) 100%), linear-gradient(90deg, rgba(10,10,12,.7) 0%, rgba(10,10,12,0) 60%); }
.hero-inner { position: relative; display: block; padding: 0 clamp(16px, 4vw, 48px) clamp(48px, 8vw, 96px); width: 100%; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); letter-spacing: .01em; text-transform: uppercase; font-weight: 600; max-width: 900px; }
.usp-strip { border-bottom: 1px solid var(--line); background: var(--bg2); }
.usp-strip .usp { grid-template-columns: repeat(4, 1fr); gap: 0; }
.usp-strip .usp div { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: none; padding: 26px 22px; }
.usp-strip .usp div:last-child { border-right: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.tile { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; filter: brightness(.55); }
.tile:hover img { transform: scale(1.06); filter: brightness(.7); }
.tile-txt { position: absolute; inset: auto 0 0 0; padding: 18px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); }
.tile-txt .tile-id { color: #fff; font-size: 40px; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.tile-txt span { color: #c3c3cb; font-size: 13px; }
.tile-cta { margin-top: 8px; letter-spacing: .14em; text-transform: uppercase; font-size: 11px !important; color: #fff !important; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.link { color: var(--text); border-bottom: 1px solid #555; padding-bottom: 1px; font-size: 14px; letter-spacing: .04em; }
.link:hover { border-color: #fff; }
.arrow { color: var(--muted); transition: transform .2s; }
.card:hover .arrow { transform: translateX(4px); color: #fff; }
.craft { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.craft-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; padding: clamp(48px, 7vw, 90px) clamp(16px, 4vw, 48px); }
.craft-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; }
.craft-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-title { font-size: clamp(26px, 3.4vw, 38px); }
.pdp-price { font-size: 28px; font-weight: 600; margin-bottom: 14px; }
fieldset.opt { border: 0; padding: 0; margin: 18px 0; }
fieldset.opt legend { padding: 0; margin-bottom: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.small { font-size: 13px; }
.summary .r.sep { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.notice.ok { border-color: #2d5a43; background: #0f1d16; color: #9fe0bf; }
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.pay-badges span { display: inline-block !important; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px !important; font-size: 11px !important; letter-spacing: .08em; color: var(--muted) !important; }
table.ship { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14px; }
table.ship th, table.ship td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.ship th { color: var(--muted); font-weight: 500; }
.hero-inner .hero-logo { margin-bottom: 18px; }

@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .usp-strip .usp { grid-template-columns: repeat(2, 1fr); }
  .usp-strip .usp div:nth-child(2) { border-right: 0; }
  .craft-inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu { display: flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: #0b0b0d; border-bottom: 1px solid var(--line); }
  .nav a { padding: 14px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); }
  .brand-text { display: none; }
  .hero-inner, .pdp, .two { grid-template-columns: 1fr; }
  .usp { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; }
  .form { grid-template-columns: 1fr; }
  .line { grid-template-columns: 70px 1fr auto; }
  .line .lt { grid-column: 2; }
}

/* ================= v3: по-изчистен премиум вид ================= */
.announce { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; letter-spacing: .16em; padding: 7px 12px; }

/* горна лента: меню вляво · лого в центъра · количка вдясно */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
.topbar .nav { grid-column: 1; grid-row: 1; margin-left: 0; justify-self: start; }
.topbar .brand { grid-column: 2; grid-row: 1; justify-self: center; }
.topbar .top-actions { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; }
.topbar .menu { grid-column: 1; grid-row: 1; justify-self: start; }
.brand-logo { width: 34px; height: 34px; }

/* заглавие: по-тънко, по-малко, повече въздух */
h1 { font-weight: 500; letter-spacing: -.005em; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); text-transform: none; font-weight: 500; line-height: 1.08; margin-bottom: 18px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero p.lead { font-size: 17px; color: #c9c9d1; max-width: 460px; }
.hero { min-height: min(82vh, 720px); align-items: center; }
.hero-inner { display: grid !important; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 48px); }
.hero-shade { background: linear-gradient(90deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.7) 45%, rgba(10,10,12,.45) 100%), linear-gradient(180deg, rgba(10,10,12,0) 60%, rgba(10,10,12,.95) 100%); }
.hero-product { position: relative; display: block; border-radius: 6px; overflow: hidden; border: 1px solid #2a2a31; aspect-ratio: 4/3; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.hero-product img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero-product:hover img { transform: scale(1.03); }
.hp-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); font-size: 14px; color: #ddd; }
.hp-cap b { color: #fff; font-weight: 500; font-size: 16px; }
.hp-tag { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: #aaa; }

/* бутони: почти прави ъгли, чисто бяло / тънък контур */
.btn { border-radius: 3px; font-weight: 500; letter-spacing: .12em; font-size: 13px; padding: 14px 26px; background: #fff; border-color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* футър: език и валута */
.foot-sel { display: flex; gap: 8px; flex-wrap: wrap; }
.foot-sel .sel { padding: 7px 10px; font-size: 13px; }
.foot-ig { display: inline-flex !important; align-items: center; gap: 8px; }

@media (max-width: 860px) {
  .topbar { grid-template-columns: auto 1fr auto; }
  .topbar .brand { justify-self: center; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-product { order: 2; }
  .announce { font-size: 10px; letter-spacing: .1em; }
}
