/* Optional DigiMarket preset. Content, imagery and palette come from store settings. */
body.dm-body.sdc-automotive {
    --automotive-accent: var(--sdc-main, #ffd600);
    --automotive-cta-ink: #151515;
    --dm-red-dark: var(--sdc-main-dark, #d1b000);
    --dm-ink: var(--sdc-text, #151515);
    --dm-text: var(--sdc-body, #303030);
    --dm-muted: var(--sdc-muted, #666);
    --dm-line: var(--sdc-border, #e5e5e5);
    --dm-canvas: var(--sdc-canvas, #f6f6f6);
    --dm-paper: var(--sdc-surface, #fff);
}

html.dark body.dm-body.sdc-automotive {
    --sdc-canvas: #151515;
    --sdc-surface: #222;
    --sdc-surface-muted: #2d2d2d;
    --sdc-text: #f3f3f3;
    --sdc-body: #e4e4e4;
    --sdc-ink: #f3f3f3;
    --sdc-muted: #bdbdbd;
    --sdc-border: #404040;
    --sdc-paper: #222;
}

body.dm-body.sdc-automotive #header-topbar-text {
    color: var(--automotive-cta-ink) !important;
}

html.dark body.dm-body.sdc-automotive .dm-bottom-nav {
    background: #222 !important;
}

html.dark body.dm-body.sdc-automotive .dm-bottom-nav a.is-active {
    color: var(--automotive-accent) !important;
}

body.sdc-automotive :is(.btn-main, .btn-primary, .bg-main-600, .bg-warning-600, .checkout-primary-button, .cart-primary-button) {
    color: var(--automotive-cta-ink) !important;
    background-color: var(--automotive-accent) !important;
}

body.sdc-automotive :is(.text-main-600, .hover-text-main-600:hover, .section-heading a, .product-card__cart) {
    color: var(--sdc-text, #151515) !important;
}

body.sdc-automotive :is(.product-card__badge.bg-main-600, .badge.bg-main-600, .bg-main-600 a, .bg-warning-600 a) {
    color: var(--automotive-cta-ink) !important;
}

body.sdc-automotive :is(.btn, .product-card__cart, .checkout-primary-button, .cart-primary-button) {
    min-height: 44px;
    font-weight: 700;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

body.dm-body.sdc-automotive .product-card__cart {
    min-height: 44px !important;
    padding: 8px 12px !important;
    border-color: var(--automotive-accent);
}

body.sdc-automotive :is(.btn-main, .btn-primary, .product-card__cart, .checkout-primary-button, .cart-primary-button):hover {
    color: var(--automotive-cta-ink) !important;
    background-color: var(--automotive-accent) !important;
    border-color: var(--automotive-accent) !important;
    transform: translateY(-2px);
}

body.sdc-automotive :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--sdc-text, #151515);
    outline-offset: 4px;
}

body.sdc-automotive .section-heading h2 {
    font-weight: 800;
    letter-spacing: -.025em;
}

body.sdc-automotive .sdc-automotive-hero .delivery {
    min-height: clamp(460px, 38vw, 570px);
    padding: 0 !important;
    isolation: isolate;
    background: #151515 !important;
}

body.sdc-automotive .sdc-automotive-hero .delivery::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgb(21 21 21 / 0%) 20%, rgb(21 21 21 / 26%) 47%, rgb(21 21 21 / 94%) 100%);
}

body.sdc-automotive .sdc-automotive-hero .sdc-hero-background {
    z-index: 0;
}

body.sdc-automotive .sdc-automotive-hero .sdc-hero-background img {
    object-fit: cover;
    object-position: center;
}

body.sdc-automotive .sdc-automotive-hero .delivery > .row {
    position: relative;
    z-index: 2;
    margin: 0 !important;
    min-height: inherit;
}

body.sdc-automotive .sdc-automotive-hero .sdc-hero-content-column {
    width: 50% !important;
    margin-inline-end: auto;
    padding: clamp(36px, 4.5vw, 68px);
}

body.sdc-automotive .sdc-automotive-hero .sdc-hero-copy {
    text-align: start;
    color: #fff;
    animation: sdc-automotive-reveal 650ms ease both;
}

body.sdc-automotive .sdc-automotive-hero h2 {
    max-width: 15ch;
    margin-block: 12px 20px;
    color: #fff !important;
    font-size: clamp(32px, 3.7vw, 54px) !important;
    line-height: 1.45 !important;
    letter-spacing: -.035em;
}

body.sdc-automotive .sdc-automotive-hero p {
    max-width: 43ch;
    color: rgb(255 255 255 / 86%) !important;
    font-size: 16px !important;
    line-height: 1.95;
}

body.sdc-automotive .sdc-automotive-hero .sdc-hero-subtitle {
    color: var(--automotive-accent);
    font-size: 14px;
    letter-spacing: 0;
}

body.sdc-automotive .sdc-automotive-hero .sdc-hero-actions {
    justify-content: flex-start;
    gap: 12px;
    margin-block-start: 28px;
}

body.sdc-automotive .sdc-automotive-hero .btn {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 14px;
    border: 1px solid transparent;
}

body.sdc-automotive .sdc-automotive-hero .sdc-hero-primary-cta {
    color: var(--automotive-cta-ink) !important;
    background: var(--automotive-accent) !important;
}

body.sdc-automotive .sdc-automotive-hero .sdc-hero-secondary-cta {
    color: #fff !important;
    background: rgb(21 21 21 / 30%) !important;
    border-color: rgb(255 255 255 / 65%);
}

body.sdc-automotive .sdc-automotive-hero .btn:hover {
    transform: translateY(-2px);
}

body.sdc-automotive .sdc-automotive-hero :is(a, button):focus-visible {
    outline-color: #fff;
}

body.sdc-automotive .sdc-vehicle-selector {
    border-inline-start: 4px solid var(--automotive-accent);
    border-radius: var(--sdc-radius-lg, 16px);
    box-shadow: 0 8px 28px rgb(21 21 21 / 5%);
}

body.sdc-automotive .sdc-automotive-categories .sdc-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

body.sdc-automotive .sdc-automotive-categories .feature-item__thumb {
    width: min(100%, 148px);
    border: 1px solid var(--sdc-border, #e5e5e5);
    border-radius: var(--sdc-radius, 10px);
    background: var(--sdc-surface, #fff);
    transition: border-color 180ms ease;
}

body.sdc-automotive .sdc-automotive-categories .feature-item__thumb:hover {
    border-color: var(--automotive-accent);
}

body.sdc-automotive .sdc-automotive-categories .feature-item__content h3 {
    font-size: 14px !important;
}

body.sdc-automotive :is(.sdc-blog-card, .sdc-feature-card, .sdc-service-item) {
    border-color: var(--sdc-border, #e5e5e5);
    border-radius: var(--sdc-radius, 10px);
}

body.dm-body.sdc-automotive .sdc-homepage__section--productgrid .product > .container-lg {
    padding: 28px;
    background: #151515;
}

body.dm-body.sdc-automotive .sdc-homepage__section--productgrid .section-heading :is(h2, p) {
    color: #fff !important;
}

body.dm-body.sdc-automotive .sdc-homepage__section--productgrid .section-heading :is(span, a) {
    color: var(--automotive-accent) !important;
}

body.dm-body.sdc-automotive .sdc-homepage__section--productgrid .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px !important;
    overflow: visible;
}

body.dm-body.sdc-automotive .sdc-homepage__section--productgrid .row > div {
    width: auto !important;
    min-width: 0;
    max-width: none;
}

body.dm-body.sdc-automotive .sdc-homepage__section--productgrid .row > div .sdc-product-card {
    padding: 24px !important;
    border-radius: var(--sdc-radius, 10px) !important;
}

body.dm-body.sdc-automotive .sdc-homepage__section--productgrid .product-card__thumb {
    height: 220px;
}

body.dm-body.sdc-automotive .sdc-homepage__section--productgrid .product-card__thumb img {
    width: min(100%, 220px) !important;
    height: 220px !important;
}

body.dm-body.sdc-automotive .sdc-homepage__section--productgrid .product-card__content .title {
    font-size: 16px !important;
}

body.dm-body.sdc-automotive .sdc-homepage__section--bannerrow .sdc-promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

body.dm-body.sdc-automotive .sdc-homepage__section--bannerrow .promotional-banner-item {
    min-height: 340px;
    padding: 28px;
}

body.dm-body.sdc-automotive .sdc-homepage__section--bannerrow .promotional-banner-item__content {
    min-height: 0;
    width: min(70%, 320px);
    padding: 24px !important;
    background: var(--sdc-surface, #fff) !important;
    border-color: var(--sdc-border, #e5e5e5);
    backdrop-filter: none;
}

body.dm-body.sdc-automotive .sdc-homepage__section--bannerrow .promotional-banner-item__title {
    color: var(--sdc-text, #151515) !important;
    font-size: 24px !important;
    text-shadow: none;
}

body.dm-body.sdc-automotive .sdc-homepage__section--bannerrow .promotional-banner-item__content p {
    color: var(--sdc-body, #303030) !important;
    font-size: 14px !important;
    line-height: 1.9;
    text-shadow: none;
}

body.dm-body.sdc-automotive .sdc-homepage__section--feature .sdc-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

body.dm-body.sdc-automotive .sdc-homepage__section--feature .feature-item__thumb.ph {
    position: relative;
    width: 72px;
    height: 72px;
    background: var(--automotive-accent);
    color: var(--automotive-cta-ink);
}

body.dm-body.sdc-automotive .sdc-homepage__section--feature .feature-item__thumb.ph::before {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 32px;
    pointer-events: none;
}

body.dm-body.sdc-automotive .sdc-homepage__section--feature .feature-item__thumb.ph > a > span {
    visibility: hidden;
}

body.dm-body.sdc-automotive .bottom-footer :is(.bottom-footer__text, .bottom-footer__trust-text) {
    color: var(--sdc-body, #303030) !important;
}

body.dm-body.sdc-automotive .sdc-home-blog__eyebrow {
    color: var(--sdc-text, #151515) !important;
}

@keyframes sdc-automotive-reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 899px) {
    body.sdc-automotive .sdc-automotive-hero .sdc-hero-content-column {
        width: 60% !important;
        padding: 32px;
    }

    body.sdc-automotive .sdc-automotive-categories .sdc-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    body.dm-body.sdc-automotive .sdc-homepage__section--productgrid .product > .container-lg {
        padding: 20px;
    }

    body.dm-body.sdc-automotive .sdc-homepage__section--productgrid .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px !important;
    }

    body.dm-body.sdc-automotive .sdc-homepage__section--bannerrow .sdc-promo-grid,
    body.dm-body.sdc-automotive .sdc-homepage__section--feature .sdc-feature-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    body.dm-body.sdc-automotive .sdc-homepage__section--bannerrow .promotional-banner-item {
        min-height: 300px;
        padding: 20px;
    }

    body.dm-body.sdc-automotive .sdc-homepage__section--bannerrow .promotional-banner-item__content {
        width: min(82%, 320px);
        padding: 20px !important;
    }

    body.dm-body.sdc-automotive .sdc-homepage__section--bannerrow .promotional-banner-item__content p {
        display: block !important;
    }

    body.dm-body.sdc-automotive .sdc-homepage__section--bannerrow .promotional-banner-item__content .btn {
        display: inline-flex !important;
    }

    body.sdc-automotive .sdc-automotive-hero .delivery {
        min-height: 620px;
        align-items: flex-start;
    }

    body.sdc-automotive .sdc-automotive-hero .delivery > .row {
        align-items: flex-start;
    }

    body.sdc-automotive .sdc-automotive-hero .delivery::after {
        background: linear-gradient(180deg, rgb(21 21 21 / 96%) 0%, rgb(21 21 21 / 88%) 43%, rgb(21 21 21 / 16%) 78%, rgb(21 21 21 / 35%) 100%);
    }

    body.sdc-automotive .sdc-automotive-hero .sdc-hero-background img {
        object-position: 27% center;
    }

    body.sdc-automotive .sdc-automotive-hero .sdc-hero-content-column {
        width: 100% !important;
        padding: 28px 22px 44px;
    }

    body.sdc-automotive .sdc-automotive-hero h2 {
        font-size: 32px !important;
        max-width: 100%;
    }

    body.sdc-automotive .sdc-automotive-hero p {
        font-size: 14px !important;
    }

    body.sdc-automotive .sdc-automotive-hero .sdc-hero-actions .btn {
        flex: 1 1 145px;
        justify-content: center;
    }

    body.sdc-automotive .sdc-automotive-categories .sdc-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sdc-automotive .sdc-hero-copy {
        animation: none;
    }

    body.sdc-automotive :is(.btn, .product-card__cart, .checkout-primary-button, .cart-primary-button, .feature-item__thumb) {
        transition: none;
    }

    body.sdc-automotive :is(.btn, .product-card__cart, .checkout-primary-button, .cart-primary-button):hover {
        transform: none;
    }
}
