.single-product .breadcrumbs { background: transparent; padding-block: 18px 12px; }
.single-product .commerce > .product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 20px clamp(22px, 2vw, 30px);
    align-items: start;
    padding-top: 0;
}
.single-product .commerce > .product > :not(.summary, .park-product-gallery) { grid-column: 1 / -1; }
.single-product .commerce > .product > :is(.summary, .park-product-gallery) {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
}
.park-product-heading {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.park-product-heading .product_title {
    min-width: 0;
    margin: 0;
    font-size: var(--type-product-title);
    line-height: 1.2;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.single-product .commerce > .product > .summary {
    --product-panel-padding: clamp(16px, 1.65vw, 23px);
    position: relative;
    border: 1px solid var(--line-panel-strong);
    border-radius: var(--radius-feature);
    background: #fff;
    box-shadow: var(--shadow-panel);
    padding: var(--product-panel-padding);
}
.single-product .summary > .park-product-favorite {
    position: absolute;
    inset: var(--product-panel-padding) var(--product-panel-padding) auto auto;
    z-index: 1;
}
.single-product .summary :is(.product-options-title, .product-brand),
.single-product .product-type-simple .summary > .price { padding-right: 52px; }
.product-brand { margin: 0 0 9px; color: var(--red); font-size: 13px; font-weight: 700; }
.product-options-title { font-size: 19px; line-height: 1.35; margin: 0 0 16px; letter-spacing: -.015em; }
.single-product .has-variation-options .variations tr + tr { margin-top: 12px; }
.single-product .woocommerce div.product .has-variation-options table.variations { margin-bottom: 12px; }
.single-product .has-variation-options .variations th { font-size: var(--type-label); line-height: 1.5; font-weight: 600; }
.single-product .has-variation-options .variations tr:last-child { position: relative; }
.single-product .has-variation-options .variations tr:last-child th { padding-right: 70px; }
.single-product .has-variation-options .variations .reset_variations { position: absolute; top: 0; right: 0; margin: 0; line-height: 1.5; }
.single-product .variation-options button:has(img) {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    min-width: 0;
}
.single-product .variation-options button:has(img) img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 4px;
}
.single-product .variation-options button:has(img) > span { font-size: 13px; line-height: 1.4; font-weight: 600; }
.single-product .variation-options button:not(:has(img)) { min-width: 67px; }
.single-product .has-variation-options .reset_variations { font-size: 13px; margin-top: 8px; }

/* One gallery tree from the first response; no FlexSlider replacement. */
.park-product-gallery { min-width: 0; }
.park-gallery-stage { position: relative; border: 1px solid var(--line); border-radius: var(--radius-feature); background: #fff; overflow: hidden; }
.park-gallery-main { display: block; }
.park-gallery-main > img { display: block; width: 100%; height: auto; aspect-ratio: 1.1; max-height: 530px; object-fit: contain; padding: 18px; }
.park-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 26px; cursor: pointer; z-index: 1; }
.park-gallery-arrow > .park-ui-icon { width: 20px; height: 20px; }
.park-gallery-prev { left: 10px; }
.park-gallery-next { right: 10px; }
.park-gallery-counter { position: absolute; right: 12px; bottom: 12px; font-size: 12px; padding: 3px 8px; border-radius: 5px; background: #f3f3f6; color: var(--muted); }
.park-gallery-thumbs { display: flex; justify-content: safe center; flex-wrap: nowrap; gap: 9px; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding-bottom: 2px; }
.park-gallery-thumbs::-webkit-scrollbar { display: none; }
.park-gallery-thumbs button { flex: 0 0 auto; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.park-gallery-thumbs img { display: block; width: 62px; height: 62px; object-fit: contain; }
.park-gallery-thumbs [aria-pressed="true"] { border-color: var(--red); }
.park-gallery-dialog { width: min(1000px, calc(100vw - 24px)); max-width: none; height: min(850px, calc(100dvh - 24px)); max-height: none; padding: 48px 45px; background: #fff; border: 0; border-radius: 14px; }
.park-gallery-dialog > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.park-gallery-dialog::backdrop { background: rgb(15 15 20 / .75); }
.park-gallery-dialog .close-dialog { position: absolute; right: 10px; top: 10px; }
.park-product-gallery [hidden] { display: none; }

.single-product .single_variation_wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 13px;
}
.single-product .single_variation_wrap .single_variation { grid-column: 1; min-width: 0; align-self: center; }
.single-product .single_variation_wrap .woocommerce-variation-add-to-cart { display: contents; }
.single-product .single_variation_wrap .quantity { grid-column: 2; grid-row: 1; align-self: center; }
.single-product .single_variation_wrap :is(.single_add_to_cart_button, .product-actions, p.muted) { grid-column: 1 / -1; }
.single-product .single_variation_wrap .single_add_to_cart_button { width: 100%; min-height: 48px; margin: 0; }
.single-product .summary .price { font-size: clamp(30px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.single-product .summary .price del { font-size: 14px; line-height: 1.4; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.single-product .summary .price ins { text-decoration: none; }
.single-product .summary > .onsale { display: inline-block; margin-bottom: 10px; font-size: 12px; color: var(--red); background: #fff0f3; padding: 3px 8px; border-radius: 6px; }
.single-product .summary .woocommerce-variation-price:not(:empty)::before {
    content: "Стоимость";
    display: block;
    margin-bottom: 4px;
    font-size: var(--type-small);
    line-height: 1.5;
    color: var(--muted);
}
.single-product .summary .stock { font-size: var(--type-small); line-height: 1.5; margin: 4px 0 0; }
.quantity-stepper { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.quantity-stepper button { min-width: 36px; min-height: 44px; border: 0; background: none; color: var(--ink); font-size: 18px; }
@media (hover: hover) and (pointer: fine) {
    .quantity-stepper button:enabled:hover { color: var(--red); background-color: var(--interaction-hover); }
}
.quantity-stepper button:enabled:active { background-color: var(--interaction-pressed); }
.quantity-stepper :is(button, input):focus-visible { outline-offset: -2px; }
.single-product .summary .quantity-stepper input.qty {
    width: 34px;
    min-height: 44px;
    padding: 0;
    border: 0;
    text-align: center;
    appearance: textfield;
}
.quantity-stepper input::-webkit-inner-spin-button { appearance: none; }
.single-product .summary .product-actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0; }
.single-product .summary .product-actions .button { min-width: 0; min-height: 44px; padding: 9px 10px; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: 0; text-align: center; }
.single-product .summary .single_add_to_cart_button { font-size: 15px; }
.single-product .summary .price { font-variant-numeric: tabular-nums; }
.request-dialog .request-product:not([hidden]) { margin: 10px 0 8px; padding: 9px 12px; border-inline-start: 2px solid var(--red); background: var(--bg); color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.request-dialog .request-product:not([hidden]) + p { margin-top: 0; }
.single-product .summary form.cart p.muted { margin: 0; font-size: var(--type-small); line-height: 1.5; }
.single-product .product-type-simple .summary > .price { margin: 0 0 16px; }
.single-product .product-type-simple .summary > form.cart {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
.single-product .product-type-simple form.cart :is(.product-actions, p.muted) { grid-column: 1 / -1; }
.single-product .product-type-simple form.cart .single_add_to_cart_button { min-height: 46px; }
.product-fulfillment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.product-fulfillment a { display: grid; gap: 4px; font-size: var(--type-small); line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
    .product-fulfillment a:hover strong { color: var(--red); }
}
.product-fulfillment span { color: var(--muted); }
.product-reference { border-top: 1px solid var(--line); margin-top: 15px; padding-top: 10px; }
.product-reference summary { color: var(--muted); font-size: 12px; cursor: pointer; }
.single-product .product-reference .product_meta { border: 0; margin-top: 6px; padding: 0; font-size: 12px; }

.single-product .woocommerce-tabs .tabs:not(:has(li:nth-child(2))) { display: none; }
.single-product .woocommerce-Tabs-panel { border: 0; background: none; padding: 0; margin-top: 9px; }
.product-specs { border-top: 1px solid var(--line); padding-top: 23px; }
.product-specs h2 { font-size: var(--type-section); margin-bottom: 16px; }
.product-specs [hidden] { display: none; }
.product-specs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.product-specs-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.5;
}
.product-specs-list dt { color: var(--muted); }
.product-specs-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.product-specs-list dd p { margin: 0; }
.product-specs-disclosure { scroll-margin-top: 100px; overflow-anchor: none; }
html:has(.product-specs-disclosure.is-animating) { overflow-anchor: none; }
.product-specs-disclosure.is-animating .product-specs-extra { overflow: clip; }
.product-specs-disclosure > summary,
.product-specs-disclosure .specs-collapse:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: fit-content;
    min-height: 44px;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    padding: 8px 16px;
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
    list-style: none;
}
.product-specs-disclosure > summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) {
    :is(.product-specs-disclosure > summary, .product-specs-disclosure .specs-collapse):hover,
    :is(.park-gallery-arrow, .park-gallery-thumbs button):hover:not(:disabled, [aria-pressed="true"]) {
        border-color: var(--interaction-line);
        background-color: var(--interaction-hover);
    }
}
:is(.product-specs-disclosure > summary, .product-specs-disclosure .specs-collapse):active,
:is(.park-gallery-arrow, .park-gallery-thumbs button):active:not(:disabled, [aria-pressed="true"]) {
    border-color: var(--interaction-line);
    background-color: var(--interaction-pressed);
}
:is(.park-gallery-arrow, .park-gallery-thumbs button):focus-visible { outline-color: var(--interaction-focus); outline-offset: -3px; }
@media (prefers-reduced-motion: no-preference) {
    :is(.product-specs-disclosure > summary, .product-specs-disclosure .specs-collapse, .park-gallery-arrow, .park-gallery-thumbs button) {
        transition: background-color var(--interaction-time), border-color var(--interaction-time);
    }
}
.specs-hide, .product-specs-disclosure[open] .specs-show { display: none; }
.product-specs-disclosure[open] .specs-hide { display: inline; }
.specs-chevron { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.product-specs-disclosure[open] .specs-chevron { transform: translateY(2px) rotate(225deg); }

@supports selector(details::details-content) {
    .product-specs-disclosure { display: flex; flex-direction: column; }
    .product-specs-disclosure::details-content { order: -1; }
    .product-specs-disclosure .specs-collapse:not([hidden]) { display: none; }
}

/* Desktop: purchase content sets the variable hero height. The gallery cannot
   enlarge that row or leave a narrow, centered image column inside it. */
@media (min-width: 960px) {
    .single-product .product-type-variable > .park-product-gallery {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 12px;
        align-self: stretch;
        contain: size;
    }
    .product-type-variable .park-gallery-stage { min-height: 0; }
    .product-type-variable .park-gallery-main { position: absolute; inset: 0; }
    .product-type-variable .park-gallery-main > img { height: 100%; max-height: none; aspect-ratio: auto; padding: clamp(18px, 2vw, 30px); }
    .product-type-variable .park-gallery-thumbs { margin: 0; }
    .product-type-variable .park-gallery-thumbs img { width: 52px; height: 52px; }
    .product-type-simple .park-gallery-main > img { height: clamp(280px, 29vw, 380px); max-height: none; aspect-ratio: auto; }
}
@media (max-width: 959px) {
    .single-product .commerce > .product { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .park-product-heading { padding-bottom: 14px; }
    .single-product .park-gallery-main > img { height: clamp(260px, 43vw, 380px); max-height: none; aspect-ratio: auto; padding: 14px; }
    .single-product .park-gallery-thumbs img { width: 48px; height: 48px; }
    .single-product .summary .price { font-size: 28px; }
}
@media (max-width: 600px) {
    .single-product .commerce > .product { gap: 16px; }
    .park-product-heading { padding-bottom: 12px; }
    .single-product .park-gallery-main > img { height: clamp(200px, 58vw, 240px); padding: 10px; }
    .park-gallery-thumbs { gap: 7px; margin-top: 8px; }
    .single-product .park-gallery-thumbs img { width: 42px; height: 42px; }
    .park-gallery-arrow { width: 36px; height: 44px; }
    .park-gallery-prev { left: 6px; }
    .park-gallery-next { right: 6px; }
    .product-options-title { font-size: 17px; margin-bottom: 12px; }
    .single-product .has-variation-options .variations tr + tr { margin-top: 10px; }
    .single-product .has-variation-options .variations th { margin-bottom: 6px; line-height: 1.35; }
    .single-product .has-variation-options .variations :is(th, td) { padding-top: 0; padding-bottom: 0; }
    .single-product .commerce .product .has-variation-options table.variations { margin-bottom: 12px; }
    .single-product .variation-options:has(img) { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding: 2px 2px 4px; }
    .single-product .variation-options:has(img)::-webkit-scrollbar { display: none; }
    .single-product .variation-options button:has(img) { flex: 0 0 auto; scroll-snap-align: start; padding: 6px 8px; gap: 6px; }
    .single-product .variation-options button:has(img) img { width: 26px; height: 26px; }
    .single-product .variation-options button:has(img) > span { font-size: 13px; }
    .single-product .summary .price { font-size: 28px; }
    .single-product .single_variation_wrap { padding-top: 12px; gap: 8px; }
    .product-specs-list { grid-template-columns: minmax(0, 1fr); }
    .product-specs-disclosure > summary,
    .product-specs-disclosure .specs-collapse:not([hidden]) { width: 100%; }
    .product-specs-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: 14px; padding-block: 10px; }
}
@media (max-width: 760px), (pointer: coarse) {
    .single-product .summary > .park-product-favorite {
        top: calc(var(--product-panel-padding) - 7px);
        right: calc(var(--product-panel-padding) - 7px);
    }
}
