:root {
  --primaryColor: #000000;   /* Black */
  --secondaryColor: #ffffff; /* White */
  --accent: #808080;         /* Gray */
  --text: #000000;           /* Black text */
  --mainGradient: linear-gradient(45deg, var(--primaryColor), var(--accent));
}

.woocommerce-tabs .wc-tabs li a img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    height: 16px;
    width: 16px;
}

.category-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: visible; /* 👈 Allow image overflow */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  position: relative;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  transition: transform 0.3s ease-in-out;
}

/* .category-card:hover .category-card-image img {
  transform: scale(1.05);
} */

.category-card-title {
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #222;
  text-align: center;
}

/* Optional Swiper Button Style */
.swiper-btn {
  color: #000;
}

/* 
/* .category-card {
  display: flex;
  width: auto;
  cursor: pointer;
  aspect-ratio: 1050 / 600;
  max-height: 233px;
  background: var(--mainGradient);
  transition: all .3s;
  position: relative;
  overflow: hidden; 

  @media (width<992px) {
    width: 100%;
    height: auto;
  }
}

.category-card-image {
  width: 100%;
  height: auto;

  & img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
  }
}

.category-card-title {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 100%;
  padding-left: 10px;
  text-transform: capitalize;
  font-weight: bold;
  font-size: 1rem;
  color: var(--text);
  background: var(--secondaryColor);
  box-shadow: -5px 0px 1px var(--primaryColor), -10px 0px 1px var(--accent);
}
 */
/* SVG above the card */
.product-card-top-icon {
  text-align: center;
  margin-bottom: 8px;
}
.product-card-top-icon img {
  width: 50px;
  height: auto;
}

/* Wishlist button inside product image (top-right) */
.product-image-section {
  position: relative;
}
.product-card-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}
.product-card-wishlist a {
  display: inline-block;
}


.product-discount-percentage {
  position: absolute;
  left: 10px;
  top: 10px;
  background: var(--primaryColor);
  color: white;
  padding: 6px;
  font-size: .8rem;
}


.product-card {
  display: flex;
  flex-direction: column;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "product-image-section"
    "product-details-section";
  outline: 1px solid #c2c2c2;
    
}

.product-image-section {
  grid-area: product-image-section;
}

.product-details-section {
  grid-area: product-details-section;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0px -1px 1px #C3C3C3;
  min-height: 180px;
}

.product-card-title {
  font-size: calc(1.25rem);
  display: block;
  width: 100%;
  text-align: center;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "product-image-section"
    "product-details-section";
  
  /* 🔹 Category card style */
  border: 1px solid #000;   /* border add */
  border-radius: 12px;      /* rounded corners */
  overflow: hidden;         /* clip inner content */
  
  width: 100%;
  height: auto;
  position: relative;
  transition: all .3s;
  cursor: pointer;
  background: #fff;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1;
  display: grid !important;
  place-items: center;
  position: relative;
  overflow: hidden;   /* clip overflow for radius */
  border-radius: 10px; /* 🔹 same as category */
  background: #fff;

  & .first-image {
    position: absolute;
    display: block;
    transition: .3s ease;
    max-width: 100% !important;
  }

  & .second-image {
    position: absolute;
    opacity: 0;
    scale: 1.1;
    transition: .3s ease;
    max-width: 100% !important;
  }
}

.product-card:hover {
  .product-card-image:has(> .second-image) {
    & .second-image {
      opacity: 1;
      scale: 1;
    }

  }
}


.product-card-price {
  grid-area: product-card-price;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: left;
  padding-inline: 10px;
  display: block;
  width: 100%;
  text-align: center;

  @media(width<992px) {
    font-size: 1.2rem;
    width: 100%;
    display: block;
    text-align: center;
  }


  & del {
    color: red;
    opacity: 0.5;
  }
}

.product-card-sub-title {
  text-align: center;
	font-size:0.8rem;
}


.product-card-btn {
  transition: all .3s ease;
  grid-area: product-card-btn;
  text-align: center;
  display: flex;
  gap: 5px;
  justify-content: space-between;
  align-items: end;
  flex-direction: row;
  font-size: 1rem;
  padding: 10px;
  font-weight: bold;

  @media (width < 992px) {
    align-items: center;
  }

  & a {
    background-color: #000;   /* default black */
    color: #fff;              /* text white */
    width: 40px;
    height: 40px;
    padding: 0 !important;
    text-align: center;
    align-content: center;
    transition: all 0.3s ease;

    border: 1px solid #000;   /* border black */
    border-radius: 8px;

    &:hover {
      background: #fff;       /* hover white */
      color: #000;            /* hover text black */
    }

    &:nth-child(1) {
      flex-grow: 1;

      @media (width < 992px) {
        width: 100%;
      }
    }

    &:nth-child(2) {
      aspect-ratio: 1;
    }
  }
}

.page-banner {

  background: var(--mainGradient);
}

.added_to_cart {
  display: none;
}

.add_to_cart_button.loading {
  animation: loading 0.5s linear infinite;
}

@keyframes loading {
  0% {
    box-shadow: 0px -5px 1px var(--primaryColor), 0px 5px 1px var(--accent);
  }

  100% {
    box-shadow: 5px 5px 1px var(--primaryColor), -5px -5px 1px var(--accent);
  }
}

.star-review {
  background-image: linear-gradient(90deg, rgba(253, 208, 46, 1) 0%, rgba(253, 208, 46, 1) calc((var(--rating)*20)* 1%), rgba(131, 131, 131, 1) calc((var(--rating)*20)* 1%), rgba(131, 131, 131, 1) 100%);
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}






/*---------------------------- animation ---------------------------------*/

.custom-shopping-cart{
  position:fixed;
  top:10%;
  right:00%;
   width:100px;
  height:100px;
	translate:100%;
  border:0px solid red;
}

.card-moving{
  position:fixed;
  transition:all 2s cubic-bezier(.86,.2,.03,.97);
  top:calc(var(--top) * 1px );
  left:calc(var(--left) * 1px );
  scale:var(--scalex,1) var(--scaley,1);
  transform-origin:top left;
  width:369px;
  height:549px;
  background:white;
	z-index:1000000;
	pointer-events:none;
  & img{
    width:100%;
	  z-index:1000000;
  }
}

 /* Style for the sales popup */
    .popup-flex{
      display:flex;
	flex-direction:row;
    }
    .popup {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background-color: #fff;
      color: #000;
      padding-right: 5px;
      border-radius: 5px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
      border-radius:10px;
      overflow:clip;
      z-index:1000;
      
      @media (width < 992px){
        display:none;
      }
    }
    
.buy-now-btn {
    background: #000 !important;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
}
.buy-now-btn:hover {
    background: #3A3A3A !important;
}

.shipping-info {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.shipping-info ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.shipping-info li {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.shipping-info li i {
    font-size: 24px;
    color: #333;
    margin-right: 10px;
}

.shipping-info li span {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.shipping-info hr {
    border: none;
    border-top: 2px solid #000;
    margin: 0;
}
.review-slider-wrapper {
    margin: 40px 0;
    padding: 0 20px;
}

.custom-review-card {
    background-color: #fff;
    border-radius: 20px;
	 border: 2px solid #000;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-review-stars {
    margin-bottom: 10px;
    font-size: 18px;
}

.custom-review-text {
    font-style: italic;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.custom-review-footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-review-icon {
    font-size: 40px;
    color: #9c27b0;
    background-color: #f0f0f0;
    border-radius: 50%;
    padding: 8px;
}

.custom-review-author {
    font-weight: bold;
    color: #111;
}

.custom-review-location {
    font-size: 14px;
    color: #777;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: #999;
    opacity: 1;
}
.swiper-pagination-bullet-active {
    background: #333;
}


.trending-blogs-section {
    text-align: center;
    padding: 40px 20px;
}

.trending-blog-heading {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trending-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.trending-blog-card {
    background-color: #fff;
    border-radius: 12px;
	 border: 2px solid #000;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
}

.trending-blog-card:hover {
    transform: translateY(-5px);
}

.trending-blog-image {
    width: 100%;
    height: auto;
    display: block;
}

.trending-blog-content {
    padding: 15px;
    text-align: left;
}

.trending-blog-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #222;
}

.trending-blog-author {
    font-size: 14px;
    color: #888;
    margin: 0;
}
.product-card {
    position: relative; /* Make the card a positioning context */
}

.product-tags {
    position: absolute; /* Position it absolutely within the parent container */
    top: 10px; /* Distance from the top of the card */
    right: 10px; /* Distance from the right of the card */
    display: flex;
    gap: 8px;
    z-index: 10; /* Ensure it stays on top of other elements */
}

.product-tag {
    background-color: #f7f7f7;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
}

.product-tag.trending {
    background-color: #ff7f00;
    color: #fff;
}

.product-tag.new-launch {
    background-color: #00aaff;
    color: #fff;
}

.product-tag.best-seller {
    background-color: #ff4c4c;
    color: #fff;
}
