.product-details-page {
    margin: 0;
    padding: 32px 40px 64px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-breadcrumb-bar {
    background: #ffffff;
    border: 1px solid rgba(196, 197, 213, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 15px;
}

    .product-breadcrumb-bar a {
        color: #757684;
        text-decoration: none;
    }

.breadcrumb-separator {
    display: flex;
    justify-content: center;
}

.product-detail-stage {
    --product-panel-min-height: 20rem;
    display: grid;
    gap: 50px;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
}

.product-gallery-pane {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    min-height: var(--product-panel-min-height);
}

.product-main-image-wrap {
    border: 1px solid rgba(196, 197, 213, 0.3);
    background: #ffffff;
    padding: 0;
    width: 100%;
    border-radius: 12px;
    position: relative;
    flex: none;
    height: clamp(28rem, 45vw, 38rem);
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-main-image {
    position: absolute;
    inset: 0;
    object-fit: contain;
    height: 100%;
    width: 100%;
}

.product-image-watermark {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

.product-main-image-wrap.sold-out .product-main-image {
    opacity: 0.55;
}

.product-thumbs-row {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    overflow-x: auto;
    padding-bottom: 8px;
}

@supports not selector(::-webkit-scrollbar) {
    .product-thumbs-row {
        scrollbar-width: thin;
        scrollbar-color: #c4c5d5 transparent;
    }

        .product-thumbs-row:hover {
            scrollbar-color: #9293aa transparent;
        }
}

.product-thumbs-row::-webkit-scrollbar {
    height: 6px;
}

.product-thumbs-row::-webkit-scrollbar-track {
    background: transparent;
}

.product-thumbs-row::-webkit-scrollbar-thumb {
    background: #c4c5d5;
    border-radius: 999px;
}

    .product-thumbs-row::-webkit-scrollbar-thumb:hover {
        background: #9293aa;
    }

.product-thumb {
    border: 1px solid rgba(196, 197, 213, 0.3);
    border-radius: 8px;
    background: #ffffff;
    padding: 8px;
    flex: 0 0 auto;
    height: clamp(6rem, 11.25vw, 9rem);
    aspect-ratio: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    font-size: 10px;
    position: relative;
}

    .product-thumb:hover,
    .product-main-image-wrap:hover {
        border-color: #191964;
    }

.product-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumb-watermark {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

.product-thumb .product-thumb-image {
    position: relative;
    z-index: 1;
}

.product-thumb.sold-out .product-thumb-image {
    opacity: 0.55;
}

.product-main-image-wrap,
.product-thumb {
    cursor: zoom-in;
}

    .product-main-image-wrap:focus-visible,
    .product-thumb:focus-visible {
        outline: 2px solid #191964;
        outline-offset: -3px;
    }

.product-image-preview {
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 64px 24px 24px;
    border: 0;
    background: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

    .product-image-preview[open] {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-image-preview > img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.product-image-preview-close {
    position: absolute;
    top: 16px;
    right: 24px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.product-image-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ffffff;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    cursor: pointer;
}

    .product-image-nav[hidden] {
        display: none;
    }

    .product-image-nav img {
        display: block;
        width: 12px;
        height: 18px;
        filter: brightness(0) invert(1);
    }

.product-image-previous img {
    transform: rotate(180deg);
}

.product-image-previous {
    left: 16px;
}

.product-image-next {
    right: 16px;
}

.product-image-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.product-image-preview-close:focus-visible,
.product-image-nav:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.product-info-pane {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: var(--product-panel-min-height);
}

.product-head-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

product-head-meta-row {
    display: flex;
    gap: 8px;
}

.product-type-pill {
    background: #6cf8bb;
    color: #00714d;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .6px;
    line-height: 26px;
}

.product-sku {
    color: #757684;
    font-size: 13px;
    line-height: 18px;
}

.product-info-pane h1 {
    margin: 0;
    font-family: 'Arada-Bold';
    font-size: 24px;
    line-height: 1.25;
    color: #191c1e;
    letter-spacing: -0.32px;
}

.product-info-pane h2 {
    margin: 0;
    color: #191964;
    font-size: 24px;
    line-height: 1.25;
}

product-overview-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-overview-block h3 {
    margin: 0;
    color: #757684;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1.4px;
    margin-bottom: 12px;
}

.product-overview-block p {
    margin: 0;
    color: #444653;
    font-size: 15px;
    line-height: 26px;
}

.product-catalogue {
    border-top: 1px solid rgba(196, 197, 213, 0.3);
    border-bottom: 1px solid rgba(196, 197, 213, 0.3);
    padding: 22px 0;
}

    .product-catalogue h3 {
        margin: 0 0 12px;
        color: #757684;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1.4px;
    }

.product-catalogue-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
}

    .product-catalogue-card:hover {
        border-color: #1a1965;
    }

    .product-catalogue-card:focus-visible,
    .product-pdf-modal button:focus-visible {
        outline: 2px solid #1a1965;
        outline-offset: 3px;
    }

.product-catalogue-thumb {
    width: 65px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 0;
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f2f5fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-catalogue-thumb > img {
        width: 16px;
    }

    .product-catalogue-thumb canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

.product-catalogue-info {
    min-width: 0;
}

.product-catalogue-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1f2b58;
    overflow-wrap: anywhere;
}

.product-catalogue-meta {
    display: block;
    margin: 4px 0 12px;
    color: #6b7280;
    font-size: 13px;
}

.product-catalogue-preview-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid #e5e8ef;
    border-radius: 6px;
    background: #f8fafd;
    color: #1a1965;
    font-size: 14px;
}

    .product-catalogue-preview-label img {
        width: 14px;
        height: 14px;
    }

.product-catalogue-error {
    margin: 12px 0 0;
    color: #c0392b;
    font-size: 13px;
}

.product-pdf-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

    .product-pdf-modal[hidden] {
        display: none;
    }

.product-pdf-content {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 97vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
}

.product-pdf-heading {
    min-width: 0;
}

    .product-pdf-heading h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #111827;
        overflow-wrap: anywhere;
    }

    .product-pdf-heading p {
        margin: 4px 0 0;
        font-size: 12px;
        color: #6b7280;
    }

.product-pdf-close {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #1f2b58;
    padding: 0;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.product-pdf-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
    padding: 28px 20px;
    background: #eef1f6;
    text-align: center;
}

.product-pdf-loader,
.product-pdf-viewer,
#productPdfStatus {
    grid-area: 1 / 1;
}

.product-pdf-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: min(180px, 30vh);
    background: #eef1f6;
    color: #1a1965;
    font-size: 12px;
    z-index: 1;
}

    .product-pdf-loader[hidden] {
        display: none;
    }

    .product-pdf-loader img {
        width: 48px;
        height: 48px;
        object-fit: contain;
    }

.product-pdf-viewer canvas {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.product-pdf-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 20px;
}

    .product-pdf-footer p {
        margin: 0;
        font-size: 14px;
        color: #454754;
    }

.product-pdf-nav {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #d7dcea;
    background: #ffffff;
    color: #1a1965;
    font-size: 18px;
    cursor: pointer;
}

    .product-pdf-nav:hover:not(:disabled) {
        background: #1a1965;
        color: #ffffff;
    }

    .product-pdf-nav:disabled {
        color: #b6bccd;
        cursor: not-allowed;
    }

.product-quote-block {
    display: flex;
    gap: 16px;
    align-items: center;
    /*    padding-top: 16px;*/
    flex-direction: column;
}

.product-quote-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.quantity-control {
    border: 1px solid #c4c5d5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    height: 42px;
}

    .quantity-control button {
        border: 0;
        background: transparent;
        padding: 8px 16px;
        font-size: 16px;
    }

    .quantity-control input {
        width: 56px;
        min-width: 56px;
        border: 0;
        outline: none;
        text-align: center;
        font-family: 'Arada-Bold';
        font-size: 16px;
        background: transparent;
        color: #191c1e;
    }

        .quantity-control input::-webkit-outer-spin-button,
        .quantity-control input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .quantity-control input[type=number] {
            -moz-appearance: textfield;
        }

.add-quote-btn {
    flex: 1;
    border: 1px solid #191964;
    background: #191964;
    color: #ffffff;
    border-radius: 12px;
    height: 52px;
    padding: 0 32px;
    font-family: 'Arada-Bold';
    box-shadow: 0px 10px 15px -3px #00288E33;
}

    .add-quote-btn:disabled {
        background: #d1d5db;
        border-color: #d1d5db;
        color: #6b7280;
        cursor: not-allowed;
        box-shadow: none;
    }

.quantity-control button:disabled,
.quantity-control input:disabled {
    cursor: not-allowed;
    color: #9ca3af;
}

.product-related-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

    .product-related-header h2 {
        margin: 0;
        font-family: 'Arada-Bold';
        font-size: 28px;
        color: #191c1e;
        line-height: 40px;
    }

    .product-related-header a {
        color: #191964;
        text-decoration: none;
        font-size: 14px;
    }

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.related-product-card {
    background: #ffffff;
    border: 1px solid rgba(196, 197, 213, 0.2);
    box-shadow: 0px 4px 20px 0px #1E40AF0A;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .related-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0px 8px 24px 0px rgba(30, 64, 175, 0.15);
    }

.related-card-media {
    display: flex;
    flex-direction: column;
    height: 256px;
}

.related-image-wrap {
    flex: 1;
    min-height: 0;
    border-bottom: 1px solid #c4cce0;
    position: relative;
}

    .related-image-wrap img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.related-category-row {
    flex-shrink: 0;
    padding: 16px 16px 12px;
}

.related-category-pill {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    border-radius: 9999px;
    background: #6cf8bb;
    color: #00714d;
    padding: 4px 12px;
    font-size: 12px;
    font-family: 'Arada-Bold';
}

.related-content {
    padding: 16px;
}

    .related-content h3 {
        margin: 0;
        font-family: 'Arada-Bold';
        font-size: 16px;
        line-height: 1.2;
        display: block;
        color: #191c1e;
    }

    .related-content p {
        display: inline;
        margin: 0;
        color: #191c1e;
        font-family: 'Arada-Bold';
        font-size: 18px;
        line-height: 26px;
    }


@media (max-width: 1000px) {
    .product-detail-stage {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .product-main-image-wrap {
        height: auto;
        /* min-height: var(--product-panel-min-height); */
        aspect-ratio: 5 / 3;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .product-details-page {
        padding: 24px 16px 40px;
    }

    .product-quote-block {
        flex-direction: column;
        align-items: stretch;
    }

    .product-info-pane h1 {
        font-size: 30px;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

    .product-info-pane {
        gap: 16px;
    }

    .product-catalogue {
        padding: 20px 0;
    }
}
