/* Shared responsive styles for all pages */

/* Mobile Slide-out Menu */
.MobileMenuOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}
.MobileMenuOverlay.open {
    display: block;
}
.MobileSlideMenu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
}
.MobileSlideMenu.open {
    left: 0;
}
.MobileSlideMenu_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    font-size: 16px;
}
.MobileSlideMenu_close {
    background: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 20px;
    cursor: pointer;
    padding: 2px 8px;
    line-height: 1;
}
.MobileSlideMenu_list {
    list-style: disc;
    padding: 15px 20px;
    margin: 0;
}
.MobileSlideMenu_list li {
    margin-bottom: 8px;
}
.MobileSlideMenu_link {
    text-decoration: underline;
    color: #000;
    font-size: 15px;
}
body.menu-open {
    overflow: hidden;
}

/* Fix mobile Menu button - base CSS hides it */
.IconBar_menu__acm60 {
    display: flex !important;
}

@media only screen and (min-width: 850px) {
    .IconBar_menu__acm60 {
        display: none !important;
    }
}

/* How It Works page - Mobile */
@media (max-width: 849px) {
    .HowItWorks_sliceContainer__OVL7c {
        display: block !important;
    }

    .HowItWorks_sliceImage__J_bDN {
        width: 100% !important;
        padding-top: 0 !important;
        margin-bottom: 20px !important;
    }

    .HowItWorks_sliceFig__KVNZW {
        padding-top: 0 !important;
        position: static !important;
    }

    .HowItWorks_sliceFig__KVNZW img {
        position: static !important;
        transform: none !important;
        width: 60% !important;
        max-width: 250px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .HowItWorks_sliceInfo___GqRP {
        width: 100% !important;
        padding: 30px 0 40px 50px !important;
    }

    .HowItWorks_sliceInfo___GqRP:before {
        left: 15px !important;
    }

    .HowItWorks_sliceInfoLine__YJX8o {
        left: 15px !important;
    }

    .HowItWorks_sliceTitle__unCPX:before {
        position: static !important;
        width: 40px !important;
        height: 40px !important;
        line-height: 40px !important;
        font-size: 1.2rem !important;
        margin-right: 10px !important;
        flex-shrink: 0 !important;
    }

    .HowItWorks_sliceTitle__unCPX {
        display: flex !important;
        align-items: center !important;
    }

    .HowItWorks_sliceItem__lRq2N {
        padding-left: 60px !important;
        margin-bottom: 25px !important;
    }

    .HowItWorks_sliceItem__lRq2N img {
        max-width: 45px !important;
    }

    /* Fix mobile search bar */
    .Header_search__2K7dz {
        width: 100% !important;
        padding: 0 10px !important;
    }
    .Search_mockSearch__WrAn_ {
        width: 100% !important;
    }
    .Search_mockInput___3Vd_ {
        width: 100% !important;
    }
}

/* Service Reviews - Mobile */
@media (max-width: 768px) {
    .ServiceReviews_container__3Fr5k {
        flex-direction: column !important;
        gap: 15px !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .ServiceReviews_container__3Fr5k > * {
        flex: 0 0 auto !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .ServiceReviews_leftArrow__2mlHB,
    .ServiceReviews_rightArrow__1OFjM {
        display: none !important;
    }

    .ServiceReviews_reviews__OxMME {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        overflow: visible !important;
    }

    .ServiceReviews_reviews__OxMME > * {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Product Card base styles */
.ProductCard {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    gap: 40px;
}
.ProductCard_image {
    flex: 0 0 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    min-height: 220px;
    overflow: hidden;
}
.ProductCard_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.ProductCard_actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.ProductList_sidebar {
    flex: 0 0 220px;
}
.MedicalReview_flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    overflow: visible;
}

/* Subcategory page - Mobile */
@media (max-width: 849px) {
    /* Product list section - stack sidebar + products */
    .ProductList_root__R7hqh {
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* Hide sort filter sidebar on mobile */
    .ProductList_sidebar {
        display: none !important;
    }

    /* Product cards - stack image + text vertically */
    .ProductCard {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px !important;
        padding: 20px !important;
    }

    .ProductCard_image {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-height: 180px !important;
    }

    .ProductCard_info {
        width: 100% !important;
    }

    .ProductCard_actions {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }

    .ProductCard_actions a,
    .ProductCard_actions button {
        width: 100% !important;
        text-align: center !important;
    }

    /* Medically Reviewed By - stack on mobile */
    .MedicalReview_flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .MedicalReview_flex > div:first-child {
        flex-shrink: 1 !important;
    }

    .MedicalReview_flex > div:last-child {
        text-align: center !important;
    }

    /* Banner section - mobile: stack vertically */
    .Category_header__NivOU .CategoryHeader_wellInner__CvrGe {
        flex-direction: column !important;
        min-height: auto !important;
    }
    .CategoryHeader_textSide {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
    }
    .CategoryHeader_imageSide {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    .CategoryHeader_imageSide img {
        height: 250px !important;
        object-fit: cover !important;
    }
}

/* Category/Subcategory Banner - two-column layout (all screen sizes) */
.Category_header__NivOU {
    background: transparent !important;
    position: relative;
    z-index: 0;
}
.Category_header__NivOU section.well {
    background: transparent !important;
    padding: 0 !important;
    overflow: hidden;
}
.Category_header__NivOU .container {
    padding: 0 !important;
    max-width: none !important;
}
.Category_header__NivOU .CategoryHeader_wellInner__CvrGe {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: none !important;
    text-align: left !important;
    min-height: 420px;
}
.CategoryHeader_textSide {
    flex: 1 1 55%;
    min-width: 0;
    padding: 40px 30px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-light-datocms, #f4f4f4);
}
.CategoryHeader_imageSide {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    overflow: hidden;
}
.CategoryHeader_imageSide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Info sections accordion - full width */
.well--bg-only .container {
    padding: 0 15px !important;
}
}
