/*
Theme Name:Astra Child
Template:astra
*/

/* Home Products */
.products .attachment-woocommerce_thumbnail{
	aspect-ratio:4/5;
}

.products .astra-shop-summary-wrap{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Testimony CSS*/
.testi-container .swiper-button-next{
	    color: white!important;
    background: #ff084e!important;
}

.testi-container .swiper-button-prev{
	    color: white!important;
    background: #ff084e!important;
}

.testi-container .swiper-wrapper{
	padding:0px!important;
}
.testimonial .site{
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .testimonial .testi-container{
    max-width: 1200px;
    width: 100%;
/*     padding: 0 30px; */
    margin: 0 auto;
  }

li.swiper-slide {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.swiper-slide .wrapper{
	
}
  
  .testimonial .testi{
    max-width: 900px;
    margin: 0 auto;
  }
  
  .testimonial .testi .head
  {
    text-align: center;
    margin-bottom: 60px;
    font-family: 'Comfortaa', cursive;
  }
  
  .testimonial .testi .head h3
  {
    font-size: 34px;
    font-weight: 800;
  }
  
  .testimonial .testi .wrapper
  {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding: 30px 20px;
  }

.testimonial{
	margin: 0 auto;
    max-width: 60%;
    width: 100%;
}
  
  .testimonial .testi .thumbnail {
    width: 150px;
    height: 150px;
    position: relative;
    flex-shrink: 0;
  }
  
  .testimonial .testi .thumbnail img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: scale(2);
    transition: transform .5s;
  }
  .testimonial .testi .swiper-slide-active .thumbnail img{
    transform: scale(1);
  }
  
  .testimonial .testi .thumbnail::before
  {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% + 30px);
    height: calc(100% + 10px);
    border-radius: 50%;
    z-index: -1;
    box-shadow: var(--box-shadow);
    transition: border-radius .5s .3s;
  }
  
  .testimonial .testi .swiper-slide-active .thumbnail::before
  {
    border-radius: 33% 67% 50% 50% / 50% 14% 86% 50%;
  }
  
  .testimonial .testi .aside
  {
    position: relative;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    align-self: flex-end;
  }
  
  .testimonial .testi .aside > p
  {
    position: relative;
    font-size: 14px;
    line-height: normal;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(10%);
    transition: transform 1s, opacity 1s;
  }
  .testimonial .testi .swiper-slide-active .aside > p
  {
    transform: translateX(0);
    opacity: 1;
  }
  
  .testimonial .testi .aside > p::before,
  .testimonial .testi .aside > p::after
  {
    font-family: serif;
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
    position: absolute;
    color: var(--light-color);
    height: 40px;
    z-index: -1;
  }
  
  .testimonial .testi .aside > p::before
  {
    content: open-quote;
    top: -40px;
    left: auto;
  }
  
  .testimonial .testi .aside > p::after
  {
    content: close-quote;
    right: 0;
    bottom: -30px;
  }
  
  .testimonial .testi .aside .name
  {
    position: relative;
    width: fit-content;
    line-height: 1;
    opacity: 0;
    transform: translateX(30px);
    transition: transform 1s .2s opacity 1s .3s;
  }
  
  .testimonial .testi .swiper-slide-active .name{
    transform: translateX(0);
    opacity: 1;
  }
  
  .testimonial .testi .aside .name h4
  {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    opacity: .8;
  }
  
  .testimonial .testi .aside .name p{
    font-size: 12px;
    text-align: right;
  }
  
  .testimonial .testi .aside .name p
  {
    font-size: 12px;
    text-align: right;
  }
  
  .testimonial .testi-container a
  {
    text-decoration: none;
    color: inherit;
  }
  
  .testimonial .testi-container a,button,div[role="button"]
  {
    -webkit-tap-highlight-color: transparent;
  } 
  
  .testimonial .testi :is(.swiper-button-next, .swiper-button-prev)
  {
    background-color: var(--light-color);
    top:35%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: background-color .3s;
    box-shadow: var(--box-shadow);
  }
  
  .testimonial .testi :is(.swiper-button-next, .swiper-button-prev):hover
  {
    background-color: var(--primary-color);
  }
  
  .testimonial .testi :is(.swiper-button-next, .swiper-button-prev)::after 
  {
    font-size: 16px;
    font-weight: 800;
    color: var(--white-color);
  }
  
  .testimonial .testi .swiper-pagination
  {
    position: relative;
  }
  .testimonial .testi .swiper-pagination span
  {
    background-color: var(--light-color);
    transition: width .3s;
    opacity:1;
  }
  
  .testimonial .testi .swiper-pagination .swiper-pagination-bullet-active
  {
    width:26px;
    border-radius: 4px;
    background-color: var(--primary-color);
  }
  .testimonial .body ul
  {
    list-style: none;
  }
  .testimonial .testi .head p
  {
    font-family: 'Courgette', cursive;
  }

  /*Home Page Products Thumbnail */
  .home-page-products-content
  {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 20px;
    justify-content: center;
  }

  .product-container{
    max-width: 234px;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }

  .img-container{
    position: relative;
    border-image: linear-gradient(#636363, #1a1a1a) 30;
    border-width: 10px;
    border-style: solid;
    transition: border 1.5s;
    display: inline-block;
    overflow: hidden;
  }

  .hp-product-img{
    transition: transform 1s;
  }

  .product-container:hover img {
    transform: scale(1.15);
  }

  .img-container div.overlay
  {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    background-color: rgba(0,0,0,0.5);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s;
  }

  .product-container:hover
  .overlay
  {
    opacity: 1;
  }

  i{
    color: white;
    font-size: x-large;
  }

  .product-description h4 {
    font-weight: 400;
    color: #9f9f9f;
    margin-bottom: 5px;
    line-height: 1.2;
    font-family: 'Open Sans', sans-serif;
    display: block;
  }

  .product-description p{
      font-size: 15px;
      margin: 0;
      color: #3a3a3a;
      line-height: 1.5;
      font-family: 'Open Sans', sans-serif;
      font-weight: 400;
    }

    a.product-link{
      text-decoration: none!important;
    }

  /* Home Page Product Categories */
  .elementor-shortcode {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
  }

  ul.home-page-categories{
    padding: 0px;
    list-style-type: none;
    display: inline-flex;
    justify-content: center;
  }

  .home-page-categories > li{
    padding: 0px 15px;
  }

  .home-page-categories>li >a.cat-link{
    text-decoration: none;
    color: #9f9f9f;
    font-weight: 700;
    text-transform: uppercase;
  }

  /* Zoom In Animation */
@keyframes zoomIn {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

/* Zoom Out Animation */
@keyframes zoomOut {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

/* Apply Zoom In Animation to New Products */
.product-zoom-in {
  animation: zoomIn 1s;
}

/* Apply Zoom Out Animation to Removed Products */
.product-zoom-out {
  animation: zoomOut 1s;
}

/* Animation on products when page loads */
.product-container.product-item{
  opacity: 0;
  transform: translateY(1000px);
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.product-container.show-product{
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Modal for brief product details */
.modal {
  display: none;
  position: fixed;
  top: -100%; /* Initially, position it above the viewport */
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation-name: slide-up;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.modal-content-inner{
  display: flex;
  column-gap: 20px;
  /* flex-wrap: wrap; */
  flex-direction: row;
}

/* Define a class to show the modal and trigger the animation */
.show-modal {
  display: block;
  animation-name: slide-down;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.remove-modal{
  display: block;
  animation-name: slide-up;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

@keyframes slide-down{
  from{
    top: -100%;
  }

  to{
    top: 0;
  }
}

@keyframes slide-up{
  from{
    top: 0;
  }
  to{
    top: -100%;
  }
}

@media(max-width:375px){
	.testimonial{
		max-width:95%!important;
	}
}

@media(max-width:770px){
	.testimonial {
    max-width: 80%;
}
}