:root {
    --vp-primary: #c43593;
    --vp-primary-dark: #96266f;
    --vp-saffron: #fdb415;
    --vp-paper: #fcfcfa;
    --vp-wash: #fbf6f9;
    --vp-line: #eadfe6;
    --vp-muted: #6f6670;
    --vp-ink: #302a31;
}

.vp-page {
    min-height: 70vh;
    overflow-x: hidden;
    padding: 22px 0 84px;
    background: var(--vp-paper);
    color: var(--vp-ink);
    font-family: "Lato", Arial, sans-serif;
}

.vp-page .container {
    font-size: 14px;
}

.vp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 28px;
    color: var(--vp-muted);
    font-size: 13px;
}

.vp-breadcrumb a {
    color: var(--vp-primary);
    font-weight: 700;
    text-decoration: none;
}

.vp-breadcrumb a:hover {
    color: var(--vp-primary-dark);
}

.vp-product-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(390px, .86fr);
    gap: clamp(36px, 5vw, 68px);
    align-items: start;
}

.vp-gallery-column,
.vp-detail-column,
.vp-information,
.vp-related {
    min-width: 0;
}

.vp-gallery-column {
    position: relative;
}

.vp-gallery-column::before {
    position: absolute;
    z-index: 0;
    top: -12px;
    left: -12px;
    width: 76px;
    height: 76px;
    border-top: 4px solid var(--vp-saffron);
    border-left: 4px solid var(--vp-saffron);
    content: "";
}

.vp-main-media {
    position: relative;
    z-index: 1;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--vp-line);
    background: var(--vp-wash);
}

.vp-image-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: clamp(18px, 3vw, 34px);
    border: 0;
    background: transparent;
    cursor: zoom-in;
    touch-action: manipulation;
}

.vp-image-trigger:focus-visible,
.vp-thumbnail:focus-visible,
.vp-lightbox-close:focus-visible,
.vp-primary-button:focus-visible,
.vp-related-link:focus-visible {
    outline: 3px solid rgba(196, 53, 147, .55);
    outline-offset: 4px;
}

.vp-main-image {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: 100% !important;
    max-height: 100%;
    object-fit: contain;
}

.vp-zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 3px;
    background: rgba(196, 53, 147, .92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.vp-zoom-hint span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
}

.vp-thumbnail-strip {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    max-width: 100%;
    margin-top: 14px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
}

.vp-thumbnail {
    display: flex;
    flex: 0 0 68px;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    overflow: hidden;
    padding: 3px;
    border: 1px solid var(--vp-line);
    border-radius: 2px;
    background: #fff;
    color: inherit;
    cursor: pointer;
    font: inherit;
    touch-action: manipulation;
}

.vp-thumbnail:hover,
.vp-thumbnail.is-active {
    border-color: var(--vp-primary);
    box-shadow: inset 0 0 0 1px var(--vp-primary);
}

.vp-thumbnail img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.vp-detail-column {
    padding-top: 4px;
}

.vp-kicker {
    max-width: 34rem;
    margin: 0 0 12px;
    color: var(--vp-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.vp-product-title {
    margin: 0;
    color: var(--vp-primary);
    font-family: "Raleway", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.2;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.vp-product-title span {
    color: var(--vp-primary) !important;
}

.vp-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 24px;
    color: var(--vp-primary);
    font-variant-numeric: tabular-nums;
}

.vp-price {
    font-family: "Raleway", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.vp-currency {
    color: var(--vp-muted);
    font-size: 13px;
    font-weight: 700;
}

.vp-seller-line {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--vp-line);
    color: var(--vp-muted);
    font-size: 14px;
}

.vp-seller-line strong {
    color: var(--vp-primary-dark);
}

.vp-description {
    max-width: 62ch;
    margin-top: 18px;
    padding-left: 16px;
    border-left: 3px solid var(--vp-saffron);
    color: #51464f;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.vp-description:empty {
    display: none;
}

.vp-seller-unavailable {
    margin: 26px 0 0;
    padding: 15px 17px;
    border-left: 3px solid var(--vp-saffron);
    background: var(--vp-wash);
    color: var(--vp-muted);
    font-size: 14px;
}

.vp-contact-card {
    margin-top: 28px;
    padding: 24px;
    background: var(--vp-primary);
    color: #fff;
    box-shadow: 10px 10px 0 rgba(184, 50, 128, .12);
}

.vp-contact-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.vp-contact-card h2 {
    margin: 0;
    color: #fff;
    font-family: "Raleway", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.vp-contact-card p {
    max-width: 42ch;
    margin: 6px 0 0;
    color: #fff4fa !important;
    font-size: 13px;
    line-height: 1.5;
}

.vp-contact-mark {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .25);
    color: var(--vp-saffron);
    font-size: 20px;
    font-weight: 700;
}

.vp-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.vp-contact-card .form-group {
    min-width: 0;
    margin-bottom: 13px;
}

.vp-contact-card label {
    display: block;
    margin-bottom: 6px;
    color: #edf1f7;
    font-size: 12px;
    font-weight: 700;
}

.vp-contact-card .form-control {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 2px;
    background: #fff;
    box-shadow: none;
    color: var(--vp-ink);
    font-size: 15px;
}

.vp-contact-card .form-control:focus {
    border-color: var(--vp-saffron);
    box-shadow: 0 0 0 3px rgba(216, 155, 43, .2);
}

.vp-contact-card textarea.form-control {
    min-height: 82px;
    resize: vertical;
}

.vp-field-error {
    display: block;
    margin-top: 5px;
    color: #ffd9e9;
    font-size: 12px;
    font-weight: 700;
}

.vp-primary-button {
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--vp-saffron);
    border-radius: 2px;
    background: var(--vp-saffron);
    color: var(--vp-ink);
    font-weight: 700;
    touch-action: manipulation;
}

.vp-primary-button:hover,
.vp-primary-button:focus-visible {
    border-color: #f0bd5e;
    background: #f0bd5e;
    color: var(--vp-ink);
}

.vp-status-success,
.portal-status-success,
.vp-status-error,
.portal-status-error {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
}

.vp-status-success,
.portal-status-success {
    color: #a9ebca;
}

.vp-status-error,
.portal-status-error {
    color: #ffd9e9;
}

.vp-information,
.vp-related {
    margin-top: clamp(58px, 8vw, 92px);
    padding-top: 28px;
    border-top: 1px solid var(--vp-primary);
}

.vp-section-heading {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-bottom: 26px;
}

.vp-section-index {
    margin: 3px 0 0;
    color: var(--vp-primary);
    font-size: 13px;
    font-weight: 700;
}

.vp-section-heading h2 {
    margin: 0;
    color: var(--vp-primary);
    font-family: "Raleway", Arial, sans-serif;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.08;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.vp-section-heading > div > p:not(.vp-section-index) {
    margin: 7px 0 0;
    color: var(--vp-muted);
    font-size: 14px;
}

.vp-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    border-top: 1px solid var(--vp-line);
    border-left: 1px solid var(--vp-line);
}

.vp-spec-grid dl {
    min-width: 0;
    margin: 0;
    padding: 18px 20px 20px;
    border-right: 1px solid var(--vp-line);
    border-bottom: 1px solid var(--vp-line);
    background: #fff;
}

.vp-spec-grid dt {
    margin: 0 0 7px;
    color: var(--vp-muted);
    font-size: 12px;
    font-weight: 400;
}

.vp-spec-grid dd {
    margin: 0;
    color: var(--vp-primary-dark);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.vp-related-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.vp-related-heading > div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.vp-related-count {
    padding-bottom: 3px;
    color: var(--vp-muted);
    font-size: 12px;
    white-space: nowrap;
}

.vp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.vp-related-card {
    min-width: 0;
}

.vp-related-link {
    display: block;
    height: 100%;
    color: var(--vp-ink);
    text-decoration: none;
    touch-action: manipulation;
}

.vp-related-link:hover,
.vp-related-link:focus {
    color: var(--vp-ink);
    text-decoration: none;
}

.vp-related-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--vp-line);
    background: var(--vp-wash);
}

.vp-related-image img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: 100% !important;
    max-height: 100%;
    object-fit: contain;
}

.vp-related-link h3 {
    display: -webkit-box;
    min-height: 43px;
    overflow: hidden;
    margin: 13px 0 7px;
    color: var(--vp-primary);
    font-family: "Raleway", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vp-related-link:hover h3 {
    color: var(--vp-primary-dark);
}

.vp-related-link p {
    margin: 0;
    color: var(--vp-muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.vp-related-link::after {
    display: block;
    width: 36px;
    height: 2px;
    margin-top: 13px;
    background: var(--vp-saffron);
    content: "";
}

.vp-lightbox {
    position: fixed;
    z-index: 3000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(28px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
    background: rgba(48, 42, 49, .97);
    overscroll-behavior: contain;
    touch-action: manipulation;
}

.vp-lightbox.is-open {
    display: flex;
}

.vp-lightbox-open {
    overflow: hidden;
}

.vp-lightbox img {
    display: block;
    width: auto;
    max-width: 92vw;
    height: auto;
    max-height: 88vh;
    object-fit: contain;
}

.vp-lightbox-close {
    position: absolute;
    top: max(18px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    touch-action: manipulation;
}

.vp-lightbox-close:hover {
    border-color: var(--vp-saffron);
    color: var(--vp-saffron);
}

@media (max-width: 991px) {
    .vp-product-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .vp-product-title {
        max-width: 18ch;
    }

    .vp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 16px;
    }
}

@media (max-width: 767px) {
    .vp-page {
        padding: 16px 0 56px;
    }

    .vp-breadcrumb {
        margin-bottom: 22px;
    }

    .vp-gallery-column::before {
        top: -7px;
        left: -7px;
        width: 52px;
        height: 52px;
        border-width: 3px;
    }

    .vp-main-media {
        aspect-ratio: 1 / 1;
    }

    .vp-image-trigger {
        padding: 18px;
    }

    .vp-zoom-hint {
        right: 10px;
        bottom: 10px;
    }

    .vp-product-title {
        max-width: none;
        font-size: clamp(32px, 10vw, 44px);
    }

    .vp-contact-card {
        padding: 20px;
        box-shadow: 6px 6px 0 rgba(184, 50, 128, .12);
    }

    .vp-form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .vp-contact-card .form-control {
        font-size: 16px;
    }

    .vp-information,
    .vp-related {
        margin-top: 56px;
    }

    .vp-section-heading,
    .vp-related-heading,
    .vp-related-heading > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .vp-related-count {
        margin-top: 4px;
    }

    .vp-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .vp-spec-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vp-related-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vp-related-image {
        aspect-ratio: 4 / 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vp-page *,
    .vp-lightbox * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* ---------------------------------------------------------------------------
   Aspect-ratio corrections (QA pass)
   These images carry fixed width AND height attributes. Without object-fit the
   browser stretches the bitmap to fill that exact box, so a portrait photo gets
   squashed sideways. Measured on live data: only 2 of 40 product photos matched
   the 4:3 box; the worst was a 450x777 portrait stretched 130% horizontally.
   --------------------------------------------------------------------------- */

#productLightboxImage {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

/* Any bare thumbnail on the product page. */
.vp-page img[width][height]:not([class]) {
    object-fit: contain;
}
