/* Product details */

/* Keep purchase information within reach on a single-column layout. The
   complete photo is contained, never cropped, and thumbnails use one row. */
@media (max-width: 991px) {
    .product-details-page .pd-image-stage {
        width: 100%;
        height: min(48svh, calc(100vw - 3.5rem), 460px);
        aspect-ratio: auto;
    }
    .product-details-page .pd-main-image { min-height: 0; max-height: 100%; }
    .product-details-page .pd-thumbnail-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 3px 3px .65rem;
        scrollbar-width: thin;
        scrollbar-color: #667889 transparent;
        overscroll-behavior-x: contain;
    }
    .product-details-page .pd-thumbnail { flex: 0 0 60px; width: 60px; height: 60px; }
    .product-details-page .pd-main-grid { gap: 1.25rem; }
}

.pd-selected-option { margin: .55rem 0 0; color: #c7d4df; font-size: .8rem; }
.pd-view-basket { display: inline-flex; align-items: center; gap: .6rem; margin-top: .45rem; color: #ffb36b; font-size: .9rem; font-weight: 700; }
.pd-view-basket[hidden] { display: none; }
.pd-shopping-help { margin-top: 1.1rem; border-top: 1px solid rgba(205, 224, 239, .13); }
.pd-shopping-help details { border-bottom: 1px solid rgba(205, 224, 239, .13); }
.pd-shopping-help summary { padding: .9rem .2rem; color: #e3ebf2; font-size: .84rem; font-weight: 600; cursor: pointer; }
.pd-shopping-help summary > i { margin: 0 .5rem; color: #ffb36b; }
.pd-shopping-help summary:focus-visible { outline: 2px solid #ffb36b; outline-offset: 2px; border-radius: .2rem; }
.pd-shopping-help details > div { padding: 0 .4rem 1rem 1.4rem; color: #b9c8d5; font-size: .82rem; line-height: 1.65; }
.pd-shopping-help p { margin: 0 0 .6rem; }
.pd-shopping-help a, .pd-detail-copy a { color: #ffb36b; text-underline-offset: .2rem; }

.pd-breadcrumb-wrapper {
    max-width: 1240px;
    margin: 1.5rem auto 0 !important;
    padding: 0 1rem;
}

.pd-breadcrumb {
    margin-bottom: 0 !important;
}

.product-details-page {
    --pd-accent: var(--o3d-accent);
    --pd-accent-soft: var(--o3d-accent-soft);
    --pd-border: var(--o3d-border);
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem 1rem 4.5rem;
    color: var(--o3d-text);
}

.pd-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.pd-main-grid--no-gallery {
    grid-template-columns: minmax(0, 760px);
}

.pd-image-stage {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--pd-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 45% 35%, rgba(255, 122, 31, 0.12), transparent 40%),
        linear-gradient(145deg, #152d3e, #08121b);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.pd-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
    transition: transform 280ms ease;
}

.pd-image-stage.is-zoomed .pd-main-image {
    transform: scale(1.08);
}

.pd-image-hint {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(15, 15, 15, 0.78);
    color: #d6d6d6;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    pointer-events: none;
}

.pd-image-hint i {
    color: #ff8a3d;
}

.pd-thumbnail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.pd-thumbnail {
    width: 72px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: #0c1822;
    cursor: pointer;
}

.pd-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-thumbnail:hover,
.pd-thumbnail:focus-visible,
.pd-thumbnail.is-active {
    border-color: #ff7a1f;
    box-shadow: 0 0 0 2px rgba(255, 122, 31, 0.2);
}

.pd-info-panel {
    min-width: 0;
    padding-top: clamp(0.25rem, 3vw, 1.5rem);
}

.pd-category-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    color: #a7a7a7;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pd-category-trail a {
    color: #ff8a3d;
    text-decoration: none;
}

.pd-category-trail a:hover,
.pd-category-trail a:focus-visible {
    color: #ffc092;
}

.pd-title {
    max-width: 16ch;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 2.8vw, 2.75rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.pd-price {
    margin-top: 1.1rem;
    color: #25ce75;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.025em;
}

.pd-delivery-promise {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    margin: .52rem 0 0;
    color: #a7b7c8;
    font-size: .76rem;
}

.pd-delivery-promise i { color: #ff9d59; }
.pd-delivery-promise strong { color: #d9e8f4; font-weight: 760; }
.pd-delivery-promise span {
    padding-left: .42rem;
    border-left: 1px solid rgba(255, 255, 255, .16);
    color: #8296aa;
}

.pd-summary {
    max-width: 58ch;
    margin: 1.25rem 0 0;
    color: #c6c6c6;
    font-size: 1rem;
    line-height: 1.7;
    white-space: pre-line;
}

.pd-purchase-panel {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.pd-purchase-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: #f5f5f5;
    font-size: 0.84rem;
    font-weight: 700;
}

.pd-options-section {
    margin: 0 0 1rem;
    padding: 0.1rem 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.pd-options-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
    color: #f0f0f0;
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pd-options-section-heading > span:last-child {
    color: #a9b8af;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.pd-option-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.pd-option-group + .pd-option-group {
    margin-top: 0.9rem;
}

.pd-option-group legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    margin: 0 0 0.52rem;
    padding: 0;
    color: #cfcfcf;
    font-size: 0.82rem;
    font-weight: 700;
}

.pd-option-required {
    color: #ff7a1f;
}

.pd-option-optional {
    color: #878787;
    font-size: 0.72rem;
    font-weight: 600;
}

.pd-option-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
}

.pd-option-swatch {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    gap: 0.48rem;
    padding: 0.35rem 0.6rem 0.35rem 0.38rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.68rem;
    background: rgba(9, 9, 9, 0.35);
    color: #dadada;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pd-option-swatch:hover {
    border-color: rgba(255, 138, 61, 0.7);
    background: rgba(255, 122, 31, 0.09);
    color: #fff;
}

.pd-option-swatch.is-selected {
    border-color: #ff7a1f;
    background: rgba(255, 122, 31, 0.16);
    box-shadow: 0 0 0 2px rgba(255, 122, 31, 0.16);
    color: #fff;
}

.pd-option-swatch:active {
    transform: translateY(1px);
}

.pd-option-swatch:focus-visible,
.pd-option-select:focus-visible {
    outline: 3px solid rgba(255, 154, 88, 0.55);
    outline-offset: 2px;
}

.pd-option-swatch-colour {
    display: block;
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.pd-option-swatch-name {
    white-space: nowrap;
}

.pd-option-select {
    width: min(100%, 21rem);
    min-height: 2.65rem;
    padding: 0.55rem 2.2rem 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.62rem;
    outline: 0;
    background: #0c1822;
    color: #f4f4f4;
    font: inherit;
    font-size: 0.88rem;
}

.pd-option-select:hover {
    border-color: rgba(255, 138, 61, 0.6);
}

.pd-stock-note {
    color: #a9b8af;
    font-size: 0.8rem;
    font-weight: 600;
}

.pd-stock-note i {
    margin-right: 0.28rem;
    color: #25ce75;
}

.pd-buy-row {
    display: flex;
    align-items: end;
    gap: 0.75rem;
}

.pd-quantity-selector {
    flex: 0 0 auto;
}

.pd-quantity-selector label {
    display: block;
    margin-bottom: 0.4rem;
    color: #bdbdbd;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pd-quantity-control {
    display: grid;
    grid-template-columns: 36px 42px 36px;
    align-items: center;
    height: 44px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    background: #121212;
}

.pd-quantity-button {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d7d7d7;
    font-size: 0.72rem;
}

.pd-quantity-button:hover,
.pd-quantity-button:focus-visible {
    background: rgba(255, 122, 31, 0.15);
    color: #ff9a58;
}

.pd-quantity-input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    outline: 0;
    background: transparent;
    color: #fff;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}

.pd-quantity-input::-webkit-inner-spin-button,
.pd-quantity-input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.pd-btn-cart {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border: 1px solid #ff8a3d;
    border-radius: 10px;
    background: #ff7a1f;
    color: #121212;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.pd-btn-cart:hover,
.pd-btn-cart:focus-visible {
    border-color: #ff9a58;
    background: #ff9a58;
    color: #101010;
    box-shadow: 0 10px 24px rgba(255, 122, 31, 0.2);
    transform: translateY(-1px);
}

.pd-btn-cart:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.pd-btn-cart:disabled[aria-busy="true"] {
    cursor: wait;
}

.pd-btn-cart.is-added {
    border-color: #25ce75;
    background: #25ce75;
}

.pd-cart-message {
    min-height: 1.25rem;
    margin: 0.75rem 0 0;
    color: #9ecdb0;
    font-size: 0.83rem;
}

.pd-cart-message.is-error {
    color: #ff9b91;
}

.pd-quick-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0;
    margin: 1.25rem 0 0;
}

.pd-quick-facts > div {
    min-width: 0;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pd-quick-fact--dimensions {
    grid-column: 1 / -1;
}

.pd-quick-facts dt,
.pd-details-list dt {
    margin-bottom: 0.22rem;
    color: #959595;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pd-quick-facts dd,
.pd-details-list dd {
    margin: 0;
    color: #ededed;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.pd-details-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.pd-section-kicker {
    margin: 0 0 0.35rem;
    color: #ff8a3d;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pd-details-panel h2 {
    margin: 0;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 750;
    letter-spacing: -0.025em;
}

.pd-detail-copy {
    grid-column: 2;
    margin: 0;
    color: #cbcbcb;
    line-height: 1.8;
    white-space: pre-line;
}

.pd-details-list {
    display: grid;
    grid-column: 2;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem 2rem;
    margin: 0;
    padding-top: 0.4rem;
}

.pd-details-list > div {
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991px) {
    .pd-main-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.25rem;
    }

    .pd-info-panel {
        max-width: 720px;
        padding-top: 0;
    }

    .pd-title {
        max-width: 18ch;
    }
}

@media (max-width: 640px) {
    .pd-breadcrumb-wrapper,
    .product-details-page {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .product-details-page {
        padding-top: 1.4rem;
    }

    .pd-image-stage {
        border-radius: 15px;
    }

    .pd-thumbnail {
        width: 60px;
        height: 60px;
        border-radius: 10px;
    }

    .pd-purchase-heading,
    .pd-buy-row {
        align-items: stretch;
        flex-direction: column;
    }

    .pd-quantity-selector {
        width: 100%;
    }

    .pd-quantity-control {
        grid-template-columns: 1fr 70px 1fr;
    }

    .pd-details-panel {
        display: block;
        margin-top: 3.5rem;
    }

    .pd-detail-copy {
        margin-top: 1.25rem;
    }

    .pd-details-list {
        margin-top: 1.5rem;
    }
}

@media (max-width: 420px) {
    .pd-quick-facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (hover: none), (pointer: coarse) {
    .pd-image-hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pd-main-image,
    .pd-btn-cart {
        transition: none;
    }
}

/* Modern customer product tools ------------------------------------------------
   These stay within the product page rather than introducing a second visual
   system. They give customers useful actions (share, larger gallery view and
   relevant continuation) without inventing reviews or stock promises. */

.pd-image-stage {
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: zoom-in;
}

.pd-image-stage:focus-visible {
    outline: 3px solid rgba(255, 154, 88, .72);
    outline-offset: 4px;
}

.pd-product-tools {
    display: flex;
    align-items: center;
    gap: .62rem;
    min-height: 2.15rem;
    margin-top: .35rem;
}

.pd-share-button {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    min-height: 2rem;
    padding: .35rem .62rem;
    border: 1px solid rgba(187, 209, 226, .19);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .025);
    color: #c3d1dd;
    font: inherit;
    font-size: .74rem;
    font-weight: 760;
    letter-spacing: .02em;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.pd-share-button:hover,
.pd-share-button:focus-visible {
    border-color: rgba(255, 155, 79, .65);
    background: rgba(255, 111, 0, .1);
    color: #fff;
    outline: 0;
    transform: translateY(-1px);
}

.pd-share-button i { color: #ffad66; }

.pd-related-products,
.pd-recently-viewed {
    margin-top: clamp(3.35rem, 7vw, 5.6rem);
    padding-top: clamp(1.65rem, 3vw, 2.35rem);
    border-top: 1px solid rgba(255, 255, 255, .11);
}

.pd-related-products-heading,
.pd-recently-viewed-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.pd-related-products-heading h2,
.pd-recently-viewed h2 {
    margin: 0;
    color: #f5f8fb;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 780;
    letter-spacing: -.03em;
}

.pd-related-products-heading > a {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding-bottom: .12rem;
    color: #ffb36f;
    font-size: .8rem;
    font-weight: 760;
    text-decoration: none;
    white-space: nowrap;
}

.pd-related-products-heading > a:hover,
.pd-related-products-heading > a:focus-visible { color: #fff; text-decoration: underline; }

.pd-related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
}

.pd-related-products-grid .product-card-wrapper { min-width: 0; }
.pd-related-products-grid .product-card { min-height: 100%; }
.pd-related-products-grid .product-price { color: #fff; }
.pd-related-products-grid .product-card-view { color: rgba(229, 240, 249, .62); text-decoration: none; }
.pd-related-products-grid .product-card-view:hover { color: #fff; }

.pd-recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: .85rem;
}

.pd-recently-viewed-card {
    display: grid;
    grid-template-columns: 4.2rem minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
    min-width: 0;
    min-height: 5.65rem;
    padding: .68rem;
    border: 1px solid rgba(167, 192, 210, .14);
    border-radius: .85rem;
    background: linear-gradient(145deg, rgba(23, 42, 58, .74), rgba(9, 17, 25, .86));
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.pd-recently-viewed-card:hover,
.pd-recently-viewed-card:focus-visible {
    border-color: rgba(255, 145, 59, .5);
    background: linear-gradient(145deg, rgba(30, 54, 72, .9), rgba(13, 24, 34, .96));
    outline: 0;
    transform: translateY(-2px);
}

.pd-recently-viewed-image {
    display: grid;
    width: 4.2rem;
    height: 4.2rem;
    place-items: center;
    overflow: hidden;
    border-radius: .62rem;
    background: radial-gradient(circle at 50% 10%, rgba(255, 149, 0, .12), transparent 60%), #0a1118;
}

.pd-recently-viewed-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 .55rem .65rem rgba(0, 0, 0, .42));
}

.pd-recently-viewed-copy {
    display: grid;
    min-width: 0;
    gap: .27rem;
}

.pd-recently-viewed-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: #f4f8fb;
    font-size: .82rem;
    font-weight: 760;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pd-recently-viewed-copy span { color: #ffbd7d; font-size: .8rem; font-weight: 780; }

.pd-image-dialog {
    width: min(94vw, 76rem);
    max-width: none;
    max-height: min(90vh, 58rem);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(218, 232, 242, .2);
    border-radius: 1rem;
    background: #0a1118;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, .7);
    color: #f3f7fa;
}

.pd-image-dialog::backdrop { background: rgba(2, 6, 10, .82); backdrop-filter: blur(5px); }
.pd-gallery-controls { display: flex; gap: .75rem; align-items: center; justify-content: center; padding: .75rem; color: #bccbd8; font-size: .8rem; }
.pd-gallery-controls button { min-height: 2.75rem; min-width: 2.75rem; padding: .4rem .8rem; border: 1px solid #3d4a57; border-radius: .6rem; background: #101c27; color: #f2f6fa; }
.pd-gallery-controls button:hover:not(:disabled) { border-color: #ff9b4f; color: #ffbd89; }
.pd-gallery-controls button:focus-visible { outline: 2px solid #ff9b4f; outline-offset: 2px; }
.pd-gallery-controls button:disabled { opacity: .35; cursor: default; }
.pd-gallery-viewport { overflow: auto; max-height: 58vh; min-height: 0; }
.pd-gallery-viewport.is-zoomed img { width: 180%; max-width: none; max-height: none; height: auto; cursor: zoom-out; }
#pd-image-stage { touch-action: pan-y pinch-zoom; }
.pd-image-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: inherit; }
.pd-gallery-column { position: relative; min-width: 0; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .8rem; align-items: start; }
.pd-gallery-frame { position: relative; min-width: 0; min-height: 0; }
.pd-gallery-column > .pd-gallery-frame { grid-column: 2; grid-row: 1; }
.pd-gallery-frame > .pd-gallery-controls { position: absolute; inset: 0; padding: 0; pointer-events: none; }
.pd-gallery-frame .pd-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; background: rgba(12,20,28,.76); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.2); pointer-events: auto; backdrop-filter: blur(8px); }
.pd-gallery-frame .pd-gallery-arrow::before { content: ""; display: block; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-left: -3px; }
.pd-gallery-frame .pd-gallery-arrow--previous { left: .8rem; }
.pd-gallery-frame .pd-gallery-arrow--previous::before { transform: rotate(-135deg); margin-left: 3px; }
.pd-gallery-frame .pd-gallery-arrow--next { right: .8rem; }
.pd-gallery-frame .pd-gallery-arrow[hidden] { display: none; }
.pd-gallery-counter { position: absolute; left: 1rem; bottom: 1rem; padding: .4rem .65rem; border-radius: 2rem; color: #f4f7fa; background: rgba(12,20,28,.76); font-size: .72rem; font-variant-numeric: tabular-nums; backdrop-filter: blur(8px); }
.pd-image-dialog-header .pd-gallery-zoom { margin-left: auto; width: auto; padding: .4rem .8rem; font-size: .8rem; white-space: nowrap; }
.pd-gallery-column .pd-image-stage { grid-column: 2; grid-row: 1; width: 100%; border-radius: 1rem; box-shadow: none; }
.pd-gallery-column .pd-thumbnail-list { position: absolute; inset: 0 auto 0 0; width: 76px; display: flex; flex-direction: column; flex-wrap: nowrap; gap: .65rem; margin: 0; overflow-y: auto; scrollbar-width: thin; padding: 3px; }
.pd-gallery-column .pd-thumbnail-list { overflow-x: hidden; scrollbar-color: #46596a #0c1822; }
.pd-gallery-column .pd-thumbnail { flex: 0 0 62px; width: 62px; height: 62px; border-radius: .6rem; opacity: .6; }
.pd-gallery-column .pd-thumbnail img { object-fit: contain; }
.pd-gallery-column .pd-thumbnail.is-active, .pd-gallery-column .pd-thumbnail:hover, .pd-gallery-column .pd-thumbnail:focus-visible { opacity: 1; }
.pd-gallery-column .pd-thumbnail[hidden] { display: none; }
.pd-gallery-navigation { grid-column: 2; border: 1px solid #263746; border-radius: .7rem; background: #0d1822; }
.pd-gallery-navigation .pd-gallery-controls { padding: .45rem; justify-content: space-between; }
.pd-gallery-column:not(:has(.pd-thumbnail-list)) { grid-template-columns: minmax(0, 1fr); }
.pd-gallery-column:not(:has(.pd-thumbnail-list)) > * { grid-column: 1; }
.pd-dialog-thumbnails { display: flex; gap: .75rem; overflow-x: auto; padding: 1rem 1.5rem; border-top: 1px solid #263746; scrollbar-width: thin; scrollbar-color: #46596a transparent; background: #101b25; }
.pd-dialog-thumbnails::before, .pd-dialog-thumbnails::after { content: ""; margin: auto; }
.pd-dialog-thumbnails button { flex: 0 0 64px; width: 64px; height: 64px; padding: 3px; border: 1px solid #34495b; background: #0d1822; border-radius: .65rem; overflow: hidden; opacity: .65; transition: opacity .15s ease, border-color .15s ease; }
.pd-dialog-thumbnails button:hover { opacity: 1; border-color: #a3b5c4; }
.pd-dialog-thumbnails button[aria-pressed="true"] { opacity: 1; border-color: #ff9b4f; box-shadow: 0 0 0 1px #ff9b4f; }
.pd-dialog-thumbnails button:focus-visible { outline: 2px solid #ff9b4f; outline-offset: 2px; }
.pd-dialog-thumbnails button[hidden] { display: none; }
.pd-image-dialog .pd-dialog-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.pd-image-dialog .pd-gallery-viewport { height: min(62vh, 42rem); max-height: min(62vh, 42rem); background: #080e14; scrollbar-width: thin; scrollbar-color: #46596a #080e14; }
.pd-image-dialog .pd-gallery-viewport:not(.is-zoomed) { padding: 1.25rem 4.5rem; }
.pd-image-dialog .pd-gallery-viewport:not(.is-zoomed) img { height: 100%; max-height: 100%; object-fit: contain; background: transparent; }
.pd-image-dialog .pd-gallery-counter { left: 1.5rem; bottom: 1rem; }
.pd-image-dialog .pd-gallery-arrow--previous { left: 1.25rem; }
.pd-image-dialog .pd-gallery-arrow--next { right: 1.25rem; }
@media (max-width: 991px) {
    .product-details-page .pd-gallery-column { display: flex; flex-direction: column; gap: .6rem; }
    .product-details-page .pd-gallery-column > * { width: 100%; }
    .product-details-page .pd-gallery-column .pd-thumbnail-list { position: static; width: 100%; flex-direction: row; overflow-x: auto; max-height: none; padding: 3px 3px .5rem; }
    .product-details-page .pd-gallery-column .pd-thumbnail { flex: 0 0 60px; width: 60px; height: 60px; }
    .pd-image-dialog .pd-gallery-viewport { height: 54svh; max-height: 54svh; }
    .pd-image-dialog .pd-gallery-viewport:not(.is-zoomed) { padding: .75rem .5rem 2.75rem; }
    .pd-image-dialog .pd-gallery-arrow--previous { left: .6rem; }
    .pd-image-dialog .pd-gallery-arrow--next { right: .6rem; }
    .pd-dialog-thumbnails { padding: .75rem; gap: .5rem; }
    .pd-dialog-thumbnails button { flex-basis: 52px; width: 52px; height: 52px; }
}

.pd-image-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(218, 232, 242, .11);
    background: #101b25;
}

.pd-image-dialog-header p {
    margin: 0;
    overflow: hidden;
    color: #edf4f9;
    font-size: 1rem;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: normal;
}

.pd-image-dialog-header button {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(218, 232, 242, .16);
    border-radius: .58rem;
    background: rgba(255, 255, 255, .035);
    color: #d8e5ee;
    cursor: pointer;
}

.pd-image-dialog-header button:hover,
.pd-image-dialog-header button:focus-visible { border-color: rgba(255, 155, 79, .65); color: #fff; }
.pd-image-dialog-header button:focus-visible { outline: 2px solid #ff9b4f; outline-offset: 3px; }

.pd-image-dialog img {
    display: block;
    width: 100%;
    max-height: calc(min(90vh, 58rem) - 3.5rem);
    object-fit: contain;
    background: radial-gradient(circle at 50% 10%, rgba(255, 149, 0, .11), transparent 54%), #0a1118;
}

@media (min-width: 992px) {
    .product-details-page:has(.pd-gallery-column) {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
        grid-template-rows: max-content minmax(0, 1fr);
        column-gap: clamp(2rem, 5vw, 5rem);
        row-gap: 1.5rem;
        align-items: start;
    }
    .product-details-page:has(.pd-gallery-column) > .pd-main-grid { display: contents; }
    .product-details-page:has(.pd-gallery-column) .pd-gallery-column { grid-column: 1; grid-row: 1; }
    .product-details-page:has(.pd-gallery-column) .pd-info-panel { grid-column: 2; grid-row: 1 / 3; }
    .product-details-page:has(.pd-gallery-column) > .pd-details-panel {
        grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr);
        margin-top: 0; padding-top: 1.5rem; gap: 1rem;
    }
    .product-details-page:has(.pd-gallery-column) > .pd-details-panel > * { grid-column: 1; }
    .product-details-page:has(.pd-gallery-column) > :not(.pd-main-grid):not(.pd-details-panel) { grid-column: 1 / -1; }
    .pd-image-dialog { width: min(94vw, 64rem); }
    .pd-image-dialog-shell { grid-template-columns: minmax(0, 1fr) 100px; grid-template-rows: auto minmax(0, 1fr); }
    .pd-image-dialog-header { grid-column: 1 / -1; }
    .pd-image-dialog .pd-gallery-frame--dialog { grid-column: 1; grid-row: 2; }
    .pd-image-dialog .pd-gallery-viewport { height: 72vh; max-height: 72vh; }
    .pd-image-dialog .pd-gallery-viewport:not(.is-zoomed) { padding: 1rem 3.5rem; }
    .pd-image-dialog .pd-dialog-thumbnails {
        grid-column: 2; grid-row: 2; flex-direction: column; align-items: center;
        max-height: 72vh; overflow-y: auto; overflow-x: hidden; padding: 1rem .75rem;
        border-top: 0; border-left: 1px solid #263746;
    }
    .pd-image-dialog .pd-dialog-thumbnails::before,
    .pd-image-dialog .pd-dialog-thumbnails::after { display: none; }
    .pd-image-dialog-shell:not(:has(.pd-dialog-thumbnails)) { grid-template-columns: minmax(0, 1fr); }
}

.pd-share-dialog {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: .625rem;
}

.pd-share-dialog[hidden] { display: none; }

.pd-share-dialog-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 6, 10, .82);
    backdrop-filter: blur(5px);
    cursor: default;
}

.pd-share-dialog-shell {
    position: relative;
    z-index: 1;
    width: min(94vw, 34rem);
    max-width: none;
    margin: auto;
    overflow: auto;
    max-height: calc(100dvh - 1.25rem);
    border: 1px solid rgba(218, 232, 242, .2);
    border-radius: 1rem;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, .7);
    color: #f3f7fa;
    padding: clamp(1rem, 3vw, 1.35rem);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 111, 0, .12), transparent 15rem),
        linear-gradient(145deg, rgba(22, 42, 58, .96), rgba(8, 16, 24, .99));
}

.pd-share-dialog-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(218, 232, 242, .1);
}

.pd-share-dialog-header .pd-section-kicker { margin-bottom: .32rem; }

.pd-share-dialog-header h2 {
    max-width: 22rem;
    margin: 0;
    overflow: hidden;
    color: #f2f7fb;
    font-size: clamp(1.12rem, 2.4vw, 1.4rem);
    font-weight: 790;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-share-dialog-header > button {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(218, 232, 242, .16);
    border-radius: .58rem;
    background: rgba(255, 255, 255, .035);
    color: #d8e5ee;
    cursor: pointer;
}

.pd-share-dialog-header > button:hover,
.pd-share-dialog-header > button:focus-visible { border-color: rgba(255, 155, 79, .65); color: #fff; outline: 0; }

.pd-share-dialog-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    padding-top: 1rem;
}

.pd-share-option {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    min-width: 0;
    min-height: 4.4rem;
    padding: .68rem;
    border: 1px solid rgba(198, 220, 238, .14);
    border-radius: .78rem;
    background: rgba(3, 10, 16, .38);
    color: #edf5fa;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.pd-share-option:hover,
.pd-share-option:focus-visible {
    border-color: rgba(255, 160, 82, .58);
    background: rgba(255, 111, 0, .1);
    box-shadow: inset 0 1px rgba(255, 255, 255, .04);
    color: #fff;
    outline: 0;
    transform: translateY(-1px);
}

.pd-share-option > span:last-child { display: grid; min-width: 0; gap: .12rem; }
.pd-share-option strong { overflow: hidden; font-size: .79rem; font-weight: 790; text-overflow: ellipsis; white-space: nowrap; }
.pd-share-option small { overflow: hidden; color: rgba(210, 225, 235, .56); font-size: .66rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.pd-share-option-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid rgba(255, 173, 91, .22);
    border-radius: .65rem;
    background: rgba(255, 111, 0, .11);
    color: #ffbd7d;
    font-size: 1rem;
}

.pd-share-option-icon--whatsapp { border-color: rgba(65, 216, 126, .32); background: rgba(44, 190, 105, .12); color: #67df9d; }
.pd-share-option-icon--facebook { border-color: rgba(120, 172, 255, .32); background: rgba(72, 126, 230, .12); color: #8ab7ff; }
.pd-share-option-icon--x { border-color: rgba(218, 232, 242, .25); background: rgba(218, 232, 242, .08); color: #eef7fc; }
.pd-share-option-icon--email { border-color: rgba(185, 156, 255, .3); background: rgba(151, 114, 239, .12); color: #c6b0ff; }
.pd-share-option-icon--more { border-color: rgba(106, 192, 255, .3); background: rgba(65, 150, 214, .12); color: #9ed2ff; }

.pd-share-dialog-status {
    min-height: 1.2rem;
    margin: .85rem 0 0;
    color: #a9d6b9;
    font-size: .76rem;
    font-weight: 690;
}

@media (max-width: 991px) {
    .pd-related-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-recently-viewed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .pd-related-products-heading { align-items: start; flex-direction: column; }
    .pd-related-products-heading > a { padding-bottom: 0; }
    .pd-product-tools { margin-top: .45rem; }
    .pd-image-dialog { width: calc(100vw - 1.25rem); border-radius: .8rem; }
    .pd-share-dialog-shell { width: calc(100vw - 1.25rem); border-radius: .8rem; }
}

@media (max-width: 430px) {
    .pd-related-products-grid,
    .pd-recently-viewed-grid { grid-template-columns: minmax(0, 1fr); }
    .pd-share-dialog-options { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .pd-share-button,
    .pd-recently-viewed-card { transition: none; }
}

/* Product image sizing: the image fills a fixed stage without growing its grid track. */
.product-details-page .pd-image-stage { padding: 0; }
.product-details-page .pd-main-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
/* Borderless lightbox; retain keyboard, swipe, zoom and arrow controls. */
.pd-image-dialog { width: 96vw; max-width: none; max-height: 96dvh; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
.pd-image-dialog::backdrop { background: rgba(3,8,12,.94); }
.pd-image-dialog .pd-image-dialog-shell { display: block; position: relative; background: transparent; }
.pd-image-dialog .pd-image-dialog-header { height: 48px; min-height: 48px; padding: 0; background: transparent; border: 0; }
.pd-image-dialog .pd-image-dialog-header p { font-size: .85rem; }
.pd-image-dialog .pd-gallery-viewport { height: calc(92dvh - 48px); max-height: calc(92dvh - 48px); background: transparent; }
.pd-image-dialog .pd-gallery-viewport:not(.is-zoomed) { padding: 0 48px; }
.pd-image-dialog .pd-gallery-viewport:not(.is-zoomed) img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: transparent; }
.pd-image-dialog .pd-dialog-thumbnails { display: none; }
@media (max-width: 640px) {
 .pd-image-dialog { width: 100vw; border-radius: 0; }
 .pd-image-dialog .pd-image-dialog-header { padding: 0 12px; }
 .pd-image-dialog .pd-gallery-viewport:not(.is-zoomed) { padding: 0; }
 .pd-image-dialog .pd-gallery-arrow--previous { left: 8px; }
 .pd-image-dialog .pd-gallery-arrow--next { right: 8px; }
}

/* Text overlay remains sharp at every size and never modifies the product photo. */
.product-stock-overlay { position:absolute; inset:auto 0 0; z-index:3; display:flex; align-items:center; justify-content:center; min-height:42px; padding:10px 14px; background:rgba(5,14,21,.9); color:#fff; font-size:14px; font-weight:700; line-height:1.3; letter-spacing:.04em; text-transform:uppercase; pointer-events:none; }

.pd-image-stage:has(.product-stock-overlay) .pd-image-hint { bottom:58px; }
@media (max-width: 767.98px) {
  .product-details-page .pd-quantity-control {
    grid-template-columns: 44px minmax(44px, 1fr) 44px;
    min-height: 46px;
  }
  .product-details-page .pd-quantity-input { font-size: 16px; }
}


.pd-offer-badge{display:block;width:fit-content;margin-bottom:12px}.pd-offer-badge .offer-tag{width:122px;height:38px}.pd-offer-badge .offer-tag-copy{font-size:16px}
.pd-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:12px}.pd-original-price{font-size:.65em;font-weight:400;color:#aebdcb}
