/* Final shared layout for Kilimanjaro-like product pages. */
body.single .woocommerce-breadcrumb {
    box-sizing: border-box !important;
    width: min(1120px, calc(100vw - 40px)) !important;
    max-width: 1120px !important;
    min-height: 48px !important;
    margin: 20px auto 28px !important;
    padding: 13px 18px !important;
}

body.single #main > .product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single .bearspa-legacy-product-hidden {
    display: none !important;
}

body.single .bearspa-standardized-product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single #main > .product > .product-inner {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 800px 420px !important;
    column-gap: 54px !important;
    align-items: start !important;
    width: min(1280px, calc(100vw - 40px)) !important;
    max-width: 1280px !important;
    min-height: 700px !important;
    margin: 70px auto 0 !important;
    padding: 0 !important;
}

body.single .bearspa-standardized-product > .product-inner {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: 800px 420px !important;
    column-gap: 54px !important;
    align-items: start !important;
    width: min(1280px, calc(100vw - 40px)) !important;
    max-width: 1280px !important;
    min-height: 700px !important;
    margin: 70px auto 0 !important;
    padding: 0 !important;
}

body.single #main > .product > .product-inner .gallery-inner {
    box-sizing: border-box !important;
    justify-self: end !important;
    width: 700px !important;
    min-height: 700px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single .bearspa-standardized-product > .product-inner .gallery-inner {
    box-sizing: border-box !important;
    justify-self: end !important;
    width: 700px !important;
    min-height: 700px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single #wellis_product_gallery {
    width: 608px !important;
    max-width: 608px !important;
    min-height: 700px !important;
    margin: 0 0 0 auto !important;
    overflow: hidden !important;
}

body.single #wellis_product_gallery .woocommerce-product-gallery__wrapper,
body.single #wellis_product_gallery .woocommerce-product-gallery__image {
    width: 100% !important;
    height: 100% !important;
}

body.single #wellis_product_gallery .woocommerce-product-gallery__image:not(:first-child) {
    display: none !important;
}

body.single #wellis_product_gallery .woocommerce-product-gallery__image img {
    display: block !important;
    width: 100% !important;
    height: 700px !important;
    object-fit: contain !important;
    object-position: center !important;
}

body.single #main > .product > .product-inner .summary.entry-summary {
    box-sizing: border-box !important;
    justify-self: start !important;
    width: 420px !important;
    max-width: 420px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 22px 0 0 !important;
}

body.single .bearspa-standardized-product > .product-inner .summary.entry-summary {
    box-sizing: border-box !important;
    justify-self: start !important;
    width: 420px !important;
    max-width: 420px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 22px 0 0 !important;
}

body.single .summary.entry-summary .title-wrapper,
body.single .summary.entry-summary .woocommerce-product-details__short-description,
body.single .summary.entry-summary form.cart {
    width: 100% !important;
    max-width: 100% !important;
}

body.single .bearspa-standardized-product .product_title {
    margin: 0 0 14px !important;
}

body.single .bearspa-standardized-product .bearspa-product-subtitle {
    margin: 0 0 18px !important;
    color: #0a2e6f !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

body.single .bearspa-standardized-product .woocommerce-product-details__short-description {
    line-height: 1.7 !important;
}

body.single .bearspa-standardized-product .bearspa-product-extra {
    margin-top: 22px !important;
    padding: 18px 20px !important;
    background: #f6f8fb !important;
    border-left: 4px solid #36a9e1 !important;
}

body.single .bearspa-standardized-product .bearspa-product-extra p {
    margin: 0 !important;
}

body.single #product_menu {
    display: block !important;
    width: 100% !important;
    min-height: 102px !important;
    margin: 28px 0 0 !important;
    padding: 10px 0 !important;
}

body.single #product_menu .container {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    width: min(1240px, calc(100vw - 40px)) !important;
    max-width: 1240px !important;
    min-height: 80px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.single #product_menu .right {
    display: flex !important;
    align-items: center !important;
    gap: 34px !important;
}

body.single .bearspa-standardized-product + #product_menu .left {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: center !important;
    position: relative !important;
    height: 28px !important;
    min-height: 0 !important;
    padding: 0 0 0 80px !important;
}

body.single .bearspa-standardized-product + #product_menu .left .img {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    width: 52px !important;
    height: 52px !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single .bearspa-standardized-product + #product_menu .left .img img {
    display: block !important;
    width: 52px !important;
    height: 52px !important;
    object-fit: cover !important;
}

body.single .bearspa-standardized-product + #product_menu .left .title {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 5px !important;
}

body.single .bearspa-standardized-product + #product_menu .right {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    min-height: 78px !important;
    padding: 20px 0 20px 24px !important;
}

body.single #lifestyle_gallery {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 739px !important;
    margin: 0 !important;
    padding: 82px 0 100px !important;
    overflow: hidden !important;
}

body.single .bearspa-standardized-product + #product_menu + #lifestyle_gallery {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

body.single #lifestyle_gallery .item {
    width: 430px !important;
    height: 430px !important;
}

body.single #lifestyle_gallery .item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.single .bearspa-standard-attribute {
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 22px 0 !important;
}

body.single .bearspa-standard-attribute .inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: min(1280px, calc(100vw - 40px)) !important;
    margin: 30px auto !important;
}

body.single .bearspa-standard-attribute .col {
    box-sizing: border-box !important;
    width: 50% !important;
}

body.single .bearspa-standard-attribute .img-wrapper {
    width: 600px !important;
    max-width: 100% !important;
    height: 400px !important;
    overflow: hidden !important;
}

body.single .bearspa-standard-attribute .img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.single .bearspa-standard-attribute .content {
    padding: 20px 80px !important;
}

body.single .bearspa-standard-spec {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 78px 0 90px !important;
    background: #f7f8fa !important;
}

body.single .bearspa-standard-spec .container {
    display: flex !important;
    flex-wrap: wrap !important;
    width: min(1280px, calc(100vw - 40px)) !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.single .bearspa-standard-spec .col {
    box-sizing: border-box !important;
    width: 50% !important;
    padding: 0 36px !important;
}

body.single .bearspa-standard-spec .item {
    display: grid !important;
    grid-template-columns: minmax(160px, 220px) 1fr !important;
    gap: 20px !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(10, 46, 111, 0.12) !important;
}

body.single .bearspa-standard-spec .item .label {
    font-weight: 700 !important;
    color: #0a2e6f !important;
}

@media (max-width: 1240px) {
    body.single #main > .product > .product-inner,
    body.single .bearspa-standardized-product > .product-inner {
        grid-template-columns: minmax(0, 1fr) 420px !important;
        column-gap: 44px !important;
    }

    body.single #main > .product > .product-inner .gallery-inner,
    body.single .bearspa-standardized-product > .product-inner .gallery-inner {
        width: 100% !important;
    }

    body.single #wellis_product_gallery {
        width: min(608px, 100%) !important;
    }
}

@media (max-width: 999px) {
    body.single .woocommerce-breadcrumb {
        width: calc(100vw - 32px) !important;
        margin: 18px auto 22px !important;
    }

    body.single #main > .product > .product-inner,
    body.single .bearspa-standardized-product > .product-inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        width: calc(100vw - 32px) !important;
        margin-top: 24px !important;
        min-height: 0 !important;
    }

    body.single #main > .product > .product-inner .gallery-inner,
    body.single .bearspa-standardized-product > .product-inner .gallery-inner,
    body.single #wellis_product_gallery,
    body.single #main > .product > .product-inner .summary.entry-summary,
    body.single .bearspa-standardized-product > .product-inner .summary.entry-summary {
        justify-self: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
    }

    body.single #main > .product > .product-inner .summary.entry-summary,
    body.single .bearspa-standardized-product > .product-inner .summary.entry-summary {
        padding-top: 0 !important;
    }

    body.single #wellis_product_gallery .woocommerce-product-gallery__image img {
        height: 376px !important;
    }

    body.single #product_menu {
        min-height: 0 !important;
        margin-top: 24px !important;
        padding: 14px 0 !important;
    }

    body.single #product_menu .container {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: calc(100vw - 32px) !important;
        min-height: 0 !important;
    }

    body.single #product_menu .right {
        flex-wrap: wrap !important;
        gap: 18px !important;
    }

    body.single .bearspa-standardized-product + #product_menu .left {
        grid-column: 1 !important;
        grid-row: 1 !important;
        height: 28px !important;
        padding: 0 0 0 80px !important;
    }

    body.single .bearspa-standardized-product + #product_menu .left .title {
        margin: 0 0 5px !important;
    }

    body.single .bearspa-standardized-product + #product_menu .right {
        grid-column: 1 !important;
        grid-row: 2 !important;
        min-height: 70px !important;
        padding: 20px 0 20px 24px !important;
    }

    body.single #lifestyle_gallery {
        min-height: 0 !important;
        padding: 64px 0 72px !important;
    }

    body.single .bearspa-standard-attribute .inner,
    body.single .bearspa-standard-spec .container {
        width: calc(100vw - 32px) !important;
    }

    body.single .bearspa-standard-attribute .col,
    body.single .bearspa-standard-spec .col {
        width: 100% !important;
        padding: 0 !important;
    }

    body.single .bearspa-standard-attribute .content {
        padding: 26px 0 0 !important;
    }

    body.single .bearspa-standard-attribute .img-wrapper {
        width: 100% !important;
        height: 260px !important;
    }

    body.single .bearspa-standard-spec .item {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

}

/* Keep rebuilt legacy product pages aligned with the Kilimanjaro full-width product menu. */
body.single .bearspa-standardized-product + #product_menu {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

body.single .bearspa-standardized-product + #product_menu .container {
    grid-template-columns: minmax(0, 1fr) 369.812px !important;
    min-height: 80px !important;
    height: 80px !important;
}

body.single .bearspa-standardized-product + #product_menu .right {
    box-sizing: border-box !important;
    width: 369.812px !important;
}

@media (max-width: 999px) {
    body.single .bearspa-standardized-product + #product_menu {
        width: 100vw !important;
        min-height: 110px !important;
        height: 110px !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }

    body.single .bearspa-standardized-product + #product_menu .container {
        grid-template-columns: 1fr !important;
        width: calc(100vw - 32px) !important;
        min-height: 80px !important;
        height: 80px !important;
    }

    body.single .bearspa-standardized-product + #product_menu .right {
        width: 100% !important;
    }

    body.single .bearspa-standardized-product + #product_menu + #lifestyle_gallery .slick-list,
    body.single .bearspa-standardized-product + #product_menu + #lifestyle_gallery .slick-track,
    body.single .bearspa-standardized-product + #product_menu + #lifestyle_gallery .item,
    body.single .bearspa-standardized-product + #product_menu + #lifestyle_gallery .item img {
        height: 400px !important;
    }
}

/* Uniwersalna galeria produktu - bez zależności od FlexSlidera */
.bear-product-gallery { opacity: 1 !important; }
.bear-product-gallery .woocommerce-product-gallery__wrapper { position: relative; }
.bear-product-gallery .woocommerce-product-gallery__image { display: none; width: 100%; }
.bear-product-gallery .woocommerce-product-gallery__image.is-active { display: block; }
.bear-product-gallery .woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; object-fit: contain; }
.bear-product-gallery__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.bear-product-gallery__thumb { display: block; padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; overflow: hidden; aspect-ratio: 1 / 1; }
.bear-product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bear-product-gallery__thumb.is-active { border-color: currentColor; }
.bear-product-gallery__thumb:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
@media (max-width: 700px) {
    .bear-product-gallery__thumbs { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; }
    .bear-product-gallery__thumb { flex: 0 0 72px; width: 72px; }
}

/* ================================================================
   BEARSPA PRODUCT TEMPLATE V4 — wspólny, niezależny szablon produktów
   ================================================================ */
body.bearspa-product-page,
body.single {
    overflow-x: hidden;
}

body.single .bearspa-product-template,
body.single #main > .product:not(.bearspa-legacy-product-hidden) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single .bearspa-product-template > .product-inner,
body.single #main > .product:not(.bearspa-legacy-product-hidden) > .product-inner {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px) !important;
    gap: clamp(34px, 4vw, 64px) !important;
    align-items: start !important;
    width: min(1280px, calc(100vw - 40px)) !important;
    max-width: 1280px !important;
    min-height: 0 !important;
    margin: clamp(34px, 6vw, 70px) auto 0 !important;
    padding: 0 !important;
}

body.single .bearspa-product-template__gallery,
body.single .bearspa-product-template > .product-inner .gallery-inner,
body.single #main > .product:not(.bearspa-legacy-product-hidden) > .product-inner .gallery-inner {
    box-sizing: border-box !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 760px !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.single .bearspa-product-template__summary,
body.single .bearspa-product-template > .product-inner .summary.entry-summary,
body.single #main > .product:not(.bearspa-legacy-product-hidden) > .product-inner .summary.entry-summary {
    box-sizing: border-box !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 420px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 20px 0 0 !important;
}

/* Główna galeria produktu */
body.single .bear-product-gallery,
body.single #wellis_product_gallery.bear-product-gallery,
.bear-product-gallery {
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 700px !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    outline: none !important;
}

body.single .bear-product-gallery .woocommerce-product-gallery__wrapper,
body.single #wellis_product_gallery.bear-product-gallery .woocommerce-product-gallery__wrapper,
.bear-product-gallery .woocommerce-product-gallery__wrapper {
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    background: #fff !important;
}

body.single .bear-product-gallery .woocommerce-product-gallery__image,
body.single #wellis_product_gallery.bear-product-gallery .woocommerce-product-gallery__image,
.bear-product-gallery .woocommerce-product-gallery__image {
    display: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single .bear-product-gallery .woocommerce-product-gallery__image.is-active,
body.single #wellis_product_gallery.bear-product-gallery .woocommerce-product-gallery__image.is-active,
.bear-product-gallery .woocommerce-product-gallery__image.is-active {
    display: block !important;
}

body.single .bear-product-gallery .woocommerce-product-gallery__image > a,
body.single #wellis_product_gallery.bear-product-gallery .woocommerce-product-gallery__image > a,
.bear-product-gallery .woocommerce-product-gallery__image > a {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    min-height: clamp(360px, 48vw, 700px) !important;
    cursor: zoom-in !important;
}

body.single .bear-product-gallery .woocommerce-product-gallery__image img,
body.single #wellis_product_gallery.bear-product-gallery .woocommerce-product-gallery__image img,
.bear-product-gallery .woocommerce-product-gallery__image img {
    display: block !important;
    width: 100% !important;
    height: clamp(360px, 48vw, 700px) !important;
    max-height: 700px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center !important;
    cursor: zoom-in !important;
}

.bear-product-gallery .flex-viewport {
    height: auto !important;
    overflow: visible !important;
}

.bear-product-gallery .flex-control-nav,
.bear-product-gallery .flex-direction-nav {
    display: none !important;
}

.bear-product-gallery__controls {
    position: absolute !important;
    z-index: 8 !important;
    top: min(310px, 42%) !important;
    left: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 12px !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
}

.bear-product-gallery__controls button {
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(10, 46, 111, 0.88) !important;
    color: #fff !important;
    font-size: 21px !important;
    line-height: 1 !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.bear-product-gallery__controls .bear-product-gallery__zoom {
    position: absolute !important;
    top: -250px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 17px !important;
}

.bear-product-gallery__controls button:hover,
.bear-product-gallery__controls button:focus-visible {
    background: #36a9e1 !important;
    outline: 3px solid rgba(54, 169, 225, 0.35) !important;
    outline-offset: 2px !important;
}

body.single .bear-product-gallery__thumbs,
.bear-product-gallery__thumbs {
    box-sizing: border-box !important;
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 16px 0 0 !important;
    padding: 2px 2px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    scrollbar-width: thin !important;
}

body.single .bear-product-gallery__thumb,
.bear-product-gallery__thumb {
    flex: 0 0 86px !important;
    display: block !important;
    width: 86px !important;
    height: 86px !important;
    padding: 2px !important;
    overflow: hidden !important;
    border: 2px solid transparent !important;
    border-radius: 5px !important;
    background: #fff !important;
    cursor: pointer !important;
    scroll-snap-align: start !important;
}

body.single .bear-product-gallery__thumb img,
.bear-product-gallery__thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    cursor: pointer !important;
}

body.single .bear-product-gallery__thumb.is-active,
.bear-product-gallery__thumb.is-active {
    border-color: #0a2e6f !important;
    box-shadow: 0 0 0 1px #0a2e6f !important;
}

body.single .bear-product-gallery__thumb:focus-visible,
.bear-product-gallery__thumb:focus-visible {
    outline: 3px solid #36a9e1 !important;
    outline-offset: 2px !important;
}

/* Powiększenie zdjęć — działa również offline */
.bear-lightbox-open,
.bear-lightbox-open body {
    overflow: hidden !important;
}

.bear-gallery-lightbox {
    position: fixed !important;
    z-index: 999999 !important;
    inset: 0 !important;
    display: none !important;
    place-items: center !important;
    padding: 54px 76px !important;
    background: rgba(0, 0, 0, 0.92) !important;
}

.bear-gallery-lightbox.is-open {
    display: grid !important;
}

.bear-gallery-lightbox__image {
    display: block !important;
    max-width: min(1200px, 92vw) !important;
    max-height: 86vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.bear-gallery-lightbox button {
    position: absolute !important;
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    font-size: 30px !important;
    cursor: pointer !important;
}

.bear-gallery-lightbox__close { top: 18px !important; right: 20px !important; }
.bear-gallery-lightbox__prev { left: 18px !important; top: 50% !important; transform: translateY(-50%) !important; }
.bear-gallery-lightbox__next { right: 18px !important; top: 50% !important; transform: translateY(-50%) !important; }
.bear-gallery-lightbox__counter {
    position: absolute !important;
    left: 50% !important;
    bottom: 18px !important;
    color: #fff !important;
    font-size: 15px !important;
    transform: translateX(-50%) !important;
}

/* Awaryjna galeria treści, kiedy Slick nie został poprawnie pobrany */
.bear-content-carousel {
    position: relative !important;
}

.bear-content-carousel:not(.slick-initialized) {
    display: flex !important;
    gap: 18px !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: thin !important;
}

.bear-content-carousel:not(.slick-initialized) > .item,
.bear-content-carousel:not(.slick-initialized) > .slide,
.bear-content-carousel:not(.slick-initialized) > div:not(.bear-content-carousel__nav) {
    flex: 0 0 min(430px, 82vw) !important;
    scroll-snap-align: center !important;
}

.bear-content-carousel__nav {
    position: absolute !important;
    z-index: 5 !important;
    top: 50% !important;
    left: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 16px !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
}

.bear-content-carousel__nav button {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(10, 46, 111, 0.88) !important;
    color: #fff !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

@media (max-width: 999px) {
    body.single .bearspa-product-template > .product-inner,
    body.single #main > .product:not(.bearspa-legacy-product-hidden) > .product-inner {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 26px !important;
        width: calc(100vw - 32px) !important;
        margin-top: 24px !important;
    }

    body.single .bearspa-product-template__summary,
    body.single .bearspa-product-template > .product-inner .summary.entry-summary,
    body.single #main > .product:not(.bearspa-legacy-product-hidden) > .product-inner .summary.entry-summary {
        max-width: none !important;
        padding-top: 0 !important;
    }

    body.single .bear-product-gallery .woocommerce-product-gallery__image > a,
    body.single #wellis_product_gallery.bear-product-gallery .woocommerce-product-gallery__image > a,
    body.single .bear-product-gallery .woocommerce-product-gallery__image img,
    body.single #wellis_product_gallery.bear-product-gallery .woocommerce-product-gallery__image img {
        min-height: 0 !important;
        height: clamp(310px, 78vw, 560px) !important;
    }
}

@media (max-width: 600px) {
    .bear-product-gallery__controls {
        top: 42% !important;
        padding: 0 8px !important;
    }

    .bear-product-gallery__controls button {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
    }

    .bear-product-gallery__controls .bear-product-gallery__zoom {
        top: -150px !important;
        right: 8px !important;
        width: 36px !important;
        height: 36px !important;
    }

    body.single .bear-product-gallery__thumb,
    .bear-product-gallery__thumb {
        flex-basis: 70px !important;
        width: 70px !important;
        height: 70px !important;
    }

    .bear-gallery-lightbox {
        padding: 58px 16px !important;
    }

    .bear-gallery-lightbox__prev { left: 8px !important; }
    .bear-gallery-lightbox__next { right: 8px !important; }
}

/* 2026-07-12: wymuszenie widoczności głównego kontenera galerii po usunięciu FlexSlidera */
.bear-product-gallery .woocommerce-product-gallery__wrapper,
body.single .bear-product-gallery .woocommerce-product-gallery__wrapper,
body.bearspa-product-page .bear-product-gallery .woocommerce-product-gallery__wrapper {
    display: block !important;
}
