/* ==========================================================================
   PRIDO - Product page overrides
   Keep this file small: product layout/gallery stays in css-maestro/v2.
   ========================================================================== */

body.single-product .prido-glass-modal-content > .prido-glass-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 9999 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--prido-theme-border-strong, rgba(255,255,255,.28)) !important;
    border-radius: 999px !important;
    background: var(--prido-theme-chip-fill, rgba(255,255,255,.82)) !important;
    color: var(--prido-theme-ink, #1a2a3a) !important;
    cursor: pointer !important;
    box-shadow: var(--prido-theme-shadow-soft, 0 12px 24px rgba(0,0,0,.14)) !important;
    -webkit-backdrop-filter: blur(14px) saturate(145%) !important;
    backdrop-filter: blur(14px) saturate(145%) !important;
    transition: background .25s ease, color .25s ease, border-color .25s ease !important;
    transform: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

body.single-product .prido-poc-header > .prido-poc-close {
    position: static !important;
    inset: auto !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--prido-theme-border-strong, rgba(255,255,255,.28)) !important;
    border-radius: 999px !important;
    background: var(--prido-theme-chip-fill, rgba(255,255,255,.82)) !important;
    color: var(--prido-theme-ink, #1a2a3a) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: var(--prido-theme-shadow-soft, 0 12px 24px rgba(0,0,0,.14)) !important;
    -webkit-backdrop-filter: blur(14px) saturate(145%) !important;
    backdrop-filter: blur(14px) saturate(145%) !important;
    transition: background .25s ease, color .25s ease, border-color .25s ease !important;
    transform: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

body.single-product .prido-glass-modal-content > .prido-glass-close:hover,
body.single-product .prido-poc-header > .prido-poc-close:hover {
    color: var(--prido-teal, #2dc6c1) !important;
    background: var(--prido-theme-chip-fill-hover, rgba(255,255,255,.96)) !important;
    border-color: var(--prido-teal, #2dc6c1) !important;
    transform: none !important;
}

body.single-product .prido-glass-modal-content > .prido-glass-close svg,
body.single-product .prido-poc-header > .prido-poc-close svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}

:root[data-theme="dark"] body.single-product .prido-glass-modal-content > .prido-glass-close,
:root[data-theme="dark"] body.single-product .prido-poc-header > .prido-poc-close,
body.woodmart-dark.single-product .prido-glass-modal-content > .prido-glass-close,
body.woodmart-dark.single-product .prido-poc-header > .prido-poc-close {
    background: rgba(255,255,255,.08) !important;
    color: var(--prido-theme-ink, #edf4f8) !important;
    border-color: rgba(255,255,255,.12) !important;
    border-radius: 999px !important;
}

:root[data-theme="dark"] body.single-product .prido-glass-modal-content > .prido-glass-close:hover,
:root[data-theme="dark"] body.single-product .prido-poc-header > .prido-poc-close:hover,
body.woodmart-dark.single-product .prido-glass-modal-content > .prido-glass-close:hover,
body.woodmart-dark.single-product .prido-poc-header > .prido-poc-close:hover {
    color: var(--prido-teal, #2dc6c1) !important;
    background: rgba(255,255,255,.14) !important;
    border-color: var(--prido-teal, #2dc6c1) !important;
}

body.single-product .prido-gallery-actions {
    --prido-gallery-action-size: 44px;
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 12;
    display: inline-flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 7px;
    max-width: 150px;
    pointer-events: none;
}

body.single-product .prido-gallery-actions > * {
    pointer-events: auto;
}

body.single-product .prido-gallery-actions .prido-gallery-expand,
body.single-product .prido-gallery-actions .prido-color-guide-button {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 1 !important;
    flex: 0 0 auto;
}

body.single-product .prido-gallery-actions .prido-gallery-expand,
body.single-product .prido-gallery-actions .prido-gallery-compare-button,
body.single-product .prido-gallery-actions .prido-color-guide-button {
    --prido-gallery-action-open-width: 124px;
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: var(--prido-gallery-action-size);
    min-width: var(--prido-gallery-action-size);
    max-width: var(--prido-gallery-action-size);
    height: var(--prido-gallery-action-size);
    min-height: var(--prido-gallery-action-size);
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.52) !important;
    border-radius: 999px !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.2) 54%, rgba(255,255,255,.38)),
        rgba(255,255,255,.2) !important;
    -webkit-backdrop-filter: saturate(165%) blur(20px);
    backdrop-filter: saturate(165%) blur(20px);
    color: var(--prido-theme-ink, #1a2a3a) !important;
    font-family: var(--prido-font-ui, 'Noto Sans', sans-serif);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.72),
        inset 0 -10px 18px rgba(255,255,255,.14),
        0 8px 24px rgba(15, 23, 42, .1) !important;
    cursor: pointer;
    transition: width .22s ease, max-width .22s ease, transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

body.single-product .prido-gallery-actions .prido-gallery-expand {
    --prido-gallery-action-open-width: 112px;
}

body.single-product .prido-gallery-actions .prido-gallery-compare-button {
    --prido-gallery-action-open-width: 116px;
}

body.single-product .prido-gallery-actions .prido-color-guide-button {
    --prido-gallery-action-open-width: 142px;
}

body.single-product .prido-gallery-actions .prido-gallery-expand svg,
body.single-product .prido-gallery-actions .prido-gallery-compare-button svg,
body.single-product .prido-gallery-actions .prido-color-guide-button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.single-product .prido-gallery-actions .prido-gallery-compare-button svg {
    stroke-width: 1.8;
}

body.single-product .prido-gallery-actions .prido-gallery-expand span,
body.single-product .prido-gallery-actions .prido-gallery-compare-button__text,
body.single-product .prido-gallery-actions .prido-color-guide-button span {
    display: inline-flex !important;
    align-items: center;
    max-width: 0;
    overflow: hidden;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: max-width .22s ease, opacity .16s ease;
}

body.single-product .prido-gallery-actions .prido-gallery-expand:hover,
body.single-product .prido-gallery-actions .prido-gallery-expand:focus-visible,
body.single-product .prido-gallery-actions .prido-gallery-compare-button:hover,
body.single-product .prido-gallery-actions .prido-gallery-compare-button:focus-visible,
body.single-product .prido-gallery-actions .prido-color-guide-button:hover,
body.single-product .prido-gallery-actions .prido-color-guide-button:focus-visible {
    width: var(--prido-gallery-action-open-width);
    max-width: var(--prido-gallery-action-open-width);
    padding: 0 14px !important;
    justify-content: flex-start;
    gap: 8px;
    transform: translateY(-1px);
    color: #111111 !important;
    border-color: rgba(255, 255, 255, 0.72) !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,255,255,.3) 54%, rgba(255,255,255,.5)),
        rgba(255,255,255,.28) !important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.82),
        inset 0 -10px 18px rgba(255,255,255,.18),
        0 12px 28px rgba(15, 23, 42, .13) !important;
}

body.single-product .prido-gallery-actions .prido-gallery-expand:hover span,
body.single-product .prido-gallery-actions .prido-gallery-expand:focus-visible span,
body.single-product .prido-gallery-actions .prido-gallery-compare-button:hover .prido-gallery-compare-button__text,
body.single-product .prido-gallery-actions .prido-gallery-compare-button:focus-visible .prido-gallery-compare-button__text,
body.single-product .prido-gallery-actions .prido-color-guide-button:hover span,
body.single-product .prido-gallery-actions .prido-color-guide-button:focus-visible span {
    max-width: calc(var(--prido-gallery-action-open-width) - 48px);
    opacity: 1;
}

body.single-product .prido-gallery-compare-button.is-loading {
    cursor: wait;
    opacity: .76;
}

body.single-product .prido-gallery-actions .prido-gallery-compare-button.is-added {
    color: #111111 !important;
    border-color: rgba(255, 255, 255, 0.72) !important;
}

:root[data-theme="dark"] body.single-product .prido-gallery-actions .prido-gallery-expand,
:root[data-theme="dark"] body.single-product .prido-gallery-actions .prido-gallery-compare-button,
:root[data-theme="dark"] body.single-product .prido-gallery-actions .prido-color-guide-button,
body.woodmart-dark.single-product .prido-gallery-actions .prido-gallery-expand,
body.woodmart-dark.single-product .prido-gallery-actions .prido-gallery-compare-button,
body.woodmart-dark.single-product .prido-gallery-actions .prido-color-guide-button {
    background:
        linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.05) 58%, rgba(255,255,255,.1)),
        rgba(16,23,31,.18) !important;
    color: var(--prido-theme-ink, #edf4f8) !important;
    border-color: rgba(255,255,255,.14) !important;
}

:root[data-theme="dark"] body.single-product .prido-gallery-actions .prido-gallery-expand:hover,
:root[data-theme="dark"] body.single-product .prido-gallery-actions .prido-gallery-expand:focus-visible,
:root[data-theme="dark"] body.single-product .prido-gallery-actions .prido-gallery-compare-button:hover,
:root[data-theme="dark"] body.single-product .prido-gallery-actions .prido-gallery-compare-button:focus-visible,
:root[data-theme="dark"] body.single-product .prido-gallery-actions .prido-color-guide-button:hover,
:root[data-theme="dark"] body.single-product .prido-gallery-actions .prido-color-guide-button:focus-visible,
body.woodmart-dark.single-product .prido-gallery-actions .prido-gallery-expand:hover,
body.woodmart-dark.single-product .prido-gallery-actions .prido-gallery-expand:focus-visible,
body.woodmart-dark.single-product .prido-gallery-actions .prido-gallery-compare-button:hover,
body.woodmart-dark.single-product .prido-gallery-actions .prido-gallery-compare-button:focus-visible,
body.woodmart-dark.single-product .prido-gallery-actions .prido-color-guide-button:hover,
body.woodmart-dark.single-product .prido-gallery-actions .prido-color-guide-button:focus-visible {
    color: #111111 !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.08) 58%, rgba(255,255,255,.14)),
        rgba(16,23,31,.24) !important;
    border-color: var(--prido-teal, #2dc6c1) !important;
}

@media (max-width: 900px) {
    body.single-product .prido-gallery-actions {
        left: 12px;
        bottom: 12px;
        gap: 6px;
        max-width: 142px;
    }

    body.single-product .prido-gallery-actions .prido-gallery-expand svg,
    body.single-product .prido-gallery-actions .prido-gallery-compare-button svg,
    body.single-product .prido-gallery-actions .prido-color-guide-button svg {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }
}

@media (min-width: 1024px) {
    body.single-product .prido-gallery-actions {
        --prido-gallery-action-size: 54px;
    }

    body.single-product .prido-gallery-actions .prido-gallery-expand svg,
    body.single-product .prido-gallery-actions .prido-gallery-compare-button svg,
    body.single-product .prido-gallery-actions .prido-color-guide-button svg {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }
}

@media (hover: none), (pointer: coarse) {
    body.single-product .prido-gallery-actions .prido-gallery-expand:hover,
    body.single-product .prido-gallery-actions .prido-gallery-expand:focus,
    body.single-product .prido-gallery-actions .prido-gallery-expand:focus-visible,
    body.single-product .prido-gallery-actions .prido-gallery-compare-button:hover,
    body.single-product .prido-gallery-actions .prido-gallery-compare-button:focus,
    body.single-product .prido-gallery-actions .prido-gallery-compare-button:focus-visible,
    body.single-product .prido-gallery-actions .prido-color-guide-button:hover,
    body.single-product .prido-gallery-actions .prido-color-guide-button:focus,
    body.single-product .prido-gallery-actions .prido-color-guide-button:focus-visible {
        width: var(--prido-gallery-action-size);
        max-width: var(--prido-gallery-action-size);
        padding: 0 !important;
        justify-content: center;
        gap: 0;
        transform: none;
    }

    body.single-product .prido-gallery-actions .prido-gallery-expand:hover span,
    body.single-product .prido-gallery-actions .prido-gallery-expand:focus span,
    body.single-product .prido-gallery-actions .prido-gallery-expand:focus-visible span,
    body.single-product .prido-gallery-actions .prido-gallery-compare-button:hover .prido-gallery-compare-button__text,
    body.single-product .prido-gallery-actions .prido-gallery-compare-button:focus .prido-gallery-compare-button__text,
    body.single-product .prido-gallery-actions .prido-gallery-compare-button:focus-visible .prido-gallery-compare-button__text,
    body.single-product .prido-gallery-actions .prido-color-guide-button:hover span,
    body.single-product .prido-gallery-actions .prido-color-guide-button:focus span,
    body.single-product .prido-gallery-actions .prido-color-guide-button:focus-visible span {
        max-width: 0;
        opacity: 0;
    }
}
