:root {
    --color-bg: #f5f7fb;
    --color-surface: #182231;
    --color-surface-2: #223044;
    --color-muted: #e8edf5;
    --color-text: #f8fafc;
    --color-body: #c8d1dd;
    --color-line: rgba(255, 255, 255, 0.14);
    --color-accent: #19a7ff;
    --color-accent-dark: #0876bd;
    --shadow-soft: 0 18px 55px rgba(7, 12, 18, 0.12);
    --space-page: clamp(1rem, 4vw, 3rem);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: #10151d;
    font-family: var(--font-family);
}

body.admin-bar .site-header {
    top: 32px;
}

a {
    color: inherit;
}

.site-header__top,
.site-footer__inner,
.content-band__inner,
.hero__content {
    width: min(1120px, calc(100% - var(--space-page) * 2));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    border-bottom: 1px solid rgba(10, 20, 30, 0.12);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(7, 12, 18, 0.12);
}

.site-header__top {
    min-height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.2rem;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-header__brand-logo {
    display: block;
    width: clamp(150px, 15vw, 190px);
    height: auto;
    max-height: 48px;
    object-fit: contain;
}

.site-header__nav ul,
.site-footer ul {
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-header__nav a,
.site-header__cart,
.site-footer a {
    color: #394555;
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.site-header__nav {
    justify-self: center;
}

.site-header__nav a:hover,
.site-header__cart:hover {
    color: #10151d;
}

.site-header__cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(10, 20, 30, 0.14);
    border-radius: 8px;
    background: #fff;
}

.site-header__cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: #061018;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero {
    min-height: min(680px, calc(100vh - 78px));
    display: flex;
    align-items: stretch;
    background:
        linear-gradient(90deg, rgba(10, 15, 23, 0.88) 0%, rgba(10, 15, 23, 0.72) 34%, rgba(10, 15, 23, 0.08) 68%),
        url("../images/drivegeek-hero.png") center right / cover no-repeat,
        #182231;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0 2rem;
}

.hero__copy {
    width: min(760px, 100%);
    padding: 1.4rem 0;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.96;
    letter-spacing: 0;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.34);
}

.hero p {
    max-width: 680px;
    color: #eef5ff;
    font-size: 1.18rem;
    line-height: 1.6;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.34);
}

.eyebrow {
    color: var(--color-accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero__actions,
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__proofs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 3rem;
}

.hero__proofs span {
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.1rem;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #061018;
}

.button--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
}

.content-band {
    padding: 3.8rem 0;
    background: #ffffff;
    color: #10151d;
}

.category-band {
    padding: 3.8rem 0;
    background: #f5f7fb;
    color: #10151d;
}

.category-grid {
    display: grid;
    grid-template-columns: 1.15fr repeat(3, 1fr);
    gap: 1rem;
}

.category-tile {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(10, 20, 30, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(7, 12, 18, 0.08) 0%, rgba(7, 12, 18, 0.18) 42%, rgba(7, 12, 18, 0.82) 100%),
        #ffffff;
    background-position: center;
    background-size: cover;
    color: #10151d;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(25, 167, 255, 0.34);
    box-shadow: 0 24px 70px rgba(7, 12, 18, 0.18);
}

.category-tile--main {
    color: var(--color-text);
}

.category-tile span {
    position: relative;
    z-index: 1;
    color: #7bd2ff;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.category-tile--main span {
    color: #7bd2ff;
}

.category-tile strong {
    position: relative;
    z-index: 1;
    max-width: 280px;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.1;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.46);
}

.category-tile--screen {
    background-image:
        linear-gradient(180deg, rgba(7, 12, 18, 0.04) 0%, rgba(7, 12, 18, 0.18) 42%, rgba(7, 12, 18, 0.9) 100%),
        url("../images/category-ecrans-carplay.png");
}

.category-tile--audio {
    background-image:
        linear-gradient(180deg, rgba(7, 12, 18, 0.04) 0%, rgba(7, 12, 18, 0.2) 42%, rgba(7, 12, 18, 0.86) 100%),
        url("../images/category-audio-voiture.png");
}

.category-tile--accessories {
    background-image:
        linear-gradient(180deg, rgba(7, 12, 18, 0.04) 0%, rgba(7, 12, 18, 0.16) 38%, rgba(7, 12, 18, 0.82) 100%),
        url("../images/category-accessoires.png");
}

.category-tile--fragrance {
    background-image:
        linear-gradient(180deg, rgba(7, 12, 18, 0.02) 0%, rgba(7, 12, 18, 0.18) 42%, rgba(7, 12, 18, 0.82) 100%),
        url("../images/category-parfumerie.png");
}

.product-spotlight {
    padding: 4rem 0;
    background: #ffffff;
    color: #10151d;
}

.product-spotlight__grid {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    gap: 2rem;
    align-items: center;
}

.product-spotlight h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.98;
}

.product-spotlight p {
    max-width: 650px;
    color: #4d5968;
    font-size: 1.1rem;
    line-height: 1.65;
}

.spec-list {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.spec-list li {
    min-height: 96px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(10, 20, 30, 0.1);
    border-radius: 8px;
    background: #f5f7fb;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.spec-card {
    display: grid;
    align-content: center;
    gap: 0.35rem;
}

.spec-list li.spec-card--logos {
    min-height: 128px;
    padding: 1.1rem;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(8, 13, 20, 0.96), rgba(18, 23, 32, 0.92)),
        #070c12;
}

.platform-logos {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.platform-logo {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
}

.platform-logo svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.34));
}

.platform-divider {
    width: 1px;
    height: 72px;
    background: rgba(255, 255, 255, 0.28);
}

.spec-card--accent {
    border-color: rgba(25, 167, 255, 0.22);
    background:
        linear-gradient(135deg, rgba(25, 167, 255, 0.18), rgba(245, 247, 251, 0.98)),
        #f5f7fb;
}

.spec-card--accent span {
    color: var(--color-accent-dark);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.spec-card--accent strong {
    color: #07111d;
    font-size: 1.15rem;
    line-height: 1.25;
}

.content-band--muted {
    background: var(--color-muted);
}

.content-band--dark {
    background:
        linear-gradient(135deg, #182231 0%, #253449 100%);
    color: var(--color-text);
}

.content-band h2 {
    margin: 0 0 1.4rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.feature {
    flex: 1 1 230px;
    min-height: 190px;
    padding: 1.3rem;
    border: 1px solid rgba(10, 20, 30, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 14% 20%, rgba(25, 167, 255, 0.12), transparent 28%),
        #fff;
    box-shadow: var(--shadow-soft);
}

.feature__icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(10, 20, 30, 0.08);
    background: #fff;
    color: #10151d;
}

.feature__icon svg {
    width: 42px;
    height: 42px;
}

.feature__icon img {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.feature__icon--bluetooth {
    color: #0b78ff;
}

.feature__icon--aux {
    color: #10151d;
}

.feature__icon--fm {
    color: #10151d;
}

.compatibility-form,
.postcode-checker {
    max-width: none;
    padding: 1.2rem;
    border: 1px solid rgba(10, 20, 30, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.compatibility-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.compatibility-result,
.postcode-result {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 8px;
    background: #eef7ff;
    color: #084f7b;
    font-weight: 800;
}

.installation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.2rem 0;
}

.installation-options span {
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.11);
    color: var(--color-text);
    font-weight: 800;
}

.comparison-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 1rem;
    border-bottom: 1px solid rgba(10, 20, 30, 0.12);
    text-align: left;
}

form {
    display: grid;
    gap: 1rem;
    max-width: 680px;
}

label {
    display: grid;
    gap: 0.4rem;
    font-weight: 700;
}

input,
select {
    min-height: 46px;
    width: 100%;
    border: 1px solid rgba(10, 20, 30, 0.22);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
    font: inherit;
}

.woocommerce .site-main,
.woocommerce-page .site-main {
    background: #f5f7fb;
    color: #10151d;
}

.shop-shell,
.woocommerce .content-area,
.woocommerce-page .content-area {
    width: min(1120px, calc(100% - var(--space-page) * 2));
    margin: 0 auto;
    padding: 3rem 0;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none;
    width: auto !important;
    margin: 0 !important;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid rgba(10, 20, 30, 0.1);
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.woocommerce ul.products li.product a img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: #eef2f7;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
    width: 100%;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link > img,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link > .woocommerce-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    margin: 0 auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 4.2em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 1.15rem 0 0.2rem;
    color: #10151d;
    font-size: 1rem;
    line-height: 1.35;
    text-align: center;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
    min-height: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.8rem;
    color: var(--color-accent-dark);
    font-weight: 900;
    text-align: center;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce div.product form.cart .button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--color-accent);
    color: #061018;
    font-weight: 900;
}

.woocommerce ul.products li.product a.button {
    width: min(100%, 230px);
    margin-top: auto;
    align-self: center;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce div.product form.cart .button:hover {
    background: var(--color-accent-dark);
    color: #fff;
}

.shop-shell div.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    gap: 2rem;
}

.shop-shell div.product .woocommerce-tabs,
.shop-shell div.product .related,
.shop-shell div.product .upsells {
    grid-column: 1 / -1;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    float: none;
    width: auto;
}

.woocommerce div.product .product_title {
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.02;
}

.site-footer {
    padding: 2rem 0;
    background: #121822;
    color: var(--color-body);
}

@media (max-width: 760px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .site-header__top {
        grid-template-columns: 1fr auto;
        padding: 0.8rem 0;
    }

    .site-header__nav {
        display: none;
    }

    .site-footer ul {
        flex-wrap: wrap;
    }

    .hero {
        min-height: 500px;
        background:
            linear-gradient(180deg, rgba(10, 15, 23, 0.92) 0%, rgba(10, 15, 23, 0.72) 52%, rgba(10, 15, 23, 0.34) 100%),
            url("../images/drivegeek-hero.png") center bottom / cover no-repeat,
            #182231;
    }

    .hero__content {
        justify-content: flex-start;
        padding-top: 2.4rem;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 14vw, 4rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .hero__proofs {
        gap: 0.45rem;
        padding-top: 1.2rem;
    }

    .hero__proofs span {
        font-size: 0.82rem;
        padding: 0.45rem 0.55rem;
    }

    .content-band,
    .category-band,
    .product-spotlight {
        padding: 3rem 0;
    }

    .content-band h2,
    .category-band h2,
    .product-spotlight h2 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .product-spotlight p,
    .installation-story p {
        font-size: 1rem;
    }

    .spec-card--accent strong {
        font-size: 1rem;
    }

    .category-grid,
    .product-spotlight__grid {
        grid-template-columns: 1fr;
    }

    .compatibility-form {
        grid-template-columns: 1fr;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce div.product {
        display: block;
    }
}

@media (max-width: 460px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

}
