/* --- CSS Variables & Reset --- */
:root {
  --primary-color: #ff6b6b; /* Vibrant Coral/Orange for sales */
  --secondary-color: #4ecdc4; /* Teal accent */
  --dark-color: #2d3436;
  --light-color: #f7f9fc;
  --white: #ffffff;
  --gray: #b2bec3;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.confetti span {
  position: absolute;
  top: -10%;
  width: 8px;
  height: 14px;
  opacity: 0.9;
  animation: confetti-fall linear infinite;
}

/* Random colors */
.confetti span:nth-child(1) {
  left: 10%;
  background: #f87171;
  animation-duration: 6s;
}
.confetti span:nth-child(2) {
  left: 20%;
  background: #facc15;
  animation-duration: 7s;
}
.confetti span:nth-child(3) {
  left: 30%;
  background: #34d399;
  animation-duration: 5s;
}
.confetti span:nth-child(4) {
  left: 40%;
  background: #60a5fa;
  animation-duration: 8s;
}
.confetti span:nth-child(5) {
  left: 50%;
  background: #a78bfa;
  animation-duration: 6s;
}
.confetti span:nth-child(6) {
  left: 60%;
  background: #fb7185;
  animation-duration: 7s;
}
.confetti span:nth-child(7) {
  left: 70%;
  background: #fbbf24;
  animation-duration: 5s;
}
.confetti span:nth-child(8) {
  left: 80%;
  background: #4ade80;
  animation-duration: 8s;
}
.confetti span:nth-child(9) {
  left: 90%;
  background: #38bdf8;
  animation-duration: 6s;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(120vh) rotate(360deg);
  }
}

.category-btn {
  @apply px-6 py-4 rounded-xl bg-white border shadow-sm
           font-semibold text-center
           hover:bg-slate-100 hover:shadow-md
           transition active:scale-95;
}

/* --- Slim Radial Container --- */
.radial-container {
  position: relative;
  width: 180px;
  height: 180px;
}

/* --- Center Button (Smaller) --- */
.center-btn {
  width: 65px;
  height: 65px;
  font-size: 0.7rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.center-btn i {
  font-size: 0.9rem;
}

/* --- Sub Buttons (Smaller) --- */
.sub-btn {
  width: 52px;
  height: 52px;
  margin-top: -26px;
  margin-left: -26px;
  font-size: 0.55rem;
}

.sub-btn i {
  font-size: 0.8rem;
}

/* --- Reduce Orbit Radius --- */
.pos-1,
.pos-2,
.pos-3,
.pos-4,
.pos-5,
.pos-6,
.pos-a,
.pos-b,
.pos-c,
.pos-d {
  transform: rotate(var(--r)) translate(80px) rotate(calc(-1 * var(--r)));
}

.pos-1 {
  --r: -90deg;
}
.pos-2 {
  --r: -30deg;
}
.pos-3 {
  --r: 30deg;
}
.pos-4 {
  --r: 90deg;
}
.pos-5 {
  --r: 150deg;
}
.pos-6 {
  --r: 210deg;
}

.pos-a {
  --r: -90deg;
}
.pos-b {
  --r: 0deg;
}
.pos-c {
  --r: 90deg;
}
.pos-d {
  --r: 180deg;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}
.nav-pill:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* --- Moving Hero Banners (Slider) --- */
.hero-slider {
  position: relative;
  margin-top: 40px;
  max-width: 100%;
  height: 300px; /* Fixed height for consistency */
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Darken image for text readability */
}

.slide-content {
  position: absolute;
  text-align: center;
  color: var(--white);
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.slide-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.8s ease-out;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: slideUp 1s ease-out;
}

.cta-btn {
  padding: 12px 30px;
  background: var(--primary-color);
  color: white;
  border-radius: 50px;
  font-weight: bold;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  animation: slideUp 1.2s ease-out;
}

.cta-btn:hover {
  background: #ff5252;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Slider Controls */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* --- Offer Banners (Small Moving Strips) --- */
.offer-ticker {
  background: var(--dark-color);
  color: var(--white);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.ticker-content {
  display: inline-block;
  animation: ticker 20s linear infinite;
}

.ticker-item {
  display: inline-block;
  margin-right: 50px;
  font-weight: 600;
}

.ticker-item span {
  color: var(--secondary-color);
  margin-right: 5px;
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Section Styling --- */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2rem;
  color: var(--dark-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.view-all {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.view-all:hover {
  border-bottom-color: var(--primary-color);
}

/* --- Category Circles --- */
.categories {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.category-item:hover {
  transform: translateY(-5px);
}

.cat-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: contain;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  padding: 10px;
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}
.product-gridhome {
  display: flex;
  grid-template-rows: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
}

/* ===== Enhanced Product Card ===== */
.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.15);
}

/* ===== Wishlist Icon ===== */
.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: all 0.25s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.wishlist-btn i {
  color: #ef4444;
  font-size: 1rem;
}

.wishlist-btn:hover {
  transform: scale(1.1);
  background: #ef4444;
}

.wishlist-btn:hover i {
  color: white;
}

.wishlist-btn.active {
  background: #ef4444;
}

.wishlist-btn.active i {
  color: white;
}

/* ===== Product Image ===== */
.product-img-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #fff;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.15);
}

/* ===== Badge Enhancement ===== */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: white;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 6;
}

/* ===== Product Info ===== */
.product-info {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--dark-color);
}

/* ===== Rating ===== */
.rating {
  color: #facc15;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

/* ===== Price ===== */
.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 1rem;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
}

.old-price {
  font-size: 0.9rem;
  color: var(--gray);
  text-decoration: line-through;
}

/* ===== Add to Cart Button ===== */
.add-cart-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #2d3436, #000);
  color: white;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-cart-btn:hover {
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.35);
}

/* --- Footer --- */
footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 4rem 1.5rem 1rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
}

.footer-col h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}
.footer-col ul li a {
  color: #dfe6e9;
  transition: 0.3s;
}
.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  color: var(--gray);
  font-size: 0.9rem;
}

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--dark-color);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .hero-slider {
    height: 350px;
  }
  .slide-content h2 {
    font-size: 2rem;
  }

  .categories {
    gap: 1rem;
  }
  .cat-img {
    width: 60px;
    height: 60px;
  }
}


  /* Add these styles to your CSS */
  .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .mix-blend-multiply {
    mix-blend-mode: multiply;
  }
  
  /* Wishlist animation */
  .wishlist-btn.active .far.fa-heart {
    display: none;
  }
  
  .wishlist-btn.active .fas.fa-heart {
    display: block;
  }
  
  .wishlist-btn .fas.fa-heart {
    display: none;
  }
  
  /* Add to cart animation */
  .add-cart-btn.added .fa-shopping-cart,
  .add-cart-btn.added span {
    display: none;
  }
  
  .add-cart-btn.added .fa-check {
    display: block;
  }
  
  .add-cart-btn .fa-check {
    display: none;
  }
  
  /* Quick cart button animation */
  .quick-cart-btn.added {
    background: linear-gradient(135deg, #10b981, #059669) !important;
  }
  
  .quick-cart-btn.added i {
    transform: rotate(360deg);
    transition: transform 0.5s ease;
  }
  
  /* Hover effects */
  .product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .product-card:hover {
    transform: translateY(-8px) scale(1.02);
  }
  
  /* Quick view button animation */
  .quick-view-btn {
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  }
  
  .quick-view-btn:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
  }
  
  /* Color dots hover effect */
  [style*="background-color"]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 10;
  }
  
  /* Stock bar animation */
  .bg-green-500 {
    transition: width 1s ease-in-out;
  }
