/* Shared storefront finish. Load after mobile-simple.css. No external assets. */
:root {
    --store-ink: #17263c;
    --store-muted: #5e6b7c;
    --store-border: #dfe5ec;
    --store-page: #f5f7fa;
    --store-accent: #b95408;
    --store-accent-hover: #954306;
}
body { color: var(--store-ink); background: var(--store-page); }
.aiz-main-wrapper { background: var(--store-page) !important; min-height: 100vh; }
.container2 { max-width: 1180px; }
.btn { border-radius: 9px; font-weight: 700; }
.btn-primary { background: var(--store-accent) !important; border-color: var(--store-accent) !important; color: #fff !important; box-shadow: none; }
.btn-primary:hover, .btn-primary:active, .btn-primary:focus { background: var(--store-accent-hover) !important; border-color: var(--store-accent-hover) !important; }
.btn-outline-primary { color: var(--store-accent); border-color: #d6b49c; background: #fff; }
.btn-outline-primary:hover { color: var(--store-accent-hover); border-color: var(--store-accent); background: #fff7f0; }
.form-control { border-radius: 9px; color: var(--store-ink); border-color: var(--store-border); }
.form-control::placeholder { color: #6b7584; opacity: 1; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #2378b7; outline-offset: 3px; }

/* A single compact header, with real destinations and visible cart count. */
.storefront-header { background: #fff; border-bottom: 1px solid var(--store-border); box-shadow: 0 2px 8px #17263c04; }
.storefront-header-row { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.storefront-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--store-ink) !important; text-decoration: none !important; font-size: 19px; font-weight: 800; white-space: nowrap; }
.storefront-brand img { width: 42px; height: 46px; object-fit: contain; }
.storefront-links { display: flex; align-items: center; gap: 6px; margin-inline-start: 22px; }
.storefront-links a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--store-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.storefront-links a:hover, .storefront-links a[aria-current] { background: #f0f3f7; color: var(--store-ink); text-decoration: none; }
.storefront-tools { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.storefront-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 0; background: #f3f5f8; color: var(--store-ink) !important; border-radius: 9px; cursor: pointer; }
.storefront-icon:hover { background: #e9eef4; text-decoration: none; }
.storefront-language { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--store-muted) !important; font-size: 13px; font-weight: 700; }
.storefront-account { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px; color: var(--store-ink) !important; font-size: 14px; font-weight: 600; white-space: nowrap; }
.storefront-cart { position: relative; }
.storefront-cart-count { position: absolute; top: -3px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding-inline: 4px; border-radius: 20px; background: var(--store-accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
.storefront-bottom-nav { display: none !important; }

/* Keep the first screen about finding a part. */
.home-hero { background: #fff; border-bottom: 1px solid var(--store-border); padding: 44px 0 22px; }
.home-hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }
.home-hero h1 { color: var(--store-ink); font-size: 36px; line-height: 1.4; font-weight: 800; margin: 0 0 8px; }
.home-hero p { color: var(--store-muted); font-size: 16px; line-height: 1.8; margin: 0 0 23px; }
.home-search-form { width: 100%; max-width: none; }
.home-search-form .input-group { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 12px; border: 1px solid #c9d2df; background: #fff; box-shadow: 0 4px 16px #17263c06; }
.home-search-form .input-group:focus-within, .parts-search-fields:focus-within { border-color: #2378b7; box-shadow: 0 0 0 3px #2378b71a; }
.home-search-icon { flex: 0 0 auto; margin-inline-start: 10px; color: var(--store-muted); }
.home-search-form .form-control { border: 0; background: none; height: 46px; min-width: 0; padding: 10px 4px; font-size: 16px; box-shadow: none; }
.home-search-form .btn { flex: 0 0 auto; min-width: 90px; min-height: 46px; border-radius: 8px !important; font-size: 16px; }
.home-catalog-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; font-size: 14px; color: var(--store-muted); }
.home-catalog-link:hover { color: var(--store-accent); }
.catalog-section { padding-block: 28px 18px; scroll-margin-top: 92px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { color: var(--store-ink); font-size: 24px; line-height: 1.5; margin: 0; }
.catalog-section-hint { color: var(--store-muted); font-size: 14px; margin: 3px 0 0; }
.home-directory-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--store-accent); font-size: 14px; white-space: nowrap; font-weight: 600; }
.catalog-grid { gap: 12px; }
.storefront-home .catalog-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.catalog-brand-card { min-height: 112px; padding: 15px 10px; gap: 11px; border-color: var(--store-border); border-radius: 12px; box-shadow: 0 1px 2px #17263c03; transition: border-color 120ms ease, background 120ms ease; }
.catalog-brand-card:hover { border-color: #bc9578; background: #fffaf6; box-shadow: none; transform: none; }
.catalog-brand-image { height: 43px; }
.catalog-brand-image img { height: auto; max-height: 43px; max-width: 72px; filter: none; }
.catalog-brand-name { color: var(--store-ink); font-size: 14px; line-height: 1.5; font-weight: 600; }

/* The same field and card language throughout results and catalog steps. */
.parts-results, .catalog-browser, .seo-part-page { padding-block: 24px 32px; }
.parts-results .results-searchbar { max-width: 760px; margin-bottom: 25px; }
.parts-results .results-searchbar label { color: var(--store-muted); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.parts-search-fields { gap: 6px; border: 1px solid #c9d2df; border-radius: 11px; padding: 5px; }
.parts-search-fields input { border: 0; box-shadow: none !important; min-height: 44px; }
.parts-search-fields .btn { min-width: 76px; border-radius: 7px; }
.parts-results-heading h1 { font-size: 25px; font-weight: 700; color: var(--store-ink); }
.parts-results-heading span { font-size: 14px; color: var(--store-muted); }
.parts-results-list { gap: 16px; }
.part-result { grid-template-columns: 110px minmax(0, 1fr); border-color: var(--store-border); border-radius: 12px; padding: 18px; gap: 14px; box-shadow: 0 1px 2px #17263c03; }
.part-result-image { background: #f7f8fa; border-radius: 9px; }
.part-result-image img { height: 106px; }
.part-result-brand { color: var(--store-muted); font-size: 12px; font-weight: 700; }
.part-result h2 { font-size: 16px; line-height: 1.65; }
.part-result h2 button { color: var(--store-ink); }
.part-result-number { color: var(--store-muted); font-size: 12px; }
.part-result-number a { color: var(--store-ink); text-decoration: underline; text-decoration-color: #b9c5d2; text-underline-offset: 3px; }
.part-result-price { color: var(--store-ink); font-weight: 800; }
.part-result-actions { padding-top: 10px; border-top: 1px solid #edf0f4; }
.part-result-actions .btn { min-width: 0; min-height: 44px; padding: 8px 16px; border-radius: 8px; font-size: 14px; }
.part-details { border: 1px solid var(--store-border); border-radius: 16px; padding: 22px; box-shadow: 0 16px 70px #17263c2b; }
.part-details::backdrop { background: #0e1e35a3; }
.part-details-header h2 { color: var(--store-ink); }
.catalog-browser h1 { font-size: 27px; line-height: 1.5; color: var(--store-ink); }
.catalog-hint { color: var(--store-muted); }
.catalog-back { color: var(--store-ink); text-decoration: none; gap: 6px; }
.catalog-breadcrumb { color: var(--store-muted); }
.catalog-breadcrumb a { color: var(--store-muted); text-decoration: none; }
.catalog-region select, .catalog-region .btn { min-height: 46px; }
.catalog-filter { background: #fff; border-color: #c9d2df; min-height: 46px; }
.catalog-entries { gap: 12px; }
.catalog-entry { border-color: var(--store-border); border-radius: 11px; padding: 16px; background: #fff; }
.catalog-entry:hover { background: #fffaf6; border-color: #bc9578; text-decoration: none; }
.catalog-entry small, .catalog-entry span { color: var(--store-muted); }
.catalog-diagram { border-color: var(--store-border); border-radius: 12px; background: #fff; }
.catalog-part { background: #fff; border-color: var(--store-border); border-radius: 12px; padding: 18px; }
.catalog-part h2 { color: var(--store-ink); font-weight: 700; }
.catalog-part dl { gap: 12px 24px; padding-block: 12px; margin-bottom: 10px; border-block: 1px solid #edf0f4; }
.catalog-part dd { color: var(--store-ink); font-size: 16px; }
.catalog-part p { color: var(--store-muted); }
.catalog-position { color: var(--store-muted); background: #edf1f6; border-radius: 6px; }
.catalog-empty { background: #fff; border-color: var(--store-border); border-radius: 12px; }
.search-wait { min-height: 57vh; }
.search-wait-panel { border-color: var(--store-border); border-radius: 16px; padding: 30px 24px; box-shadow: 0 6px 24px #17263c05; }
.search-wait-icon { background: #fff3e9; color: var(--store-accent); }
.search-wait-track span { background: var(--store-accent); }
.seo-part-image { border-radius: 12px; }
.seo-part-page h1 { color: var(--store-ink); }

@media (max-width: 1199px) {
    .storefront-header-row { gap: 16px; }
    .storefront-links { margin-inline-start: 0; gap: 0; }
    .storefront-links a { padding-inline: 9px; }
    .storefront-account { font-size: 13px; }
}
@media (max-width: 991px) {
    .storefront-header-row { min-height: 68px; gap: 12px; }
    .storefront-links, .storefront-account { display: none; }
    .storefront-brand { font-size: 18px; }
    .storefront-brand img { width: 35px; height: 40px; }
    .storefront-tools { gap: 8px; }
    .storefront-home .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .aiz-main-wrapper { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    .storefront-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; width: 100%; max-width: none; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--store-border); background: #fff !important; padding: 3px 8px calc(3px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -2px 12px #17263c05; }
    .storefront-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 60px; padding: 6px 3px !important; color: var(--store-muted); font-size: 11px; line-height: 1.3; font-weight: 600; border-radius: 9px; text-decoration: none; }
    .storefront-bottom-nav a[aria-current] { color: var(--store-accent); background: #fff5ec; }
    .storefront-bottom-nav svg { width: 21px; height: 21px; }
    .storefront-bottom-nav .cart-count { display: inline-block; min-width: 16px; color: inherit; font-variant-numeric: tabular-nums; }
}
@media (max-width: 767px) {
    .container2 { padding-inline: 16px; }
    .storefront-header-row { min-height: 64px; gap: 8px; }
    .storefront-brand { font-size: 16px; gap: 7px; }
    .storefront-brand img { width: 30px; height: 35px; }
    .storefront-icon { background: none; }
    .storefront-tools { gap: 2px; }
    .storefront-cart-count { inset-inline-end: -1px; top: 0; }
    .home-hero { padding: 28px 0 13px; }
    .home-hero-copy { text-align: start; }
    .home-hero h1 { font-size: 27px; margin-bottom: 7px; }
    .home-hero p { font-size: 14px; line-height: 1.8; margin-bottom: 18px; }
    .home-search-form .input-group { gap: 3px; padding: 5px; border-radius: 10px; }
    .home-search-icon { width: 19px; height: 19px; margin-inline-start: 5px; }
    .home-search-form .form-control { padding-inline: 4px; height: 46px; }
    .home-search-form .btn { min-width: 66px; padding-inline: 14px; }
    .home-catalog-link { margin-top: 5px; font-size: 13px; }
    .catalog-section { padding-top: 21px; scroll-margin-top: 75px; }
    .section-heading { align-items: flex-start; gap: 8px; margin-bottom: 14px; }
    .section-heading h2 { font-size: 20px; }
    .catalog-section-hint { font-size: 13px; }
    .home-directory-link { min-height: 44px; font-size: 12px !important; }
    .storefront-home .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .catalog-brand-card { min-height: 99px; padding: 12px 6px; gap: 9px; border-radius: 10px; }
    .catalog-brand-image { height: 36px; }
    .catalog-brand-image img { max-height: 36px; max-width: 60px; }
    .catalog-brand-name { font-size: 13px; }
    .parts-results, .catalog-browser, .seo-part-page { padding-block: 16px 24px; }
    .parts-results .results-searchbar { margin-bottom: 20px; }
    .parts-results-heading { margin-bottom: 13px; }
    .parts-results-heading h1 { font-size: 22px; }
    .parts-results-list { border: 0; border-radius: 0; overflow: visible; background: none; gap: 10px; }
    .part-result { grid-template-columns: 80px minmax(0, 1fr); gap: 8px 12px; padding: 12px; border: 1px solid var(--store-border); border-radius: 11px; }
    .part-result:last-child { border-bottom: 1px solid var(--store-border); }
    .part-result-image img { height: 80px; }
    .part-result-brand { color: var(--store-muted); font-size: 11px; line-height: 1.5; }
    .part-result h2 { font-size: 14px; line-height: 1.6; margin: 3px 0 6px; }
    .part-result h2 button { min-height: 44px; }
    .part-result-number { margin-bottom: 0; line-height: 1.8; font-size: 11px; }
    .part-result-number a { display: inline-flex; align-items: center; min-height: 44px; }
    .part-result-number bdi { font-size: 13px; overflow-wrap: anywhere; }
    .part-result-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 3px 0 0; padding-top: 10px; }
    .part-result-price { font-size: 17px; margin-inline-end: auto; }
    .part-result-actions .btn { min-height: 44px; font-size: 13px; padding: 9px 16px; }
    .part-result-actions .btn-outline-primary { display: none; }
    .part-details { padding: 18px; width: calc(100% - 28px); max-width: 480px; }
    .part-details dl { gap: 12px; }
    .catalog-browser h1 { font-size: 23px; margin-block: 10px; }
    .catalog-entry { padding: 13px; border-radius: 10px; }
    .catalog-entry strong { line-height: 1.6; }
    .catalog-part { padding: 15px; }
    .catalog-part h2 { font-size: 16px; }
    .catalog-region select { flex: 1 1 150px; min-width: 0; }
    .search-wait-panel { padding: 26px 20px; }
}
@media (max-width: 359px) {
    .storefront-header-row { padding-inline: 12px; gap: 3px; }
    .storefront-brand { font-size: 15px; gap: 6px; }
    .storefront-brand img { width: 27px; height: 31px; }
    .storefront-tools { gap: 0; }
    .home-hero h1 { font-size: 24px; }
    .home-search-icon { display: none; }
    .home-search-form .form-control { padding-inline: 8px; }
    .section-heading h2 { font-size: 18px; }
    .catalog-section-hint { font-size: 12px; }
    .catalog-brand-name { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .catalog-brand-card { transition: none; }
}

/* ---------------------------------------------------------------
   Vehicle picker — shared by the home hero and the store listings.

   Three dropdowns: manufacturer, model, year. White, like the search box
   directly above it and like every other panel on the page. A navy block
   was tried and read as something pasted in from another site; the brand
   colour earns its place on the button, which is the one thing here that
   should catch the eye.
   --------------------------------------------------------------- */
.vehicle-picker {
    display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
    justify-content: center;
    background: #fff; border: 1px solid var(--sps-border, #e7e9ee);
    border-radius: 14px; padding: 16px 18px; margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(20, 33, 61, .05);
}
.vehicle-picker-label {
    font-weight: 800; font-size: .95rem; align-self: center;
    margin-inline-end: 4px; color: var(--sps-navy, #14213d); width: 100%;
}
.vehicle-picker label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vehicle-picker label > span {
    font-size: .78rem; font-weight: 600; letter-spacing: normal;
    text-transform: none; color: var(--sps-muted, #6b7484);
}
.vehicle-picker select {
    min-width: 150px; max-width: 100%; min-height: 48px;
    padding: 10px 38px 10px 14px;
    /* 16px: anything smaller and iOS Safari zooms the page on focus. */
    font-size: 16px; color: var(--sps-ink, #1f2937);
    border: 1px solid #d8dfe8; border-radius: 10px; background-color: #fff;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7484' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: 12px 8px;
    background-position: left 14px center;
}
[dir="ltr"] .vehicle-picker select {
    padding: 10px 14px 10px 38px; background-position: right 14px center;
}
.vehicle-picker select:focus {
    outline: none; border-color: var(--sps-accent, #f77b0b);
    box-shadow: 0 0 0 3px rgba(247, 123, 11, .18);
}
.vehicle-picker select:disabled {
    background-color: #f5f7fa; color: #9aa3b2; cursor: not-allowed;
}
.vehicle-clear {
    order: 3; flex: 0 0 100%; text-align: center;
    font-size: .85rem; font-weight: 600; padding: 2px 0;
    color: var(--sps-muted, #6b7484); text-decoration: underline;
}
.vehicle-clear:hover { color: var(--sps-navy, #14213d); }
.vehicle-go {
    min-height: 48px; padding: 10px 32px; white-space: nowrap;
    background: var(--sps-accent, #f77b0b); border-color: var(--sps-accent, #f77b0b);
    color: #fff; font-weight: 700;
}
.vehicle-go:hover:not(:disabled) {
    background: var(--sps-accent-dark, #d96806); border-color: var(--sps-accent-dark, #d96806);
}
.vehicle-go:disabled { opacity: .55; }
.vehicle-go.is-off { opacity: .5; pointer-events: none; }
.vehicle-picker .vehicle-picker-status {
    color: var(--sps-muted, #6b7484); text-align: center;
}

.vehicle-picker.is-hero { margin-top: 18px; }

@media (max-width: 760px) {
    /* Three selects abreast are unusable on a phone: stack them, full
       width, 16px text so iOS does not zoom the page on focus. */
    .vehicle-picker { gap: 12px; padding: 14px; }
    .vehicle-picker-label { width: 100%; }
    .vehicle-picker label { flex: 1 1 100%; }
    .vehicle-picker select { width: 100%; min-width: 0; }
    .vehicle-go { width: 100%; text-align: center; }
    .vehicle-clear { width: 100%; min-height: 44px; padding: 10px 0; }
    /* The retry button only appears when the options failed to load; it
       belongs in the same column as everything else when it does. */
    .vehicle-retry { width: 100%; }
}

/* The car a part fits — the first thing a buyer checks. */
.store-detail-fits {
    display: inline-flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
    background: #eef4ff; border: 1px solid #d3e0f7; border-radius: 10px;
    padding: 7px 13px; margin: 0 0 12px; font-size: .92rem;
}
.store-detail-fits span { color: #5a6475; }
.store-detail-fits strong { color: #14233d; }
.store-card-fits {
    display: block; font-size: .76rem; color: #6b7687; margin-top: 2px;
}

/* Make tiles on the home page carry a live part count. */
.catalog-brand-card { position: relative; }
.catalog-brand-count {
    display: block; font-size: .72rem; color: #8a93a6; margin-top: 2px;
}
.catalog-brand-image .store-monogram { width: 66px; height: 66px; font-size: 1.1rem; }

/* ---------------------------------------------------------------
   Model list on a make page. It is the main way into the catalogue,
   so it is a grid that wraps, not a one-line scroller.
   --------------------------------------------------------------- */
.store-subcats {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 8px;
    overflow: visible !important;
    margin: 0 0 18px;
}
.store-subcats a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--store-border, #e3e7ee);
    border-radius: 11px;
    font-size: .9rem;
    font-weight: 600;
    color: #14233d;
    line-height: 1.25;
}
.store-subcats a:hover,
.store-subcats a:focus-visible {
    border-color: #b9c8e4;
    background: #f7f9fd;
    color: #14233d;
}
.store-subcats a > span {
    flex: 0 0 auto;
    font-size: .74rem;
    font-weight: 700;
    color: #5a6475;
    background: #eef2f8;
    border-radius: 999px;
    padding: 2px 8px;
}
.store-models-title {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a93a6;
    margin: 0 0 9px;
}

@media (max-width: 640px) {
    /* Two per row reads better than one long column of 33. */
    .store-subcats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .store-subcats a { font-size: .83rem; padding: 9px 11px; min-height: 46px; }
    .store-subcats a > span { font-size: .7rem; padding: 2px 6px; }
}

.store-subcats a.is-current {
    border-color: #c2693a; background: #fdf3ed; color: #8c4a22;
}
.store-subcats a.is-current > span { background: #f6d9c8; color: #8c4a22; }

/* The search term, quoted back so the customer can check they typed it right. */
.catalog-empty-term {
    display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: #f1f4f9; border: 1px solid #e3e7ee; border-radius: 8px;
    padding: 6px 12px; margin: 0 0 14px; font-size: .92rem;
}
.catalog-empty .btn { margin: 4px; }
