:root {
    --bg: #ffffff;
    --soft: #f6f6f6;
    --ink: #111111;
    --muted: #676767;
    --line: #e7e7e7;
    --brand: #111111;
    --accent: #d71920;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(0,0,0,.08);
    --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.narrow { width: min(880px, calc(100% - 36px)); }
.topline { height: 4px; background: linear-gradient(90deg, var(--ink), var(--accent)); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-grid { display: grid; grid-template-columns: auto minmax(220px, 420px) 1fr; gap: 24px; align-items: center; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; }
.brand__mark { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; }
.brand__text { font-size: 22px; white-space: nowrap; }
.search-form { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.search-form input { flex: 1; border: 0; padding: 12px 16px; min-width: 0; }
.search-form button { border: 0; background: var(--ink); color: #fff; padding: 0 18px; cursor: pointer; }
.main-nav { display: flex; gap: 18px; justify-content: flex-end; align-items: center; font-size: 14px; font-weight: 700; }
.main-nav a { color: #333; }
.main-nav a.active, .main-nav a:hover { color: var(--accent); }
.hero { background: radial-gradient(circle at top right, #f1f1f1, #fff 45%); padding: 72px 0; }
.hero__inner { display: grid; grid-template-columns: 1fr 280px; gap: 36px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-size: 12px; font-weight: 800; margin: 0 0 10px; }
h1, h2, h3 { letter-spacing: -.04em; line-height: 1.04; margin: 0 0 18px; }
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 21px; }
p { line-height: 1.65; }
.hero__text { font-size: 18px; color: var(--muted); max-width: 680px; }
.hero__actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; border-radius: 999px; padding: 13px 20px; font-weight: 800; border: 1px solid var(--accent); cursor: pointer; }
.btn:hover { background: #a80f15; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { padding: 9px 13px; font-size: 13px; }
.stats-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.stats-card strong { font-size: 44px; line-height: 1; }
.stats-card span { color: #d7d7d7; margin-bottom: 12px; }
.section { padding: 58px 0; }
.section--soft { background: var(--soft); }
.section__heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.category-grid--small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 180px 1fr; min-height: 170px; box-shadow: 0 8px 25px rgba(0,0,0,.04); }
.category-card img { width: 100%; height: 100%; object-fit: cover; background: #eee; }
.category-card div { padding: 22px; }
.category-card p { color: var(--muted); margin-bottom: 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 25px rgba(0,0,0,.04); display: flex; flex-direction: column; }
.product-card__image { aspect-ratio: 1 / 1; background: #f1f1f1; display: block; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 { font-size: 17px; margin-bottom: 2px; }
.price { font-weight: 900; color: var(--accent); font-size: 18px; margin: 0 0 10px; }
.price--large { font-size: 34px; margin: 10px 0; }
.muted { color: var(--muted); }
.page-hero { padding: 52px 0 28px; background: var(--soft); border-bottom: 1px solid var(--line); }
.intro { color: var(--muted); max-width: 840px; }
.content { line-height: 1.75; }
.content a { color: var(--accent); text-decoration: underline; }
.content table { width: 100%; border-collapse: collapse; overflow-x: auto; }
.content td, .content th { border: 1px solid var(--line); padding: 10px; }
.product-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 42px; align-items: start; }
.gallery__main { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #f2f2f2; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.gallery__thumbs img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; background: #f2f2f2; }
.product-info { position: sticky; top: 100px; }
.spec-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 24px 0; }
.spec-list div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.spec-list div:first-child { border-top: 0; }
.spec-list dt { color: var(--muted); font-weight: 700; }
.spec-list dd { margin: 0; }
.product-actions { margin: 20px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a { background: #f1f1f1; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
.big-search { display: flex; gap: 12px; margin-top: 20px; }
.big-search input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 14px 18px; font-size: 16px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.site-footer { background: #111; color: #fff; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.site-footer p, .site-footer li { color: #d7d7d7; }
.site-footer ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 9px; }
.footer-bottom { border-top: 1px solid #333; margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; color: #aaa; font-size: 13px; }
code { background: #f1f1f1; padding: 2px 5px; border-radius: 5px; }
@media (max-width: 960px) {
    .header-grid { grid-template-columns: 1fr; }
    .main-nav { justify-content: flex-start; flex-wrap: wrap; }
    .hero__inner, .product-detail__grid { grid-template-columns: 1fr; }
    .product-info { position: static; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid, .category-grid--small { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .container, .narrow { width: min(100% - 24px, 1180px); }
    .product-grid { grid-template-columns: 1fr; }
    .category-card { grid-template-columns: 1fr; }
    .category-card img { height: 180px; }
    .section__heading, .footer-bottom, .big-search { align-items: stretch; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    h1 { font-size: 38px; }
}

.notice {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
}
.notice--error {
  border-color: #e11925;
  color: #a40f18;
  background: #fff5f5;
}

/* Stage 1D polish */
.category-card img {
    object-fit: contain;
    padding: 14px;
    background: #f7f7f7;
}
.category-card:hover,
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0,0,0,.08);
}
.category-card,
.product-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card__image {
    padding: 12px;
    background: #fff;
}
.product-card__image img {
    object-fit: contain;
}
.product-card__body .muted {
    margin: 0;
    font-size: 13px;
}
.product-card__body .btn {
    margin-top: auto;
}
.content hr {
    border: 0;
    border-top: 1px solid #bdbdbd;
    margin: 18px 0;
}
.content p,
.content div {
    margin-top: 0;
}
.content br + br {
    display: none;
}
@media (max-width: 760px) {
    .product-card__image {
        aspect-ratio: 4 / 3;
    }
}

/* Stage 1E: DB-driven Bimmerplug-inspired header, dropdown menu, counters, responsive polish */
body {
    font-family: var(--font-body);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, .brand__text, .counter-item strong {
    font-family: var(--font-display);
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.utility-bar {
    background: #0f0f10;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.utility-bar__inner {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 44px;
    overflow-x: auto;
    white-space: nowrap;
}
.utility-bar__inner > a,
.utility-bar__inner > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    min-height: 28px;
    border-left: 1px solid rgba(255,255,255,.12);
}
.utility-bar__inner > :first-child { border-left: 0; padding-left: 0; }
.utility-bar__inner span span,
.utility-bar__inner a span { color: #126bdb; font-size: 15px; }
.utility-bar__cta {
    margin-left: auto;
    border: 1px solid rgba(255,255,255,.28) !important;
    border-radius: 999px;
    min-height: 30px !important;
    padding: 0 20px !important;
    color: #fff;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: 12px;
}
.benefit-bar {
    background: #0f0f10;
    color: #c8c8c8;
    border-bottom: 2px solid #126bdb;
    font-family: var(--font-menu);
}
.benefit-bar__inner {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow-x: auto;
    white-space: nowrap;
}
.benefit-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    color: #cfcfcf;
}
.benefit-item span { color: #126bdb; font-family: var(--font-body); }
.primary-header { background: #fff; }
.header-grid {
    display: grid;
    grid-template-columns: auto minmax(250px, 430px) 42px 1fr;
    gap: 24px;
    align-items: center;
    padding: 18px 0;
}
.brand__logo {
    width: auto;
    height: 46px;
    object-fit: contain;
}
.brand__text { font-weight: 900; }
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    place-items: center;
    padding: 10px;
}
.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    margin: 3px 0;
    border-radius: 10px;
}
.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
    font-family: var(--font-menu);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.nav-item { position: relative; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 18px 14px;
    color: #777;
}
.nav-link.active,
.nav-link:hover,
.nav-item:hover > .nav-link { color: var(--accent); }
.nav-caret {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1;
    padding-left: 2px;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(340px, 88vw);
    background: #fffdf9;
    border: 1px solid #d8d2ca;
    border-radius: 18px;
    box-shadow: 0 26px 55px rgba(0,0,0,.16);
    padding: 18px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 110;
    text-transform: none;
    letter-spacing: 0;
}
.nav-item:hover > .dropdown-menu,
.nav-item:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 30px;
    color: #171717;
    font-family: var(--font-menu);
    font-size: 18px;
    font-weight: 500;
}
.dropdown-menu a:hover { color: var(--accent); background: rgba(215,25,32,.05); }
.dropdown-menu em { font-style: normal; color: #777; font-size: 25px; line-height: 1; }
.hero--storefront {
    background:
        radial-gradient(circle at 82% 18%, rgba(215,25,32,.09), transparent 22%),
        linear-gradient(135deg, #ffffff 0%, #f6f6f6 55%, #ffffff 100%);
}
.counter-panel {
    background: var(--ink);
    color: #fff;
    border-radius: 22px;
    padding: 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    box-shadow: 0 25px 55px rgba(0,0,0,.16);
}
.counter-item {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 16px;
    background: rgba(255,255,255,.04);
}
.counter-item strong {
    display: block;
    font-size: clamp(32px, 4vw, 52px);
    line-height: .9;
    letter-spacing: -.05em;
}
.counter-item span {
    display: block;
    margin-top: 10px;
    color: #d9d9d9;
    font-size: 13px;
    line-height: 1.35;
}
@media (max-width: 1080px) {
    .header-grid { grid-template-columns: auto 1fr 42px; gap: 18px; }
    .search-form { grid-column: 1 / -1; order: 4; }
    .menu-toggle { display: grid; justify-self: end; }
    .main-nav {
        display: none;
        grid-column: 1 / -1;
        justify-content: flex-start;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--line);
        padding-top: 12px;
    }
    .main-nav.is-open { display: flex; }
    .nav-link { justify-content: space-between; width: 100%; padding: 14px 0; }
    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        box-shadow: none;
        border-radius: 14px;
        margin: 0 0 10px;
        padding: 8px 0;
    }
    .nav-item.is-open .dropdown-menu { display: block; }
    .dropdown-menu a { padding: 12px 18px; font-size: 17px; }
    .benefit-bar__inner { justify-content: flex-start; }
}
@media (max-width: 760px) {
    .utility-bar__inner { width: 100%; }
    .utility-bar__inner > a,
    .utility-bar__inner > span { padding: 0 14px; }
    .utility-bar__cta { display: none !important; }
    .benefit-item { font-size: 15px; }
    .header-grid { grid-template-columns: 1fr 42px; }
    .brand__text { font-size: 19px; }
    .search-form { grid-column: 1 / -1; }
    .hero { padding: 46px 0; }
    .hero__inner { gap: 24px; }
    .counter-panel { grid-template-columns: repeat(2, 1fr); padding: 16px; gap: 10px; }
    .counter-item { padding: 13px; }
    .counter-item strong { font-size: 34px; }
}
@media (max-width: 430px) {
    .counter-panel { grid-template-columns: 1fr; }
}
