/* PolaroidPillanatok – Variation Gallery v2.8.15
 * Elementor-isolated swatches + compact zero-CLS gallery + arrowless thumb rail.
 */

:root {
    --ppvg-accent: #885f38;
    --ppvg-text: #2f2a26;
    --ppvg-muted: #6e6155;
    --ppvg-ui-border: #e2e8f0;
    --ppvg-surface: #ffffff;
    --ppvg-card-bg: #fbfaf8;
    --ppvg-card-hover: #f4efe9;
    --ppvg-card-border: #ded8d1;
}

/* --------------------------------------------------------------------------
   WooCommerce remains the source of truth.
   -------------------------------------------------------------------------- */
.variations_form select.ppvg-native-select {
    position: absolute !important;
    width: 1px !important;
    min-width: 1px !important;
    max-width: 1px !important;
    height: 1px !important;
    left: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.variations_form table.variations:has(.ppvg-swatches),
.variations_form table.variations tr.ppvg-swatch-row,
.variations_form table.variations tr.ppvg-swatch-row > th,
.variations_form table.variations tr.ppvg-swatch-row > td {
    background: transparent !important;
}

.variations_form table.variations tr.ppvg-swatch-row > th.label {
    display: none !important;
}

.variations_form table.variations tr.ppvg-swatch-row > td.value {
    width: 100% !important;
    padding: 0 !important;
}

/* “Összes” is our reset control, so the native duplicate reset link is hidden. */
.variations_form.ppvg-has-all .reset_variations {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Swatches v2.5
   Compact visual cards inspired by the reference UI.
   Hover previews the gallery image; click remains the actual WC selection.
   -------------------------------------------------------------------------- */
.ppvg-swatches {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
}

.ppvg-swatch-status {
    margin: 0 0 10px;
    color: var(--ppvg-text);
    font-size: 14px;
    line-height: 1.4;
}

.ppvg-swatch-status__label {
    font-weight: 600;
}

.ppvg-swatch-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(68px, 1fr));
    gap: 8px;
    align-items: stretch;
    width: 100%;
    max-width: 520px;
    margin: 0;
    padding: 0;
}

.ppvg-swatch {
    all: unset !important;
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    margin: 0 !important;
    padding: 8px 5px 7px !important;
    border: 1px solid var(--ppvg-card-border) !important;
    border-radius: 9px !important;
    background: var(--ppvg-card-bg) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--ppvg-text) !important;
    font-family: inherit !important;
    text-decoration: none !important;
    text-transform: none !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.ppvg-swatch::before,
.ppvg-swatch::after {
    content: none !important;
    display: none !important;
}

.ppvg-swatch__chip {
    display: block;
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    box-sizing: border-box;
    border: 1px solid #cfd5dc;
    border-radius: 50%;
    background: var(--ppvg-swatch-color, #d9d2cb) !important;
    box-shadow: none;
}

.ppvg-swatch__label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 25px;
    max-height: 25px;
    margin: 0;
    overflow: hidden;
    color: #28231f;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.01em;
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
}

/* “Összes” is a visual reset card, not a real variation. */
.ppvg-swatch--all .ppvg-swatch__chip {
    border-color: #d2d8df;
    background: conic-gradient(
        #d64545 0 16.6%,
        #f27a1a 16.6% 33.2%,
        #e5c84a 33.2% 49.8%,
        #4c9c57 49.8% 66.4%,
        #2f6fed 66.4% 83%,
        #9b59b6 83% 100%
    ) !important;
}

/* Geometry never changes between default / hover / active states. */
.ppvg-swatch.is-active {
    outline: 2px solid var(--ppvg-accent) !important;
    outline-offset: 2px !important;
}

.ppvg-swatch:focus-visible {
    outline: 2px solid var(--ppvg-accent) !important;
    outline-offset: 2px !important;
}

@media (hover: hover) and (pointer: fine) {
    .ppvg-swatch:not(:disabled):hover {
        border-color: #c8bfb5 !important;
        background: var(--ppvg-card-hover) !important;
    }
}

.ppvg-swatch.is-unmapped .ppvg-swatch__chip {
    background: repeating-linear-gradient(
        135deg,
        #f8fafc 0 5px,
        #d9e0e8 5px 10px
    ) !important;
}

.ppvg-swatch.is-disabled,
.ppvg-swatch:disabled {
    opacity: .38 !important;
    cursor: not-allowed !important;
}

/* --------------------------------------------------------------------------
   WooCommerce variation cart recovery
   Only applies after WooCommerce marks the variation as enabled.
   -------------------------------------------------------------------------- */
body.single-product .variations_form .woocommerce-variation-add-to-cart-enabled {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
}

body.single-product .variations_form
.woocommerce-variation-add-to-cart-enabled
.single_add_to_cart_button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* --------------------------------------------------------------------------
   Main gallery
   Fixed stage height prevents CLS, but desktop is intentionally compact.
   -------------------------------------------------------------------------- */
.woocommerce-product-gallery.ppvg-gallery-ready {
    position: relative;
    min-width: 0;
    --ppvg-gallery-stage-height: clamp(360px, 34vw, 520px);
}

.woocommerce-product-gallery.ppvg-gallery-ready .flex-viewport {
    position: relative !important;
    width: 100% !important;
    height: var(--ppvg-gallery-stage-height) !important;
    min-height: var(--ppvg-gallery-stage-height) !important;
    max-height: 520px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    border: 1px solid var(--ppvg-card-border) !important;
    border-radius: 16px !important;
    background: var(--ppvg-card-bg) !important;
    box-shadow: 0 16px 42px rgba(47, 42, 38, .08) !important;
}

.woocommerce-product-gallery.ppvg-gallery-ready .flex-viewport > .woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery.ppvg-gallery-ready .flex-viewport .woocommerce-product-gallery__image {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
}

.woocommerce-product-gallery.ppvg-gallery-ready .flex-viewport .woocommerce-product-gallery__image > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--ppvg-card-bg) !important;
}

.woocommerce-product-gallery.ppvg-gallery-ready .flex-viewport .woocommerce-product-gallery__image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* Main image arrows only. */
.ppvg-main-nav {
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
}

.ppvg-main-nav__button {
    all: unset !important;
    box-sizing: border-box !important;
    position: absolute !important;
    top: 50% !important;
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 0 2px !important;
    border: 1px solid var(--ppvg-ui-border) !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .96) !important;
    background-image: none !important;
    box-shadow: 0 8px 24px rgba(47, 42, 38, .16) !important;
    color: var(--ppvg-accent) !important;
    font-family: Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    transform: translateY(-50%);
    cursor: pointer !important;
    pointer-events: auto !important;
    opacity: .78;
    transition: opacity 140ms ease, background-color 140ms ease;
}

.ppvg-main-nav__button::before,
.ppvg-main-nav__button::after {
    content: none !important;
    display: none !important;
}

.ppvg-main-nav__button--prev {
    left: 16px !important;
}

.ppvg-main-nav__button--next {
    right: 16px !important;
}

.ppvg-main-nav__button:hover,
.ppvg-main-nav__button:focus-visible {
    background: #fff !important;
    opacity: 1;
}

.ppvg-main-nav__button:focus-visible {
    outline: 2px solid var(--ppvg-accent) !important;
    outline-offset: 2px !important;
}

.ppvg-gallery-counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(136, 95, 56, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 18px rgba(47, 42, 38, .1);
    color: var(--ppvg-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Thumbnail rail
   No secondary arrows. Native horizontal scrolling/swipe is the interaction.
   -------------------------------------------------------------------------- */
.ppvg-thumbs-shell {
    display: block;
    width: 100%;
    min-width: 0;
    margin-top: 12px;
    padding: 0;
    background: transparent !important;
}

.woocommerce-product-gallery .ppvg-thumbs-shell .flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 2px 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    list-style: none !important;
    background: transparent !important;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.woocommerce-product-gallery .ppvg-thumbs-shell .flex-control-thumbs::-webkit-scrollbar {
    display: none;
}

.woocommerce-product-gallery .ppvg-thumbs-shell .flex-control-thumbs > li {
    float: none !important;
    flex: 0 0 var(--ppvg-thumb-size, 76px);
    width: var(--ppvg-thumb-size, 76px);
    height: var(--ppvg-thumb-size, 76px);
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--ppvg-card-border);
    border-radius: 10px;
    background: #fff;
    scroll-snap-align: start;
}

.woocommerce-product-gallery .ppvg-thumbs-shell .flex-control-thumbs img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    border: 2px solid transparent !important;
    border-radius: 9px !important;
    background: #fff !important;
    object-fit: cover !important;
    object-position: center !important;
    opacity: .52;
    cursor: pointer;
    transition: opacity 160ms ease, border-color 160ms ease;
}

.woocommerce-product-gallery .ppvg-thumbs-shell .flex-control-thumbs img:hover,
.woocommerce-product-gallery .ppvg-thumbs-shell .flex-control-thumbs img.flex-active {
    opacity: 1;
}

.woocommerce-product-gallery .ppvg-thumbs-shell .flex-control-thumbs img.flex-active {
    border-color: var(--ppvg-accent) !important;
    box-shadow: 0 0 0 2px rgba(136, 95, 56, .14);
}

@media (max-width: 767px) {
    .ppvg-swatch-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        max-width: none;
        gap: 8px;
    }

    .ppvg-swatch {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .ppvg-swatch {
        height: 82px !important;
        min-height: 82px !important;
        max-height: 82px !important;
        padding-inline: 6px !important;
    }

    .ppvg-swatch__label {
        font-size: 11.5px;
    }

    .woocommerce-product-gallery.ppvg-gallery-ready {
        --ppvg-gallery-stage-height: clamp(300px, calc(100vw - 32px), 480px);
    }

    .woocommerce-product-gallery.ppvg-gallery-ready .flex-viewport {
        max-height: 480px !important;
    }

    .ppvg-main-nav__button--prev {
        left: 8px !important;
    }

    .ppvg-main-nav__button--next {
        right: 8px !important;
    }

    .woocommerce-product-gallery .ppvg-thumbs-shell .flex-control-thumbs > li {
        flex-basis: var(--ppvg-thumb-size, 68px);
        width: var(--ppvg-thumb-size, 68px);
        height: var(--ppvg-thumb-size, 68px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ppvg-swatch,
    .ppvg-swatch__chip,
    .ppvg-main-nav__button,
    .woocommerce-product-gallery .ppvg-thumbs-shell .flex-control-thumbs img {
        transition: none !important;
    }

    .woocommerce-product-gallery .ppvg-thumbs-shell .flex-control-thumbs {
        scroll-behavior: auto !important;
    }
}

/* Theme-safe swatch surface: keep product options light and readable. */
body.single-product .variations_form .ppvg-swatch {
    background: var(--ppvg-card-bg) !important;
    border-color: var(--ppvg-card-border) !important;
    color: var(--ppvg-text) !important;
}

body.single-product .variations_form .ppvg-swatch.is-active {
    background: #fff !important;
    border-color: var(--ppvg-accent) !important;
}

@media (hover: hover) and (pointer: fine) {
    body.single-product .variations_form .ppvg-swatch:not(:disabled):hover {
        background: var(--ppvg-card-hover) !important;
        border-color: #c8bfb5 !important;
    }
}


/* --------------------------------------------------------------------------
   Product page presentation v2.8
   Warm editorial card, clearer purchase hierarchy and modern detail tabs.
   -------------------------------------------------------------------------- */
body.single-product {
    background: #f6f1ea;
}

body.single-product main.site-main {
    padding-top: 34px;
    padding-bottom: 72px;
}

body.single-product main.site-main > .product {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
    gap: 36px;
    align-items: start;
    width: 100%;
    margin: 0;
    padding: 28px;
    box-sizing: border-box;
    border: 1px solid #e3d4c3;
    border-radius: 28px;
    background: linear-gradient(145deg, #fffaf4 0%, #f7eee3 100%);
    box-shadow: 0 24px 70px rgba(77, 51, 29, .11);
}

body.single-product main.site-main > .product > .woocommerce-product-gallery {
    grid-column: 1;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body.single-product main.site-main > .product > .summary {
    grid-column: 2;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(26px, 3vw, 42px);
    box-sizing: border-box;
    border: 1px solid rgba(136, 95, 56, .18);
    border-radius: 22px;
    background: rgba(255, 252, 248, .94);
    box-shadow: 0 16px 40px rgba(77, 51, 29, .08);
}

body.single-product .summary .product_title {
    margin: 0 0 12px;
    color: #241a14;
    font-size: clamp(38px, 4vw, 58px);
    line-height: .98;
    letter-spacing: -.045em;
}

body.single-product .summary .product_title::before {
    content: "EGYEDI KIEGÉSZÍTŐ";
    display: block;
    margin-bottom: 14px;
    color: #956536;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .18em;
}

body.single-product .summary > .price {
    display: flex !important;
    align-items: baseline;
    gap: 8px;
    margin: 20px 0 14px !important;
    color: #8d5c2d !important;
    font-size: clamp(28px, 3vw, 38px) !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: -.025em;
}

body.single-product .summary .woocommerce-product-details__short-description {
    max-width: 48ch;
    margin: 0 0 26px;
    color: #655448;
    font-size: 16px;
    line-height: 1.7;
}

body.single-product .summary form.variations_form {
    margin-top: 0;
    padding-top: 24px;
    border-top: 1px solid #eadfd3;
}

body.single-product .summary form.variations_form::after {
    content: "✓ Kézzel készítve   •   ✓ Személyre szabható   •   ✓ Magyar alkotás";
    display: block;
    margin-top: 18px;
    padding: 13px 15px;
    border: 1px solid #e6d7c7;
    border-radius: 12px;
    background: #f8efe5;
    color: #6d4b2d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
}

body.single-product .summary .ppvg-swatch-status {
    margin-bottom: 12px;
    color: #6d5a4d;
    font-size: 13px;
}

body.single-product .summary .ppvg-swatch-list {
    gap: 9px;
}

body.single-product .summary .ppvg-swatch {
    border-color: #e0d6cc !important;
    border-radius: 12px !important;
    background: #fffdfa !important;
    box-shadow: 0 2px 0 rgba(77, 51, 29, .02) !important;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease !important;
}

body.single-product .summary .ppvg-swatch.is-active {
    outline: none !important;
    border-color: #956536 !important;
    background: #f2e3d2 !important;
    box-shadow: 0 8px 20px rgba(136, 95, 56, .18), inset 0 0 0 1px #956536 !important;
    transform: translateY(-2px);
}

@media (hover: hover) and (pointer: fine) {
    body.single-product .summary .ppvg-swatch:not(:disabled):hover {
        border-color: #b99069 !important;
        background: #faf2e9 !important;
        box-shadow: 0 8px 18px rgba(77, 51, 29, .10) !important;
        transform: translateY(-2px);
    }
}

body.single-product .summary .single_variation_wrap {
    margin-top: 22px;
}

body.single-product .summary .woocommerce-variation-add-to-cart {
    align-items: stretch !important;
    gap: 12px !important;
}

body.single-product .summary .quantity.ppvg-qty-ready {
    display: grid !important;
    grid-template-columns: 40px 52px 40px;
    align-items: center;
    width: 132px !important;
    min-width: 132px;
    height: 50px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #d8c7b6;
    border-radius: 999px;
    background: #fff;
}

body.single-product .summary .quantity.ppvg-qty-ready .qty {
    width: 52px !important;
    min-width: 0 !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #2f241c !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-align: center !important;
    appearance: textfield;
}

body.single-product .summary .quantity.ppvg-qty-ready .qty::-webkit-outer-spin-button,
body.single-product .summary .quantity.ppvg-qty-ready .qty::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

body.single-product .summary .ppvg-qty-button {
    all: unset;
    display: grid;
    width: 40px;
    height: 48px;
    place-items: center;
    color: #8d5c2d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease;
}

body.single-product .summary .ppvg-qty-button:hover,
body.single-product .summary .ppvg-qty-button:focus-visible {
    background: #f3e6d8;
    color: #5b3718;
}

body.single-product .summary .ppvg-qty-button:focus-visible {
    outline: 2px solid #956536;
    outline-offset: -3px;
}

body.single-product .summary .single_add_to_cart_button {
    min-height: 50px !important;
    flex: 1 1 190px !important;
    justify-content: center !important;
    padding: 0 26px !important;
    border: 1px solid #8d5c2d !important;
    border-radius: 999px !important;
    background: #956536 !important;
    box-shadow: 0 10px 24px rgba(125, 78, 36, .22) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: .01em;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease !important;
}

body.single-product .summary .single_add_to_cart_button:hover,
body.single-product .summary .single_add_to_cart_button:focus-visible {
    background: #7d4e24 !important;
    box-shadow: 0 14px 28px rgba(125, 78, 36, .28) !important;
    transform: translateY(-1px);
}

body.single-product .summary .pp-tier-total {
    margin-top: 18px !important;
    padding: 18px 20px !important;
    border-color: #e2d0bd !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #fffaf4, #f5e8d9) !important;
    box-shadow: none !important;
}

body.single-product .summary .pp-tier-total-value {
    color: #8d5c2d !important;
    font-size: 24px !important;
}

body.single-product .summary .product_meta {
    display: none;
}

body.single-product main.site-main > .product > .woocommerce-tabs {
    grid-column: 1 / -1;
    float: none !important;
    width: 100% !important;
    margin: 6px 0 0 !important;
    padding: 26px 30px 32px;
    box-sizing: border-box;
    border: 1px solid #e3d4c3;
    border-radius: 20px;
    background: rgba(255, 253, 250, .96);
    box-shadow: 0 14px 34px rgba(77, 51, 29, .06);
}

body.single-product .woocommerce-tabs ul.tabs {
    display: flex !important;
    gap: 8px;
    margin: 0 0 24px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid #e7d9cb !important;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
    content: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 10px 17px !important;
    border-radius: 999px;
    color: #715b4b !important;
    font-size: 14px;
    font-weight: 750 !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
    background: #956536;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(125, 78, 36, .20);
}

body.single-product .woocommerce-tabs .panel {
    max-width: 78ch;
    margin: 0 !important;
    color: #5f5045;
    font-size: 16px;
    line-height: 1.75;
}

body.single-product .woocommerce-tabs .panel > h2:first-child {
    margin-top: 0;
    color: #2c2019;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -.03em;
}

@media (max-width: 900px) {
    body.single-product main.site-main {
        padding-top: 20px;
        padding-bottom: 44px;
    }

    body.single-product main.site-main > .product {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 16px;
        border-radius: 22px;
    }

    body.single-product main.site-main > .product > .woocommerce-product-gallery,
    body.single-product main.site-main > .product > .summary,
    body.single-product main.site-main > .product > .woocommerce-tabs {
        grid-column: 1;
    }

    body.single-product main.site-main > .product > .summary {
        padding: 26px 22px;
        border-radius: 18px;
    }

    body.single-product .summary .product_title {
        font-size: clamp(36px, 10vw, 48px);
    }

    body.single-product main.site-main > .product > .woocommerce-tabs {
        padding: 22px 20px 26px;
        border-radius: 18px;
    }
}

@media (max-width: 520px) {
    body.single-product main.site-main {
        padding-inline: 10px;
    }

    body.single-product main.site-main > .product {
        padding: 10px;
        border-radius: 18px;
    }

    body.single-product main.site-main > .product > .summary {
        padding: 24px 18px;
    }

    body.single-product .summary .product_title::before {
        margin-bottom: 10px;
        font-size: 10px;
    }

    body.single-product .summary form.variations_form::after {
        text-align: left;
    }

    body.single-product .summary .quantity.ppvg-qty-ready {
        width: 126px !important;
        min-width: 126px;
        grid-template-columns: 38px 50px 38px;
    }

    body.single-product .summary .quantity.ppvg-qty-ready .qty {
        width: 50px !important;
    }

    body.single-product .summary .ppvg-qty-button {
        width: 38px;
    }

    body.single-product .woocommerce-tabs ul.tabs {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
}


/* --------------------------------------------------------------------------
   Desktop layout positioning v2.8.4
   Matches the reference composition while preserving the v2.8 visual design.
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
    body.single-product main.site-main {
        padding-top: 0;
    }

    body.single-product main.site-main > .product {
        grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
        gap: 32px;
        padding: 16px 20px 20px;
    }

    body.single-product main.site-main > .product > .woocommerce-product-gallery {
        --ppvg-gallery-stage-height: clamp(460px, 41vw, 520px);
    }

    body.single-product main.site-main > .product > .summary {
        margin-top: 0 !important;
        padding: 24px;
    }

    body.single-product .summary .woocommerce-product-details__short-description {
        margin-bottom: 18px;
    }

    body.single-product .summary form.variations_form {
        padding-top: 18px;
        gap: 0 !important;
    }

    body.single-product .summary .single_variation_wrap {
        margin-top: 14px;
    }

    body.single-product .summary .pp-tier-total {
        margin-top: 12px !important;
        padding: 14px 18px !important;
    }

    body.single-product .summary form.variations_form::after {
        margin-top: 12px;
        padding: 10px 14px;
    }

    body.single-product main.site-main > .product > .woocommerce-tabs {
        margin-top: 0 !important;
    }
}


/* Remove the two optional marketing labels requested in v2.8.6. */
body.single-product .summary .product_title::before,
body.single-product .summary form.variations_form::after {
    content: none !important;
    display: none !important;
}

/* --------------------------------------------------------------------------
   Related products presentation v2.8.12
   Full-width, responsive cards aligned with the warm product-page system.
   -------------------------------------------------------------------------- */
body.single-product main.site-main > .product > .related.products {
    grid-column: 1 / -1;
    clear: both;
    width: 100% !important;
    margin: 0 !important;
    padding: clamp(24px, 3vw, 34px);
    box-sizing: border-box;
    border: 1px solid #e3d4c3;
    border-radius: 20px;
    background: rgba(255, 253, 250, .96);
    box-shadow: 0 14px 34px rgba(77, 51, 29, .06);
}

body.single-product .related.products > h2 {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 24px;
    color: #2c2019;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

body.single-product .related.products > h2::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, #decab5 0%, rgba(222, 202, 181, 0) 100%);
}

body.single-product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product .related.products ul.products::before,
body.single-product .related.products ul.products::after {
    display: none !important;
    content: none !important;
}

body.single-product .related.products ul.products li.product {
    float: none !important;
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 10px 10px 12px !important;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #e4d8cc;
    border-radius: 18px;
    background: #fffdfa;
    box-shadow: 0 10px 26px rgba(77, 51, 29, .07);
    list-style: none !important;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.single-product .related.products ul.products li.product:focus-within {
    border-color: #a9784c;
    box-shadow: 0 0 0 3px rgba(149, 101, 54, .14), 0 16px 32px rgba(77, 51, 29, .11);
}

body.single-product .related.products .woocommerce-LoopProduct-link {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none !important;
}

body.single-product .related.products ul.products li.product img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px;
    background: #f7efe7;
    box-shadow: none !important;
    object-fit: cover;
    object-position: center;
}

body.single-product .related.products .woocommerce-loop-product__title {
    min-height: 2.5em;
    margin: 0 8px 9px !important;
    padding: 0 !important;
    color: #2c2019 !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    letter-spacing: -.018em;
}

body.single-product .related.products .price {
    display: block !important;
    margin: auto 8px 15px !important;
    color: #956536 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

body.single-product .related.products .price .amount {
    color: inherit !important;
    font-weight: inherit !important;
}

body.single-product .related.products .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: calc(100% - 16px) !important;
    min-height: 48px;
    margin: 0 8px 6px !important;
    padding: 0 18px !important;
    box-sizing: border-box;
    border: 1px solid #8d5c2d !important;
    border-radius: 999px !important;
    background: #956536 !important;
    box-shadow: 0 9px 20px rgba(125, 78, 36, .18) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center;
    text-decoration: none !important;
    transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease !important;
}

@media (hover: hover) and (pointer: fine) {
    body.single-product .related.products ul.products li.product:hover {
        border-color: #cfb79f;
        box-shadow: 0 18px 38px rgba(77, 51, 29, .13);
        transform: translateY(-4px);
    }

    body.single-product .related.products .button:hover {
        background: #7d4e24 !important;
        box-shadow: 0 13px 25px rgba(125, 78, 36, .25) !important;
        transform: translateY(-1px);
    }
}

body.single-product .related.products .button:focus-visible {
    outline: 2px solid #956536 !important;
    outline-offset: 3px !important;
}

@media (max-width: 900px) {
    body.single-product main.site-main > .product > .related.products {
        grid-column: 1;
        padding: 24px 20px 26px;
        border-radius: 18px;
    }

    body.single-product .related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 520px) {
    body.single-product main.site-main > .product > .related.products {
        padding: 22px 14px 16px;
    }

    body.single-product .related.products > h2 {
        gap: 12px;
        margin-bottom: 18px;
        font-size: 28px;
    }

    body.single-product .related.products ul.products {
        grid-template-columns: minmax(0, 1fr);
    }

    body.single-product .related.products .woocommerce-loop-product__title {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.single-product .related.products ul.products li.product,
    body.single-product .related.products .button {
        transition: none !important;
    }
}

/* Keep Hungarian forint labels punctuation-free in quantity-tier cards. */
body.single-product .tiered-pricing-block__price .woocommerce-Price-currencySymbol::after {
  content: none !important;
}
