/* =========================================================
   TuningParts.ba — glavni stilovi
   ========================================================= */
:root {
  --bg: #08090b;
  --surface: #111316;
  --surface-2: #181b1f;
  --surface-3: #23272d;
  --line: #2a2e35;
  --text: #eef1f4;
  --muted: #9ca3ad;
  --accent: #e3171e;
  --accent-hover: #ff2b32;
  --accent-soft: rgba(227, 23, 30, .14);
  --silver: linear-gradient(180deg, #ffffff 0%, #d9dde2 45%, #9aa1aa 55%, #e6e9ec 100%);
  --silver-solid: #c9ced4;
  --wa: #25d366;
  --wa-hover: #1fb957;
  --ok: #3ccf7a;
  --warn: #ffb020;
  --err: #ff5a5f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --container: 1220px;
  --font-head: 'Saira Condensed', 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--accent); color: #111; padding: .6rem 1rem; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 24px rgba(227, 23, 30, .45); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface-2); }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { background: var(--wa-hover); box-shadow: 0 8px 24px rgba(37, 211, 102, .3); }
.btn-lg { padding: 1.05rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Header ---------- */
.topbar { background: var(--accent); color: #fff; font-size: .82rem; font-weight: 600; }
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.topbar a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .topbar .hide-sm { display: none; } .topbar .container { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 15, 18, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 22px; height: 22px; }
.logo span b { color: var(--accent); }
.main-nav { display: flex; gap: .3rem; }
.main-nav a { padding: .55rem .9rem; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--text); background: var(--surface-3); }
.header-search { flex: 1; max-width: 360px; margin-left: auto; position: relative; }
.header-search input {
  width: 100%; padding: .65rem 1rem .65rem 2.6rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.header-search input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.header-search svg { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); width: 17px; color: var(--muted); pointer-events: none; }
.cart-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); transition: background .2s, border-color .2s; flex: none; }
.cart-link:hover { background: var(--surface-3); border-color: var(--muted); }
.cart-link svg { width: 21px; }
.cart-badge {
  position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-badge.has { transform: scale(1); }
.cart-badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.burger { display: none; width: 46px; height: 46px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); place-items: center; flex: none; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .3s var(--ease), background .2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: grid; }
  .header-inner { gap: .75rem; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.25rem;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: .9rem 1rem; font-size: 1.05rem; border-radius: 10px; }
}
@media (max-width: 640px) {
  .header-search { display: none; }
  .logo { margin-right: auto; font-size: 1.25rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(227,23,30,.28), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(62,155,255,.10), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 30%, #000 10%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.2rem; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(227,23,30,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(227,23,30,0); } 100% { box-shadow: 0 0 0 0 rgba(227,23,30,0); } }
.hero h1 .stroke { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

.finder { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem; box-shadow: var(--shadow); position: relative; }
.finder::before { content: ''; position: absolute; inset: -1px; border-radius: 21px; padding: 1px; background: linear-gradient(140deg, var(--accent), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.finder h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: .25rem; }
.finder p { color: var(--muted); font-size: .92rem; margin-bottom: 1.3rem; }
.finder .field + .field { margin-top: .85rem; }
.finder .btn { margin-top: 1.3rem; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: .4rem; letter-spacing: .02em; }
.field label .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a2ae' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; }
.select:disabled { opacity: .5; }
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.field.invalid .input, .field.invalid .textarea, .field.invalid .select { border-color: var(--err); box-shadow: 0 0 0 3px rgba(255,90,95,.12); }
.field-error { display: none; color: var(--err); font-size: .8rem; margin-top: .35rem; }
.field.invalid .field-error { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.check { display: flex; align-items: center; gap: .65rem; cursor: pointer; font-size: .93rem; padding: .3rem 0; user-select: none; }
.check input { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; border-radius: 5px; border: 1.5px solid var(--line); background: var(--surface-2); display: grid; place-items: center; transition: all .15s; flex: none; margin: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input[type=radio] { border-radius: 50%; }
.check input[type=radio]:checked::after { width: 7px; height: 7px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.check .count { margin-left: auto; color: var(--muted); font-size: .8rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 36rem; margin: 0; }
.section-head h2 { margin: 0 0 .35rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 600; }
.link-arrow svg { width: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 1.6rem;
  padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.section-alt .cat-card { background: var(--surface-2); }
.cat-card:hover { transform: translateY(-4px); border-color: var(--c); }
.cat-card::after { content: ''; position: absolute; width: 160px; height: 160px; right: -60px; top: -60px; border-radius: 50%; background: var(--c); opacity: .07; transition: opacity .3s, transform .4s var(--ease); }
.cat-card:hover::after { opacity: .16; transform: scale(1.2); }
.cat-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.cat-icon svg { width: 28px; height: 28px; }
.cat-card h3 { margin: 0; font-size: 1.3rem; text-transform: uppercase; }
.cat-card span { color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--surface-3); box-shadow: var(--shadow); }
.card-media {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--c) 22%, transparent), transparent 65%), var(--surface-2);
  color: var(--c);
}
.card-media svg { width: 34%; height: auto; transition: transform .45s var(--ease); filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); }
.card:hover .card-media svg { transform: scale(1.1) rotate(-4deg); }
.badge { position: absolute; top: .8rem; left: .8rem; padding: .25rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--accent); color: #fff; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.15rem 1.2rem; }
.card-meta { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.card-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; margin: .35rem 0 .2rem; }
.card-title a:hover { color: var(--accent); }
.sku { font-size: .78rem; color: var(--muted); margin: 0 0 .9rem; }
.card-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: .5rem; }
.price { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; line-height: 1; }
.price s { display: block; font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 400; margin-bottom: .2rem; }
.add-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .2s var(--ease), background .2s; flex: none; }
.add-btn:hover { background: var(--accent-hover); transform: scale(1.06); }
.add-btn svg { width: 20px; }
.add-btn[disabled] { background: var(--surface-3); color: var(--muted); cursor: not-allowed; transform: none; }
.add-btn.added { background: var(--ok); }
.stock { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 500; margin-top: .75rem; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--err); }

/* ---------- Steps / features ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: s; }
.step { position: relative; padding: 2rem 1.6rem 1.7rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: '0' counter(s); position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-head); font-size: 3.2rem; font-weight: 800; color: var(--surface-3); line-height: 1; }
.step-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1.2rem; }
.step-icon.wa { background: rgba(37,211,102,.12); color: var(--wa); }
.step-icon svg { width: 26px; }
.step h3 { font-size: 1.35rem; text-transform: uppercase; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature svg { width: 26px; color: var(--accent); flex: none; margin-top: 2px; }
.feature h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 .2rem; }
.feature p { color: var(--muted); font-size: .88rem; margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

.cta-band {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(120deg, #8e0b10, #e3171e 55%, #ff3b3b); color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cta-band::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; border: 40px solid rgba(255,255,255,.14); }
.cta-band h2 { margin: 0 0 .4rem; }
.cta-band p { margin: 0; font-weight: 500; max-width: 34rem; }
.cta-band .btn { position: relative; z-index: 1; background: #fff; color: #fff; }
.cta-band .btn:hover { background: #1a1a1a; }

/* ---------- Page header ---------- */
.page-hero { padding: 3rem 0 2.2rem; border-bottom: 1px solid var(--line); background: radial-gradient(50% 120% at 90% 0%, rgba(227,23,30,.14), transparent 60%); }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: .3rem 0 .4rem; }
.page-hero p { color: var(--muted); margin: 0; max-width: 40rem; }
.crumbs { display: flex; gap: .45rem; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 2rem; padding: 2.2rem 0 4.5rem; align-items: start; }
.filters { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; max-height: calc(100vh - 110px); overflow: auto; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.filters-head h3 { margin: 0; text-transform: uppercase; }
.text-btn { background: none; border: 0; padding: 0; color: var(--accent); font-size: .85rem; font-weight: 600; }
.filter-group { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.filter-group h4 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .7rem; }
.filter-group .select + .select { margin-top: .6rem; }
.range-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: .5rem; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.toolbar .result-count { color: var(--muted); font-size: .92rem; }
.toolbar .result-count strong { color: var(--text); }
.toolbar-right { display: flex; gap: .6rem; align-items: center; }
.toolbar .select { width: auto; padding-block: .6rem; font-size: .88rem; }
.filter-toggle { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .5rem .35rem .8rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .82rem; font-weight: 600; border: 0; }
.chip svg { width: 14px; }
.empty { text-align: center; padding: 4rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty svg { width: 54px; margin: 0 auto 1rem; color: var(--muted); }
.empty h3 { font-size: 1.6rem; text-transform: uppercase; }
.empty p { color: var(--muted); }

.drawer-close { display: none; }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 140; opacity: 0; visibility: hidden; transition: opacity .25s; }
.backdrop.show { opacity: 1; visibility: visible; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  .filters {
    position: fixed; top: 0; bottom: 0; left: 0; width: min(88vw, 340px); max-height: none; z-index: 150;
    border-radius: 0 var(--radius) var(--radius) 0; transform: translateX(-105%); transition: transform .3s var(--ease);
  }
  .filters.open { transform: none; }
  .drawer-close { display: inline-flex; }
}

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2.5rem 0 3.5rem; }
.product-media {
  position: sticky; top: 92px; aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--c) 25%, transparent), transparent 62%), var(--surface);
  border: 1px solid var(--line); color: var(--c); overflow: hidden;
}
.product-media svg { width: 42%; filter: drop-shadow(0 16px 30px rgba(0,0,0,.5)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-3deg); } }
.product-info h1 { font-size: clamp(2rem, 4vw, 3rem); margin: .4rem 0 .6rem; }
.product-info .lead { color: var(--muted); font-size: 1.05rem; }
.product-price { display: flex; align-items: baseline; gap: .8rem; margin: 1.4rem 0 .4rem; }
.product-price .price { font-size: 2.6rem; }
.product-price s { color: var(--muted); }
.buy-row { display: flex; gap: .8rem; margin: 1.6rem 0 1rem; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.qty button { width: 44px; height: 48px; border: 0; background: none; font-size: 1.25rem; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty input { width: 44px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm button { width: 34px; height: 38px; font-size: 1.05rem; }
.qty.sm input { width: 34px; font-size: .9rem; }
.buy-row .btn { flex: 1; min-width: 190px; }
.info-box { margin-top: 2rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-box h3 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .9rem 1.1rem; margin: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { padding: .75rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { color: var(--muted); font-weight: 500; width: 45%; }
.fits { display: flex; flex-wrap: wrap; gap: .45rem; padding: 1rem 1.1rem; }
.fits span { padding: .35rem .75rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; }
.notice { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.notice svg { width: 20px; color: var(--accent); flex: none; margin-top: 2px; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; gap: 2rem; } .product-media { position: static; max-height: 420px; width: 100%; } }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 420px; gap: 2rem; padding: 2.2rem 0 4.5rem; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: .8rem; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.1rem; align-items: center; padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); animation: fadeIn .35s var(--ease); }
.cart-item.removing { animation: fadeOut .3s var(--ease) forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(30px); } }
.cart-thumb { width: 84px; height: 84px; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), var(--surface-2); color: var(--c); }
.cart-thumb svg { width: 42px; }
.cart-item h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 .15rem; }
.cart-item h3 a:hover { color: var(--accent); }
.cart-item .sku { margin: 0 0 .6rem; }
.cart-item-controls { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.remove-btn { background: none; border: 0; color: var(--muted); font-size: .85rem; display: inline-flex; gap: .3rem; align-items: center; padding: .3rem; }
.remove-btn:hover { color: var(--err); }
.remove-btn svg { width: 16px; }
.line-total { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; text-align: right; white-space: nowrap; }
.line-total small { display: block; font-family: var(--font-body); font-size: .78rem; color: var(--muted); font-weight: 400; }
.summary { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; }
.summary h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; padding: .55rem 0; color: var(--muted); font-size: .95rem; }
.summary-row.total { color: var(--text); border-top: 1px solid var(--line); margin-top: .5rem; padding-top: 1rem; font-weight: 600; }
.summary-row.total strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.summary form { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.summary .radio-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.summary .fine { font-size: .8rem; color: var(--muted); text-align: center; margin: .2rem 0 0; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 1rem; flex-wrap: wrap; gap: .8rem; }
@media (max-width: 980px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-thumb { width: 64px; height: 64px; }
  .line-total { grid-column: 2; text-align: left; }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1.25rem; background: rgba(0,0,0,.65); opacity: 0; visibility: hidden; transition: opacity .25s; }
.modal.show { opacity: 1; visibility: visible; }
.modal-card { width: min(100%, 440px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; text-align: center; transform: translateY(14px) scale(.98); transition: transform .3s var(--ease); }
.modal.show .modal-card { transform: none; }
.modal-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: rgba(37,211,102,.12); color: var(--wa); }
.modal-icon svg { width: 32px; }
.modal-card h3 { font-size: 1.7rem; text-transform: uppercase; }
.modal-card p { color: var(--muted); }
.modal-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.4rem; }

/* ---------- About / contact ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-visual { aspect-ratio: 5/4; border-radius: 24px; background: radial-gradient(circle at 30% 30%, rgba(227,23,30,.4), transparent 55%), radial-gradient(circle at 80% 80%, rgba(62,155,255,.2), transparent 50%), var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); position: relative; overflow: hidden; }
.about-visual svg { width: 38%; opacity: .95; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.value { padding: 1.7rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.value svg { width: 30px; color: var(--accent); margin-bottom: 1rem; }
.value h3 { text-transform: uppercase; font-size: 1.35rem; }
.value p { color: var(--muted); margin: 0; font-size: .95rem; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats-band strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--accent); line-height: 1; }
.stats-band span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .split, .values { grid-template-columns: 1fr; } .stats-band { grid-template-columns: 1fr 1fr; row-gap: 2rem; } }

.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; padding: 2.5rem 0 4.5rem; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: .8rem; }
.contact-card { display: flex; gap: 1rem; padding: 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
a.contact-card:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.contact-card .ic.wa { background: rgba(37,211,102,.12); color: var(--wa); }
.contact-card .ic svg { width: 22px; }
.contact-card small { color: var(--muted); display: block; font-size: .8rem; }
.contact-card strong { font-weight: 600; }
.hours { width: 100%; font-size: .9rem; border-collapse: collapse; margin-top: .3rem; }
.hours td { padding: .25rem 0; }
.hours td:last-child { text-align: right; color: var(--muted); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.form-card h2 { font-size: 1.9rem; }
.form-success { display: none; text-align: center; padding: 2.5rem 1rem; }
.form-success svg { width: 64px; color: var(--ok); margin: 0 auto 1rem; }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; animation: fadeIn .4s var(--ease); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #090a0c; border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .93rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: .92rem; margin-top: 1rem; max-width: 22rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp + toast ---------- */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.4); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; }
.toast-wrap { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 2rem); }
.toast { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem .8rem 1.1rem; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .92rem; pointer-events: auto; animation: toastIn .35s var(--ease); }
.toast.hide { animation: toastOut .3s var(--ease) forwards; }
.toast svg { width: 20px; color: var(--ok); flex: none; }
.toast a { color: var(--accent); font-weight: 600; white-space: nowrap; margin-left: .4rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   TuningParts.ba — dodaci i nadogradnje stila
   ========================================================= */
h1, h2, .finder h3, .step h3, .value h3, .cat-card h3 { font-style: italic; letter-spacing: .005em; }
.silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.red { color: var(--accent); }
.cta-band .btn { background: #0b0b0c; color: #fff; }
.cta-band .btn:hover { background: #1d1f22; }
.topbar { background: linear-gradient(90deg, #8e0b10, #e3171e 50%, #8e0b10); color: #fff; }
.topbar a { color: #fff; }

/* Logo */
.logo-img { display: block; height: 30px; width: auto; mix-blend-mode: screen; }
.site-footer .logo-img { height: 34px; }
@media (max-width: 640px) { .logo-img { height: 22px; } }
.site-header { background: rgba(8, 9, 11, .86); }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(227,23,30,.7), transparent); }

/* Hero */
.hero-tp { padding-top: clamp(2rem, 5vw, 3.5rem); }
.hero-tp::before {
  background:
    radial-gradient(55% 60% at 80% 20%, rgba(227,23,30,.25), transparent 60%),
    radial-gradient(40% 50% at 10% 100%, rgba(200,205,212,.08), transparent 60%);
}
.hero-logo { width: 100%; max-width: 720px; height: auto; mix-blend-mode: screen; margin: 0 0 .4rem -2%; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); filter: drop-shadow(0 0 40px rgba(227,23,30,.15)); }
.hero-tp h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.hero-tp .stroke { -webkit-text-stroke: 1.2px var(--silver-solid); }
.speed-line { height: 2px; width: 140px; background: linear-gradient(90deg, var(--accent), transparent); margin: 0 0 1.4rem; border-radius: 2px; }

/* Kategorije sa slikom */
.cat-grid { grid-template-columns: repeat(4, 1fr); }
.cat-card { min-height: 210px; justify-content: flex-end; gap: .6rem; padding: 1.3rem; isolation: isolate; }
.cat-card::after { display: none; }
.cat-card .cat-bg { position: absolute; inset: 0; z-index: -2; background: #fff center 35% / 70% auto no-repeat; transition: transform .6s var(--ease); }
.cat-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,9,11,0) 25%, rgba(8,9,11,.92) 72%); }
.cat-card:hover .cat-bg { transform: scale(1.07); }
.cat-card:hover { border-color: var(--accent); }
.cat-card h3 { font-size: 1.35rem; }
.cat-card p { color: var(--muted); font-size: .82rem; margin: 0; line-height: 1.4; }
.cat-card span { color: var(--accent); font-weight: 600; font-size: .8rem; }

/* Kartice proizvoda sa fotografijom */
.card-media.photo { background: #fff; overflow: hidden; display: block; }
.card-media.photo img { position: absolute; top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 20px); max-width: none; object-fit: contain; transition: transform .45s var(--ease); }
.card:hover .card-media.photo img { transform: scale(1.06); }
.card-media .code-tag { position: absolute; right: .6rem; bottom: .6rem; padding: .2rem .5rem; border-radius: 6px; background: rgba(8,9,11,.85); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .04em; }
.card-media .badge { background: var(--accent); color: #fff; }
.card-media .badge.out { background: #3a3d42; }
/* Naziv do 3 reda — bez -webkit-line-clamp (Safari na iPhoneu zna sakriti takav tekst pri animaciji) */
.card-title { display: block; font-size: .95rem; line-height: 1.35; max-height: calc(1.35em * 3); overflow: hidden; word-break: break-word; }
.card-title a { display: inline; color: var(--text); }
.price.ask { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; color: var(--silver-solid); }
.card:hover { border-color: rgba(227,23,30,.5); }
.load-more-wrap { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin-top: 2rem; }
.load-more-wrap small { color: var(--muted); }

/* Produkt stranica */
.product-media.photo { background: #fff; display: block; overflow: hidden; }
.product-media.photo img { position: absolute; top: 1.5rem; left: 1.5rem; width: calc(100% - 3rem); height: calc(100% - 3rem); max-width: none; object-fit: contain; animation: none; filter: none; }
.product-price .price.ask { font-size: 1.6rem; font-family: var(--font-head); font-style: italic; }

/* Korpa */
.cart-thumb.photo { background: #fff; overflow: hidden; display: block; position: relative; }
.cart-thumb.photo img { position: absolute; top: 4px; left: 4px; width: calc(100% - 8px); height: calc(100% - 8px); max-width: none; object-fit: contain; }

/* PDF katalog */
.catalog-box {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: center;
  padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 20px; background: linear-gradient(135deg, #15171a, #0d0e10);
  border: 1px solid var(--line);
}
.catalog-box::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); }
.catalog-icon { width: 74px; height: 92px; border-radius: 10px; background: linear-gradient(160deg, #2a2d33, #16181b); border: 1px solid #3a3e45; display: grid; place-items: center; position: relative; box-shadow: 8px 8px 0 -2px #1f2226, 8px 8px 0 -1px #33363c; }
.catalog-icon b { font-family: var(--font-head); font-style: italic; font-size: 1.35rem; color: var(--accent); }
.catalog-box h3 { font-size: 1.6rem; text-transform: uppercase; font-style: italic; margin: 0 0 .3rem; }
.catalog-box p { margin: 0; color: var(--muted); }
.catalog-box .meta { color: var(--silver-solid); font-size: .85rem; font-weight: 600; margin-top: .4rem; }
.catalog-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.catalog-box.compact { grid-template-columns: auto 1fr; margin-bottom: 1.4rem; padding: 1.1rem 1.3rem; }
.catalog-box.compact .catalog-icon { width: 46px; height: 58px; box-shadow: 5px 5px 0 -2px #1f2226; }
.catalog-box.compact .catalog-icon b { font-size: .95rem; }
.catalog-box.compact h3 { font-size: 1.15rem; }
.catalog-box.compact p { font-size: .88rem; }
.catalog-box.compact .catalog-actions { grid-column: 1 / -1; justify-content: flex-start; }
@media (max-width: 860px) { .catalog-box { grid-template-columns: auto 1fr; } .catalog-actions { grid-column: 1 / -1; justify-content: flex-start; } }

.delivery-strip { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .9rem 1rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--silver-solid); font-weight: 600; font-size: .92rem; text-align: center; }
.delivery-strip svg { width: 20px; color: var(--accent); flex: none; }
.today-row td { color: var(--text) !important; font-weight: 600; }
.today-row td:first-child::after { content: ' · danas'; color: var(--accent); font-weight: 600; }
.open-status { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; margin-top: .4rem; }
.open-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.open { color: var(--ok); } .open-status.closed { color: var(--muted); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .9rem; }
.form-error-box { display: none; margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; border: 1px solid rgba(255,90,95,.4); background: rgba(255,90,95,.08); font-size: .9rem; }
.form-error-box.show { display: block; }
.form-error-box a { color: var(--accent); font-weight: 600; }
.product-info h1 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.15; }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } .cat-card { min-height: 230px; } }
/* Slike se ne razvlače preko izvorne veličine (oštriji prikaz) */
.product-media.photo { max-width: 600px; width: 100%; }
.card-media.photo img, .cart-thumb.photo img { image-rendering: auto; }
@media (max-width: 900px) { .product-media.photo { position: relative; max-height: none; aspect-ratio: 1; } }
.order-box { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .9rem; }
.order-lead { color: var(--muted); font-size: .92rem; margin: 0; }
.order-fields { list-style: none; margin: 0; padding: .9rem 1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: .4rem; font-size: .9rem; }
.order-fields li::before { content: '✓'; color: var(--wa); font-weight: 700; margin-right: .55rem; }

/* ---------- Kartice kategorija: slika gore, tekst ispod (sve veličine ekrana) ---------- */
.cat-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }
.cat-card { padding: 0; min-height: 0; gap: 0; justify-content: flex-start; overflow: hidden; }
.cat-card::before { display: none; }
.cat-card .cat-img { position: relative; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; flex: none; }
.cat-card .cat-img img { position: absolute; top: 7%; left: 7%; width: 86%; height: 86%; max-width: none; object-fit: contain; transition: transform .6s var(--ease); }
.cat-card:hover .cat-img img { transform: scale(1.07); }
.cat-card .cat-body { display: flex; flex-direction: column; gap: .4rem; padding: .9rem 1rem 1.1rem; flex: 1; }
.cat-card .cat-body h3 { font-size: 1.15rem; margin: 0; line-height: 1.1; }
.cat-card .cat-body p { font-size: .8rem; line-height: 1.4; margin: 0; color: var(--muted); }
.cat-card .cat-body span { margin-top: auto; padding-top: .3rem; }
@media (max-width: 420px) { .cat-card .cat-body p { display: none; } .cat-card .cat-body { padding: .75rem .8rem .9rem; } .cat-card .cat-body h3 { font-size: 1.05rem; } }

/* ---------- Napomena o vozilu u katalogu ---------- */
.vehicle-note { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; padding: .8rem 1rem; margin-bottom: 1rem; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(227,23,30,.35); font-size: .88rem; }
.vehicle-note strong { color: #fff; }
.vehicle-note span { color: var(--muted); }
.vehicle-note[hidden] { display: none; }

/* =========================================================
   Safari (iPhone) popravka: okviri slika ne koriste aspect-ratio,
   nego klasični "padding" trik koji radi u svim preglednicima.
   Inače Safari ne rezerviše visinu i slika prekrije naziv proizvoda.
   ========================================================= */
.card-media.photo { aspect-ratio: auto; height: 0; padding: 0 0 75% 0; }
.cat-card .cat-img { aspect-ratio: auto; height: 0; padding: 0 0 75% 0; }

/* Stranica proizvoda: slika u normalnom toku stranice (bez preklapanja) */
.product-media.photo {
  aspect-ratio: auto; height: auto; max-height: none; display: block;
  padding: 1.5rem; position: relative;
}
.product-media.photo img {
  position: static; display: block; width: 100%; height: auto;
  max-width: 100%; max-height: 560px; margin: 0 auto; object-fit: contain;
}
@media (min-width: 901px) { .product-media.photo { position: sticky; top: 92px; } }
@media (max-width: 900px) { .product-media.photo { position: relative; aspect-ratio: auto; } .product-media.photo img { max-height: 70vh; } }
.product-info { position: relative; z-index: 1; }
.privacy-note { display: flex; gap: .7rem; padding: .85rem 1rem; border-radius: 12px; background: rgba(60,207,122,.07); border: 1px solid rgba(60,207,122,.3); font-size: .8rem; line-height: 1.5; color: var(--muted); }
.privacy-note svg { width: 20px; flex: none; color: var(--ok); margin-top: 2px; }
.privacy-note strong { color: var(--text); }
/* Mobitel: stranica proizvoda bez grida — slika pa tekst, jedno ispod drugog */
@media (max-width: 900px) {
  .product-layout { display: block; }
  .product-layout > .product-media { margin-bottom: 1.6rem; }
}
@media (max-width: 900px) { .product-media, .product-media.photo { top: auto; position: relative; } }

/* Kućica za saglasnost u istom redu s tekstom */
.field label.check { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; font-weight: 500; color: var(--muted); margin: 0; letter-spacing: 0; }
.field label.check input { margin-top: 1px; }
