/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
  scroll-behavior: smooth;
  }

body {
  background: #ffffffa9;
  color: #333;
  line-height: 1.4;
}

/* Homepage */
.bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.start-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100vh;
  width: 100%;
  padding-bottom: 50px;
}

.start-btn {
  background: linear-gradient(to right, #1c8806, #2cc734);
  color: #fff;
  padding: 15px 40px;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 1.1);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
  margin-bottom: 80px;
}

.start-btn:hover {
  background: #45a049;
}

/* Header Navigation */
header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

header button {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}
/* Product Card */
.product-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  height: 300px; /* কার্ডের fixed height */
  padding: 10px;
}

/* Product Name */
.product-card h3.truncate {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2em;
  height: 2.4em; /* 2 lines height fixed */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* Header Buttons - simple style */
header {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px 8px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000; /* সবসময় উপরে থাকবে */
}


header button {
  background: #4caf50; /* Green */
  color: #fff;
  border: none;
  padding: 10px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 50px;
  box-shadow: #333 0px 2px 10px 0px;
}

header button:hover {
  background: #45a049;
}

/* Price */
.product-card p.price {
  font-size: 14px;
  color: #444;
  margin: 5px 0;
  height: 1.5em; /* price height fixed */
}

/* Add to Cart / Out of Stock Button */
.add-btn {
  background: #4caf50;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  height: 40px; /* button height fixed */
  transition: 0.3s;
}

/* Cart Icon */
.cart-icon {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 1200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

/* Cart Panel */
#cart {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #f1faee;
  border-left: 2px solid #ccc;
  padding: 1rem;
  transition: 0.4s ease-in-out;
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
  z-index: 2000;
  display: flex;
  flex-direction: column;
}
#cart.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#cart-items {
  list-style: none;
  padding: 10px;
  flex: 1;
  overflow-y: auto;
  margin: 3rem 0;
}
#cart-items li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  background: #fff;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
#cart-items button {
  background: #e63946;
  border: none;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
}

#place-order {
  background: #1d3557;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: auto;
  margin-bottom: 10px;
}
#place-order:hover {
  background: #0d223b;
}

.add-btn.out-stock {
  background-color: red; /* Out of Stock লাল */
  color: #fff;
  cursor: not-allowed;
  opacity: 0.8;
}

/* Button hover */
.add-btn:not(.out-stock):hover {
  background-color: #45a049;
}

/* =========================
   Out of Stock Button Style
   =========================
   এই ক্লাসটি add-btn এর সাথে যুক্ত হবে যদি প্রোডাক্টের stock 0 হয়।
   - ব্যাকগ্রাউন্ড লাল হবে
   - লেখা সাদা
   - cursor পরিবর্তিত হবে not-allowed (যাতে বোঝা যায় ক্লিক করা যাবে না)
   - opacity কমিয়ে ধূসরভাবে দেখাবে
*/
.add-btn.out-stock {
  background-color: rgb(214, 76, 76);    /* লাল ব্যাকগ্রাউন্ড */
  color: #fff;              /* সাদা লেখা */
  cursor: not-allowed;      /* mouse pointer not-allowed */
  opacity: 0.8;
  color: #fff;
  border: none;
}
.add-btn.out-stock:hover {
  background-color: rgb(255, 0, 0); /* hover এ রং পরিবর্তন হবে না */
}

header button.active {
  border-bottom: 7px solid #edf046;
  font-weight: bold;
  color: #edf046;

}



/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 15px;
  background-color: linear-gradient(to bottom, #fa64ff3a, #ff5a5a23);
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to bottom, #69ff643a, #fffc5a23);
  box-shadow: #333 0px 2px 10px 0px;
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.product-info {
  padding: 10px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3em;
  height: 2.6em; /* 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  margin-top: 5px;
  font-size: 14px;
  color: #444;
}

.product-card button {
  background: #4caf50;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: 0.3s;
  border-radius: 0 0 12px 12px;
}

.product-card button:hover {
  background: #45a049;
}

/* Product Detail */
.product-detail {
  padding: 15px;
}

.gallery {
  position: relative;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  display: none;
}

.gallery img.active {
  display: block;
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.gallery-controls button {
  padding: 5px 10px;
  border: none;
  background: #ddd;
  cursor: pointer;
  border-radius: 4px;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

.quantity-control button {
  padding: 5px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  background: #eee;
  cursor: pointer;
}

.quantity-control span {
  min-width: 30px;
  text-align: center;
}


/* Back Button */
.back-btn {
  padding: 10px 15px;
}
.back-btn button {
  background: #4caf50;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
.back-btn button:hover {
  background: #45a049;
}
/* End of CSS */
/* ====== Gallery: responsive iframe/video support ====== */
/* Add these styles to your existing css/style.css (append near gallery styles) */

.gallery .slide {
  display: none;
}
.gallery .slide.active {
  display: block;
}

/* maintain same rounded corners & responsive aspect ratio for video */
.gallery .video-wrap {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
}
.gallery .video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ensure images inside .slide fit same style */
.gallery .slide img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
}
/* End of Gallery video/iframe support */ 
/* ===== Footer ===== */
.site-footer {
  background: #4caf50;
  color: #fff;
  padding: 40px 20px 20px 20px;
  font-size: 14px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1 1 50px;
}

.footer-about h3,
.footer-links h3,
.footer-contact h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 15px;
  font-size: 13px;
  opacity: 0.9;
  position: fixed;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
}
/* End of Footer CSS */
/* ====== Product CSS ====== */
 /* ===== General Styles ===== */
    body {
      font-family: "Quicksand", sans-serif;
      background: #ffffff;
      color: #333;
      margin: 0;
      padding: 0;
    }

    /*priceold*/
    .priceold {
      font-size: 25px;
      color: rgba(255, 38, 0, 0.938);
      text-align: center;
      margin-bottom: 10px;
      font-weight: bold;
    }

    /* ===== Header ===== */
    header {
      display: flex;
      justify-content: space-between;
      justify-content: center;
      align-items: left ;
      padding: 10px 20px;
      background: #fff;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    /* Logo + Site Name */
    .logo-container {
      display: flex;
      align-items: center;
      cursor: pointer;
    }
    .logo-container img {
      height: 50px;
      margin-right: 10px;
    }
    /*discount tag*/
    .pricecurrent {
      font-size: 15px;
      color: #4caf50;
      text-align: center;
      margin-bottom: 10px;
      font-weight: bold;
    }

    /* Navigation Buttons */
    .nav-buttons {
      display: flex;
      flex-direction: row;
      gap: 7px;
      justify-content: center;
      align-items: center;
    }

    .nav-buttons button {
      background: #4caf50;
      color: #fff;
      border: none;
      padding: 10px 20px;
      border-radius: 25px;
      font-weight: bold;
      cursor: pointer;
      transition: 0.3s;
      box-shadow: #333 0px 2px 10px 0px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }

    .nav-buttons button.back-btn {
      background: #ddd;
      color: #5a591b;
      border: none;
      padding: 10px 25px;
      border-radius: 50px;
      font-weight: bold;
      cursor: pointer;
      transition: 0.3s;
    }

    .nav-buttons button:hover {
      background: #45a049;
    }
    /* Back Buttonn */
.back-btn {
  position: absolute;        /* slider container এর corner এ রাখার জন্য */
  top: 15px;
  left: 15px;
  padding: 10px 25px;
  background: #ddd;
  color: #5a591b;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: #333 0px 2px 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 9999;
}

.back-btn:hover {
  background: #c4c4c4;
  transform: scale(1.05);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .back-btn {
    padding: 8px 20px;
    top: 10px;
    left: 10px;
    font-size: 14px;
  }
}

    /* Back Button */
    .back-btnn {
      padding: 15px 20px;
    }
    .back-btn button {
      background: #ddd;
      color: #5a591b;
      border: none;
      padding: 10px 25px;
      border-radius: 25px;
      font-weight: bold;
      cursor: pointer;
      transition: 0.3s;
    }
    .back-btn button:hover {
      background: #bbb;
    }

    /* ===== Product Detail ===== */
    .product-detail {
      max-width: 900px;
      margin: 20px auto;
      background: #fff;
      border-radius: 20px;
      box-shadow: 0 6px 15px rgba(0,0,0,0.1);
      padding: 20px;
      box-shadow: #333 0px 2px 10px 0px;
      padding-bottom: 100px; /* নিচের মিনি কার্টের জন্য জায়গা */
    }

    /* Gallery */
    .gallery {
      position: relative;
      overflow: hidden;
      border-radius: 20px;
      margin-bottom: 15px;
    }
    .gallery img {
      width: 100%;
      display: none;
      border-radius: 20px;
      transition: 0.5s ease;
    }
    .gallery img.active {
      display: block;
    }
    .gallery-controls {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    .gallery-controls {
  display: flex;
  justify-content: center;
  gap: 20px; /* দুই বাটনের মধ্যে স্পেস */
  margin-top: 20px;
}

.gallery-controls button {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px; /* টেক্সট আর আইকনের মাঝে ফাঁকা */
}

.gallery-controls button:hover {
  background: linear-gradient(135deg, #45a049, #3e8e41);
  transform: translateY(-2px);
  box-shadow: 0px 6px 12px rgba(0,0,0,0.4);
}

.gallery-controls button:active {
  transform: translateY(0);
  box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
}
    .gallery-controls button:hover {
      background: #45a049;
    }

    /* Product Info */
    h2 {
      font-size: 28px;
      font-weight: 700;
      text-align: center;
      margin-bottom: 10px;
    }
    .desc {
      font-size: 16px;
      line-height: 1.5;
      text-align: center;
      color: #555;
      margin-bottom: 20px;
    }
    .info {
      list-style: none;
      padding: 0 20px;
      font-size: 14px;
      color: #666;
      margin-bottom: 20px;
    }
    .info li {
      padding: 8px 0;
      border-bottom: 1px solid #eee;
    }

    /* Quantity & Add to Cart */
    .quantity-control {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 15px;
      margin-bottom: 20px;
    }
    .quantity-control button {
      background: #4caf50;
      color: #fff;
      border: none;
      width: 45px;
      height: 45px;
      font-size: 20px;
      border-radius: 50%;
      cursor: pointer;
      transition: 0.3s;
      box-shadow: #333 0px 2px 10px 0px;
    }
    .quantity-control button:hover {
      background: #45a049;
    }
    #qty {
      font-size: 18px;
      font-weight: bold;
      min-width: 35px;
      text-align: center;
    }

    #add-btn {
      display: block;
      margin: 0 auto 30px auto;
      background: #ff7f50;
      color: #fff;
      border: none;
      padding: 15px 50px;
      border-radius: 30px;
      font-size: 18px;
      font-weight: bold;
      cursor: pointer;
      transition: 0.3s;
      box-shadow: #333 0px 2px 10px 0px;
    }
    #add-btn:hover {
      background: #ff6347;
    }
    #add-btn.out-stock {
      background: red;
      cursor: not-allowed;
      opacity: 0.8;
    }
/* Big Bounce Animation */
@keyframes cart-big-bounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.6); }  /* অনেক বড়ো হবে */
  60% { transform: scale(0.9); }  /* সামান্য ছোট হবে */
}

.cart-icon.bounce {
  animation: cart-big-bounce 0.6s ease;
}

/* Cart Count Animation */
.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.cart-count.animate {
  animation: pop-bounce 0.6s ease;
}

@keyframes pop-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.6); }
  60%  { transform: scale(0.8); }
  80%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

  /* Floating Cart Icon */
.cart-icon {
  position: fixed;
  bottom: 120px;
  right: 20px;
  background: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 200;
  font-size: 24px;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #25D366; /* WhatsApp green */
  color: #fff;
  width: 20px;
  height: 20px;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Mini Cart */
.mini-cart {
  position: fixed;
  bottom: 0;
  right: -350px; /* hidden by default */
  width: 350px;
  max-width: 90%;
  height: 70%;
  background: #fff;
  box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  transition: right 0.3s ease-in-out;
  z-index: 9998;
  display: flex;
  flex-direction: column;
}
.mini-cart.show {
  right: 0; /* slide in */
}

/* Back Button */
.back-btn {
  padding: 10px;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 16px;
  text-align: left;
}

/* Cart Items */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.cart-slide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px;
  border-bottom: 1px solid #eee;
}
.cart-name {
  font-weight: 500;
  flex: 1;
}
.qty-control button {
  background: #eee;
  border: none;
  width: 25px;
  height: 25px;
  cursor: pointer;
  border-radius: 4px;
}
.cart-price {
  margin-left: 10px;
  font-weight: 500;
}
.remove-btn {
  background: transparent;
  border: none;
  color: red;
  font-size: 18px;
  cursor: pointer;
}

/* WhatsApp Button */
.confirm-btn {
  background: #25d366;
  color: #fff;
  padding: 12px;
  text-align: center;
  border-radius: 0;
  font-weight: bold;
  text-decoration: none;
}
.confirm-btn:hover {
  background: #20b358;
}
  .cart-items {
  flex: 1;
  max-height: 150px; /* প্রোডাক্ট বেশি হলে scroll হবে */
  overflow-y: auto;
  font-size: 14px;
  padding-right: 5px;
}

/* Slider look */
.cart-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* Fixed Cart Total Styling */
.cart-total {
  position: sticky; /* বা fixed যদি চাই পুরো পেজে ভাসানো */
  top: 0; /* cart panel এর উপরে */
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  background-color: #f8f9fa; /* হালকা গ্রে ব্যাকগ্রাউন্ড */
  border-bottom: 2px solid #e0e0e0; /* subtle border */
  font-weight: 600;
  font-size: 1rem;
  color: #1d3557; /* primary dark color */
  z-index: 500; /* overlay protection */
  box-shadow: 0 2px 6px rgba(0,0,0,0.08); /* subtle shadow */
}

.cart-total span {
  font-size: 1rem;
}

.cart-total strong {
  font-size: 1.1rem;
  color: #e63946; /* highlight price */
}

.cart-slide {
  background: linear-gradient(180deg, #c2ffc4, hsl(59, 100%, 78%));
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  box-shadow: #333 0px 2px 10px 0px;
  align-items: center;
}
.cart-slide span {
  font-size: 13px;
  color: #333;
}
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px; /* default hidden */
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  padding: 15px;
  transition: right 0.3s ease-in-out;
  z-index: 9999;
}
.cart-sidebar.active {
  right: 0;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-items {
  max-height: 60%;
  overflow-y: auto;
  margin: 10px 0;
}
.cart-footer {
  border-top: 1px solid #ddd;
  padding-top: 10px;
}
/* Sidebar Cart */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: 0;
  background: #ffffff;
  border-left: 2px solid #ddd;
  overflow-x: hidden;
  transition: 0.3s;
  z-index: 9999;
  padding: 20px;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 20px;
  text-align: center;
  color: #333;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.cart-item p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quantity-controls button {
  width: 25px;
  height: 25px;
  border: none;
  background: #2d6a4f;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.cart-footer {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.confirm-btn {
  display: block;
  background: linear-gradient(45deg, #2fa148, #c6f300);
  color: white;
  padding: 15px;
  text-align: center;
  border-radius: 50px;
  margin: 10px auto;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 10px;
  box-shadow: #0d223b 0px 2px 10px 0px;
}
/* Cart Icon Big Bounce */
@keyframes big-bounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.4); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.2); }
}

.cart-icon.bounce {
  animation: big-bounce 0.6s ease;
}

/* Product Card Default (hidden) */
.product-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

/* Show animation */
.product-card.show {
  opacity: 1;
  transform: translateY(0);
}
/* 🔥 Strong Bounce Effect */
.cart-icon.animate {
  animation: strong-bounce 0.9s ease;
}

@keyframes strong-bounce {
  0%   { transform: scale(1) rotate(0deg); }
  20%  { transform: scale(1.6) rotate(-10deg); }
  40%  { transform: scale(0.7) rotate(10deg); }
  60%  { transform: scale(1.4) rotate(-8deg); }
  80%  { transform: scale(0.9) rotate(8deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.empty-cart-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.7;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  margin: 17px 0 0 200px;
}

/* Quantity Buttons */
.qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: #1d3557;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
}

.qty-btn:hover {
  background: #457b9d;
  transform: scale(1.1);
}

.qty-display {
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  font-size: 15px;
}

/* ❌ Stylish Remove Button (Same style as qty buttons) */
.remove-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #e63946;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-btn:hover {
  background: #c1121f;
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.4);
}
/* ===== Mini Cart Styles (paste into your main CSS file) ===== */
.mini-cart .cart-slider {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px;
}

.cart-slide {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfbff);
  box-shadow: 0 8px 22px rgba(13, 38, 63, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
  border: 1px solid rgba(10,10,10,0.03);
}

.cart-slide:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 34px rgba(13, 38, 63, 0.09);
}

/* Left: name/category/qty */
.cart-slide .left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-slide .cart-name {
  font-weight: 700;
  font-size: 15px;
  color: #0b2940;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-slide .cart-meta {
  display:flex;
  gap:10px;
  align-items:center;
  font-size: 13px;
  color: #6b7885;
}

/* Quantity control */
.qty-control {
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px;
  background: rgba(0,0,0,0.02);
  border-radius: 10px;
}

.qty-control button {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight:700;
  width:32px;
  height:32px;
  display:inline-grid;
  place-items:center;
  transition: background 120ms ease, transform 120ms ease;
}

.qty-control button:hover { transform: translateY(-1px); background: rgba(0,0,0,0.03); }

.qty-control .qty-number {
  min-width:30px;
  text-align:center;
  font-weight:700;
}

/* Right: price & remove */
.cart-slide .right {
  text-align: right;
  min-width:130px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.cart-slide .price {
  font-weight:800;
  color: #e63946;
  font-size: 15px;
}

.cart-slide .line-total {
  font-size:13px;
  color:#333;
}

/* remove button (small X) */
.remove-btn {
  background:transparent;
  border:none;
  color:#c12;
  font-size:18px;
  cursor:pointer;
  padding:6px;
  border-radius:6px;
  transition: background 120ms ease;
}
.remove-btn:hover { background: rgba(193,18,18,0.06); }

/* Empty cart */
.empty-cart-img { width:96px; height:96px; object-fit:cover; opacity:0.95; border-radius:8px; }
.empty-text { margin-top:10px; color:#555; font-weight:700; }

/* header total area */
.mini-cart .cart-header .total-wrap { display:flex; justify-content:space-between; align-items:center; gap:10px; }
#cart-total-amount { font-weight:800; color:#1d3557; font-size:16px; }

/* Footer / confirm btn area */
.mini-cart .cart-footer {
  margin-top:10px;
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:space-between;
}

/* small responsive tweak */
@media (max-width:420px) {
  .cart-slide { padding:8px; gap:8px; }
  .cart-slide .right { min-width:95px; }
  .qty-control button { width:28px; height:28px; }
  .cart-slide .cart-name { font-size:14px; }
}
/* ===== Mini Cart — Cute, interactive ===== */
.cart-slide {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf6, #f7fff3); /* cute pastel gradient */
  box-shadow: 0 10px 30px rgba(22, 35, 55, 0.5), 0 2px 8px rgba(22,35,55,0.1);
  transition: transform 200ms ease, box-shadow 200ms ease;
  border: 1px solid rgba(10,10,10,0.03);
  position: relative;
}

.cart-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(22, 35, 55, 0.10);
}

/* left accent bar */
.cart-slide::before {
  content: "";
  width:6px;
  height:100%;
  border-radius:8px;
  margin-right:6px;
  background: linear-gradient(180deg,#ffd6e0,#cfeef5); /* pink -> light blue */
  display:block;
}

/* cart name */
.cart-slide .cart-name {
  color: #0b2940;
  font-weight: 700;
  font-size: 15px;
}

/* quantity control */
.qty-control button {
  cursor: pointer;
  user-select: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.qty-control button:hover:not(.disabled) {
  background: #ffe3e3;
  transform: scale(1.1);
}

/* disable increase button at stock limit */
.qty-control .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* remove button */
.remove-btn {
  background: transparent;
  border: none;
  color: #c12;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}
.remove-btn:hover {
  transform: rotate(20deg) scale(1.2);
  color: #e63946;
}

/* responsive tweaks */
@media (max-width:420px) {
  .cart-slide { padding:10px; gap:8px; }
  .cart-slide::before { display:none; }
}
