/* AutoPrime — clean light theme */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --accent: #f59e0b;
    --ink: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f8fafc;
    --surface: #ffffff;
    --ok: #16a34a;
    --err: #dc2626;
    --wa: #22c55e;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.3rem; border-radius: 10px; border: 1.5px solid transparent;
    font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.btn--primary:hover { background: var(--primary-dark); color: #fff; }
.btn--outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #16a34a; color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .45rem .9rem; font-size: .85rem; }
.link { font-weight: 700; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--primary-soft); color: var(--text); font-size: .85rem; border-bottom: 1px solid #dbeafe; }
.topbar__inner { display: flex; gap: 1.5rem; padding-top: .4rem; padding-bottom: .4rem; }
.topbar a { color: var(--ink); font-weight: 600; }

.header { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.logo { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.logo small { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.logo__mark { width: 40px; height: 40px; border-radius: 11px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.logo__mark svg { width: 26px; height: 26px; }

.search { flex: 1; max-width: 420px; display: flex; margin-left: auto; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; transition: border-color .15s; }
.search:focus-within { border-color: var(--primary); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; padding: .6rem 1rem; font: inherit; font-size: .92rem; outline: none; min-width: 0; }
.search button { border: 0; background: transparent; padding: 0 1rem; color: var(--muted); cursor: pointer; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { padding: .5rem .85rem; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-soft); }
.nav a.nav__cta { background: var(--primary); color: #fff; margin-left: .25rem; }
.nav a.nav__cta:hover, .nav a.nav__cta.active { background: var(--primary-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, #eff6ff 0%, #ffffff 55%, #fff7ed 100%); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding-top: 4rem; padding-bottom: 4rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); background: #fff; border: 1px solid #dbeafe; padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.accent { color: var(--primary); }
.hero p { font-size: 1.08rem; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2rem; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 2rem; }
.hero__stats strong { display: block; font-size: 1.5rem; color: var(--ink); font-weight: 800; }
.hero__stats span { font-size: .85rem; color: var(--muted); }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(37, 99, 235, .12)); }

/* ---------- Features strip ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -1.75rem; position: relative; }
.feature { display: flex; gap: .75rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.feature > span { font-size: 1.4rem; line-height: 1; }
.feature strong { color: var(--ink); font-size: .95rem; }
.feature p { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding-top: 3.5rem; }
.section:last-of-type { padding-bottom: 3.5rem; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.section__head h2 { margin: 0; }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat { --c: var(--primary); display: flex; flex-direction: column; gap: .2rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, #fff); color: var(--ink); }
.cat__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); margin-bottom: .6rem; }
.cat__icon svg { width: 32px; height: 32px; }
.cat small { color: var(--muted); }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; display: block; }
.card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.card__cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card__title { font-size: .98rem; margin: 0; flex: 1; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--primary); }
.card__price { display: flex; align-items: baseline; gap: .5rem; margin: .25rem 0 .6rem; }
.card__price strong { font-size: 1.15rem; color: var(--ink); }
.card__price s, .product__price s { color: var(--muted); font-size: .88rem; }

.media { --c: var(--primary); display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--c);
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 14%, #fff) 0, transparent 55%),
        linear-gradient(160deg, color-mix(in srgb, var(--c) 7%, #fff), #f8fafc); }
.media svg { width: 38%; height: auto; transition: transform .25s; }
.card:hover .media svg { transform: scale(1.06) rotate(-2deg); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--large { aspect-ratio: 1 / 1; border-radius: var(--radius); border: 1px solid var(--line); }
.media--large svg { width: 45%; }

.badge { position: absolute; top: .75rem; left: .75rem; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; padding: .25rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.off { position: absolute; top: .75rem; right: .75rem; background: #fff; color: var(--ok); font-size: .75rem; font-weight: 800; padding: .25rem .55rem; border-radius: 999px; border: 1px solid #bbf7d0; }
.off--inline { position: static; }

/* ---------- CTA band ---------- */
.cta-band { margin-top: 3.5rem; background: linear-gradient(120deg, #dbeafe, #eff6ff 60%, #fef3c7); border-top: 1px solid #dbeafe; border-bottom: 1px solid #dbeafe; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.cta-band h2 { margin-bottom: .25rem; }
.cta-band p { margin: 0; }

/* ---------- Page head ---------- */
.page-head { background: linear-gradient(135deg, #eff6ff, #fff); border-bottom: 1px solid var(--line); padding: 2.25rem 0 2rem; }
.page-head p { margin: 0; max-width: 640px; color: var(--muted); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }

/* ---------- Shop listing ---------- */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding-top: 2rem; padding-bottom: 3.5rem; align-items: start; }
.filters { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.filters__group { margin-bottom: 1.4rem; }
.filters h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .6rem; }
.chip { display: block; padding: .45rem .7rem; border-radius: 8px; color: var(--text); font-size: .92rem; font-weight: 500; }
.chip:hover { background: var(--bg); color: var(--ink); }
.chip.is-on { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
select, input, textarea { font: inherit; }
.filters select { width: 100%; padding: .6rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.results__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; color: var(--muted); }
.results__bar strong { color: var(--ink); }
.filters-toggle { display: none; }
.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; }
.pager a.is-on, .pager a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 3rem 1.5rem; }
.empty--page { margin: 3rem auto; max-width: 600px; }

/* ---------- Product detail ---------- */
.product { padding-top: 1.5rem; }
.product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product__media { position: relative; }
.product__info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: .35rem; }
.sku { color: var(--muted); font-size: .85rem; }
.product__price { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 .25rem; }
.product__price strong { font-size: 2rem; color: var(--ink); font-weight: 800; }
.note { font-size: .82rem; color: var(--muted); }
.lead { font-size: 1.02rem; margin-top: 1rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1rem; height: 1rem; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%2316a34a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.specs { margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.specs div { display: grid; grid-template-columns: 120px 1fr; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.specs dd { margin: 0; color: var(--ink); font-weight: 600; font-size: .92rem; }
.product__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; padding-top: 2rem; padding-bottom: 3.5rem; align-items: start; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: .35rem; }
.field input, .field textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); transition: border-color .15s, background .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.field textarea { resize: vertical; }
.field__err { display: block; color: var(--err); font-size: .82rem; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.1rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: .95rem; }
.alert strong { display: block; }
.alert--ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert--err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.contact__info { display: grid; gap: 1rem; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.info-card p:last-child { margin-bottom: 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #fff; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 3.5rem; }
.about__points { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---------- Footer ---------- */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 2rem; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-top: 3rem; padding-bottom: 2rem; }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .4rem; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--primary); }
.logo--footer { font-size: 1.3rem; margin-bottom: .75rem; }
.footer__bottom { border-top: 1px solid var(--line); padding: 1rem 0; color: var(--muted); font-size: .82rem; background: var(--bg); }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(34, 197, 94, .4); z-index: 60; transition: transform .15s; }
.wa-float:hover { transform: scale(1.07); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; margin-left: auto; }
    .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem; box-shadow: var(--shadow-lg); display: none; }
    .nav-open .nav { display: flex; }
    .nav a { padding: .8rem .75rem; }
    .nav a.nav__cta { margin: .5rem 0 0; text-align: center; }
    .header__inner { flex-wrap: wrap; padding-top: .6rem; padding-bottom: .6rem; min-height: 0; }
    .search { order: 3; max-width: none; flex-basis: 100%; margin: .2rem 0 0; }
    .hero__inner { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 3rem; }
    .hero__art { max-width: 420px; }
    .cats { grid-template-columns: repeat(2, 1fr); }
    .shop { grid-template-columns: 1fr; }
    .filters { position: static; display: none; }
    .filters.is-open { display: block; }
    .filters-toggle { display: inline-flex; }
    .product__grid, .contact, .about { grid-template-columns: 1fr; gap: 1.75rem; }
    .product__media { max-width: 520px; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .hide-sm, .hero__art { display: none; }
    .grid, .grid--3 { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .card__body { padding: .8rem; }
    .card__title { font-size: .88rem; }
    .card__price strong { font-size: 1rem; }
    .card .btn { padding: .55rem .5rem; font-size: .82rem; }
    .features { grid-template-columns: 1fr; }
    .row, .ticks, .about__points { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .hero__stats { gap: 1.25rem; }
    .logo small { display: none; }
    .product__actions .btn { width: 100%; }
    .contact__form { padding: 1.25rem; }
}
