/* Part-ON product detail V1 — isolated preview surface. */
:root {
    --pdv1-navy: #0b1f36;
    --pdv1-navy-soft: #17324f;
    --pdv1-orange: #ef6c21;
    --pdv1-orange-dark: #d95712;
    --pdv1-ink: #142438;
    --pdv1-muted: #607083;
    --pdv1-line: #dfe6ec;
    --pdv1-canvas: #f5f7f9;
    --pdv1-positive: #19724b;
}

body[data-route="product"] .storefront-hero,
body[data-route="product"] #resultHeader {
    display: none !important;
}

body[data-route="product"] .results-section {
    min-height: 900px;
    padding: 0 0 72px;
    background: var(--pdv1-canvas);
}

body[data-route="product"] #products.products {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.pdv1-page {
    width: min(100%, 1264px);
    margin: 0 auto;
    padding: 26px 0 0;
    color: var(--pdv1-ink);
}

.pdv1-back {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    color: #526579;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.pdv1-back::before {
    content: "←";
    color: var(--pdv1-orange-dark);
    font-size: 18px;
}

.pdv1-back:hover { color: var(--pdv1-navy); }

.pdv1-hero {
    display: grid;
    grid-template-columns: minmax(360px, 47fr) minmax(420px, 53fr);
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid var(--pdv1-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(11, 31, 54, .07);
}

.pdv1-media {
    min-width: 0;
    padding: 34px;
    border-right: 1px solid var(--pdv1-line);
    background: linear-gradient(145deg, #fff 0%, #f7f9fb 100%);
}

.pdv1-media-stage {
    position: relative;
    display: grid;
    width: 100%;
    height: 432px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e7edf2;
    border-radius: 16px;
    background: #fff;
}

.pdv1-media-stage.is-pending::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 34%, rgba(244, 247, 249, .9) 48%, transparent 62%);
    content: "";
    transform: translateX(-100%);
    animation: pdv1-skeleton 1.6s ease-in-out infinite;
}

@keyframes pdv1-skeleton { to { transform: translateX(100%); } }

.pdv1-media-fallback {
    display: grid;
    max-width: 260px;
    justify-items: center;
    padding: 28px;
    text-align: center;
}

.pdv1-placeholder-graphic {
    display: grid;
    width: 92px;
    height: 92px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 24px;
    color: #8b9aaa;
    background: #eef2f5;
}

.pdv1-placeholder-graphic svg {
    width: 58px;
    height: 58px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.pdv1-media-state-title {
    color: var(--pdv1-navy);
    font-size: 16px;
    line-height: 1.35;
}

.pdv1-media-state-copy {
    margin-top: 7px;
    color: var(--pdv1-muted);
    font-size: 13px;
    line-height: 1.45;
}

.pdv1-media-open {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 44px;
    padding: 22px;
    place-items: center;
    border: 0;
    border-radius: inherit;
    background: #fff;
    cursor: zoom-in;
}

.pdv1-media-image {
    width: auto;
    max-width: min(100%, 392px);
    height: auto;
    max-height: 382px;
    object-fit: contain;
}

.pdv1-media-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    border: 1px solid #dfe6ec;
    border-radius: 999px;
    color: #526579;
    background: rgba(255, 255, 255, .94);
    font-size: 12px;
    font-weight: 700;
}

.pdv1-media-caption {
    min-height: 20px;
    margin: 12px 0 0;
    color: #718092;
    font-size: 12px;
    text-align: center;
}

.pdv1-lightbox {
    width: min(860px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    padding: 54px 24px 24px;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(5, 20, 35, .28);
}

.pdv1-lightbox::backdrop { background: rgba(5, 20, 35, .72); }
.pdv1-lightbox-image { display: block; max-width: 100%; max-height: calc(100vh - 120px); margin: auto; object-fit: contain; }
.pdv1-lightbox-close { position: absolute; top: 12px; right: 12px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--pdv1-line); border-radius: 999px; color: var(--pdv1-navy); background: #fff; font-weight: 700; }

.pdv1-commerce {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 48px 52px 42px;
}

.pdv1-brand,
.pdv1-section-kicker {
    margin: 0;
    color: var(--pdv1-orange-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.pdv1-title {
    max-width: 620px;
    margin: 10px 0 14px;
    color: var(--pdv1-navy);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 780;
    line-height: 1.06;
    letter-spacing: -.035em;
}

.pdv1-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdv1-article {
    color: #41566d;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: .015em;
}

.pdv1-copy {
    min-height: 44px;
    padding: 8px 10px;
    border: 0;
    color: #526579;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #bdc8d2;
    text-underline-offset: 3px;
}

.pdv1-purchase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 236px);
    align-items: end;
    gap: 2px 22px;
    margin-top: auto;
    padding-top: 44px;
}

.pdv1-price-label {
    grid-column: 1;
    color: var(--pdv1-muted);
    font-size: 13px;
    font-weight: 650;
}

.pdv1-price {
    grid-column: 1;
    color: var(--pdv1-navy);
    font-size: clamp(34px, 3.25vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.pdv1-delivery-line {
    grid-column: 1;
    margin: 8px 0 0;
    color: var(--pdv1-positive);
    font-size: 14px;
    font-weight: 750;
}

.pdv1-primary-action {
    grid-column: 2;
    grid-row: 1 / 4;
    min-height: 56px;
    padding: 0 24px;
    border: 1px solid var(--pdv1-orange);
    border-radius: 12px;
    color: #fff;
    background: var(--pdv1-orange);
    box-shadow: 0 10px 22px rgba(239, 108, 33, .19);
    font-size: 16px;
    font-weight: 800;
}

.pdv1-primary-action:hover:not(:disabled) { border-color: var(--pdv1-orange-dark); background: var(--pdv1-orange-dark); }
.pdv1-primary-action:disabled,
.pdv1-offer-action:disabled { cursor: not-allowed; opacity: .5; }

.pdv1-offers-disclosure {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--pdv1-line);
    color: var(--pdv1-navy);
    background: transparent;
    font-size: 14px;
    font-weight: 750;
    text-align: left;
}

.pdv1-disclosure-icon {
    color: var(--pdv1-orange-dark);
    font-size: 22px;
    font-weight: 500;
}

.pdv1-offers-panel {
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--pdv1-line);
    border-radius: 18px;
    background: #fff;
}

.pdv1-offers-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid var(--pdv1-line);
}

.pdv1-offers-heading h2 { margin: 0; color: var(--pdv1-navy); font-size: 21px; }
.pdv1-offers-heading p { margin: 0; color: var(--pdv1-muted); font-size: 13px; }

.pdv1-offers-list { display: grid; }
.pdv1-offer-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(170px, 1.1fr) minmax(120px, .8fr) 140px;
    align-items: center;
    gap: 18px;
    min-height: 78px;
    padding: 14px 28px;
    border-bottom: 1px solid #edf1f4;
}
.pdv1-offer-row:last-child { border-bottom: 0; }
.pdv1-offer-price { color: var(--pdv1-navy); font-size: 19px; }
.pdv1-offer-availability { color: var(--pdv1-positive); font-size: 14px; font-weight: 700; }
.pdv1-offer-delivery { color: #526579; font-size: 14px; }
.pdv1-offer-action {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #cbd6df;
    border-radius: 10px;
    color: var(--pdv1-navy);
    background: #fff;
    font-weight: 750;
}
.pdv1-offer-action:hover:not(:disabled) { border-color: var(--pdv1-orange); color: var(--pdv1-orange-dark); }
.pdv1-offer-best { display: none; }

.pdv1-information {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 18px;
    margin-top: 18px;
}

.pdv1-info-card {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--pdv1-line);
    border-radius: 18px;
    background: #fff;
}
.pdv1-info-card h2 { margin: 7px 0 10px; color: var(--pdv1-navy); font-size: 21px; letter-spacing: -.015em; }
.pdv1-info-card p:not(.pdv1-section-kicker) { margin: 0; color: #526579; font-size: 14px; line-height: 1.6; }
.pdv1-specs { display: grid; grid-template-columns: minmax(150px, .7fr) 1fr; margin: 20px 0 0; }
.pdv1-specs dt,
.pdv1-specs dd { margin: 0; padding: 10px 0; border-top: 1px solid #edf1f4; font-size: 14px; }
.pdv1-specs dt { color: var(--pdv1-muted); }
.pdv1-specs dd { color: var(--pdv1-ink); font-weight: 650; }

.pdv1-page :focus-visible {
    outline: 3px solid rgba(239, 108, 33, .42);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .pdv1-page { padding-right: 0; padding-left: 0; }
    .pdv1-hero { grid-template-columns: minmax(330px, 44fr) minmax(390px, 56fr); }
    .pdv1-media { padding: 26px; }
    .pdv1-media-stage { height: 432px; }
    .pdv1-commerce { padding: 38px 36px 34px; }
}

@media (max-width: 767px) {
    body[data-route="product"] .results-section { min-height: 1100px; padding-bottom: 40px; }
    body[data-route="product"] .results-section > .container { width: 100%; padding: 0 16px; }
    .pdv1-page { padding-top: 10px; }
    .pdv1-back { font-size: 13px; }
    .pdv1-hero { display: flex; flex-direction: column; margin-top: 4px; border-radius: 16px; }
    .pdv1-media { order: 1; padding: 14px 14px 0; border-right: 0; background: #fff; }
    .pdv1-media-stage { height: 264px; border-radius: 12px; }
    .pdv1-media-image { max-width: min(100%, 250px); max-height: 214px; }
    .pdv1-media-open { padding: 12px; }
    .pdv1-media-caption { margin-top: 8px; }
    .pdv1-placeholder-graphic { width: 74px; height: 74px; margin-bottom: 12px; border-radius: 19px; }
    .pdv1-placeholder-graphic svg { width: 46px; height: 46px; }
    .pdv1-media-fallback { padding: 16px; }
    .pdv1-media-state-title { font-size: 14px; }
    .pdv1-media-state-copy { font-size: 12px; }
    .pdv1-commerce { order: 2; padding: 15px 18px 20px; }
    .pdv1-title { margin: 7px 0 8px; font-size: 27px; line-height: 1.1; }
    .pdv1-identity { justify-content: space-between; gap: 6px; }
    .pdv1-copy { margin-right: -8px; }
    .pdv1-purchase { grid-template-columns: minmax(0, 1fr) 148px; gap: 2px 12px; padding-top: 19px; }
    .pdv1-price { font-size: 32px; }
    .pdv1-delivery-line { font-size: 13px; }
    .pdv1-primary-action { min-height: 52px; padding: 0 14px; font-size: 15px; }
    .pdv1-offers-disclosure { margin-top: 18px; }
    .pdv1-offers-panel { margin-top: 12px; border-radius: 14px; }
    .pdv1-offers-heading { display: block; padding: 18px; }
    .pdv1-offers-heading h2 { font-size: 19px; }
    .pdv1-offers-heading p { margin-top: 5px; }
    .pdv1-offer-row { grid-template-columns: 1fr auto; gap: 5px 12px; min-height: 0; padding: 16px 18px; }
    .pdv1-offer-price { grid-column: 1; grid-row: 1; }
    .pdv1-offer-availability { grid-column: 1; grid-row: 2; font-size: 13px; }
    .pdv1-offer-delivery { grid-column: 1; grid-row: 3; font-size: 13px; }
    .pdv1-offer-action { grid-column: 2; grid-row: 1 / 4; min-width: 112px; }
    .pdv1-information { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
    .pdv1-info-card { padding: 20px; border-radius: 14px; }
    .pdv1-info-card h2 { font-size: 19px; }
    .pdv1-fitment { order: -1; }
    .pdv1-specs { grid-template-columns: 1fr; }
    .pdv1-specs dd { padding-top: 0; border-top: 0; }
}

@media (max-width: 359px) {
    .pdv1-purchase { grid-template-columns: 1fr; }
    .pdv1-primary-action { grid-column: 1; grid-row: auto; width: 100%; margin-top: 12px; }
}

/* V1.1 desktop density polish. Mobile rules above remain the V1 contract. */
@media (min-width: 768px) {
    .pdv1-page {
        width: min(100%, 1160px);
        padding-top: 18px;
    }

    .pdv1-hero {
        grid-template-columns: minmax(330px, 46fr) minmax(420px, 54fr);
        margin-top: 4px;
        border-radius: 18px;
    }

    .pdv1-media {
        padding: 24px;
    }

    .pdv1-media-stage {
        height: 352px;
        border-radius: 14px;
    }

    .pdv1-media-image {
        max-height: 304px;
    }

    .pdv1-commerce {
        padding: 32px 38px 28px;
    }

    .pdv1-title {
        margin-top: 8px;
        margin-bottom: 12px;
        font-size: clamp(32px, 2.4vw, 38px);
    }

    .pdv1-purchase {
        grid-template-columns: minmax(0, 1fr) minmax(176px, 200px);
        margin-top: 28px;
        padding-top: 0;
    }

    .pdv1-price {
        font-size: clamp(36px, 2.8vw, 44px);
    }

    .pdv1-primary-action {
        min-height: 52px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .pdv1-offers-disclosure {
        min-height: 44px;
        margin-top: 16px;
    }

    .pdv1-offers-panel {
        margin-top: 12px;
    }

    .pdv1-information {
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pdv1-media-stage.is-pending::after { animation: none; }
}
