
/* Slider */
.carousel-inner .carousel-slider .carousel-item {
    transition: opacity 1s ease-in-out;
}
/* .custom-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    text-decoration: none;
}
.custom-carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.8);
} */
.custom-carousel-slider .custom-carousel-control-prev {
    left: 1rem;
}
.custom-carousel-slider .custom-carousel-control-next {
    right: 1rem;
}
.custom-carousel-slider .carousel-indicators [data-bs-target] {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--primary);
    margin: 0px 2px;
    border: 0;

}
.custom-carousel-slider .carousel-indicators .active {
    background-color: #fff;
}
/* .carousel-caption-custom {
    display: flex;
    flex-direction: column;
    opacity: 0.8;
} */

.carousel-inner .carousel-slider .carousel-item .carousel-caption-start {
    position: absolute;
    top: 55%;
    left: 11%;
    text-align: left;
}


/*------------------------------------------------------------- Section Products---------------------------------------------- */

/* Categories Section Style */
.kalps-categories {
    background-color: #f8f9fa;
}

.kalps-categories .kalps-category-container .kalps-title {
    color: #28574E;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kalps-category-container .kalps-category-card .card {
    border-radius: 10px;
    margin: 10px;
    overflow: hidden;
    border: 1px solid #ccc;
    transition: transform 0.3s ease;
}

.kalps-category-container .kalps-category-card .card .card-body .card-text{
    height: auto;
}

.kalps-category-card .card .card-img-top {
    height: 200px;
    object-fit: contain;
}

.kalps-category-card .card .card-body .kalps-btn {
    background-color: #28574E;
    border: none;
}

.kalps-category-card .card .card-body .kalps-btn:hover {
    background-color: #1e4239;
}

.kalps-category-container .kalps-category-card .card:hover{
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* Categories Section Style End */

/* Trending Products Section Styles */
.trending-products-section {
  
    /* Title Styles */
    .section-title {
      color: #214948;
      font-size: 2rem;
      font-weight: 600;
      text-align: center;
      margin-bottom: 3rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }
  
    /* Grid Layout */
    .row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
      max-width: 1600px;
      margin: 0 auto;
    }
  
    .col-md-3 {
      width: 100%;
    }
  
    /* Card Styles */
    .card {
      border-radius: 1rem;
      overflow: hidden;
      position: relative;
      /* max-width: 320px; */
      max-width: 320px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      transition: transform 0.3s, box-shadow 0.3s;
  
      &:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        transform: translateY(-5px);
      }
  
      .card-img-top {
        width: 100%;
        /* height: 200px;
        object-fit: cover; */
        border-bottom: 1px solid #6666662c;
        transition: opacity 0.3s ease;
      }
  
      &:hover .card-img-top {
        opacity: 0.85;
      }
  
      .card-body {
        padding: 1.25rem;
  
        .card-title {
          color: #214948;
          font-size: 1.25rem;
          font-weight: 600;
          /* margin-bottom: 0.75rem; */
        }
  
        p {
          color: #666;
          font-size: 0.95rem;
          line-height: 1;
          /* margin-bottom: 1rem; */
        }

        .discount-badge {
          position: absolute;
          top: 10px;
          left: 10px;
          background: #ff4444;
          color: white;
          padding: 0.05rem 0.25rem;  /* Reduced padding */
          border-radius: 5px;        /* Slightly smaller radius */
          font-size: 0.92rem;       /* Smaller font size */
          font-weight: 400;
          z-index: 1;
      }
        
        .product-price {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
      
        .current-price {
            font-size: 1.2rem;
            font-weight: 600;
            color: #214948;
        }
        
        .original-price {
            color: #999;
            text-decoration: line-through;
        }
      }
    }
  
   /* Product actions container */
.product-actions {
  display: flex;
  gap: 10px;
  opacity: 1; /* Hidden by default */
  transform: translateX(-10px); /* Slightly off-screen */
  transition: all 0.3s ease; /* Smooth transition for visibility */

  position: absolute;
  top: 10px;
  right: 35px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(20px);
  transition: all 0.3s ease;
  z-index: 1;
}



/* Action button styles */
 .action-btn {
  /* position: absolute; */
  background: white;
  /* top: -470px;
  right: -10px; */
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: var(--text-color); */
}

 /* .action-btn:hover {
  background: rgb(237, 235, 235);
  color: white;
  box-shadow: 1px 4px 1px rgba(174, 171, 171, 0.2);
} */

.action-btn i {
  font-size: 25px;
  color: #ff385c; /* Icon size */
}

/* Wishlist states */
.action-btn .fa-heart.fas {
  color: #ff385c; /* Filled heart color */
}

.action-btn .fa-heart.far {
  color: #aaa; /* Empty heart color */
}

  
    /* Button Container */
    .d-flex {
      display: flex;
      gap: 0.75rem;
    }
  
    /* Cart Button */
    .cartBtn {
      width: 100%;
      height: 45px;
      background: #214948;
      color: white;
      border: none;
      border-radius: 10px;
      font-size: 0.9rem;
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      position: relative;
      box-shadow: 0 15px 20px -7px rgba(27, 27, 27, 0.219);
      transition: all 0.3s ease-in-out;
      cursor: pointer;
      overflow: hidden;
  
      &:hover {
        background: #1a3b3a;
      }
  
      &:active {
        transform: scale(0.96);
      }
  
      .cart {
        z-index: 2;
      }
  
      .product {
        position: absolute;
        width: 10px;
        border-radius: 3px;
        left: 111px;
        bottom: 18px;
        opacity: 0;
        z-index: 1;
        fill: rgb(211, 211, 211);
      }
  
      &:hover .product {
        animation: slide-in-top 1.2s cubic-bezier(0.250, 0.460, 0.750, 0.940) both;
      }
  
      &:hover .cart {
        animation: slide-in-left 1s cubic-bezier(0.250, 0.490, 0.450, 0.940) both;
      }
    }
  
  }
  
  /* Animations */
  @keyframes keyframes-svg-filled {
    0% {
      transform: scale(0);
    }
    25% {
      transform: scale(1.2);
    }
    50% {
      transform: scale(1);
      filter: brightness(1.5);
    }
  }
  
  @keyframes keyframes-svg-celebrate {
    0% {
      transform: scale(0);
    }
    50% {
      opacity: 1;
      filter: brightness(1.5);
    }
    100% {
      transform: scale(1.4);
      opacity: 0;
      display: none;
    }
  }
  
  @keyframes slide-in-top {
    0% {
      transform: translateY(-30px);
      opacity: 1;
    }
    100% {
      transform: translateY(0) rotate(-90deg);
      opacity: 1;
    }
  }
  
  @keyframes slide-in-left {
    0% {
      transform: translateX(-10px);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  
  /* Responsive Design */
  @media (max-width: 1400px) {
    .trending-products-section .row {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 1100px) {
    .trending-products-section .row {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.25rem;
    }
  }
  
  @media (max-width: 650px) {
    .trending-products-section {
      padding: 2rem 1rem;
  
      .row {
        grid-template-columns: 1fr;
      }
  
      .card-img-top {
        height: 300px;
      }
    }
  }

/* Trending Products Section Styles End */

/* New Arrivals Section Styles */

.new-arrivals-section .section-title {
    font-size: 2rem;
    color: #214948;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.new-arrivals-section .new-arrivals.owl-carousel {
    overflow: hidden; /* Add this to prevent scrollbar issues */
}

.new-arrivals-section .new-arrivals.owl-carousel .owl-stage-outer {
    overflow: visible; /* Ensure items can be dragged */
}

.new-arrivals-section .new-arrivals.owl-carousel .item {
    padding: 0.75rem;
    border-radius: 10px;
    border: 2px solid #214948;
    width: 100%; /* Changed from fixed width */
    height: auto; /* Changed from fixed height */
    box-sizing: border-box; /* Include padding in width calculation */
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    /* border: none; */
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .card-img-top {
    /* height: 200px;
    object-fit: cover; */
    width: 100%;
    border-bottom: 1px solid #6666662c;
    transition: opacity 0.3s ease;
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card:hover .card-img-top {
    opacity: 0.85;
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .card-body {
    padding: 1rem;
    height:100px;
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .card-title {
    color: #214948;
    font-size: 1.25rem;
    font-weight: 600;
    /* margin-bottom: 0.75rem; */
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1;
  /* margin-bottom: 1rem; */
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff4444;
  color: white;
  padding: 0.10rem 0.30rem;
  border-radius: 5px;
  font-weight: 400;
  z-index: 1;
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .current-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #214948;
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .original-price {
    color: #999;
    text-decoration: line-through;
}

/* Button Container */
.new-arrivals-section .new-arrivals.owl-carousel .item .card .d-flex {
    display: flex;
    gap: 0.75rem;
}

/* Cart Button */
.new-arrivals-section .new-arrivals.owl-carousel .item .card .cartBtn {
    width: 100%;
    height: 40px;
    background: #214948;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    position: relative;
    box-shadow: 0 15px 20px -7px rgba(33, 73, 72, 0.25);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    overflow: hidden;
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .cartBtn:hover {
    background-color: #1a3b3a;
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .cartBtn:active {
    transform: scale(0.96);
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .cartBtn .cart {
    z-index: 2;
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .cartBtn .product {
    position: absolute;
    width: 10px;
    border-radius: 3px;
    left: 144px;
    bottom: 18px;
    opacity: 0;
    z-index: 1;
    fill: rgb(211, 211, 211);
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .cartBtn:hover .product {
    animation: slide-in-top 1.2s cubic-bezier(0.250, 0.460, 0.750, 0.940) both;
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .cartBtn:hover .cart {
    animation: slide-in-left 1s cubic-bezier(0.250, 0.490, 0.450, 0.940) both;
}



 /* Product actions container */
 .new-arrivals-section .new-arrivals.owl-carousel .item .card .product-actions {
  display: flex;
  gap: 10px;
  opacity: 1; /* Hidden by default */
  transform: translateX(-10px); /* Slightly off-screen */
  transition: all 0.3s ease; /* Smooth transition for visibility */

  position: absolute;
  top: 10px;
  right: 35px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(20px);
  transition: all 0.3s ease;
  z-index: 1;
}



/* Action button styles */
.new-arrivals-section .new-arrivals.owl-carousel .item .card .action-btn {
  /* position: absolute; */
  background: white;
  /* top: -470px;
  right: -10px; */
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: var(--text-color); */
}

 /* .new-arrivals-section .new-arrivals.owl-carousel .item .card .action-btn:hover {
  background: rgb(237, 235, 235);
  color: white;
  box-shadow: 1px 4px 1px rgba(174, 171, 171, 0.2);
} */

.new-arrivals-section .new-arrivals.owl-carousel .item .card .action-btn i {
  font-size: 25px;
  color: #ff385c; /* Icon size */
}

/* Wishlist states */
.new-arrivals-section .new-arrivals.owl-carousel .item .card .action-btn .fa-heart.fas {
  color: #ff385c; /* Filled heart color */
}

.new-arrivals-section .new-arrivals.owl-carousel .item .card .action-btn .fa-heart.far {
  color: #aaa; /* Empty heart color */
}

/* Hide Owl Carousel dots for this section */
.new-arrivals-section .new-arrivals.owl-carousel .owl-dots {
    display: none !important;
}

/* Animations */
@keyframes keyframes-svg-filled {
    0% { transform: scale(0); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); filter: brightness(1.5); }
}

@keyframes keyframes-svg-celebrate {
    0% { transform: scale(0); }
    50% { opacity: 1; filter: brightness(1.5); }
    100% { transform: scale(1.4); opacity: 0; display: none; }
}

@keyframes slide-in-top {
    0% { transform: translateY(-30px); opacity: 1; }
    100% { transform: translateY(0) rotate(-90deg); opacity: 1; }
}

@keyframes slide-in-left {
    0% { transform: translateX(-10px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Updated Responsive Adjustments */
@media (max-width: 768px) {
    .new-arrivals-section {
        padding: 2rem 1rem;
    }

    .new-arrivals-section .new-arrivals.owl-carousel .item {
        width: 261px !important; /* Adjusted width for mobile */
        height: 473px !important; /* Adjusted height for mobile */
        padding: 0;
        margin-bottom: 1rem;
        border: 2px solid #214948; /* Ensure border is visible */
        border-radius: 10px;
        overflow: hidden; /* This will contain the image within the border */
    }

    .new-arrivals-section .new-arrivals.owl-carousel .item {
        margin: 0 1px; /* Small margin for mobile */
        padding: 0;
    }
    
    .new-arrivals-section .new-arrivals.owl-carousel .owl-stage {
        display: flex; /* Helps with smooth scrolling */
    }
    .new-arrivals-section .new-arrivals.owl-carousel .item .card {
        border: none !important; /* Remove any inner borders */
        height: auto;
    }

    .new-arrivals-section .new-arrivals.owl-carousel .item .card .card-img-top {
        height: 200px;
        object-fit: cover;
        width: 100%;
    }

    .new-arrivals-section .new-arrivals.owl-carousel .item .card .card-body {
        padding: 0.75rem;
    }

    .new-arrivals-section .new-arrivals.owl-carousel .item .card .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .new-arrivals-section .new-arrivals.owl-carousel .item .card p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .new-arrivals-section .new-arrivals.owl-carousel .item .card .current-price {
        font-size: 1rem;
    }

    .new-arrivals-section .new-arrivals.owl-carousel .item .card .cartBtn {
        height: 36px;
        font-size: 0.85rem;
    }

    .new-arrivals-section .new-arrivals.owl-carousel .item .card .product-actions {
        right: 15px;
        top: 15px;
    }

    .new-arrivals-section .new-arrivals.owl-carousel .item .card .action-btn {
        width: 32px;
        height: 32px;
    }

    .new-arrivals-section .new-arrivals.owl-carousel .item .card .action-btn i {
        font-size: 20px;
        margin-right: 35px;
    }
}

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    .new-arrivals-section .new-arrivals.owl-carousel .item .card-img-top {
        height: 180px;
    }

    .new-arrivals-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* New Arrivals Section Styles End */
