/* SAWSEN HOUSE 1.0.28 — elegant, single-photo native WooCommerce gallery. */
body.single-product .woocommerce div.product div.images.woocommerce-product-gallery {
    position: relative;
    isolation: isolate;
}
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
    margin: 0;
}
/* Only hide legacy cached thumbnail controls when arrow navigation exists.
   Normal initialization already omits thumbnails via the WooCommerce filter. */
body.single-product .woocommerce-product-gallery:has(.flex-direction-nav) .flex-control-thumbs {
    display: none !important;
}
body.single-product .woocommerce-product-gallery .flex-direction-nav {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
    overflow: visible;
}
body.single-product .woocommerce-product-gallery .flex-direction-nav li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.single-product .woocommerce-product-gallery .flex-direction-nav a {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%);
    display: block !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(48,36,29,.24) !important;
    border-radius: 50% !important;
    background: rgba(250,245,237,.94) !important;
    color: #30241D !important;
    box-shadow: 0 2px 12px rgba(35,27,23,.12);
    font-size: 0 !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    text-decoration: none !important;
    opacity: 1 !important;
    pointer-events: auto;
    transition: background .18s ease, box-shadow .18s ease, color .18s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
body.single-product .woocommerce-product-gallery .flex-direction-nav a.flex-prev { left: 12px !important; right: auto !important; }
body.single-product .woocommerce-product-gallery .flex-direction-nav a.flex-next { right: 12px !important; left: auto !important; }
body.single-product .woocommerce-product-gallery .flex-direction-nav a::before { content: none !important; }
body.single-product .woocommerce-product-gallery .flex-direction-nav a::after {
    content: '' !important;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
}
body.single-product .woocommerce-product-gallery .flex-direction-nav a.flex-prev::after { transform: translate(calc(-50% + 2px), -50%) rotate(135deg); }
body.single-product .woocommerce-product-gallery .flex-direction-nav a.flex-next::after { transform: translate(calc(-50% - 2px), -50%) rotate(-45deg); }
body.single-product .woocommerce-product-gallery .flex-direction-nav a.flex-disabled {
    opacity: .38 !important;
    pointer-events: none;
    cursor: default;
}
@media (hover:hover) {
    body.single-product .woocommerce-product-gallery .flex-direction-nav a:not(.flex-disabled):hover {
        background: #30241D !important;
        color: #FAF5ED !important;
        box-shadow: 0 2px 14px rgba(35,27,23,.20);
    }
}
body.single-product .woocommerce-product-gallery .flex-direction-nav a:focus-visible {
    outline: 2px solid #C2A17C !important;
    outline-offset: 3px;
}
@media (max-width: 768px) {
    body.single-product .woocommerce-product-gallery .flex-direction-nav a.flex-prev { left: 9px !important; }
    body.single-product .woocommerce-product-gallery .flex-direction-nav a.flex-next { right: 9px !important; }
}
@media (prefers-reduced-motion:reduce) {
    body.single-product .woocommerce-product-gallery .flex-direction-nav a { transition: none; }
}
