/* Cards */
.card {
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
}

.card:hover {
    /* transform: scale(.5); */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    /* background-color: red !important; */
}

.card-body {
    flex: 1;
    flex-grow: 1;
    padding: 1rem;
    min-height: 60%;
    max-height: 100%;
    transition: all 0.5s ease-in-out;
}

.card-body:hover {
    background: linear-gradient(45deg, #ffffff, #afd3fc);
    color: rgb(22, 22, 22);
}


/* On hover, swap icon using pseudo-class or transform */
.btn-cart i.bi-cart {
    transition: transform 0.3s !important;
}

.btn-cart:hover i.bi-cart {
    transform: rotate(20deg) scale(1.2) !important; 
}



@keyframes cart-run {
  0% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(3px) rotate(10deg); }
  50% { transform: translateX(-3px) rotate(-10deg); }
  75% { transform: translateX(3px) rotate(10deg); }
  100% { transform: translateX(0) rotate(0); }
}

.btn-cart:hover i.bi-cart {
  animation: cart-run 0.6s ease-in-out;
}




/* 1️⃣ Cart icon size and color */
.btn-cart i.bi-cart {
    font-size: 24px !important;     
    color: #fcfbfb !important;          
    transition: color 0.3s; 
}

.btn-cart:hover i.bi-cart {
    color: #00eeff !important;

}


.btn-cart:hover #cart-count {
    background-color: #ff6b6b;  /* change badge color on hover */
}


/* ******************************* */

/* Layout */
.shop-layout { 
  display: grid; 
  grid-template-columns: 260px 1fr; 
  gap: 20px; 
}
@media (max-width: 991px){ 
  .shop-layout { grid-template-columns: 1fr; } 
}

/* Product Grid */
#product-data { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
  gap: 20px; 
}


/* cards.css */
.product-card {
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #ff0101;
  transition: 0.3s ease;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.product-img-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  position: relative;
}
.product-image {
  max-height: 180px;
  object-fit: contain;
}
.quick-view-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #007bff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  color: #fff;
  opacity: 0;
  transition: 0.3s ease;
}
.product-card:hover .quick-view-btn {
  opacity: 1;
}
.add-to-cart {
  background: #2c3e50;
  border-color: #2c3e50;
  color: #fff;
}
.add-to-cart:hover {
  background: #34495e;
}


/* Force custom arrow style */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none !important;   /* remove Bootstrap default svg */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.6) !important; /* dark circle */
    color: #fff !important;
    font-size: 20px;
}

.carousel-control-prev-icon::after {
    content: '‹'; /* left arrow */
    font-size: 30px;
    font-weight: bold;
}

.carousel-control-next-icon::after {
    content: '›'; /* right arrow */
    font-size: 30px;
    font-weight: bold;
}


.category-title {
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
    color: #333;
}

.product-card .card {
    transition: transform 0.2s ease-in-out;
    border-radius: 12px;
}

.product-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.price {
    font-size: 1.1rem;
    color: #007bff;
}


/* ---- Modern Product Card ---- */
.product-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}

/* .product-card .card-body {
  padding: 14px 16px;
} */

.product-card .product-name {
  font-weight: 600;
  color: #222;
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card .price {
  color: #0051ff;
  font-size: 1rem;
  font-weight: 700;
}

.product-card .stock-status {
  font-size: 0.8rem;
  color: #ffffff !important;
}

.product-card .btn-cart {
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  font-weight: 600;
}



