/* =====================================
   TENETS MEDICAL STORE
   HOMEPAGE CLEAN CSS
===================================== */


/* =====================================
   GLOBAL
===================================== */


.ms-container{

    max-width:1400px;
    margin:auto;
    padding:0 20px;

}


.ms-section-title{

    text-align:center;
    font-size:36px;
    font-weight:700;
    color:#0a8f55;
    margin:0 0 35px;

}




/* =====================================
   HERO SLIDER
===================================== */


.ms-slider-hero{

    width:100%;
    height:550px;
    position:relative;
    overflow:hidden;

}


.ms-slide{

    position:absolute;
    inset:0;
    opacity:0;
    animation:medicalSlider 12s infinite;

}



.ms-slide img{

    width:100%;
    height:550px;
    object-fit:cover;
    display:block;

}



.ms-slide-content{

    position:absolute;

    top:50%;
    left:10%;

    transform:translateY(-50%);

    max-width:600px;

    padding:25px;

    background:rgba(0,0,0,.45);

    border-radius:10px;

    color:#fff;

}



.ms-slide-content h1,
.ms-slide-content h2,
.ms-slide-content p{

    color:#fff;

}



.ms-slide-content h1{

    font-size:48px;
    margin-bottom:10px;

}



.ms-slide-content h2{

    font-size:30px;

}



.ms-slide-content p{

    font-size:18px;
    line-height:1.6;

}




.ms-hero-button{


    display:inline-flex !important;

    align-items:center;
    justify-content:center;

    margin-top:20px;

    padding:12px 30px;

    background:#0d6efd !important;

    color:#fff !important;

    border-radius:30px;

    text-decoration:none !important;

    font-weight:600;

}



.ms-hero-button:hover{

    background:#0a8f55 !important;

}




.ms-slide:nth-child(1){

    animation-delay:0s;

}


.ms-slide:nth-child(2){

    animation-delay:4s;

}


.ms-slide:nth-child(3){

    animation-delay:8s;

}




@keyframes medicalSlider{


0%{

opacity:0;

}


10%{

opacity:1;

}


30%{

opacity:1;

}


40%{

opacity:0;

}


100%{

opacity:0;

}


}





/* =====================================
   CATEGORY SECTION
===================================== */


.ms-categories{

    padding:50px 0;

}



.ms-category-grid{


    display:grid !important;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}




.ms-category-card{


    background:transparent !important;

    border:none !important;

    box-shadow:none !important;

    display:flex;

    flex-direction:column;

    text-align:center;

}



.ms-category-card img{


    width:100% !important;

    height:220px !important;

    object-fit:contain !important;

    display:block;

}




.ms-category-card h3,
.ms-category-card .category-name{


    margin:10px 0 !important;

    height:50px;

    font-size:18px;

    font-weight:700;

    color:#222 !important;


    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;


}





.ms-category-btn{


    display:inline-flex !important;

    align-items:center;

    justify-content:center;

    align-self:center;


    height:40px;


    padding:10px 25px;


    background:#0d6efd !important;


    color:#fff !important;


    border-radius:30px;


    text-decoration:none !important;


}



.ms-category-btn:hover{


    background:#0a8f55 !important;


}




/* =====================================
   VIEW MORE BUTTONS
===================================== */


.ms-view-more{


    display:flex;

    justify-content:center;

    margin-top:35px;


}




.ms-view-more-btn,
.ms-btn,
.ms-view-more a{


    display:inline-flex !important;

    align-items:center;

    justify-content:center;


    padding:12px 30px;


    background:#0d6efd !important;


    color:#fff !important;


    border-radius:30px;


    font-weight:600;


    text-decoration:none !important;


}



.ms-view-more-btn:hover,
.ms-btn:hover,
.ms-view-more a:hover{


    background:#0a8f55 !important;


}

/* =====================================
   TRUSTED BRANDS SECTION
===================================== */


.ms-brands{

    padding:40px 0 50px;

}



.ms-brand-grid{


    display:grid !important;

    grid-template-columns:repeat(4,1fr);

    gap:25px;


}



.ms-brand-card{


    height:120px;


    display:flex !important;


    align-items:center;


    justify-content:center;


    background:transparent !important;


    border:none !important;


    box-shadow:none !important;


}



.ms-brand-card img{


    width:100% !important;


    height:90px !important;


    object-fit:contain !important;


}



/* Hide Brand Text */


.ms-brand-card h4,
.ms-brand-card p,
.ms-brand-card .brand-name{


    display:none !important;


}




/* =====================================
   REMOVE UNWANTED CARD EFFECTS
===================================== */


.ms-category-card,
.ms-brand-card{


    box-shadow:none !important;

    border:none !important;

    background:transparent !important;


}


.ms-category-card a,
.ms-brand-card a{


    background:transparent !important;

    box-shadow:none !important;

    text-decoration:none !important;


}





/* =====================================
   TABLET
===================================== */


@media(max-width:1024px){



.ms-category-grid{


    grid-template-columns:repeat(3,1fr);

}



.ms-brand-grid{


    grid-template-columns:repeat(3,1fr);

}



}





/* =====================================
   MOBILE
===================================== */


@media(max-width:768px){



/* Global */


.ms-container{


    padding-left:0;

    padding-right:0;


}




/* Hero */


.ms-slider-hero,
.ms-slide,
.ms-slide img{


    height:420px;


}



.ms-slide-content{


    left:5%;

    right:5%;

    padding:20px;

    text-align:center;


}



.ms-slide-content h1{


    font-size:30px;


}



.ms-slide-content h2{


    font-size:22px;


}



.ms-slide-content p{


    font-size:15px;


}



.ms-hero-button{


    padding:10px 25px;


}




/* Categories */


.ms-categories{


    padding:20px 8px;


}



.ms-category-grid{


    grid-template-columns:repeat(2,1fr) !important;


    gap:8px;


}



.ms-category-card img{


    height:auto !important;


    aspect-ratio:1/1;


}



.ms-category-card h3,
.ms-category-card .category-name{


    font-size:13px;


    line-height:18px;


    height:38px;


}



.ms-category-btn{


    height:34px;


    padding:8px 12px;


    font-size:12px;


}




/* Brands */


.ms-brands{


    padding:20px 10px 35px;


}



.ms-brand-grid{


    grid-template-columns:repeat(2,1fr);


    gap:10px;


}



.ms-brand-card{


    height:90px;


}



.ms-brand-card img{


    height:60px !important;


}



}

/* =====================================
   FEATURED PRODUCT CARDS
   ELEMENTOR SHORTCODE OUTPUT
===================================== */


/* Product Grid Desktop */

.ms-product-grid{

    display:grid !important;

    grid-template-columns:repeat(4,minmax(0,1fr)) !important;

    gap:25px !important;

    width:100%;

}



/* Product Card */

.ms-product-card{

    width:100% !important;

    display:flex;

    flex-direction:column;

    text-align:center;

    background:transparent !important;

    border:none !important;

    padding:0 !important;

}



/* Product Image */

.ms-product-card img{

    width:100% !important;

    aspect-ratio:1/1;

    height:auto !important;

    object-fit:contain !important;

    display:block;

}



/* Product Title */

.ms-product-title{

    height:45px;

    overflow:hidden;

    margin:10px 0 !important;

    font-size:17px;

    font-weight:700;

    line-height:1.4;

}



.ms-product-title a{

    color:#222 !important;

    text-decoration:none !important;

}



/* Price */

.ms-price{

    color:#0a8f55 !important;

    font-size:18px;

    font-weight:700;

    margin:5px 0 !important;

}



/* Button Container */

.ms-product-buttons{

    width:100%;

    margin-top:auto;

}



/* Add To Cart */

.ms-add-cart{

    display:flex !important;

    align-items:center;

    justify-content:center;

    width:100% !important;

    height:42px;

    background:#0d6efd !important;

    color:#fff !important;

    border-radius:30px !important;

    text-decoration:none !important;

    font-weight:600;

}



.ms-add-cart:hover{

    background:#0a8f55 !important;

    color:#fff !important;

}





/* =====================================
   TABLET
===================================== */

@media(max-width:1024px){

.ms-product-grid{

    grid-template-columns:repeat(3,1fr) !important;

}

}





/* =====================================
   MOBILE
===================================== */


@media(max-width:768px){


.ms-featured-products{

    padding:20px 0 !important;

}



.ms-product-grid{


    grid-template-columns:repeat(2,minmax(0,1fr)) !important;

    gap:5px !important;

}



.ms-product-card{

    width:100% !important;

}



.ms-product-card img{

    width:100% !important;

    aspect-ratio:1/1;

}



.ms-product-title{


    font-size:14px;

    height:40px;

    text-align:left;

    padding:0 5px;


}



.ms-price{


    font-size:15px;

    text-align:left;

    padding:0 5px;


}



.ms-add-cart{


    height:36px;

    font-size:12px;

    border-radius:25px !important;


}


}

/* =====================================
   DESKTOP SECTION SIDE SPACING
===================================== */


/* Categories */

.ms-categories,
.ms-featured-products,
.ms-brands{

    padding-left:30px !important;

    padding-right:30px !important;

}


/* Keep content centered */

.ms-category-grid,
.ms-product-grid,
.ms-brand-grid{

    max-width:1400px;

    margin-left:auto !important;

    margin-right:auto !important;

}



/* =====================================
   TABLET
===================================== */

@media(max-width:1024px){


.ms-categories,
.ms-featured-products,
.ms-brands{

    padding-left:20px !important;

    padding-right:20px !important;

}


}



/* =====================================
   MOBILE KEEP EDGE STYLE
===================================== */

@media(max-width:768px){


.ms-categories,
.ms-featured-products,
.ms-brands{

    padding-left:8px !important;

    padding-right:8px !important;

}


}

/* =====================================
   FINAL HOMEPAGE CONTENT WIDTH FIX
===================================== */


/* Main sections spacing */

.ms-categories,
.ms-featured-products,
.ms-brands{

    padding-left:50px !important;

    padding-right:50px !important;

}



/* Inner grids */

.ms-category-grid,
.ms-product-grid,
.ms-brand-grid{

    max-width:1400px !important;

    margin-left:auto !important;

    margin-right:auto !important;

}





/* =====================================
   BRANDS FINAL ALIGNMENT
===================================== */


.ms-brand-grid{

    display:grid !important;

    grid-template-columns:repeat(4,1fr) !important;

    gap:30px !important;

    align-items:center;

}



.ms-brand-card{


    width:100% !important;

    height:auto !important;

    min-height:140px;

    display:flex !important;

    flex-direction:column;

    align-items:center;

    justify-content:center;


    background:transparent !important;

    border:none !important;

    box-shadow:none !important;


}



.ms-brand-card img{


    width:100% !important;

    max-width:220px;

    height:100px !important;

    object-fit:contain !important;

    display:block;


}



/* Brand slogan / name */

.ms-brand-card h4,
.ms-brand-card p,
.ms-brand-card .brand-name{


    display:block !important;

    width:100%;

    text-align:center !important;

    margin-top:10px !important;

    font-size:14px;

    font-weight:600;

    color:#333 !important;


}





/* =====================================
   TABLET
===================================== */

@media(max-width:1024px){


.ms-categories,
.ms-featured-products,
.ms-brands{


    padding-left:30px !important;

    padding-right:30px !important;


}



.ms-brand-grid{


    grid-template-columns:repeat(3,1fr) !important;


}


}





/* =====================================
   MOBILE
===================================== */


@media(max-width:768px){


.ms-categories,
.ms-featured-products,
.ms-brands{


    padding-left:10px !important;

    padding-right:10px !important;


}



.ms-brand-grid{


    grid-template-columns:repeat(2,1fr) !important;

    gap:15px !important;


}



.ms-brand-card img{


    max-width:150px;

    height:70px !important;


}



.ms-brand-card h4,
.ms-brand-card p,
.ms-brand-card .brand-name{


    font-size:12px;


}


}


/* =====================================
   FINAL HOMEPAGE POLISH
===================================== */


/* =====================================
   BRANDS - SMALL LOGO ROWS
===================================== */


.ms-brand-grid{

    gap:12px 25px !important;

}


.ms-brand-card{

    min-height:90px !important;

    height:90px !important;

}



.ms-brand-card img{


    width:100% !important;

    max-width:180px;

    height:55px !important;

    object-fit:contain !important;


}



.ms-brand-card h4,
.ms-brand-card p,
.ms-brand-card .brand-name{


    margin-top:5px !important;

    font-size:13px;

    line-height:18px;

}





/* =====================================
   PRODUCT ADD TO CART BUTTON
   FIT CONTENT ONLY
===================================== */


.ms-product-buttons{

    display:flex;

    justify-content:center;

}



.ms-add-cart{


    width:auto !important;

    display:inline-flex !important;

    padding:10px 25px !important;

    height:40px;

    white-space:nowrap;


}




/* Mobile Add Cart */

@media(max-width:768px){


.ms-add-cart{


    width:auto !important;

    padding:8px 18px !important;

    font-size:12px;


}


}





/* =====================================
   VIEW MORE CATEGORIES BUTTON
===================================== */


.ms-category-btn,
.ms-view-more-btn,
.ms-view-more a{


    background:#0a8f55 !important;

    color:#fff !important;


}



.ms-category-btn:hover,
.ms-view-more-btn:hover,
.ms-view-more a:hover{


    background:#ff4fa3 !important;

    color:#fff !important;


}

/* =====================================
   CATEGORY BUTTON FIX
   View Product Button
===================================== */


.ms-category-btn{

    background:#0d6efd !important;

    color:#fff !important;

}



.ms-category-btn:hover{

    background:#0a8f55 !important;

    color:#fff !important;

}




/* =====================================
   VIEW MORE CATEGORIES BUTTON
===================================== */


.ms-view-more-btn,
.ms-view-more a,
.ms-btn{


    background:#0a8f55 !important;

    color:#fff !important;


}



.ms-view-more-btn:hover,
.ms-view-more a:hover,
.ms-btn:hover{


    background:#ff4fa3 !important;

    color:#fff !important;


}

/* =====================================
   TENETS FINAL HOMEPAGE FIXES
===================================== */


/* =====================================
   COMMON SECTION SIDE MARGIN
===================================== */

.ms-categories,
.ms-featured-products,
.ms-brands{

    max-width:1400px;
    margin-left:auto;
    margin-right:auto;
    padding-left:30px;
    padding-right:30px;

}



/* =====================================
   FEATURED PRODUCT BLOCK
===================================== */


/* Product grid */

.ms-product-grid{

    display:grid !important;

    grid-template-columns:repeat(4,1fr) !important;

    gap:25px !important;

}



/* Product card */

.ms-product-card{

    width:100% !important;

    text-align:center;

}



/* Product button */

.ms-product-buttons{

    display:flex;

    justify-content:center;

}



.ms-product-buttons .button,
.ms-add-cart{

    width:auto !important;

    display:inline-flex !important;

    padding:10px 25px !important;

    height:40px;

    align-items:center;

    justify-content:center;

    border-radius:30px !important;

    background:#0d6efd !important;

    color:#fff !important;

}



.ms-product-buttons .button:hover,
.ms-add-cart:hover{

    background:#0a8f55 !important;

}



/* =====================================
   CATEGORY BUTTON COLOR
===================================== */


.ms-category-btn{

    background:#0d6efd !important;

    color:#fff !important;

}



.ms-category-btn:hover{

    background:#0a8f55 !important;

}



/* View More Categories */

.ms-view-more-btn{

    background:#0a8f55 !important;

}



.ms-view-more-btn:hover{

    background:#ff4fa3 !important;

}



/* =====================================
   BRAND SECTION
===================================== */


.ms-brand-grid{

    gap:10px !important;

}



.ms-brand-card{

    height:80px !important;

}



.ms-brand-card img{

    width:100% !important;

    height:60px !important;

    object-fit:contain !important;

}



/* Brand slogan text center */

.ms-brand-card .brand-name,
.ms-brand-card p,
.ms-brand-card h4{

    display:flex !important;

    justify-content:center;

    align-items:center;

    text-align:center;

}



/* =====================================
   MOBILE FIX
===================================== */


@media(max-width:768px){


.ms-categories,
.ms-featured-products,
.ms-brands{

    padding-left:10px;

    padding-right:10px;

}



/* Product two column */

.ms-product-grid{

    grid-template-columns:repeat(2,1fr) !important;

    gap:8px !important;

}



/* Mobile Add Cart */

.ms-product-buttons .button,
.ms-add-cart{


    width:100% !important;

    height:32px !important;

    padding:5px 8px !important;

    font-size:12px !important;

    border-radius:20px !important;


}



/* Brand smaller */

.ms-brand-card{

    height:65px !important;

}


.ms-brand-card img{

    height:45px !important;

}



}

/* =====================================
   BRAND TEXT CENTER FIX
===================================== */


.ms-brand-card{

    text-align:center !important;

}


.ms-brand-card p,
.ms-brand-card h4,
.ms-brand-card .brand-name,
.ms-brand-card div{

    width:100% !important;

    text-align:center !important;

    justify-content:center !important;

    align-items:center !important;

}



/* If brand card contains image + slogan */

.ms-brand-card{

    flex-direction:column !important;

}



.ms-brand-card img{

    margin-left:auto !important;

    margin-right:auto !important;

}



/* Mobile */

@media(max-width:768px){

.ms-brand-card p,
.ms-brand-card h4,
.ms-brand-card .brand-name{

    text-align:center !important;

    font-size:13px !important;

}

}

/* =====================================
   TRUSTED BRANDS COMPLETE CENTER FIX
===================================== */


/* Section title */

.ms-brands .ms-section-title,
.ms-brands h2,
.ms-brands h3{

    width:100% !important;

    text-align:center !important;

}



/* Description paragraph */

.ms-brands p,
.ms-brands .brand-description,
.ms-brands .section-description{

    width:100% !important;

    text-align:center !important;

    margin-left:auto !important;

    margin-right:auto !important;

}



/* Brand grid */

.ms-brand-grid{

    justify-items:center !important;

    align-items:center !important;

}



/* Each brand box */

.ms-brand-card{

    display:flex !important;

    flex-direction:column !important;

    align-items:center !important;

    justify-content:center !important;

    text-align:center !important;

}



/* Brand image */

.ms-brand-card img{

    display:block !important;

    margin-left:auto !important;

    margin-right:auto !important;

}



/* Brand name / text */

.ms-brand-card h4,
.ms-brand-card p,
.ms-brand-card .brand-name{

    width:100% !important;

    text-align:center !important;

    margin-left:auto !important;

    margin-right:auto !important;

}



/* Mobile */

@media(max-width:768px){

.ms-brands{

    text-align:center !important;

}


.ms-brand-grid{

    justify-items:center !important;

}


.ms-brand-card{

    text-align:center !important;

}

}

/* =====================================
   CATEGORY SHORTCODE PAGE FIX
===================================== */


.page .ms-categories{

    width:100% !important;

    padding:50px 20px !important;

}



.page .ms-categories .ms-container{

    max-width:1400px !important;

    margin:auto !important;

    padding:0 20px !important;

}




.page .ms-category-grid{


    display:grid !important;

    grid-template-columns:repeat(4,1fr) !important;

    gap:25px !important;


}




.page .ms-category-card{


    width:100% !important;

    background:transparent !important;

    border:none !important;

    box-shadow:none !important;


}




.page .ms-category-card img{


    width:100% !important;

    height:220px !important;

    object-fit:contain !important;

    display:block !important;


}




.page .ms-category-link{


    display:flex !important;

    flex-direction:column !important;

    align-items:center !important;

    text-decoration:none !important;


}




.page .ms-category-card h3{


    height:50px !important;

    margin:15px 0 !important;

    font-size:18px !important;

    text-align:center !important;


}



.page .ms-category-btn{


    width:auto !important;

    background:#0d6efd !important;

    color:white !important;

    padding:10px 25px !important;

    border-radius:30px !important;


}



.page .ms-category-btn:hover{


    background:#0a8f55 !important;


}





/* MOBILE */


@media(max-width:768px){


.page .ms-categories{


    padding:30px 8px !important;


}



.page .ms-categories .ms-container{


    padding:0 !important;


}



.page .ms-category-grid{


    grid-template-columns:repeat(2,1fr) !important;

    gap:10px !important;


}



.page .ms-category-card img{


    height:auto !important;

    aspect-ratio:1/1;


}



.page .ms-category-card h3{


    font-size:14px !important;

    height:40px !important;


}



}

/* =====================================
   TENETS CATEGORY PAGE SHORTCODE FIX
   /categories/
===================================== */


/* Main category section spacing */

.page-id-472 .ms-categories,
.page-template-default .ms-categories{

    padding:60px 0 !important;

}


.page-id-472 .ms-container{

    max-width:1400px !important;

    margin:auto !important;

    padding-left:40px !important;

    padding-right:40px !important;

}


/* Category grid */

.page-id-472 .ms-category-grid{


    display:grid !important;

    grid-template-columns:repeat(4,1fr) !important;

    gap:30px !important;

}



/* Category card */

.page-id-472 .ms-category-card{


    width:100% !important;

    text-align:center !important;

    display:flex !important;

    flex-direction:column !important;

    align-items:center !important;

}




/* Image fix */

.page-id-472 .ms-category-card img{


    width:100% !important;

    height:220px !important;

    object-fit:contain !important;

    display:block !important;


}




/* Link */

.page-id-472 .ms-category-link{


    width:100% !important;

    text-align:center !important;

    display:flex !important;

    flex-direction:column !important;

    align-items:center !important;

}



/* Category name */

.page-id-472 .ms-category-card h3{


    font-size:18px !important;

    font-weight:700 !important;

    line-height:25px !important;

    height:50px !important;

    margin:15px 0 !important;

    color:#222 !important;


}




/* Button */

.page-id-472 .ms-category-btn{


    display:inline-flex !important;

    width:auto !important;

    padding:10px 25px !important;

    background:#0d6efd !important;

    color:white !important;

    border-radius:30px !important;

    justify-content:center !important;


}


.page-id-472 .ms-category-btn:hover{


    background:#0a8f55 !important;


}



/* View More */

.page-id-472 .ms-view-more{


    margin-top:40px !important;

}



/* Mobile */

@media(max-width:768px){


.page-id-472 .ms-container{


    padding-left:8px !important;

    padding-right:8px !important;


}


.page-id-472 .ms-category-grid{


    grid-template-columns:repeat(2,1fr) !important;

    gap:15px !important;


}


.page-id-472 .ms-category-card img{


    height:auto !important;

    aspect-ratio:1/1 !important;


}


.page-id-472 .ms-category-card h3{


    font-size:14px !important;

    line-height:18px !important;

    height:36px !important;


}



}

/* =====================================
   MOBILE SLIDER FINAL FIX
===================================== */

@media(max-width:768px){

    .ms-slider-hero{
        height:320px !important;
        min-height:320px !important;
    }


    .ms-slide{
        height:320px !important;
    }


    .ms-slide img{
        width:100% !important;
        height:320px !important;
        object-fit:cover !important;
        object-position:center center !important;
    }


    .ms-slide-content{

        top:50% !important;
        left:15px !important;
        right:15px !important;

        transform:translateY(-50%) !important;

        padding:15px !important;

        background:rgba(0,0,0,0.35) !important;

        border-radius:8px !important;

    }


    .ms-slide-content h1{

        font-size:24px !important;
        line-height:30px !important;

    }


    .ms-slide-content h2{

        font-size:18px !important;

    }


    .ms-slide-content p{

        font-size:14px !important;
        line-height:20px !important;

    }


    .ms-hero-button{

        margin-top:10px !important;
        padding:8px 20px !important;
        font-size:13px !important;

    }

}

