.st-pdp {
    --pdp-ink: var(--st-ink, #1a2a3b);
    --pdp-steel: var(--st-steel, #2c4054);
    --pdp-muted: var(--st-text-muted, #526373);
    --pdp-line: var(--st-line, #dce3e8);
    --pdp-paper: var(--st-surface, #f6f8f9);
    --pdp-stage: 260px;
    min-width: 0;
    color: var(--pdp-ink);
    font-family: var(--st-font, Inter, system-ui, sans-serif);
}

.st-pdp :is(a, button, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--pdp-steel);
    outline-offset: 2px;
}

.st-pdp .st-pdp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.st-pdp .st-pdp-gallery { min-width: 0; }

.st-pdp .st-pdp-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: var(--pdp-stage);
    overflow: hidden;
    border: 1px solid var(--pdp-line);
    border-radius: 10px;
    background: #fff;
    touch-action: pan-y pinch-zoom;
}

.st-pdp a.st-pdp-stage { cursor: zoom-in; }

.st-pdp .st-pdp-stage [data-pdp-stage-image] {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.st-pdp .st-pdp-stage img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 12px 12px 34px;
    object-fit: contain;
}

.st-pdp .st-pdp-placeholder img {
    width: min(72%, 320px);
    padding: 14px;
}

.st-pdp .st-pdp-zoom-label {
    position: absolute;
    inset: auto 8px 8px auto;
    padding: 4px 8px;
    border: 1px solid var(--pdp-line);
    border-radius: 5px;
    color: var(--pdp-steel);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
}

.st-pdp .st-pdp-thumbs {
    display: flex;
    gap: 6px;
    max-width: 100%;
    margin: 6px 0 0;
    padding: 3px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: thin;
}

.st-pdp .st-pdp-thumb {
    display: grid;
    place-items: center;
    width: 60px;
    height: 56px;
    padding: 4px;
    border: 1px solid var(--pdp-line);
    border-radius: 6px;
    background: #fff;
}

.st-pdp .st-pdp-thumb[aria-current] { border: 2px solid var(--pdp-steel); }

.st-pdp .st-pdp-thumb img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.st-pdp .st-pdp-dialog {
    width: min(calc(100% - 20px), 1100px);
    max-width: none;
    max-height: calc(100% - 20px);
    padding: 10px;
    border: 1px solid var(--pdp-line);
    border-radius: 10px;
    color: var(--pdp-ink);
    background: #fff;
}

.st-pdp .st-pdp-dialog::backdrop { background: rgb(14 25 37 / .82); }
body:has(.st-pdp-dialog[open]) { overflow: hidden; }

.st-pdp .st-pdp-dialog-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

.st-pdp .st-pdp-dialog-controls h2 {
    flex: 1 0 100%;
    margin: 0;
    font-size: 16px;
}

.st-pdp .st-pdp-dialog-controls button {
    min-width: 44px;
    min-height: 44px;
    padding: 5px 9px;
    border: 1px solid var(--pdp-line);
    border-radius: 6px;
    color: var(--pdp-ink);
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.st-pdp [data-pdp-close] { margin-inline-start: auto; }
.st-pdp .st-pdp-dialog-controls [aria-pressed="true"] { background: var(--pdp-paper); }

.st-pdp .st-pdp-dialog-stage {
    height: min(62vh, 680px);
    height: min(62dvh, 680px);
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--pdp-paper);
    touch-action: pan-y pinch-zoom;
}

.st-pdp .st-pdp-dialog-stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.st-pdp .st-pdp-dialog-stage.st-pdp-zoomed { touch-action: auto; }
.st-pdp .st-pdp-dialog-stage.st-pdp-zoomed img {
    width: auto;
    height: auto;
    max-width: none;
    min-width: 120%;
}

.st-pdp .st-pdp-dialog-caption {
    margin: 6px 0 0;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.woocommerce div.product.st-pdp > .summary.entry-summary {
    float: none;
    width: auto;
    min-width: 0;
    margin: 16px 0 0;
    overflow-wrap: anywhere;
}

.st-pdp .st-pdp-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin: 0 0 4px;
    color: var(--pdp-muted);
    font-size: 12px;
}

.st-pdp .st-pdp-brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 116px;
    max-height: 30px;
    object-fit: contain;
}

.st-pdp .st-pdp-identity strong { color: var(--pdp-steel); }
.st-pdp.st-pdp-with-sku > .summary .product_meta > .sku_wrapper { display: none; }

.woocommerce div.product.st-pdp .summary .product_title {
    margin: 0 0 10px;
    color: var(--pdp-ink);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.16;
    letter-spacing: -.025em;
}

.st-pdp .woocommerce-product-details__short-description {
    margin-bottom: 10px;
    color: var(--pdp-steel);
    font-size: 14px;
    line-height: 1.55;
}

.st-pdp .woocommerce-product-details__short-description img { max-width: 100%; height: auto; }

.st-pdp .st-pdp-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 12px 0 0;
    overflow: hidden;
    border: 1px solid var(--pdp-line);
    border-radius: 8px;
    background: var(--pdp-line);
}

.st-pdp .st-pdp-highlights > div {
    min-width: 0;
    padding: 8px 10px;
    background: var(--pdp-paper);
}

.st-pdp .st-pdp-highlights dt { color: var(--pdp-steel); font-size: 12px; }
.st-pdp .st-pdp-highlights dd { margin: 1px 0 0; font-size: 15px; font-weight: 700; }

.st-pdp .st-pdp-content-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
    margin: 2px 0;
}

.st-pdp .st-pdp-content-links a,
.st-pdp .st-pdp-section-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--pdp-steel);
    font-size: 13px;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.st-pdp .st-pdp-module {
    margin: 10px 0;
    padding: 9px 11px;
    border: 1px solid var(--pdp-line);
    border-radius: 7px;
    background: var(--pdp-paper);
    font-size: 13px;
}

.st-pdp .st-pdp-module-warning {
    border-color: #dcae54;
    border-inline-start-width: 3px;
    background: #fffaed;
}

.st-pdp .st-pdp-module p { margin: 0; }
.st-pdp .st-pdp-module p + p { margin-top: 4px; }
.st-pdp .st-pdp-module ul { margin: 3px 0 0; padding-inline-start: 18px; }
.st-pdp .st-pdp-module a { color: var(--pdp-ink); font-weight: 700; text-decoration: underline; }

.st-pdp .st-pdp-family-options { margin: 12px 0 0; }

.st-pdp .st-pdp-family-options h2 {
    margin: 0 0 6px;
    color: var(--pdp-ink);
    font-size: 14px;
    line-height: 1.3;
}

.st-pdp .st-pdp-family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.st-pdp .st-pdp-family-grid > li { min-width: 0; }

.st-pdp .st-pdp-family-option {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 100%;
    padding: 7px 9px;
    border: 1px solid var(--pdp-line);
    border-radius: 6px;
    color: var(--pdp-ink);
    background: #fff;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
}

.st-pdp a.st-pdp-family-option:hover,
.st-pdp .st-pdp-family-option[aria-current] {
    border-color: var(--pdp-steel);
    background: var(--pdp-paper);
}

.st-pdp a.st-pdp-family-option strong { text-decoration: underline; text-underline-offset: 2px; }
.st-pdp .st-pdp-family-option small { color: var(--pdp-muted); font-size: 11px; }
.st-pdp .st-pdp-family-option .st-pdp-family-active { color: var(--pdp-steel); font-weight: 700; }
.st-pdp .st-pdp-family-price { margin-top: auto; font-weight: 750; font-variant-numeric: tabular-nums; }
.st-pdp .st-pdp-family-price .woocommerce-price-suffix { font-size: 11px; font-weight: 500; }

.st-pdp .st-pdp-purchase {
    margin-top: 10px;
    padding: 11px;
    border: 1px solid var(--pdp-line);
    border-radius: 9px;
    background: var(--pdp-paper);
}

.woocommerce div.product.st-pdp .st-pdp-purchase p.price {
    margin: 0;
    color: var(--pdp-ink);
    font-size: clamp(25px, 4vw, 34px);
    font-weight: 750;
    line-height: 1.15;
}

.woocommerce div.product.st-pdp .st-pdp-purchase-sale p.price ins { color: #996300; }
.woocommerce div.product.st-pdp .st-pdp-purchase-sale p.price del { font-size: .64em; opacity: 1; color: var(--pdp-muted); }
.st-pdp .st-pdp-price-history { margin: 4px 0; color: var(--pdp-muted); font-size: 12px; }
.st-pdp .st-pdp-purchase .woocommerce-price-suffix { font-size: .58em; font-weight: 500; }

.st-pdp .st-pdp-purchase .stock {
    margin: 6px 0 9px;
    color: var(--pdp-steel);
    font-size: 13px;
    font-weight: 650;
}

.st-pdp .st-pdp-purchase .stock.out-of-stock { color: #8b2929; }

.woocommerce div.product.st-pdp .st-pdp-purchase form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.woocommerce div.product.st-pdp .st-pdp-purchase form.cart::before,
.woocommerce div.product.st-pdp .st-pdp-purchase form.cart::after { display: none; }

.st-pdp .st-pdp-purchase form.cart > :not(.quantity, .single_add_to_cart_button) { flex-basis: 100%; }

.woocommerce div.product.st-pdp .st-pdp-purchase form.cart div.quantity {
    flex: 0 0 auto;
    float: none;
    margin: 0;
}

.st-pdp .st-pdp-purchase form.cart .quantity:has(.qty[type="hidden"]) { display: none; }

.woocommerce div.product.st-pdp .st-pdp-purchase .quantity .qty:not([type="hidden"]) {
    width: 70px;
    height: 46px;
    padding: 4px;
    border: 1px solid var(--pdp-line);
    border-radius: 6px;
    background: #fff;
    color: var(--pdp-ink);
    font: inherit;
    font-size: 16px;
}

.woocommerce div.product.st-pdp .st-pdp-purchase form.cart .single_add_to_cart_button {
    flex: 1 1 150px;
    float: none;
    min-width: 0;
    min-height: 46px;
    padding: 8px;
    border: 0;
    border-radius: 7px;
    background: var(--pdp-ink);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
}

.woocommerce div.product.st-pdp .st-pdp-purchase form.cart .single_add_to_cart_button:hover { background: var(--pdp-steel); }
.st-pdp > .summary .product_meta { margin-top: 9px; }

.st-pdp .st-pdp-sections { min-width: 0; margin-top: 20px; }
.st-pdp .st-pdp-section-nav { display: none; }

.st-pdp .st-pdp-section {
    margin-bottom: 8px;
    border: 1px solid var(--pdp-line);
    border-radius: 8px;
    scroll-margin-top: 16px;
}

.st-pdp .st-pdp-section:target { border-color: var(--pdp-steel); }

@media (width < 1024px) {
    .st-pdp .st-pdp-section-heading {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

.st-pdp .st-pdp-details > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 8px 12px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.st-pdp .st-pdp-details > summary::-webkit-details-marker { display: none; }
.st-pdp .st-pdp-details > summary::after { content: '+'; font-size: 20px; color: var(--pdp-steel); }
.st-pdp .st-pdp-details[open] > summary::after { content: '−'; }

.st-pdp .st-pdp-section-content {
    min-width: 0;
    max-width: 100%;
    padding: 0 12px 12px;
    overflow-x: auto;
    color: var(--pdp-steel);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.st-pdp .st-pdp-section-content :is(figure, iframe, video, embed, object) { max-width: 100%; }
.st-pdp .st-pdp-section-content img { max-width: 100%; height: auto; }
.st-pdp .st-pdp-section-content h2 { font-size: 19px; }
.st-pdp .st-pdp-section-content h3 { font-size: 16px; }

.st-pdp .st-pdp-specs {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
}

.st-pdp .st-pdp-specs :is(th, td) { padding: 7px 9px; border-bottom: 1px solid var(--pdp-line); }
.st-pdp .st-pdp-specs th[scope="row"] { width: 52%; font-weight: 500; }
.st-pdp .st-pdp-specs td { font-weight: 700; font-variant-numeric: tabular-nums; }
.st-pdp .st-pdp-spec-group { background: var(--pdp-paper); color: var(--pdp-ink); }
.st-pdp .st-pdp-documents { padding-inline-start: 18px; }

.st-pdp .st-pdp-models { margin: 0; padding: 0; list-style: none; }
.st-pdp .st-pdp-models > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 10px;
    align-items: start;
    padding: 8px;
    border-bottom: 1px solid var(--pdp-line);
}

.st-pdp .st-pdp-models > li.st-pdp-current-model { background: var(--pdp-paper); }
.st-pdp .st-pdp-model-name a { display: inline-block; padding-block: 5px; color: var(--pdp-ink); font-weight: 700; text-decoration: underline; }
.st-pdp .st-pdp-model-name small { display: block; color: var(--pdp-muted); }
.st-pdp .st-pdp-models dl { display: flex; flex-wrap: wrap; gap: 4px 12px; grid-column: 1 / -1; grid-row: 2; margin: 0; }
.st-pdp .st-pdp-models dt, .st-pdp .st-pdp-model-price .stock { color: var(--pdp-muted); font-size: 12px; }
.st-pdp .st-pdp-models dd { margin: 0; font-size: 13px; font-weight: 650; }
.st-pdp .st-pdp-model-price { text-align: right; color: var(--pdp-ink); font-weight: 700; }
.st-pdp .st-pdp-model-price .stock { margin: 0; font-weight: 500; }

@media (min-width: 680px) {
    .st-pdp .st-pdp-dialog-controls h2 { flex: 1; }
}

@media (min-width: 1024px) {
    .woocommerce div.product.st-pdp {
        --pdp-stage: 460px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
        gap: 12px 26px;
        align-items: start;
    }

    .woocommerce div.product.st-pdp > * { grid-column: 1 / -1; min-width: 0; }
    .woocommerce div.product.st-pdp > .st-pdp-gallery { grid-column: 1; }
    .woocommerce div.product.st-pdp > .summary.entry-summary { grid-column: 2; margin: 0; }
    .st-pdp .st-pdp-stage img { padding: 16px 16px 34px; }
    .st-pdp .st-pdp-purchase { padding: 14px; }
    .woocommerce div.product.st-pdp .st-pdp-purchase form.cart .single_add_to_cart_button { flex: 0 1 280px; }
    .st-pdp .st-pdp-section-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0 6px;
        margin: 0 0 12px;
        padding: 3px 6px;
        border: 1px solid var(--pdp-line);
        border-radius: 8px;
        background: var(--pdp-paper);
    }
    .st-pdp .st-pdp-section-nav a {
        padding: 0 10px;
        border-radius: 5px;
        color: var(--pdp-ink);
        font-size: 14px;
    }
    .st-pdp .st-pdp-section-nav a:hover { background: #fff; }
    .st-pdp .st-pdp-section { padding: 14px; margin-bottom: 12px; }
    .st-pdp .st-pdp-section-heading {
        margin: 0 0 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--pdp-line);
        color: var(--pdp-ink);
        font-size: 22px;
        line-height: 1.25;
    }
    .st-pdp .st-pdp-details > summary { display: none; }
    .st-pdp .st-pdp-section-content { padding: 0; }
    .st-pdp .st-pdp-models > li { grid-template-columns: minmax(90px, 1fr) minmax(150px, 3fr) minmax(110px, 1fr); }
    .st-pdp .st-pdp-models dl { grid-column: auto; grid-row: auto; }
    .st-pdp .st-pdp-models li:not(:has(dl)) .st-pdp-model-price { grid-column: 3; }
}

@media (min-width: 1280px) {
    .woocommerce div.product.st-pdp { gap: 14px 34px; }
    .st-pdp .st-pdp-highlights { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
