/* Canonical public-site shell: background, shared header and shared footer only. */
:root {
    --unified-header-height: 104px;
    --unified-shell-width: min(calc(100vw - 48px), 1536px);
    --unified-ink: #082341;
    --unified-blue: #087ee7;
    --unified-orange: #ff7a1a;
}


html {
    background: #02152e;
}

html body.storefront-main,
html body.storefront-main.page-home {
    min-height: 100vh;
    background-color: #02152e !important;
    background-image:
        linear-gradient(180deg, rgba(1, 17, 38, .08), rgba(1, 17, 38, .24)),
        url("../images/shahin-unified-bg.webp") !important;
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

body.storefront-main #main-content {
    position: relative;
    z-index: 1;
    min-height: 55vh;
    background: transparent !important;
}

body.storefront-main #main-content > :where(section, .container, .page-shell, .content-wrapper) {
    position: relative;
}

body.storefront-main .ai-chat-widget {
    top: auto !important;
    right: auto !important;
    bottom: 24px !important;
    left: 24px !important;
    width: auto !important;
    height: auto !important;
}

body.storefront-main .cockpit-installment-card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 18px !important;
    border: 1px solid rgba(93, 168, 244, .32) !important;
    color: #eaf5ff !important;
    background: linear-gradient(145deg, rgba(5, 35, 70, .96), rgba(4, 22, 45, .98)) !important;
}

body.storefront-main .cockpit-installment-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #8fb8df;
    font-size: 11px;
    font-weight: 850;
}

body.storefront-main .cockpit-installment-heading svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #ff9a3d;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.storefront-main .cockpit-installment-card h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1.35 !important;
}

body.storefront-main .cockpit-installment-card p {
    margin: 0 !important;
    color: #bed1e5 !important;
    font-size: 12px !important;
    line-height: 1.8 !important;
}

body.storefront-main .cockpit-installment-card a {
    width: fit-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 0 14px;
    border-radius: 7px;
    color: #09213b !important;
    background: #ffb04e;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

body.storefront-main .cockpit-info-mobile {
    display: none;
}

@media (min-width: 1025px) {
    html body.storefront-main header.site-header,
    html body.storefront-main.page-home header.site-header,
    html body.storefront-main.page-home header.site-header.site-header,
    html body.storefront-main.page-home:not(.page-home-peak):not(.page-home-showroom) header.site-header.site-header {
        position: sticky !important;
        z-index: 1000 !important;
        top: 0 !important;
        height: var(--unified-header-height) !important;
        min-height: var(--unified-header-height) !important;
        padding: 12px 0 !important;
        border: 0 !important;
        background: rgba(2, 21, 46, .9) !important;
        box-shadow: 0 12px 34px rgba(0, 8, 22, .2) !important;
        backdrop-filter: blur(18px) saturate(1.15) !important;
    }

    html body.storefront-main header.site-header > .container,
    html body.storefront-main.page-home header.site-header > .container {
        width: var(--unified-shell-width) !important;
        max-width: 1536px !important;
        height: 80px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    body.storefront-main .header-shell,
    body.storefront-main .home-header-launcher {
        display: none !important;
    }

    body.storefront-main .desktop-cockpit-header,
    body.storefront-main.page-home .desktop-cockpit-header {
        display: grid !important;
        grid-template-columns: 300px minmax(0, 1fr) !important;
        gap: 12px !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: none !important;
        height: 80px !important;
        margin: 0 !important;
    }

    body.storefront-main .cockpit-brand-module,
    body.storefront-main .cockpit-control-module {
        box-sizing: border-box !important;
        height: 80px !important;
        min-height: 80px !important;
        border: 1px solid rgba(255, 255, 255, .72) !important;
        background: rgba(247, 250, 253, .94) !important;
        box-shadow: 0 10px 30px rgba(0, 10, 30, .16) !important;
        backdrop-filter: blur(18px) !important;
        overflow: hidden !important;
    }

    body.storefront-main .cockpit-brand-module {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 46px 24px !important;
        padding: 5px 9px !important;
        border-radius: 8px !important;
    }

    body.storefront-main .cockpit-brand {
        min-height: 44px !important;
    }

    body.storefront-main .cockpit-status-grid {
        height: 24px !important;
        margin: 0 !important;
    }

    body.storefront-main .cockpit-status-pill {
        min-height: 22px !important;
        padding: 1px 5px !important;
        line-height: 1.1 !important;
    }

    body.storefront-main .cockpit-control-module {
        display: grid !important;
        grid-template-rows: 42px 38px !important;
        border-radius: 8px !important;
    }

    body.storefront-main .cockpit-command-row {
        min-height: 42px !important;
        height: 42px !important;
        padding: 3px 8px !important;
        gap: 6px !important;
    }

    body.storefront-main .cockpit-command {
        height: 34px !important;
    }

    body.storefront-main .cockpit-command input {
        min-height: 32px !important;
    }

    body.storefront-main .cockpit-action {
        min-height: 34px !important;
        height: 34px !important;
        min-width: 78px !important;
        padding-inline: 11px !important;
    }

    body.storefront-main .cockpit-nav-rail {
        height: 38px !important;
        padding: 0 8px !important;
    }

    body.storefront-main .cockpit-rail-item {
        min-height: 38px !important;
        height: 38px !important;
        padding: 2px 8px !important;
    }

    body.storefront-main.page-home .cockpit-home-hero > .container {
        padding-top: 14px !important;
    }
}

body.storefront-main .site-footer {
    position: relative;
    z-index: 2;
    margin-top: 40px !important;
    padding: 24px 0 16px !important;
    border-top: 1px solid rgba(94, 164, 235, .34) !important;
    color: #eaf4ff !important;
    background: rgba(2, 18, 40, .96) !important;
    box-shadow: 0 -18px 50px rgba(0, 8, 24, .22) !important;
    backdrop-filter: blur(18px) !important;
}

body.storefront-main .site-footer > .container {
    width: var(--unified-shell-width) !important;
    max-width: 1536px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.storefront-main .footer-showcase {
    display: none !important;
}

body.storefront-main .footer-widgets {
    display: grid !important;
    grid-template-columns: minmax(280px, 1.25fr) repeat(3, minmax(150px, .75fr)) !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 0 18px !important;
}

body.storefront-main .footer-col {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(112, 174, 236, .18) !important;
    border-radius: 8px !important;
    background: rgba(12, 45, 82, .5) !important;
    box-shadow: none !important;
}

body.storefront-main .footer-col h4 {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: 15px !important;
}

body.storefront-main .footer-col p,
body.storefront-main .footer-col li,
body.storefront-main .footer-col a,
body.storefront-main .footer-col span {
    color: #b9cee3 !important;
    font-size: 12px !important;
    line-height: 1.75 !important;
}

body.storefront-main .footer-col ul {
    display: grid !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.storefront-main .footer-col li {
    margin: 0 !important;
}

body.storefront-main .footer-logo,
body.storefront-main .footer-logo-image {
    width: 52px !important;
    height: 52px !important;
    margin: 0 0 8px !important;
}

body.storefront-main .footer-bottom {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 12px 14px 0 !important;
    border-top: 1px solid rgba(112, 174, 236, .18) !important;
    background: transparent !important;
}

body.storefront-main .footer-bottom p,
body.storefront-main .footer-bottom a,
body.storefront-main .designer-credit {
    color: #9eb7cf !important;
    font-size: 11px !important;
}

body.storefront-main .designer-credit-phone {
    display: inline-block;
    margin-inline-start: 6px;
    color: #f7932f !important;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

body.storefront-main .designer-credit-phone:hover,
body.storefront-main .designer-credit-phone:focus-visible {
    color: #ffb04e !important;
    text-decoration: underline;
}

body.storefront-main .designer-credit-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid rgba(90, 158, 222, .34);
    border-radius: 7px;
    background: rgba(7, 90, 156, .16);
    color: #c8d8e8 !important;
    text-decoration: none;
    transition: border-color 180ms ease, background-color 180ms ease;
}

body.storefront-main .designer-credit-button strong {
    color: #f7932f;
    font: inherit;
    font-weight: 900;
}

body.storefront-main .designer-credit-button:hover,
body.storefront-main .designer-credit-button:focus-visible {
    border-color: #f7932f;
    background: rgba(7, 90, 156, .3);
    color: #fff !important;
}

@media (max-width: 640px) {
    body.storefront-main .designer-credit-button {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 1024px) {
    :root {
        --unified-shell-width: min(calc(100vw - 24px), 960px);
    }

    html body.storefront-main header.site-header,
    html body.storefront-main.page-home header.site-header,
    html body.storefront-main.page-home:not(.page-home-peak):not(.page-home-showroom) header.site-header.site-header {
        position: sticky !important;
        top: 0 !important;
        height: 68px !important;
        min-height: 68px !important;
        padding: 0 !important;
        background: rgba(2, 21, 46, .94) !important;
        backdrop-filter: blur(16px) !important;
    }

    body.storefront-main .desktop-cockpit-header {
        display: none !important;
    }

    html body.storefront-main .header-shell {
        top: 0 !important;
        height: 68px !important;
        min-height: 68px !important;
        margin: 0 !important;
    }

    html body.storefront-main.codex-mobile-nav-open #siteNavigation.main-nav {
        position: fixed !important;
        z-index: 1100 !important;
        top: 76px !important;
        right: 12px !important;
        bottom: 12px !important;
        left: 12px !important;
        width: auto !important;
        height: calc(100dvh - 88px) !important;
        min-height: calc(100dvh - 88px) !important;
        max-height: calc(100dvh - 88px) !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 14px !important;
        border: 1px solid rgba(118, 176, 235, .3) !important;
        border-radius: 8px !important;
        visibility: visible !important;
        opacity: 1 !important;
        overflow: hidden !important;
        transform: none !important;
        background: rgba(3, 23, 48, .98) !important;
        box-shadow: 0 24px 70px rgba(0, 5, 18, .48) !important;
    }

    html body.storefront-main.codex-mobile-nav-open #siteNavigation.main-nav ul {
        width: 100% !important;
        height: calc(100% - 58px) !important;
        min-height: calc(100% - 58px) !important;
        flex: 1 1 auto !important;
        display: grid !important;
        gap: 6px !important;
        padding: 6px 0 0 !important;
        visibility: visible !important;
        overflow-y: auto !important;
    }

    html body.storefront-main.codex-mobile-nav-open #siteNavigation .mobile-nav-header,
    html body.storefront-main.codex-mobile-nav-open #siteNavigation * {
        visibility: visible !important;
    }

    html body.storefront-main.codex-mobile-nav-open .header-backdrop {
        position: fixed !important;
        z-index: 1090 !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: rgba(0, 9, 23, .68) !important;
        backdrop-filter: blur(6px) !important;
    }

    body.storefront-main .footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.storefront-main .footer-col-brand {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 640px) {
    :root {
        --unified-shell-width: calc(100vw - 24px);
    }

    body.storefront-main {
        background-size: auto 100vh !important;
        background-position: 58% top !important;
        background-attachment: scroll !important;
    }

    body.storefront-main .cockpit-hero-slide picture,
    body.storefront-main .cockpit-hero-slide picture img {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }

    body.storefront-main .cockpit-hero-slide picture img {
        object-fit: cover !important;
        object-position: center bottom !important;
    }

    body.storefront-main .cockpit-slide-info .cockpit-info-desktop {
        display: none !important;
    }

    body.storefront-main .cockpit-slide-info.is-active .cockpit-info-mobile {
        display: block !important;
    }

    body.storefront-main .cockpit-info-mobile span {
        display: block;
        margin-bottom: 6px;
        color: #ffb04e;
        font-size: 10px;
        font-weight: 900;
    }

    body.storefront-main .cockpit-info-mobile h2 {
        margin: 0 0 6px !important;
        color: #fff !important;
        font-size: 20px !important;
        line-height: 1.35 !important;
    }

    body.storefront-main .cockpit-info-mobile p {
        margin: 0 !important;
        color: #bdd0e3 !important;
        font-size: 11px !important;
        line-height: 1.75 !important;
    }

    body.storefront-main .site-footer {
        margin-top: 24px !important;
        padding: 14px 0 72px !important;
    }

    body.storefront-main .footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding-bottom: 14px !important;
    }

    body.storefront-main .footer-col {
        padding: 9px 10px !important;
    }

    body.storefront-main .footer-col-brand {
        min-height: 62px !important;
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
    }

    body.storefront-main .footer-col-brand .footer-logo,
    body.storefront-main .footer-col-brand .footer-logo-image {
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
    }

    body.storefront-main .footer-col-brand p {
        display: -webkit-box !important;
        margin: 0 !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.storefront-main .footer-col h4 {
        margin-bottom: 4px !important;
        font-size: 13px !important;
    }

    body.storefront-main .footer-col p,
    body.storefront-main .footer-col li,
    body.storefront-main .footer-col a,
    body.storefront-main .footer-col span {
        font-size: 10px !important;
        line-height: 1.35 !important;
    }

    body.storefront-main .footer-col:last-child ul {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 10px !important;
    }

    body.storefront-main .footer-col:last-child,
    body.storefront-main .footer-col-brand {
        grid-column: 1 / -1 !important;
    }

    body.storefront-main .footer-bottom {
        min-height: 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
        padding: 8px 0 0 !important;
    }

    body.storefront-main .footer-bottom-links {
        display: none !important;
    }

    html body.storefront-main .back-to-top {
        right: auto !important;
        left: 16px !important;
        transform: none !important;
        bottom: max(16px, env(safe-area-inset-bottom)) !important;
        width: 44px !important;
        height: 44px !important;
    }

    html body.storefront-main .ai-chat-widget,
    html body.storefront-main.page-home .ai-chat-widget,
    html body.storefront-main.page-home #aiChatWidget.ai-chat-widget {
        right: 16px !important;
        bottom: max(16px, env(safe-area-inset-bottom)) !important;
        left: auto !important;
        transform: none !important;
    }

    html body.storefront-main .ai-chat-toggle {
        right: auto !important;
        left: auto !important;
        transform: none !important;
    }
}

@media (max-width: 640px) {
    html body.storefront-main header.site-header #siteHeaderShell .header-main-inner {
        display: flex !important;
        grid-template-columns: none !important;
        direction: rtl !important;
        justify-content: space-between !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group {
        display: flex !important;
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        justify-content: flex-start !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group .logo {
        display: flex !important;
        width: auto !important;
        max-width: none !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group .logo::before,
    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group .logo::after {
        display: none !important;
        content: none !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group .logo-text {
        display: flex !important;
        width: auto !important;
        max-width: 230px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-actions {
        display: flex !important;
        flex: 0 0 48px !important;
        width: 48px !important;
        max-width: 48px !important;
        min-width: 48px !important;
        grid-template-columns: none !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-actions > :not(.nav-toggle) {
        display: none !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-actions > .nav-toggle {
        display: grid !important;
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.storefront-main {
        background-attachment: scroll !important;
    }
}

/* Mobile homepage refinement: compact, touch-first sections. */
@media (max-width: 640px) {
    body.storefront-main.page-home .featured-products-tabs .products-scroll {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 12px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;
        overscroll-behavior-inline: contain !important;
        padding: 2px 1px 10px !important;
    }

    body.storefront-main.page-home .featured-products-tabs .products-scroll::-webkit-scrollbar {
        display: none !important;
    }

    body.storefront-main.page-home .featured-products-tabs .products-scroll > .product-card {
        flex: 0 0 min(76vw, 286px) !important;
        width: min(76vw, 286px) !important;
        scroll-snap-align: center !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section {
        padding: 14px 0 !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .filter-card {
        padding: 14px !important;
        border-radius: 8px !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .filter-header {
        margin-bottom: 10px !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .filter-icon,
    body.storefront-main.page-home .motorcycle-filter-section .filter-subtitle,
    body.storefront-main.page-home .motorcycle-filter-section .filter-more-link,
    body.storefront-main.page-home .motorcycle-filter-section .filter-input-group:nth-child(3),
    body.storefront-main.page-home .motorcycle-filter-section .filter-input-group:nth-child(4) {
        display: none !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .filter-title {
        margin: 0 !important;
        font-size: 17px !important;
        line-height: 1.5 !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .match-intent-row {
        display: flex !important;
        gap: 6px !important;
        overflow-x: auto !important;
        padding: 0 0 8px !important;
        scrollbar-width: none !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .match-intent {
        flex: 0 0 auto !important;
        min-height: 34px !important;
        padding: 6px 11px !important;
        font-size: 11px !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .filter-inputs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .filter-input-group,
    body.storefront-main.page-home .motorcycle-filter-section .filter-submit-group {
        margin: 0 !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .filter-input-group:nth-child(5),
    body.storefront-main.page-home .motorcycle-filter-section .filter-submit-group {
        grid-column: auto !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .filter-label {
        margin-bottom: 4px !important;
        font-size: 10px !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .filter-select,
    body.storefront-main.page-home .motorcycle-filter-section .filter-submit-btn {
        min-height: 38px !important;
        height: 38px !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .smart-match-rail {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        margin-top: 10px !important;
        padding: 1px 0 3px !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .smart-match-rail::-webkit-scrollbar {
        display: none !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .ai-match-card {
        display: grid !important;
        grid-template-columns: 66px minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        flex: 0 0 calc(100% - 22px) !important;
        min-height: 82px !important;
        padding: 8px !important;
        gap: 2px 8px !important;
        align-items: center !important;
        scroll-snap-align: center !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .ai-match-card[hidden] {
        display: none !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .ai-match-card img {
        grid-row: 1 / 3 !important;
        width: 66px !important;
        height: 66px !important;
        object-fit: contain !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .ai-match-card strong,
    body.storefront-main.page-home .motorcycle-filter-section .ai-match-card small,
    body.storefront-main.page-home .motorcycle-filter-section .ai-match-price {
        font-size: 10px !important;
        line-height: 1.35 !important;
    }

    body.storefront-main.page-home .motorcycle-filter-section .ai-match-score {
        align-self: start !important;
        font-size: 10px !important;
    }

    body.storefront-main.page-home .motorcycle-videos-section {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        padding: 0 12px !important;
    }

    body.storefront-main.page-home .motorcycle-video-thumbnail {
        aspect-ratio: 4 / 5 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        border-radius: 8px !important;
    }

    body.storefront-main.page-home .motorcycle-video-thumbnail > img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body.storefront-main.page-home .motorcycle-video-thumbnail .video-play-btn svg {
        width: 38px !important;
        height: 38px !important;
    }

    body.storefront-main.page-home .categories-section .main-categories-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 10px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;
        padding: 2px 1px 10px !important;
    }

    body.storefront-main.page-home .categories-section .main-categories-grid::-webkit-scrollbar {
        display: none !important;
    }

    body.storefront-main.page-home .categories-section .main-category-card {
        flex: 0 0 min(76vw, 286px) !important;
        min-height: 170px !important;
        scroll-snap-align: center !important;
    }

    body.storefront-main.page-home .customer-hub-section .customer-hub-card {
        display: none !important;
    }

    body.storefront-main.page-home .customer-hub-section > .container > .section-header .section-link {
        display: none !important;
    }

    body.storefront-main.page-home .customer-hub-section .customer-hub-shell {
        display: block !important;
    }

    body.storefront-main.page-home .customer-hub-section .customer-hub-grid {
        display: none !important;
    }

    body.storefront-main.page-home .customer-hub-section .customer-hub-story {
        display: block !important;
        position: relative !important;
        overflow: hidden !important;
        border-radius: 8px !important;
    }

    body.storefront-main.page-home .customer-hub-section .customer-hub-story picture,
    body.storefront-main.page-home .customer-hub-section .customer-hub-story img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }

    body.storefront-main.page-home .customer-hub-section .customer-hub-story-cta {
        position: static !important;
        display: flex !important;
        width: 100% !important;
        min-height: 40px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 11px 16px !important;
        border-radius: 0 0 7px 7px !important;
        background: #f58220 !important;
        color: #fff !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        box-shadow: none !important;
    }

    body.storefront-main.page-home .articles-section .article-card:nth-child(n + 3) {
        display: none !important;
    }

    body.storefront-main.page-home .articles-section .article-card {
        height: 292px !important;
        min-height: 292px !important;
    }

    body.storefront-main.page-home .articles-section > .container > .section-header .section-link {
        display: none !important;
    }

    body.storefront-main.page-home .articles-section .article-link {
        display: block !important;
        height: 100% !important;
    }

    body.storefront-main.page-home .articles-section .article-image {
        display: none !important;
    }

    body.storefront-main.page-home .articles-section .article-image::after {
        display: none !important;
    }

    body.storefront-main.page-home .articles-section .article-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body.storefront-main.page-home .articles-section .article-content {
        position: static !important;
        transform: none !important;
        width: auto !important;
        padding: 14px !important;
        background: rgba(7, 37, 72, .96) !important;
        color: #fff !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    body.storefront-main.page-home .articles-section .article-summary {
        display: -webkit-box !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 4 !important;
    }

    body.storefront-main.page-home .articles-section .articles-mobile-all {
        display: flex !important;
        width: max-content !important;
        margin: 12px auto 0 !important;
        min-height: 40px !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 9px 18px !important;
    }
}

@media (min-width: 641px) {
    body.storefront-main.page-home .customer-hub-story-cta,
    body.storefront-main.page-home .articles-mobile-all {
        display: none !important;
    }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
    body.storefront-main.page-home .featured-products-tabs .products-scroll {
        scroll-behavior: auto !important;
    }
}

/* Mobile brand header: compact, identifiable, and touch-safe. */
@media (max-width: 640px) {
    html body.storefront-main header.site-header,
    html body.storefront-main.page-home header.site-header,
    html body.storefront-main.page-home:not(.page-home-peak):not(.page-home-showroom) header.site-header.site-header {
        height: 76px !important;
        min-height: 76px !important;
        border-bottom: 3px solid #f7932f !important;
        background: #063f73 !important;
        box-shadow: 0 8px 24px rgba(0, 15, 36, .28) !important;
        backdrop-filter: none !important;
    }

    html body.storefront-main header.site-header > .container {
        width: 100% !important;
        max-width: none !important;
        height: 73px !important;
        padding: 0 12px !important;
    }

    html body.storefront-main .header-shell {
        display: block !important;
        width: 100% !important;
        height: 73px !important;
        min-height: 73px !important;
        overflow: visible !important;
    }

    body.storefront-main .header-top,
    body.storefront-main .home-header-launcher {
        display: none !important;
    }

    body.storefront-main .header-main,
    body.storefront-main .header-main-inner {
        width: 100% !important;
        height: 73px !important;
        min-height: 73px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.storefront-main .header-main-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        direction: rtl !important;
    }

    body.storefront-main .header-brand-group {
        display: flex !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        align-items: center !important;
        order: 1 !important;
    }

    body.storefront-main .header-brand-group .btn-back-page {
        display: none !important;
    }

    body.storefront-main .header-brand-group .logo {
        display: flex !important;
        width: auto !important;
        min-width: 0 !important;
        height: 58px !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 0 !important;
        color: #fff !important;
        text-decoration: none !important;
    }

    body.storefront-main .header-brand-group .logo-image {
        flex: 0 0 48px !important;
        width: 48px !important;
        height: 48px !important;
        margin: 0 !important;
        padding: 3px !important;
        border: 1px solid rgba(255, 255, 255, .72) !important;
        border-radius: 50% !important;
        background: rgba(2, 24, 48, .28) !important;
        object-fit: contain !important;
    }

    body.storefront-main .header-brand-group .logo-text {
        display: flex !important;
        min-width: 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1px !important;
        line-height: 1.25 !important;
    }

    body.storefront-main .header-brand-group .logo-title {
        display: block !important;
        max-width: 220px !important;
        overflow: hidden !important;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 900 !important;
        line-height: 1.35 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.storefront-main .header-brand-group .logo-subtitle,
    body.storefront-main .header-brand-group .logo-theme-note {
        display: none !important;
    }

    body.storefront-main .header-brand-group .logo-text::after {
        content: "هرمزگان" !important;
        display: block !important;
        color: #f7932f !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1.3 !important;
    }

    body.storefront-main .header-actions {
        display: flex !important;
        flex: 0 0 48px !important;
        width: 48px !important;
        height: 48px !important;
        margin: 0 !important;
        order: 2 !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.storefront-main .header-actions > :not(.nav-toggle) {
        display: none !important;
    }

    body.storefront-main .header-actions .nav-toggle {
        display: grid !important;
        grid-template-rows: repeat(3, 2px) !important;
        align-content: center !important;
        justify-items: center !important;
        gap: 6px !important;
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid rgba(255, 255, 255, .34) !important;
        border-radius: 8px !important;
        background: rgba(2, 30, 58, .48) !important;
        color: #fff !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1) !important;
    }

    body.storefront-main .header-actions .nav-toggle span {
        display: block !important;
        width: 23px !important;
        height: 2px !important;
        margin: 0 !important;
        border-radius: 2px !important;
        background: #fff !important;
    }

    html body.storefront-main.codex-mobile-nav-open #siteNavigation.main-nav {
        top: 84px !important;
        height: calc(100dvh - 96px) !important;
        min-height: calc(100dvh - 96px) !important;
        max-height: calc(100dvh - 96px) !important;
        border-color: rgba(8, 120, 204, .42) !important;
        background: rgba(3, 28, 55, .98) !important;
    }

    body.storefront-main .nav-toggle:focus-visible,
    body.storefront-main .header-brand-group .logo:focus-visible {
        outline: 3px solid rgba(247, 147, 47, .72) !important;
        outline-offset: 2px !important;
    }
}

/* Mobile brand header matched to the approved compact reference. */
@media (max-width: 640px) {
    html body.storefront-main header.site-header #siteHeaderShell {
        background-color: #063b6c !important;
        background-image: url('/static/images/shahin-motion-pattern.webp') !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-size: cover !important;
        border-bottom: 3px solid #f59a32 !important;
        min-height: 80px !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-main-inner {
        min-height: 77px !important;
        height: 77px !important;
        padding: 4px 14px 0 !important;
        align-items: center !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group {
        height: 58px !important;
        max-width: calc(100% - 76px) !important;
        align-items: center !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group .logo {
        height: 58px !important;
        gap: 9px !important;
        align-items: center !important;
        overflow: visible !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group .logo-image {
        content: url('/static/images/shahin-mark-white.png') !important;
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        object-fit: contain !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group .logo-text {
        gap: 1px !important;
        align-self: center !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group .logo-title {
        font-size: 0 !important;
        line-height: 1 !important;
        color: #fff !important;
        font-weight: 900 !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group .logo-title::after {
        content: "شاهین موتور";
        display: block;
        font-size: 16px;
        line-height: 1.35;
        color: #fff;
        white-space: nowrap;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group .logo-subtitle {
        display: none !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-brand-group .logo-text::after {
        content: "هرمزگان" !important;
        display: block !important;
        color: #f59a32 !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        font-weight: 800 !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-actions {
        left: 14px !important;
        top: 4px !important;
        height: 73px !important;
        align-items: center !important;
    }

    html body.storefront-main header.site-header #siteHeaderShell .header-actions > .nav-toggle {
        width: 48px !important;
        height: 48px !important;
        margin: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        background: rgba(1, 34, 67, 0.72) !important;
        box-shadow: none !important;
    }
}

/* Unified quick-access panel: OTP login and installment purchase. */
body.storefront-main.page-home .cockpit-hero-side {
    grid-template-rows: 1fr 1.85fr !important;
}

body.storefront-main.page-home .cockpit-access-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 10px !important;
    border-color: rgba(83, 169, 246, .38) !important;
    background-color: #032a52 !important;
    background-image: url('/static/images/shahin-unified-bg.webp') !important;
    background-position: center !important;
    background-size: auto 100% !important;
    background-repeat: no-repeat !important;
    color: #fff !important;
}

body.storefront-main.page-home .cockpit-access-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(121, 188, 248, .24);
    border-radius: 8px;
    background: rgba(0, 25, 55, .84);
}

body.storefront-main.page-home .cockpit-access-tabs button {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    color: #bdd2e8;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

body.storefront-main.page-home .cockpit-access-tabs button.is-active {
    color: #fff;
    background: #087ee7;
}

body.storefront-main.page-home .cockpit-access-tabs button:focus-visible {
    outline: 3px solid rgba(245, 154, 50, .75);
    outline-offset: 2px;
}

body.storefront-main.page-home .cockpit-access-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px 8px 4px;
}

body.storefront-main.page-home .cockpit-access-panel[hidden] {
    display: none !important;
}

body.storefront-main.page-home .cockpit-access-panel h2,
body.storefront-main.page-home .cockpit-access-panel.cockpit-installment-card h2 {
    margin: 2px 0 4px !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
}

body.storefront-main.page-home .cockpit-access-panel p,
body.storefront-main.page-home .cockpit-access-panel.cockpit-installment-card p {
    max-width: 28rem;
    margin: 0 !important;
    color: #bad0e6 !important;
    font-size: 11px !important;
    line-height: 1.75 !important;
}

body.storefront-main.page-home .cockpit-access-panel .cockpit-login-form {
    width: 100%;
    margin-top: 8px;
}

body.storefront-main.page-home .cockpit-access-panel .cockpit-login-form label {
    color: #e9f5ff !important;
    text-align: center;
}

body.storefront-main.page-home .cockpit-access-panel .cockpit-login-row {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: center;
}

body.storefront-main.page-home .cockpit-access-panel .cockpit-login-row input {
    width: 100%;
    max-width: 270px;
    height: 42px;
    text-align: center;
    border-color: rgba(132, 192, 246, .34);
    color: #092b4c !important;
    background: #f7fbff !important;
}

body.storefront-main.page-home .cockpit-access-panel .cockpit-login-row button,
body.storefront-main.page-home .cockpit-access-panel.cockpit-installment-card a {
    min-width: 138px;
    min-height: 40px;
    margin: 0 auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    color: #fff !important;
    background: #087ee7 !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

body.storefront-main.page-home .cockpit-access-panel.cockpit-installment-card {
    gap: 7px !important;
    padding: 10px 8px 4px !important;
    border: 0 !important;
    background: transparent !important;
}

body.storefront-main.page-home .cockpit-access-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 154, 50, .52);
    border-radius: 50%;
    color: #f59a32;
    background: rgba(0, 18, 39, .58);
}

body.storefront-main.page-home .cockpit-access-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.storefront-main.page-home .cockpit-access-panel small {
    min-height: 17px !important;
    margin-top: 5px !important;
    color: #8dccff !important;
    text-align: center;
}

@media (max-width: 1024px) {
    body.storefront-main.page-home .cockpit-hero-side {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
    }

    body.storefront-main.page-home .cockpit-access-card {
        grid-column: 1 / -1;
        min-height: 272px !important;
    }
}

@media (max-width: 640px) {
    body.storefront-main.page-home .cockpit-access-card {
        min-height: 264px !important;
        padding: 8px !important;
    }

    body.storefront-main.page-home .cockpit-access-panel {
        padding-top: 8px;
    }

    body.storefront-main.page-home .articles-section .article-card {
        display: block !important;
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    body.storefront-main.page-home .articles-section .article-link {
        display: grid !important;
        position: static !important;
        grid-template-rows: 132px auto !important;
        grid-template-columns: minmax(0, 1fr) !important;
        height: auto !important;
        min-height: 0 !important;
    }

    body.storefront-main.page-home .articles-section .article-image {
        display: block !important;
        position: relative !important;
        inset: auto !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        height: 132px !important;
        min-height: 132px !important;
        opacity: 1 !important;
        transform: none !important;
        overflow: hidden !important;
        background: #082b50 !important;
    }

    body.storefront-main.page-home .articles-section .article-image::before,
    body.storefront-main.page-home .articles-section .article-image::after {
        display: none !important;
        content: none !important;
    }

    body.storefront-main.page-home .articles-section .article-image img {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        filter: none !important;
        object-fit: cover !important;
    }

    body.storefront-main.page-home .articles-section .article-content {
        position: static !important;
        inset: auto !important;
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 150px !important;
        padding: 13px !important;
        opacity: 1 !important;
        transform: none !important;
        background: #0a477e !important;
    }
}

/* Mobile articles rail and footer brand mark. */
@media (max-width: 640px) {
    body.storefront-main.page-home .articles-section .articles-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: smooth !important;
        scrollbar-width: none !important;
        padding: 2px 0 10px !important;
    }

    body.storefront-main.page-home .articles-section .articles-grid::-webkit-scrollbar {
        display: none !important;
    }

    body.storefront-main.page-home .articles-section .article-card:nth-child(n + 3) {
        display: block !important;
    }

    body.storefront-main.page-home .articles-section .article-card:nth-child(n + 7) {
        display: none !important;
    }

    body.storefront-main.page-home .articles-section .article-card {
        flex: 0 0 min(78vw, 304px) !important;
        width: min(78vw, 304px) !important;
        scroll-snap-align: center !important;
        border-radius: 8px !important;
    }

    body.storefront-main.page-home .articles-section .article-link {
        grid-template-rows: 190px auto !important;
    }

    body.storefront-main.page-home .articles-section .article-image {
        height: 190px !important;
        min-height: 190px !important;
    }

    body.storefront-main.page-home .articles-section .article-content {
        min-height: 72px !important;
        display: flex !important;
        align-items: center !important;
        padding: 12px 14px !important;
        background: #07477f !important;
    }

    body.storefront-main.page-home .articles-section .article-type,
    body.storefront-main.page-home .articles-section .article-summary,
    body.storefront-main.page-home .articles-section .article-meta {
        display: none !important;
    }

    body.storefront-main.page-home .articles-section .article-title {
        display: -webkit-box !important;
        width: 100% !important;
        margin: 0 !important;
        overflow: hidden !important;
        color: #fff !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        line-height: 1.75 !important;
        text-align: right !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.storefront-main .footer-col-brand .footer-logo {
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.storefront-main .footer-col-brand .footer-logo-image {
        content: url('/static/images/shahin-mark-white.png') !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        object-fit: contain !important;
    }
}

/* Approved blue-orange background only; component structure stays unchanged. */
@media (max-width: 640px) {
    html body.storefront-main header.site-header #siteHeaderShell,
    body.storefront-main.page-home .cockpit-side-card-dark,
    body.storefront-main.page-home .cockpit-access-card {
        background-color: #032a52 !important;
        background-image: url('/static/images/shahin-blue-orange-card-bg.webp') !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: cover !important;
    }
}
