:root {
  --primary-color: #ff6600;
  --secondary-color: #2c3e50;
  --accent-color: #27ae60;
  --light-bg: #f8f9fa;
  --gradient-primary: linear-gradient(
    135deg,
    #ff6600 0%,
    #ff8533 50%,
    #ffaa66 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    #2c3e50 0%,
    #34495e 50%,
    #4a6741 100%
  );
  --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.container {
  max-width: 1200px;
}

/* Hero Slider Styles */
.hero-slider {
  height: 500px;
  position: relative;
  margin: 0 0 0.5rem 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  background: var(--gradient-secondary);
}

/* Override Bootstrap py-5 top padding to remove gap */
main .container.py-5 {
  padding-top: 0 !important;
}

/* Remove spacing on mobile after header */
@media (max-width: 991.98px) {
  .hero-slider {
    margin-top: 0 !important;
  }
  
  main .container.py-5 {
    padding-top: 0 !important;
  }
}

.hero-slide {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: var(--gradient-secondary);
}

.hero-slide::before {
  content: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.05);
  opacity: 0.3;
}

.hero-slide img {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  width: auto;
  max-width: 45%;
  object-fit: cover;
  text-align: center;
  background: transparent;
  z-index: 2;
}

.hero-content {
  flex: 1;
  color: white;
  z-index: 3;
  max-width: 50%;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 14px 32px;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-hero-primary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  border: 2px solid #2c3e50;
}

.btn-hero-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.4);
}

.btn-hero-secondary {
  background: transparent;
  color: white;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Swiper Pagination */
.swiper-pagination {
  bottom: 20px !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
}

/* Navigation arrows */
.swiper-button-next,
.swiper-button-prev {
  color: rgba(255, 255, 255, 0.8) !important;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: white !important;
  background: rgba(255, 102, 0, 0.8);
  transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: 700;
}

/* Features Section */
.features-section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  margin: 0.5rem 0;
  border-radius: 25px;
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card {
  text-align: center;
  padding: 1rem 1rem;
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.4)
  );
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
  background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  color: var(--secondary-color);
}

.feature-card h4 {
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Best Sellers Section */
.bestsellers-section {
  margin: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.product-card-home {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  height: 100%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-card-home:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #ff6600;
}

.product-image-home {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.product-image-home img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  padding: 12px;
  box-sizing: border-box;
}

.product-card-home:hover .product-image-home img {
  transform: scale(1.02);
}

.product-info-home {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 5px;
  line-height: 1.4;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.product-card-home:hover .product-info-home {
  color: #ff6600;
}

.product-info-home h5 {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.product-price-home {
  color: var(--accent-color);
  font-weight: 800;
  font-size: 1.3rem;
}

.badge-bestseller {
  position: absolute;
  top: 15px;
  right: 5px;
  background: var(--gradient-secondary);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-light);
  z-index: 10; /* ensures it's above image */
  pointer-events: none; /* lets hover still apply to image */
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
  z-index: 1000;
  transition: all 0.3s ease;
  display: none;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  transform: scale(1.1) translateY(-2px);
}

/* Loading Animation */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.spinner-border {
  color: var(--primary-color);
  width: 3rem;
  height: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-slider {
    height: 400px;
  }

  .hero-content {
    max-width: 100%;
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-slide img {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 180px;
    margin-top: 1rem;
    right: auto;
    transform: none;
  }

  .hero-slide {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-hero {
    justify-content: center;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .features-section {
    padding: 2rem 1rem;
  }

  .feature-card {
    margin-bottom: 2rem;
  }
}
.loading-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 400px;
  text-align: center;
}

.loading-spinner {
  margin-top: 1rem;
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: auto; /* let content decide height */
    min-height: 400px; /* ensure a base height */
  }

  .hero-slide {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .hero-slide img {
    position: relative;
    width: 80%; /* don’t stretch full width */
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    right: auto;
    transform: none;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-slide img {
    width: 100%;
    max-width: 250px;
  }
}
/* Bestsellers Swiper */
.bestsellers-swiper {
  position: relative;
  padding: 20px 0;
}

.bestsellers-swiper .swiper-slide {
  flex-shrink: 0;
  width: auto; /* Swiper will calculate based on slidesPerView */
}

.bestsellers-swiper .swiper-button-next,
.bestsellers-swiper .swiper-button-prev {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: var(--shadow-light);
}

.bestsellers-swiper .swiper-button-next:hover,
.bestsellers-swiper .swiper-button-prev:hover {
  background: var(--primary-color);
  color: #fff;
}
.features-section,
.product-card-home {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: none;
}
.product-card-home:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.hero-slider,
.hero-slide {
  background: #2c3e50; /* static color */
}


.hero-slide {
  border-radius: 20px;
  overflow: hidden;
}
.product-image-home img {
  will-change: transform;
}
.hero-slider {
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.swiper-button-next,
.swiper-button-prev {
  backdrop-filter: none;
  background: rgba(0,0,0,0.4);
}
.section-title h2 {
  background: none;
  color: var(--secondary-color);
}
.back-to-top {
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.best-sellers-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 20px 30px;
  margin: 0.5rem auto 0.5rem auto;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  max-width: 1200px;
}

.best-sellers-header {
  margin-bottom: 18px;
}

.best-sellers-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #0f1111;
}

.best-sellers-header p {
  font-size: 0.95rem;
  color: #565959;
}
.best-sellers-box .product-card-home {
  box-shadow: none;
  border: none;
  background: transparent;
  border-radius: 0;
}
/* Remove individual light boxes inside Best Sellers */
.best-sellers-box .product-image-home {
  background: transparent;
  border: none;
}


