/* ======================================
   CHD Product Carousel
====================================== */

/* ======================================
   Product Section Loader
====================================== */

.chd-product-carousel{
    position:relative;
}

.chd-carousel-loader{
    position:absolute;
    inset:0;
    background:rgba(255,255,255,.82);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:12px;
    z-index:50;
    opacity:0;
    visibility:hidden;
    transition:.3s ease;
}

.chd-product-carousel.is-loading .chd-carousel-loader{
    opacity:1;
    visibility:visible;
}

.chd-spinner{
    width:46px;
    height:46px;
    border:4px solid rgba(183,84,48,.18);
    border-top-color:#B75430;
    border-radius:50%;
    animation:chdSpin .8s linear infinite;
}

.chd-carousel-loader span{
    font-size:18px;
    color:#666;
    font-family:"Teachers", sans-serif;
    font-weight:500;
}

@keyframes chdSpin{
    to{
        transform:rotate(360deg);
    }
}

.chd-product-carousel{
    width:100%;
    position:relative;
    overflow:hidden;
}

/* ONLY target outer Swiper slides */
.chd-product-carousel > .swiper-wrapper > .swiper-slide{
    height:auto;
}

/* Product card */
.chd-product-carousel li.product{
    margin-bottom: 0;
    height: 100%;
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    padding: 12px;
}
.chd-product-carousel li.product .property-image-wrap{
    border-radius: 12px;
    height: 192px;
    width: 100%;
    overflow:hidden;
}
.chd-product-carousel li.product .property-image-wrap img{
     object-fit: cover;
     width: 100%;
     height: 100%;
     border-radius: 12px;
     transition:
        transform .6s cubic-bezier(.22,.61,.36,1),
        filter .6s cubic-bezier(.22,.61,.36,1);
    transform:scale(1);
    filter:brightness(1);
}

.chd-product-carousel li.product:hover .property-image-wrap img{
    transform:scale(1.08);
    filter:brightness(1.05);
}  

/* Navigation */
.chd-product-carousel .swiper-button-next,
.chd-product-carousel .swiper-button-prev{
    width:42px;
    height:42px;
    border-radius:50%;
    background:#fff;
    color:#222;
    box-shadow:0 6px 20px rgba(0,0,0,.15);
}

.chd-product-carousel .swiper-button-next:after,
.chd-product-carousel .swiper-button-prev:after{
    font-size:16px;
}

/* Pagination */
.chd-product-carousel .swiper-pagination{
    position:relative;
    margin-top:24px;
}

/* ======================================
   Mobile Peek
====================================== */

@media(max-width:767px){

    .chd-product-carousel{
        overflow:visible;
        padding-right:18px;
    }

}

/* ======================================
   Grid Mode
====================================== */

.chd-product-carousel.grid-mode{
    overflow:visible;
}

.chd-product-carousel.grid-mode > .swiper-wrapper{
    display:grid !important;
    transform:none !important;
    gap:24px;
    width:100%;
    height:auto !important;
}

.chd-product-carousel.grid-mode > .swiper-wrapper > .swiper-slide{
    width:100% !important;
    margin:0 !important;
    height:auto;
}

/* Desktop */
.chd-product-carousel .title-container{
    margin: 0 !important;
            margin-bottom: 16px !important;
    margin-top: 16px !important;
}
.chd-product-carousel .woocommerce-loop-product__title{
    font-size: 16px !important;
    color: #3F4945 !important;
    font-family: "Teachers", sans-serif !important;
    font-weight: 600 !important;
    line-height: 20px !important;
}
.chd-product-carousel .property-card-stats{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 5px;
}
.chd-product-carousel .property-stat{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 1px;
}
.chd-product-carousel .price{
    display: none;
}
.chd-product-carousel li.product .button,
.chd-product-carousel li.product .add_to_cart_button,
.chd-product-carousel li.product .property-card-bottom a{
    margin-top: 0;
    background-color: #fff;
    border: 1px solid #CBCBCB;
    width: 100%;
    display: block;
    border-radius: 10px;
    padding: 10px;
    color: #3F4945;
    font-weight: 500;
    font-family: "Teachers", sans-serif !important;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chd-product-carousel li.product .button:hover,
.chd-product-carousel li.product .property-card-bottom a:hover{
  color: #fff;
  border-color: #B75430;
  background-color: #B75430;
}
.chd-product-carousel li.product .property-card-bottom{
    display: block;
    clear: both;
    margin: 13px 0 3px;
}
.chd-product-carousel .swiper-button-next, .chd-product-carousel .swiper-button-prev{
    display: none;
}
@media(min-width:1024px){

    .chd-product-carousel.grid-mode[data-desktop-columns="5"]>.swiper-wrapper{
        grid-template-columns:repeat(5,1fr);
    }

    .chd-product-carousel.grid-mode[data-desktop-columns="4"]>.swiper-wrapper{
        grid-template-columns:repeat(4,1fr);
    }

    .chd-product-carousel.grid-mode[data-desktop-columns="3"]>.swiper-wrapper{
        grid-template-columns:repeat(3,1fr);
    }

    .chd-product-carousel.grid-mode[data-desktop-columns="2"]>.swiper-wrapper{
        grid-template-columns:repeat(2,1fr);
    }
    

}

/* Tablet */

@media(min-width:768px) and (max-width:1023px){

    .chd-product-carousel.grid-mode[data-desktop-columns="5"]>.swiper-wrapper{
        grid-template-columns:repeat(3,1fr);
    }

    .chd-product-carousel.grid-mode[data-desktop-columns="4"]>.swiper-wrapper{
        grid-template-columns:repeat(3,1fr);
    }

    .chd-product-carousel.grid-mode[data-desktop-columns="3"]>.swiper-wrapper{
        grid-template-columns:repeat(3,1fr);
    }

    .chd-product-carousel.grid-mode[data-desktop-columns="2"]>.swiper-wrapper{
        grid-template-columns:repeat(3,1fr);
    }

}

/* Mobile */

@media(max-width:767px){

    .chd-product-carousel.grid-mode[data-desktop-columns="5"]>.swiper-wrapper{
        grid-template-columns:repeat(2,1fr);
    }

    .chd-product-carousel.grid-mode[data-desktop-columns="4"]>.swiper-wrapper{
        grid-template-columns:repeat(2,1fr);
    }

    .chd-product-carousel.grid-mode[data-desktop-columns="3"]>.swiper-wrapper{
        grid-template-columns:repeat(2,1fr);
    }

    .chd-product-carousel.grid-mode[data-desktop-columns="2"]>.swiper-wrapper{
        grid-template-columns:repeat(2,1fr);
    }
    .chd-product-carousel .swiper-button-next, .chd-product-carousel .swiper-button-prev{
        display: flex;
    }

}

/* ======================================
   Review Carousel
====================================== */

/* Add space for the overlapping avatar */
.chd-review-carousel{
    padding-top:40px;
    max-width: 1095px;
    position: static;
}

/* Review Card */
.chd-review-carousel .review-card{
    position:relative;
    background:#fff;
    border-radius:25px;
    padding:55px 28px 30px;
    text-align:center;
    height:100%;
    transition:transform .35s ease;
    z-index: 1;
}

.chd-review-carousel .review-card:hover{
    transform:translateY(-6px);
}

/* Reviewer Avatar */
.chd-review-carousel .review-avatar{
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: #D5C9C9;
    z-index: 1;
}

.chd-review-carousel .review-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.chd-review-carousel .review-avatar-placeholder{
    width:100%;
    height:100%;
    background:#D9D9D9;
}

/* Reviewer Name */
.chd-review-carousel .review-name{
    margin: 22px 0 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500 !important;
    color: #373737;
    font-family: "Teachers", sans-serif !important;
    margin-bottom: 0 !important;
}

/* Rating Stars */
.chd-review-carousel .review-stars{
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 20px 0 22px;
}

.chd-review-carousel .review-stars span{
    color:#D9D9D9;
}

.chd-review-carousel .review-stars .filled{
    color: #B75431;
    font-size: 25px;
}

/* Review Text */
.chd-review-carousel .review-text{
    margin: 0;
    color: #373737;
    font-size: 18px;
    line-height: 28px;
    font-family: "Teachers", sans-serif;
}

/* ======================================
   Review Grid Support
   (Uses the same JS and data attributes)
====================================== */

.chd-review-carousel.grid-mode{
    overflow:visible;
}

.chd-review-carousel.grid-mode > .swiper-wrapper{
    display:grid !important;
    transform:none !important;
    gap:24px;
    width:100%;
}

.chd-review-carousel.grid-mode > .swiper-wrapper > .swiper-slide{
    width:100% !important;
    margin:0 !important;
}

.chd-review-carousel .review-card::before{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 194px;
    content: ' ';
    z-index: -1;
    backface-visibility: hidden;
    border-radius: 25px;
}
.chd-review-carousel .review-card::before{
    background: linear-gradient(180deg, rgb(255, 243, 239) 10%, rgb(255, 255, 255) 90%);
}

.chd-review-carousel .review-card::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, #DDDDDD 0%, #FFFFFF 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.chd-review-carousel  .swiper-button-next, .chd-review-carousel  .swiper-button-prev {
    display: flex !important;
}
.chd-review-carousel .swiper-button-next{
    right: 0;
}
.chd-review-carousel .swiper-button-prev{
    left: 0;
}

/* Desktop */

@media(min-width:1024px){

.chd-review-carousel.grid-mode[data-desktop-columns="4"] > .swiper-wrapper{
grid-template-columns:repeat(4,1fr);
}

.chd-review-carousel.grid-mode[data-desktop-columns="3"] > .swiper-wrapper{
grid-template-columns:repeat(3,1fr);
}

.chd-review-carousel.grid-mode[data-desktop-columns="2"] > .swiper-wrapper{
grid-template-columns:repeat(2,1fr);
}

.chd-review-carousel.grid-mode[data-desktop-columns="1"] > .swiper-wrapper{
grid-template-columns:repeat(1,1fr);
}

}

@media(max-width:1024px){
    .chd-review-carousel .arrow-navigation {
    left: 50%;
    bottom: -45px;
    top: inherit;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    position: absolute;
    width: 120px;
    justify-content: center;
    align-items: center;
    height: 40px;
    
  }
  .chd-review-carousel .swiper-button-next,
  .chd-review-carousel .swiper-button-prev{
    box-shadow: none;
    border: 1px solid #ECE0DC;
    width: 52px;
    height: 52px;
  }
  .chd-review-carousel .review-text{
    font-size: 20px;
    line-height: 30px;
  }
}

/* Tablet */

@media(min-width:768px) and (max-width:1023px){

.chd-review-carousel.grid-mode[data-tablet-columns="3"] > .swiper-wrapper{
grid-template-columns:repeat(3,1fr);
}

.chd-review-carousel.grid-mode[data-tablet-columns="2"] > .swiper-wrapper{
grid-template-columns:repeat(2,1fr);
}

.chd-review-carousel.grid-mode[data-tablet-columns="1"] > .swiper-wrapper{
grid-template-columns:repeat(1,1fr);
}



}

/* Mobile */

@media(max-width:767px){

.chd-review-carousel{
padding-top:35px;
}

.chd-review-carousel .review-card{
padding:50px 20px 24px;
}

.chd-review-carousel .review-name{
font-size:20px;
}

.chd-review-carousel .review-text{
font-size:18px;
}
.chd-review-carousel .review-name{
    font-size: 20px !important;
    font-weight: 700 !important;
}

.chd-review-carousel.grid-mode[data-mobile-columns="2"] > .swiper-wrapper{
grid-template-columns:repeat(2,1fr);
}

.chd-review-carousel.grid-mode[data-mobile-columns="1"] > .swiper-wrapper{
grid-template-columns:repeat(1,1fr);
}

.chd-review-carousel{
        padding-right:0;
        overflow:hidden;
    }

    .chd-review-carousel .swiper-slide{
        width:100% !important;
    }

}


/* ======================================
Team Carousel
====================================== */

.chd-team-carousel{
padding-top:10px;
}

.chd-team-carousel .team-card{
    position: relative;
    overflow: visible;
    border-radius: 28px;
    height: auto;
    /*background: #eee;*/
    transition: transform .4s ease;
}

.chd-team-carousel .team-card:hover{
transform:translateY(-6px);
}

.chd-team-carousel .team-card img{
    height: 270px;
    border-radius: 28px;
    width: 100% !important;
    height: 100% !important;
    object-fit:cover;
    display:block;
    transition:transform .6s ease;
    margin-bottom: 0 !important;
}

.chd-team-carousel .team-card:hover img{
    transform:scale(1.05);
}

/*.chd-team-carousel .team-overlay{
    position:absolute;
    inset:0;
    background: linear-gradient(
    90deg,
    rgba(35, 35, 35, 0.69) 0%,
    rgba(190, 76, 43, 0) 100%
  );
     backdrop-filter: blur(13.5px);
  -webkit-backdrop-filter: blur(13.5px);

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 100%
  );

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 100%
  );
  bottom: 0;
    margin-top: auto;
    height: 310px;
    width: 100%;
}*/

.chd-team-carousel .team-content{
    position:relative;
    /*left:28px;
    right:28px;
    bottom:28px;*/
    color:#fff;
    z-index:2;
}

.chd-team-carousel .team-content h3{
    font-family: "Ovo", serif !important;
    font-size: 22px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    color: #373737;
    margin: 0;
    padding: 0;
    margin-top: 22px;
    margin-bottom: 18px !important;
}
.chd-team-carousel .team-description,
.chd-team-carousel p.team-description{
    margin:0;
    font-size:15px;
    line-height: 23px;
    color:#373737;
    font-family:"Teachers",sans-serif;
    font-weight: 400;
    margin-bottom: 8px;

    /*display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;*/
}
.chd-team-carousel .team-designation{
    color: #BE4C2B;
    font-size: 13px;
    line-height: 1;
    font-family:"Teachers",sans-serif;
    font-weight: 500;
    text-transform: uppercase;
        margin-bottom: 8px;
}
.chd-team-carousel.grid-mode > .swiper-wrapper{
    gap: 47px 24px;
}

/* Mobile */

@media (min-width: 768px) and (max-width: 1023px) {
    .chd-team-carousel.grid-mode[data-desktop-columns="4"]>.swiper-wrapper,
    .chd-team-carousel.chd-product-carousel.grid-mode[data-tablet-columns="4"]>.swiper-wrapper{
        grid-template-columns: repeat(4, 1fr);
    }
    /*.chd-team-carousel .team-card {
        height: 262px !important;
    }*/
    /*.chd-team-carousel .team-content {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }*/
    .chd-team-carousel .team-content h3 {
        font-size: 20px !important;
        line-height: 36px !important;
    }

}

@media(max-width:767px){

.chd-team-carousel .team-card{
        height:auto;
        border-radius:24px;
    }

    /*.chd-team-carousel .team-content{
        left:20px;
        right:20px;
        bottom:22px;
    }*/

    .chd-team-carousel .team-content h3{
        font-size:24px;
    }

    .chd-team-carousel .team-content p{
        font-size:15px;
    }

}