/* Product Gallery - Clean Responsive Design */

/* ===== DESKTOP STYLES (1200px+) ===== */
.fs-pg-wrapper {
    width: 100% !important;
    overflow: visible !important;
    /* prevent themes/templates from clipping the outside filter bar */
}

.fs-pg-outside {
    position: relative !important;
    z-index: 5 !important;
}

/* Extra safety: prevent parent containers from clipping the outside filters on some themes/templates */
.elementor-widget-fs-product-gallery,
.elementor-widget-fs-product-gallery .elementor-widget-container,
.elementor-widget-fs-product-gallery .elementor-element,
.elementor-widget-fs-product-gallery .elementor-section,
.elementor-widget-fs-product-gallery .elementor-container {
    overflow: visible !important;
}

.fs-pg-outside,
.fs-pg-outside .fs-pg__filter-box,
.fs-pg-outside .fs-pg__filters {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
}

.fs-pg {
    background: #2B2B2B !important;
    /* background: #c2ffff !important;  */
    color: #e9e9e9 !important;
    width: 100% !important;
    padding: 48px 0 !important;
    height: 500px !important;
}

.fs-pg .fs-pg__container {
    width: 1137px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
}

/* Stage: thumbs (left), viewer (center), details (right) */
.fs-pg .fs-pg__stage {
    display: grid !important;
    grid-template-columns: 120px 1fr 360px !important;
    gap: 24px !important;
    align-items: start !important;
}

/* Thumbnails */
.fs-pg .fs-pg__thumbs {
    position: relative !important;
    display: grid !important;
    grid-template-rows: 1fr !important;
    gap: 10px !important;
}

.fs-pg .fs-pg__viewport {
    overflow: hidden !important;
    height: 392px !important;
    /* 3 thumbs * 120px + 2 gaps * 16px */
}

.fs-pg .fs-pg__rail {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    transition: transform 0.25s ease !important;
}

.fs-pg .fs-pg__nav {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    height: 34px !important;
    width: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 3 !important;
    /* box-shadow: 0 6px 16px rgba(0,0,0,.3) !important; */
    /* transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important; */
}

.fs-pg .fs-pg__nav--up {
    top: calc(50% - ((3 * 120px + 2 * 16px) / 2) - 22px) !important;
}

.fs-pg .fs-pg__nav--down {
    top: calc(50% + ((3 * 120px + 2 * 16px) / 2) + 22px) !important;
}

.fs-pg .fs-pg__nav:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: translate(-50%, -50%) scale(1.05) !important;
}

.fs-pg .fs-pg__thumb {
    width: 100% !important;
    aspect-ratio: 1/1 !important;
    border-radius: 12px !important;
    background: #efeded !important;
    border: 1px solid #e7e2e2 !important;
    padding: 6px !important;
    cursor: pointer !important;
    transition: 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2) inset !important;
}

.fs-pg .fs-pg__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
}

.fs-pg .fs-pg__thumb:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .25) !important;
}

.fs-pg .fs-pg__thumb.is-active {
    border-color: #555452 !important;
    box-shadow: none !important;
    background: #0f1a24 !important;
}

/* Remove all blue borders from thumbnails */
.fs-pg .fs-pg__thumb:focus,
.fs-pg .fs-pg__thumb:active,
.fs-pg .fs-pg__thumb:focus-within {
    outline: none !important;
    border-color: #e7e2e2 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2) inset !important;
}

.fs-pg .fs-pg__thumb.is-active:focus,
.fs-pg .fs-pg__thumb.is-active:active,
.fs-pg .fs-pg__thumb.is-active:focus-within {
    outline: none !important;
    border-color: #555452 !important;
    box-shadow: none !important;
}

/* Main Viewer */
.fs-pg .fs-pg__viewer {
    position: relative !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid #e0e0e0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    min-height: 477px !important;
    /* 3 thumbs * 120px + 2 gaps * 16px */
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .08) !important;
    overflow: hidden !important;
    top: -40px !important;
}

.fs-pg .fs-pg__image {
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 14px !important;
    object-fit: contain !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

.fs-pg .fs-pg__image.is-active {
    display: block !important;
}

/* Viewer controls */
.fs-pg .fs-pg__controls {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.fs-pg .fs-pg__arrow {
    pointer-events: auto !important;
    background: transparent !important;
    color: #2c2c2c !important;
    border: none !important;
    font-size: 18px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 999px !important;
    display: grid !important;
    place-items: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
}

.fs-pg .fs-pg__arrow:hover {
    background: rgba(0, 0, 0, .06) !important;
}

.fs-pg .fs-pg__dots {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.fs-pg .fs-pg__dot {
    pointer-events: auto !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 999px !important;
    background: #efe9e1 !important;
    border: 1px solid rgba(0, 0, 0, .1) !important;
    cursor: pointer !important;
    padding: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    display: inline-block !important;
}

.fs-pg .fs-pg__dot.is-active {
    background: #555452 !important;
    border-color: #2f3331 !important;
}

.fs-pg .fs-pg__spin-toggle {
    pointer-events: auto !important;
    margin-left: 10px !important;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #f0f0f0 !important;
    border: 1px solid #e0e0e0 !important;
    color: #111 !important;
    cursor: pointer !important;
    font-size: 12px !important;
}

.fs-pg .fs-pg__spin-toggle[aria-pressed="true"] {
    background: #2f3331 !important;
    color: #fff !important;
    border-color: #2f3331 !important;
}

/* Product details */
.fs-pg .fs-pg__details {
    color: #d7d7d7 !important;
    margin-top: -40px !important;
}

/* Collapsible More teaser */
.fs-pg .fs-pg__more {
    width: 100% !important;
    margin-top: 40px !important;
    padding: 20px 0 !important;
    border-top: 1px solid #444 !important;
}

.fs-pg .fs-pg__more-toggle {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 12px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #ffffff !important;
    text-align: left !important;
    cursor: pointer !important;
}

.fs-pg .fs-pg__more-line {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #d9d9d9 !important;
    align-self: stretch !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

/* Textual CTA: Learn more */
.fs-pg .fs-pg__more-cta {
    display: inline-block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #2B2B2B !important;
    background: #E9E4DC !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    border: none !important;
    letter-spacing: 0.2px !important;
    line-height: 1 !important;
    transition: background .2s ease, color .2s ease, transform .2s ease !important;
}

.fs-pg .fs-pg__more-cta:hover {
    background: #8D8B88 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.fs-pg .fs-pg__more-content {
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #444 !important;
}

/* Contact button */
.fs-pg .fs-pg__contact-btn {
    display: inline-block !important;
    background: #E9E4DC !important;
    color: #2B2B2B !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: background .2s ease, color .2s ease, transform .2s ease !important;
    border: none !important;
}

.fs-pg .fs-pg__contact-btn:hover {
    background: #8D8B88 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Mobile tweaks */
@media (max-width: 767px) {
    .fs-pg .fs-pg__details {
        margin-top: 0 !important;
    }

    .fs-pg .fs-pg__more {
        margin-top: 30px !important;
        padding: 15px 0 !important;
    }

    .fs-pg .fs-pg__more-line {
        font-size: 13px !important;
        text-align: center !important;
    }

    .fs-pg .fs-pg__more-toggle {
        justify-content: center !important;
        gap: 10px !important;
    }

    .fs-pg .fs-pg__chevron {
        width: 18px !important;
        height: 18px !important;
    }

    .fs-pg .fs-pg__contact-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
    }
}

.fs-pg {
    height: auto !important;
    min-height: 400px !important;
}


.fs-pg .fs-pg__title {
    margin: 0 0 12px !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.fs-pg .fs-pg__meta {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    gap: 8px !important;
    font-size: 14px !important;
}

.fs-pg .fs-pg__meta li {
    background: #121212 !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
}

/* Filter buttons */
.fs-pg-outside {
    background: transparent !important;
    padding: 24px 0 !important;
}

.fs-pg-outside .fs-pg__container {
    width: 1137px !important;
    margin: 0 auto !important;
}

.fs-pg-outside .fs-pg__filter-box {
    /* background: #ffffff !important;  */
    padding: 18px 18px !important;
    border-radius: 12px !important;
    /* box-shadow: 0 6px 20px rgba(0,0,0,.15) !important;  */
    margin-top: 14px !important;
}

.fs-pg-outside .fs-pg__filters {
    padding: 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 19px !important;
    overflow-x: auto !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    flex-wrap: wrap !important;
}

.fs-pg-outside .fs-pg__filters::-webkit-scrollbar {
    display: none !important;
}

.fs-pg-outside .fs-pg__filter {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    text-align: center !important;
    width: 92px !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    border-radius: 18px !important;
    border: none !important;
    background: #E9E4DC !important;
    /* box-shadow: 8px 8px 16px rgba(0,0,0,.1), -8px -8px 16px rgba(255,255,255,.7) !important; */
    color: #3a3c3d !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .15px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all .18s ease !important;
}

.fs-pg-outside .fs-pg__filter span {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    padding: 0 4px !important;
    text-align: center !important;
    line-height: 1 !important;
    word-wrap: break-word !important;
    overflow: hidden !important;
}

.fs-pg-outside .fs-pg__filter::before {
    content: "" !important;
    position: absolute !important;
    border-radius: 50% !important;
    inset: 12px !important;
    background: #ffffff !important;
    /* box-shadow: 4px 4px 8px rgba(0,0,0,.1), -4px -4px 8px rgba(255,255,255,.7) !important; */
    z-index: 0 !important;
    transition: all .18s ease !important;
}

.fs-pg-outside .fs-pg__filter:hover {
    transform: translateY(-2px) !important;
    /* box-shadow: 10px 10px 18px rgba(0,0,0,.1), -8px -8px 16px rgba(255,255,255,.7) !important;  */
}

.fs-pg-outside .fs-pg__filter.is-active {
    color: #ffffff !important;
    background: #E9E4DC !important;
    border: 2px solid #2B2B2B !important;
    box-shadow: inset 6px 6px 12px rgba(0, 0, 0, .2), inset -6px -6px 12px rgba(255, 255, 255, .3) !important;
}

.fs-pg-outside .fs-pg__filter.is-active::before {
    background: #8D8B88 !important;
    box-shadow: inset 4px 4px 8px rgba(0, 0, 0, .4), inset -4px -4px 8px rgba(255, 255, 255, .1) !important;
}

.fs-pg-outside .fs-pg__filter:focus-visible {
    outline: 2px solid #2B2B2B !important;
    outline-offset: 2px !important;
}

/* Remove all blue borders and outlines */
.fs-pg-outside .fs-pg__filter:focus,
.fs-pg-outside .fs-pg__filter:active,
.fs-pg-outside .fs-pg__filter:focus-within {
    outline: none !important;
    border-color: #E9E4DC !important;
    box-shadow: none !important;
}

.fs-pg-outside .fs-pg__filter.is-active:focus,
.fs-pg-outside .fs-pg__filter.is-active:active,
.fs-pg-outside .fs-pg__filter.is-active:focus-within {
    outline: none !important;
    border-color: #2B2B2B !important;
    box-shadow: inset 6px 6px 12px rgba(0, 0, 0, .2), inset -6px -6px 12px rgba(255, 255, 255, .3) !important;
}

/* Hide/show buttons utility classes */
.fs-pg-outside .fs-pg__filter.hidden {
    display: none !important;
}

.fs-pg-outside .fs-pg__filter.visible {
    display: grid !important;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1200px+) - Default styles above */

/* Desktop (1024px - 1199px) */
@media (max-width: 1199px) {
    .fs-pg .fs-pg__container {
        width: 95% !important;
        max-width: 1137px !important;
    }

    .fs-pg-outside .fs-pg__container {
        width: 95% !important;
        max-width: 1137px !important;
    }

    .fs-pg .fs-pg__viewer {
        min-height: 400px !important;
        top: -30px !important;
    }

    .fs-pg .fs-pg__image {
        width: 100% !important;
        height: 100% !important;
    }
}

/* Tablet Large (900px - 1023px) */
@media (max-width: 1023px) {
    .fs-pg .fs-pg__container {
        width: 95% !important;
    }

    .fs-pg-outside .fs-pg__container {
        width: 95% !important;
    }

    .fs-pg .fs-pg__stage {
        grid-template-columns: 100px 1fr 300px !important;
        gap: 20px !important;
    }

    .fs-pg .fs-pg__viewer {
        width: 100% !important;
        min-height: 350px !important;
        top: -25px !important;
    }

    .fs-pg .fs-pg__image {
        width: 100% !important;
        height: 100% !important;
    }
}

@media (max-width: 1023px) and (min-width: 900px) {

    /* Thumb approx: 100px, gap: 20px → viewport ~= 340px */
    .fs-pg .fs-pg__nav {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .fs-pg .fs-pg__nav--up {
        top: calc(50% - (340px / 2) - 18px) !important;
    }

    .fs-pg .fs-pg__nav--down {
        top: calc(50% + (340px / 2) + 18px) !important;
    }
}

@media (max-width: 899px) and (min-width: 768px) {

    /* Thumb: 80px, gap: 16px → viewport 272px */
    .fs-pg .fs-pg__nav {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .fs-pg .fs-pg__nav--up {
        top: calc(50% - (272px / 2) - 18px) !important;
    }

    .fs-pg .fs-pg__nav--down {
        top: calc(50% + (272px / 2) + 18px) !important;
    }
}



@media (max-width: 899px) and (min-width: 768px) {
    .fs-pg .fs-pg__details {
        color: #d7d7d7 !important;
        margin-top: 0px !important;
    }
}




/* Tablet (768px - 899px) */
@media (max-width: 899px) {
    .fs-pg .fs-pg__container {
        width: 95% !important;
    }

    .fs-pg-outside .fs-pg__container {
        width: 95% !important;
    }

    .fs-pg .fs-pg__stage {
        grid-template-columns: 80px 1fr 250px !important;
        gap: 16px !important;
    }

    .fs-pg .fs-pg__thumb {
        width: 80px !important;
        height: 80px !important;
    }

    .fs-pg .fs-pg__viewport {
        height: 272px !important;
        /* 3 * 80px + 2 * 16px */
    }

    .fs-pg .fs-pg__viewer {
        min-height: 300px !important;
        top: -20px !important;
    }

    .fs-pg .fs-pg__image {
        width: 100% !important;
        height: 100% !important;
    }

    .fs-pg .fs-pg__title {
        font-size: 20px !important;
    }

    .fs-pg .fs-pg__meta {
        font-size: 13px !important;
    }
}

/* Mobile Large (600px - 767px) */
@media (max-width: 767px) {
    .fs-pg {
        padding: 20px 0 !important;
    }

    .fs-pg .fs-pg__container {
        width: 100% !important;
        gap: 0 !important;
        padding: 0 16px !important;
    }

    .fs-pg-outside .fs-pg__container {
        width: 100% !important;
        padding: 0 16px !important;
    }

    /* Mobile layout: vertical stack */
    .fs-pg .fs-pg__stage {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        grid-template-rows: auto auto auto !important;
    }

    /* Main viewer */
    .fs-pg .fs-pg__viewer {
        order: 1 !important;
        width: 100% !important;
        min-height: 250px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
        top: 0 !important;
    }

    .fs-pg .fs-pg__image {
        width: 100% !important;
        height: 100% !important;
    }

    /* Product details - moved up */
    .fs-pg .fs-pg__details {
        order: 2 !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    /* Thumbnails: horizontal scroll - moved down */
    .fs-pg .fs-pg__thumbs {
        order: 3 !important;
        margin-bottom: 32px !important;
        /* separate from category menu */
        padding: 0 !important;
    }

    .fs-pg .fs-pg__viewport {
        height: auto !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 12px !important;
        width: 100% !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    .fs-pg .fs-pg__viewport::-webkit-scrollbar {
        display: none !important;
    }

    .fs-pg .fs-pg__rail {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        transform: none !important;
        padding: 8px 0 !important;
        width: max-content !important;
        margin: 0 auto !important;
        /* center when content < viewport */
    }

    .fs-pg .fs-pg__rail::-webkit-scrollbar {
        height: 4px !important;
    }

    .fs-pg .fs-pg__rail::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .fs-pg .fs-pg__rail::-webkit-scrollbar-thumb {
        background: #ddd !important;
        border-radius: 2px !important;
    }

    /* Thumbnail tiles styled like category buttons */
    .fs-pg .fs-pg__thumb {
        width: 64px !important;
        height: 64px !important;
        flex-shrink: 0 !important;
        border-radius: 14px !important;
        padding: 6px !important;
        background: #E9E4DC !important;
        border: 1px solid #E9E4DC !important;
        /* box-shadow: 4px 4px 10px rgba(0,0,0,.08), -4px -4px 10px rgba(255,255,255,.65) !important; */
        display: grid !important;
        place-items: center !important;
    }

    .fs-pg .fs-pg__thumb img {
        width: 100% !important;
        height: 100% !important;
        border-radius: 10px !important;
        object-fit: cover !important;
    }

    .fs-pg .fs-pg__thumb.is-active {
        border-color: #2B2B2B !important;
        box-shadow: inset 4px 4px 8px rgba(0, 0, 0, .15), inset -4px -4px 8px rgba(255, 255, 255, .2), 0 6px 14px rgba(0, 0, 0, .18) !important;
    }

    /* Hide up/down arrows */
    .fs-pg .fs-pg__nav {
        display: none !important;
    }

    .fs-pg .fs-pg__title {
        font-size: 24px !important;
        margin-bottom: 16px !important;
        color: #333 !important;
    }

    .fs-pg .fs-pg__meta {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        max-width: 350px !important;
        margin: 0 auto !important;
    }

    .fs-pg .fs-pg__meta li {
        background: #ffffff !important;
        padding: 12px 16px !important;
        border-radius: 8px !important;
        text-align: left !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid #f0f0f0 !important;
        font-size: 14px !important;
        color: #333 !important;
    }

    /* ===== MOBILE CATEGORY MENU (tiles like desktop) ===== */
    .fs-pg-wrapper {
        padding-bottom: 102px !important;
        /* avoid overlap with sticky category bar */
        /* space for sticky category bar */
    }

    .fs-pg-outside {
        position: sticky !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin-top: 14px !important;
        /* when not stuck yet, prevent touching thumbnails row */
        padding: 10px 0 calc(10px + env(safe-area-inset-bottom)) !important;
        background: rgba(43, 43, 43, 0.96) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        z-index: 50 !important;
    }

    .fs-pg-outside .fs-pg__filter-box {
        margin-top: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .fs-pg-outside .fs-pg__filters {
        display: flex !important;
        gap: 12px !important;
        padding: 0 12px !important;
        justify-content: flex-start !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        /* critical: no wrap on mobile */
        overflow-x: auto !important;
        /* critical: scroll horizontally */
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        white-space: nowrap !important;
    }

    .fs-pg-outside .fs-pg__filters::-webkit-scrollbar {
        display: none !important;
    }

    .fs-pg-outside .fs-pg__filter {
        position: relative !important;
        display: grid !important;
        place-items: center !important;
        text-align: center !important;
        width: 62px !important;
        height: 62px !important;
        aspect-ratio: 1 / 1 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        border-radius: 14px !important;
        border: none !important;
        background: #E9E4DC !important;
        box-shadow: 6px 6px 12px rgba(0, 0, 0, .18), -6px -6px 12px rgba(255, 255, 255, .06) !important;
        color: #3a3c3d !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
        letter-spacing: .1px !important;
        font-size: 9px !important;
        line-height: 1.05 !important;
    }

    .fs-pg-outside .fs-pg__filter span {
        position: relative !important;
        z-index: 1 !important;
        display: block !important;
        padding: 0 6px !important;
        line-height: 1.05 !important;
        word-wrap: break-word !important;
        overflow: hidden !important;
        max-height: 2.2em !important;
        /* allow 2 lines (FABRIC COVERED) */
    }

    .fs-pg-outside .fs-pg__filter::before {
        content: "" !important;
        position: absolute !important;
        border-radius: 50% !important;
        inset: 9px !important;
        background: #ffffff !important;
        z-index: 0 !important;
    }

    .fs-pg-outside .fs-pg__filter:hover {
        transform: none !important;
    }

    .fs-pg-outside .fs-pg__filter.is-active {
        color: #ffffff !important;
        background: #E9E4DC !important;
        border: 2px solid #ffffff !important;
        box-shadow: inset 4px 4px 10px rgba(0, 0, 0, .25), 0 6px 18px rgba(0, 0, 0, .28) !important;
    }

    .fs-pg-outside .fs-pg__filter.is-active::before {
        background: #8D8B88 !important;
    }
}

/* Mobile Medium (480px - 599px) */
@media (max-width: 599px) {
    .fs-pg {
        padding: 16px 0 !important;
        height: auto !important;
        min-height: 350px !important;
    }

    .fs-pg .fs-pg__container {
        gap: 16px !important;
        padding: 0 12px !important;
    }

    .fs-pg-outside .fs-pg__container {
        padding: 0 12px !important;
    }

    .fs-pg .fs-pg__stage {
        gap: 16px !important;
    }

    .fs-pg .fs-pg__thumb {
        width: 50px !important;
        height: 50px !important;
    }

    .fs-pg .fs-pg__viewer {
        min-height: 200px !important;
        top: 0 !important;
    }

    .fs-pg .fs-pg__image {
        width: 100% !important;
        height: 100% !important;
    }

    .fs-pg .fs-pg__title {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }

    .fs-pg .fs-pg__meta li {
        padding: 10px !important;
        font-size: 14px !important;
    }

    /* Mobile category tiles - slightly smaller */
    .fs-pg-outside .fs-pg__filter {
        width: 68px !important;
        height: 68px !important;
        font-size: 9px !important;
    }

    .fs-pg-outside .fs-pg__filter::before {
        inset: 9px !important;
    }

    /* Controls: smaller on mobile */
    .fs-pg .fs-pg__controls {
        bottom: 8px !important;
        gap: 8px !important;
    }

    .fs-pg .fs-pg__arrow {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }

    .fs-pg .fs-pg__dot {
        width: 8px !important;
        height: 8px !important;
    }

    .fs-pg .fs-pg__spin-toggle {
        height: 24px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
    }
}

/* Mobile Small (375px - 479px) */
@media (max-width: 479px) {
    .fs-pg {
        padding: 12px 0 !important;
        height: auto !important;
        min-height: 300px !important;
    }

    .fs-pg .fs-pg__container {
        gap: 12px !important;
        padding: 0 8px !important;
    }

    .fs-pg-outside .fs-pg__container {
        padding: 0 8px !important;
    }

    .fs-pg .fs-pg__thumb {
        width: 45px !important;
        height: 45px !important;
    }

    .fs-pg .fs-pg__viewer {
        min-height: 180px !important;
        top: 0 !important;
    }

    .fs-pg .fs-pg__image {
        width: 100% !important;
        height: 100% !important;
    }

    .fs-pg .fs-pg__title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }

    .fs-pg .fs-pg__meta li {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    /* Mobile category tiles - smaller */
    .fs-pg-outside .fs-pg__filter {
        width: 64px !important;
        height: 64px !important;
        font-size: 8px !important;
    }

    .fs-pg-outside .fs-pg__filter::before {
        inset: 8px !important;
    }

    .fs-pg .fs-pg__controls {
        bottom: 6px !important;
        gap: 6px !important;
    }

    .fs-pg .fs-pg__arrow {
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
    }

    .fs-pg .fs-pg__dot {
        width: 6px !important;
        height: 6px !important;
    }

    .fs-pg .fs-pg__spin-toggle {
        height: 22px !important;
        padding: 0 6px !important;
        font-size: 10px !important;
    }
}

/* Mobile Extra Small (320px - 374px) */
@media (max-width: 374px) {
    .fs-pg {
        padding: 8px 0 !important;
        height: auto !important;
        min-height: 250px !important;
    }

    .fs-pg .fs-pg__container {
        gap: 8px !important;
        padding: 0 6px !important;
    }

    .fs-pg-outside .fs-pg__container {
        padding: 0 6px !important;
    }

    .fs-pg .fs-pg__thumb {
        width: 40px !important;
        height: 40px !important;
    }

    .fs-pg .fs-pg__viewer {
        min-height: 160px !important;
        top: 0 !important;
    }

    .fs-pg .fs-pg__image {
        width: 100% !important;
        height: 100% !important;
    }

    .fs-pg .fs-pg__title {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .fs-pg .fs-pg__meta li {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    /* Mobile category tiles - smallest */
    .fs-pg-outside .fs-pg__filter {
        width: 58px !important;
        height: 58px !important;
        font-size: 7px !important;
    }

    .fs-pg-outside .fs-pg__filter::before {
        inset: 7px !important;
    }

    .fs-pg .fs-pg__controls {
        bottom: 4px !important;
        gap: 4px !important;
    }

    .fs-pg .fs-pg__arrow {
        width: 20px !important;
        height: 20px !important;
        font-size: 10px !important;
    }

    .fs-pg .fs-pg__dot {
        width: 5px !important;
        height: 5px !important;
    }

    .fs-pg .fs-pg__spin-toggle {
        height: 20px !important;
        padding: 0 4px !important;
        font-size: 9px !important;
    }
}

/* Typography: enforce Inter across Product Gallery */
.fs-pg,
.fs-pg * {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

.fs-pg .fs-pg__more-static {
    width: 100% !important;
    margin-top: 100px !important;
    padding-top: 20px !important;
    border-top: 1px solid #444 !important;
}

.fs-pg .fs-pg__more-static .fs-pg__more-line {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: #d9d9d9 !important;
    margin-bottom: 14px !important;
}

@media (max-width: 767px) {
    .fs-pg .fs-pg__more-static {
        margin-top: 60px !important;
        padding-top: 16px !important;
        border-top: 1px solid #555 !important;
    }

    .fs-pg .fs-pg__more-static .fs-pg__more-line {
        font-size: 13px !important;
        line-height: 1.6 !important;
        color: #ededed !important;
        text-align: center !important;
        margin-bottom: 16px !important;
        padding: 0 8px !important;
    }

    .fs-pg .fs-pg__contact-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 44px !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        border-radius: 12px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
}

/* iPad / Tablet polish (768px–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .fs-pg .fs-pg__container {
        width: 92% !important;
        gap: 20px !important;
    }

    .fs-pg .fs-pg__stage {
        grid-template-columns: 90px minmax(0, 1fr) 320px !important;
        gap: 20px !important;
        align-items: start !important;
    }

    /* Thumbnails column */
    .fs-pg .fs-pg__thumbs {
        width: 90px !important;
        gap: 12px !important;
    }

    .fs-pg .fs-pg__viewport {
        height: calc(72px * 3 + 12px * 2) !important;
        overflow: hidden !important;
    }

    .fs-pg .fs-pg__rail {
        gap: 12px !important;
    }

    .fs-pg .fs-pg__thumb {
        width: 72px !important;
        height: 72px !important;
        border-radius: 12px !important;
    }

    /* Arrows hug the 3 visible thumbs */
    .fs-pg .fs-pg__nav {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .fs-pg .fs-pg__nav--up {
        top: calc(50% - ((3 * 72px + 2 * 12px)/2) - 18px) !important;
    }

    .fs-pg .fs-pg__nav--down {
        top: calc(50% + ((3 * 72px + 2 * 12px)/2) + 18px) !important;
    }

    /* Viewer */
    .fs-pg .fs-pg__viewer {
        min-height: 420px !important;
        padding: 0 !important;
        top: -10px !important;
    }

    .fs-pg .fs-pg__image {
        width: auto !important;
        height: auto !important;
        max-width: 90% !important;
        max-height: 100% !important;
        object-fit: contain !important;
    }

    /* Details */
    .fs-pg .fs-pg__details {
        margin-top: 0 !important;
    }

    .fs-pg .fs-pg__meta {
        font-size: 13px !important;
        gap: 10px !important;
    }
}