/* STEP9-UI3 FRESH VEHICLE PAGE — PHASE 4 RESPONSIVE / ACCESSIBILITY / VISUAL POLISH
   Scope: .wwp-vp3 only. No dependency on R1-R12 Vehicle Page CSS. */

.wwp-vp3 {
    --vp3-bg: #f5f7f8;
    --vp3-surface: #ffffff;
    --vp3-surface-soft: #f8fafb;
    --vp3-surface-accent: #f1f8f5;
    --vp3-text: #14242a;
    --vp3-text-soft: #33454c;
    --vp3-muted: #6d7b81;
    --vp3-line: #e2e7e9;
    --vp3-line-strong: #d2dade;
    --vp3-accent: #0f6b54;
    --vp3-accent-strong: #095542;
    --vp3-accent-soft: #e9f5f0;
    --vp3-warning-soft: #fff7e6;
    --vp3-warning: #8a5b12;
    --vp3-shadow-sm: 0 1px 2px rgba(15, 32, 39, .04), 0 8px 24px rgba(15, 32, 39, .035);
    --vp3-shadow-md: 0 12px 34px rgba(15, 32, 39, .07);
    --vp3-radius-lg: 18px;
    --vp3-radius-md: 14px;
    --vp3-radius-sm: 10px;
    --vp3-width: 1160px;
    min-height: 100vh;
    margin: 0;
    background: var(--vp3-bg);
    color: var(--vp3-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
                 "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.wwp-vp3,
.wwp-vp3 * {
    box-sizing: border-box;
}

.wwp-vp3 a {
    color: inherit;
}

.wwp-vp3 a:focus-visible,
.wwp-vp3 button:focus-visible {
    outline: 3px solid rgba(15, 107, 84, .28);
    outline-offset: 3px;
}

.wwp-vp3__breadcrumb,
.wwp-vp3__main {
    width: min(calc(100% - 48px), var(--vp3-width));
    margin-inline: auto;
}

.wwp-vp3__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 7px;
    padding: 16px 2px 12px;
    color: var(--vp3-muted);
    font-size: .75rem;
    line-height: 1.5;
}

.wwp-vp3__main {
    padding-bottom: 64px;
}

.wwp-vp3__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 42px;
    align-items: center;
    padding: 44px 46px;
    border: 1px solid var(--vp3-line);
    border-radius: var(--vp3-radius-lg) var(--vp3-radius-lg) 0 0;
    background: linear-gradient(135deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: var(--vp3-shadow-sm);
}

.wwp-vp3__hero-copy {
    min-width: 0;
}

.wwp-vp3 .vehicle-manufacturer {
    margin: 0 0 8px;
    color: var(--vp3-accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.wwp-vp3__title {
    margin: 0;
    color: #102229;
    font-size: clamp(2.3rem, 4.2vw, 3.75rem);
    line-height: 1.04;
    font-weight: 850;
    letter-spacing: -.045em;
}

.wwp-vp3__title span {
    display: block;
    margin-top: 12px;
    color: #42545b;
    font-size: .42em;
    font-weight: 760;
    letter-spacing: -.01em;
}

.wwp-vp3__period {
    margin: 20px 0 0;
    color: var(--vp3-text-soft);
    font-size: .98rem;
    font-weight: 700;
}

.wwp-vp3__purpose {
    margin: 7px 0 0;
    color: var(--vp3-muted);
    font-size: .86rem;
}

.wwp-vp3__vehicle-image,
.wwp-vp3__vehicle-image-empty {
    min-height: 208px;
    margin: 0;
    border: 1px solid #e7ecee;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,.96), rgba(243,247,248,.9) 55%, rgba(235,240,242,.95) 100%);
}

.wwp-vp3__vehicle-image {
    display: grid;
    place-items: center;
    overflow: hidden;
}

.wwp-vp3__vehicle-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: contain;
}

.wwp-vp3__vehicle-image-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #839198;
    font-size: .8rem;
}

.wwp-vp3__car-silhouette {
    position: relative;
    display: block;
    width: 128px;
    height: 46px;
    border: 3px solid #aebac0;
    border-top: 0;
    border-radius: 10px 16px 8px 8px;
    opacity: .78;
}

.wwp-vp3__car-silhouette::before {
    content: "";
    position: absolute;
    left: 23px;
    top: -27px;
    width: 75px;
    height: 33px;
    border: 3px solid #aebac0;
    border-bottom: 0;
    border-radius: 38px 38px 0 0;
}

.wwp-vp3__tabs {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid var(--vp3-line);
    border-top: 0;
    border-radius: 0 0 var(--vp3-radius-lg) var(--vp3-radius-lg);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--vp3-shadow-sm);
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}

.wwp-vp3__tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.wwp-vp3__tabs a {
    position: relative;
    flex: 1 0 auto;
    min-width: 130px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-right: 1px solid var(--vp3-line);
    color: #40525a;
    font-size: .82rem;
    font-weight: 760;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    scroll-snap-align: start;
    transition: background-color .18s ease, color .18s ease;
}

.wwp-vp3__tabs a:last-child {
    border-right: 0;
}

.wwp-vp3__tabs a:hover {
    background: var(--vp3-surface-accent);
    color: var(--vp3-accent);
}

.wwp-vp3__anchor,
.wwp-vp3__section,
#vehicle-identity,
#variant-confirmation,
#wiper-size,
#fitment-products,
#wiper-type-guide,
#vehicle-details,
#other-generations {
    scroll-margin-top: 18px;
}

.wwp-vp3__section {
    margin-top: 22px;
    padding: 30px 32px;
    border: 1px solid var(--vp3-line);
    border-radius: var(--vp3-radius-lg);
    background: var(--vp3-surface);
    box-shadow: var(--vp3-shadow-sm);
}

.wwp-vp3__section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.wwp-vp3__section-head > div {
    min-width: 0;
}

.wwp-vp3__section-head h2 {
    margin: 0;
    color: #15272d;
    font-size: clamp(1.28rem, 2vw, 1.55rem);
    line-height: 1.25;
    font-weight: 820;
    letter-spacing: -.02em;
}

.wwp-vp3__eyebrow {
    margin: 0 0 6px;
    color: var(--vp3-accent);
    font-size: .66rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.wwp-vp3__confirmation {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
}

.wwp-vp3__facts,
.wwp-vp3__details-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    border: 1px solid var(--vp3-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fbfcfc;
}

.wwp-vp3__facts > div,
.wwp-vp3__details-list > div {
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid var(--vp3-line);
}

.wwp-vp3__facts > div:last-child,
.wwp-vp3__details-list > div:last-child {
    border-right: 0;
}

.wwp-vp3__facts dt,
.wwp-vp3__details-list dt {
    color: var(--vp3-muted);
    font-size: .72rem;
    font-weight: 760;
}

.wwp-vp3__facts dd,
.wwp-vp3__details-list dd {
    margin: 5px 0 0;
    color: #23363d;
    font-size: .95rem;
    font-weight: 760;
    overflow-wrap: anywhere;
}

.wwp-vp3__fitment {
    position: relative;
    overflow: hidden;
    border-color: #d4e7df;
    background: linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
    box-shadow: var(--vp3-shadow-md);
}

.wwp-vp3__fitment::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--vp3-accent), #39a17f);
}

.wwp-vp3 .wiper-size-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wwp-vp3 .wiper-size-card {
    min-width: 0;
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 24px;
    border: 1px solid #dfe9e5;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #f7fbf9);
}

.wwp-vp3 .wiper-size-card h3 {
    margin: 0 0 10px;
    color: #5d6d72;
    font-size: .79rem;
    font-weight: 760;
}

.wwp-vp3 .wiper-size-value {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    color: var(--vp3-accent-strong);
}

.wwp-vp3 .wiper-size-value strong {
    font-size: clamp(2.8rem, 4.6vw, 4.25rem);
    line-height: .95;
    font-weight: 880;
    letter-spacing: -.055em;
    font-variant-numeric: tabular-nums;
}

.wwp-vp3 .wiper-size-value span {
    font-size: .9rem;
    font-weight: 800;
}

.wwp-vp3__fitment-pending {
    margin: 0;
    color: #394b52;
    font-size: 1.12rem;
    font-weight: 800;
}

.wwp-vp3__fitment-state,
.wwp-vp3__pending-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 7px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--vp3-warning-soft);
    color: var(--vp3-warning);
    font-size: .7rem;
    font-weight: 800;
}

.wwp-vp3__section-note,
.wwp-vp3__empty {
    margin: -6px 0 18px;
    color: var(--vp3-muted);
    font-size: .85rem;
}

.wwp-vp3__product-list,
.wwp-vp3__related-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.wwp-vp3__product,
.wwp-vp3 .other-generation-card {
    min-width: 0;
    min-height: 150px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 21px;
    border: 1px solid var(--vp3-line);
    border-radius: 14px;
    background: #ffffff;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.wwp-vp3__product:hover,
.wwp-vp3 .other-generation-card:hover {
    border-color: #cbd8d3;
    box-shadow: 0 10px 26px rgba(15, 32, 39, .06);
    transform: translateY(-1px);
}

.wwp-vp3__product-main,
.wwp-vp3 .other-generation-card > div {
    min-width: 0;
}

.wwp-vp3__product h3,
.wwp-vp3 .other-generation-card h3 {
    margin: 0;
    color: #1c3037;
    font-size: .98rem;
    line-height: 1.5;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.wwp-vp3__product-brand,
.wwp-vp3__related-kicker {
    margin: 0 0 6px;
    color: var(--vp3-accent);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .04em;
}

.wwp-vp3__position-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.wwp-vp3__position-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #d8e8e2;
    border-radius: 999px;
    background: #f4faf7;
    color: var(--vp3-accent);
    font-size: .68rem;
    font-weight: 800;
}

.wwp-vp3__purchase-links {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.wwp-vp3 .product-purchase-link,
.wwp-vp3 .other-generation-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--vp3-accent);
    color: #ffffff !important;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}

.wwp-vp3 .product-purchase-link:hover,
.wwp-vp3 .other-generation-link:hover {
    background: var(--vp3-accent-strong);
    transform: translateY(-1px);
}

.wwp-vp3__product-link-pending,
.wwp-vp3__related-pending {
    flex: 0 0 auto;
    color: var(--vp3-muted);
    font-size: .74rem;
    font-weight: 700;
}

.wwp-vp3 .other-generation-card p:not(.wwp-vp3__related-kicker) {
    margin: 5px 0 0;
    color: var(--vp3-muted);
    font-size: .8rem;
}

.wwp-vp3__type-status {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 22px;
    border: 1px dashed #d4dcdf;
    border-radius: 14px;
    background: #fafbfc;
}

.wwp-vp3__type-status-mark {
    min-height: 74px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff5f3, #e7efec);
    color: #61736c;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .11em;
}

.wwp-vp3__type-status-copy p {
    margin: 0;
    color: #34464d;
    font-size: .9rem;
    font-weight: 760;
}

.wwp-vp3__type-status-copy p + p {
    margin-top: 7px;
    color: var(--vp3-muted);
    font-size: .78rem;
    font-weight: 500;
}

.wwp-vp3__details-code-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wwp-vp3__details-code {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid #dfe5e8;
    border-radius: 8px;
    background: #ffffff;
    color: #2b3f47;
    font-size: .78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.wwp-vp3__evidence-compat {
    display: none !important;
}

@media (max-width: 980px) {
    .wwp-vp3__hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(220px, .75fr);
        gap: 28px;
        padding: 34px;
    }

    .wwp-vp3__product-list,
    .wwp-vp3__related-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .wwp-vp3__breadcrumb,
    .wwp-vp3__main {
        width: min(calc(100% - 24px), var(--vp3-width));
    }

    .wwp-vp3__main {
        padding-bottom: 44px;
    }

    .wwp-vp3__hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 26px;
    }

    .wwp-vp3__vehicle-image,
    .wwp-vp3__vehicle-image-empty {
        min-height: 145px;
    }

    .wwp-vp3__tabs a {
        flex: 0 0 auto;
        min-width: 128px;
    }

    .wwp-vp3__section {
        margin-top: 16px;
        padding: 24px 22px;
    }

    .wwp-vp3__facts,
    .wwp-vp3__details-list {
        grid-template-columns: 1fr;
    }

    .wwp-vp3__facts > div,
    .wwp-vp3__details-list > div {
        border-right: 0;
        border-bottom: 1px solid var(--vp3-line);
    }

    .wwp-vp3__facts > div:last-child,
    .wwp-vp3__details-list > div:last-child {
        border-bottom: 0;
    }

    .wwp-vp3 .wiper-size-grid {
        grid-template-columns: 1fr;
    }

    .wwp-vp3 .wiper-size-card {
        min-height: 122px;
    }

    .wwp-vp3__product,
    .wwp-vp3 .other-generation-card {
        min-height: 0;
    }

    .wwp-vp3__type-status {
        grid-template-columns: 1fr;
    }

    .wwp-vp3__type-status-mark {
        min-height: 58px;
    }
}

@media (max-width: 480px) {
    .wwp-vp3__breadcrumb,
    .wwp-vp3__main {
        width: min(calc(100% - 20px), var(--vp3-width));
    }

    .wwp-vp3__breadcrumb {
        padding: 10px 1px 8px;
        font-size: .68rem;
    }

    .wwp-vp3__hero {
        gap: 16px;
        padding: 20px;
        border-radius: 14px 14px 0 0;
    }

    .wwp-vp3__title {
        font-size: 2rem;
    }

    .wwp-vp3__title span {
        margin-top: 8px;
    }

    .wwp-vp3__period {
        margin-top: 14px;
        font-size: .9rem;
    }

    .wwp-vp3__vehicle-image,
    .wwp-vp3__vehicle-image-empty {
        min-height: 92px;
        border-radius: 12px;
    }

    .wwp-vp3__tabs {
        border-radius: 0 0 14px 14px;
    }

    .wwp-vp3__tabs a {
        min-width: auto;
        min-height: 46px;
        padding: 12px 15px;
        font-size: .76rem;
    }

    .wwp-vp3__section {
        margin-top: 12px;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .wwp-vp3__section-head {
        margin-bottom: 17px;
    }

    .wwp-vp3__section-head h2 {
        font-size: 1.18rem;
    }

    .wwp-vp3__confirmation .wwp-vp3__section-head {
        margin-bottom: 13px;
    }

    .wwp-vp3__confirmation .wwp-vp3__facts > div {
        padding: 12px 14px;
    }

    .wwp-vp3__confirmation .wwp-vp3__facts dt {
        font-size: .68rem;
    }

    .wwp-vp3__confirmation .wwp-vp3__facts dd {
        margin-top: 2px;
        font-size: .9rem;
        line-height: 1.45;
    }

    .wwp-vp3 .wiper-size-card {
        min-height: 106px;
        padding: 17px 18px;
        border-radius: 12px;
    }

    .wwp-vp3 .wiper-size-value strong {
        font-size: 2.75rem;
    }

    .wwp-vp3__product,
    .wwp-vp3 .other-generation-card {
        flex-direction: column;
        padding: 17px;
        border-radius: 12px;
    }

    .wwp-vp3__purchase-links {
        width: 100%;
        justify-content: flex-start;
    }

    .wwp-vp3 .product-purchase-link,
    .wwp-vp3 .other-generation-link {
        width: 100%;
    }

    .wwp-vp3__type-status {
        padding: 16px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wwp-vp3 *,
    .wwp-vp3 *::before,
    .wwp-vp3 *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

