/* --- HERO SLIDER --- */
.hero-slider {
  background-color: #0f172a;
  position: relative;
  overflow: hidden;
}

.heroSwiper {
  width: 100%;
  height: 520px;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}



.slide-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  position: relative;
  z-index: 2;
}

.slide-text {
  max-width: 600px;
  animation: fadeInUp 0.8s ease;
}

.slide-badge {
  display: inline-block;
  background-color: rgba(0, 156, 168, 0.2);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.slide-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 30px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Swiper navigation custom styles */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: var(--primary);
  background-color: var(--bg-white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: var(--transition);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
  font-size: 1.25rem;
  font-weight: 900;
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 20px rgba(0,156,168,0.3);
}

.hero-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--secondary);
  opacity: 0.2;
}

.hero-slider .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 5px;
  background-color: var(--primary);
  opacity: 1;
  transition: var(--transition);
}

/* --- FEATURES STRIP --- */
.features-banner-strip {
  background-color: var(--primary); /* Teal brand theme background */
  padding: 30px 0;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.features-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon-wrapper {
  background-color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feature-icon-wrapper i {
  color: var(--primary); /* Teal brand theme icon color */
  font-size: 1.35rem;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text h3 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.feature-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.2;
}

/* --- FEATURED CATEGORIES --- */
.featured-categories {
  background-color: var(--bg-white);
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.category-card {
  position: relative;
  flex: 0 1 220px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: var(--transition);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  z-index: 1;
}

.category-card:hover::before {
  background-color: rgba(0, 0, 0, 0.25);
}

.category-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--bg-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}

.category-card-btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 18px;
  background-color: var(--primary);
  color: var(--bg-white);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border-color: var(--primary);
}

.category-card:hover .category-card-btn {
  background-color: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 156, 168, 0.4);
}

/* Fallback icons style for no-image cards */
.category-card.no-image {
  justify-content: center;
}

.category-card.no-image .category-card-icon {
  font-size: 2.2rem;
  color: var(--bg-white);
  margin-bottom: 16px;
  transition: var(--transition);
}

.category-card.no-image:hover .category-card-icon {
  transform: scale(1.1);
}

/* --- PRODUCTS GRID GENERAL --- */
.products-section {
  border-bottom: 1px solid var(--border);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.view-all-wrapper {
  text-align: center;
  margin-top: 48px;
}

/* --- SPECIAL PROMO --- */
.special-promo-banner {
  background-color: var(--secondary);
  color: var(--bg-white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.special-promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(0, 156, 168, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.promo-banner-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.promo-badge {
  display: inline-block;
  background-color: var(--primary);
  color: var(--bg-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.special-promo-banner h2 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--bg-white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.special-promo-banner p {
  font-size: 1.15rem;
  color: #adb0b8;
  margin-bottom: 36px;
  line-height: 1.7;
}

.coupon-code {
  color: var(--primary);
  background-color: rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px dashed rgba(0, 156, 168, 0.3);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- HOME RESPONSIVE --- */
@media (max-width: 1024px) {
  .slide-text h1 {
    font-size: 2.75rem;
  }
  
  .slide-inner {
    padding: 0 24px;
  }

  .categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .category-card {
    flex: unset;
    width: 100%;
    height: 250px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .heroSwiper {
    height: auto;
    aspect-ratio: 1200 / 520; /* Maintain desktop aspect ratio on mobile to prevent image/text cropping */
  }

  .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.75) 100%);
    display: none; /* Hide the dark gradient overlay by default on mobile so images are bright */
  }

  .swiper-slide:has(.slide-inner)::before {
    display: block; /* Show the dark overlay only if there is text overlay content to ensure readability */
  }

  .slide-inner {
    justify-content: center;
    text-align: center;
  }

  .features-banner-strip {
    padding: 20px 0;
  }

  .features-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    padding: 0 16px;
  }

  .feature-item {
    gap: 10px;
  }

  .feature-icon-wrapper {
    width: 38px;
    height: 38px;
  }

  .feature-icon-wrapper i {
    font-size: 1.05rem;
  }

  .feature-text h3 {
    font-size: 0.85rem;
    font-weight: 700;
  }

  .feature-text p {
    font-size: 0.72rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .category-card {
    height: 220px;
  }

  .category-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .category-card-btn {
    font-size: 0.65rem;
    padding: 6px 12px;
  }

  .special-promo-banner h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .slide-text h1 {
    font-size: 2.25rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card {
    height: 180px;
  }

  .category-card h3 {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .category-card-btn {
    font-size: 0.6rem;
    padding: 5px 10px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* --- FEATURED PRODUCT SLIDER --- */
.featured-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 0 10px;
}

.featuredSwiper {
  width: 100%;
  overflow: hidden;
  padding: 10px 0; /* Add slight padding for shadow hover effect */
}

/* Custom Navigation Buttons */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.slider-nav-btn:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 6px 16px rgba(0, 156, 168, 0.25);
}

.slider-prev {
  left: -22px;
}

.slider-next {
  right: -22px;
}

.slider-nav-btn.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .featured-slider-wrapper {
    padding: 0;
  }
  .slider-prev {
    left: -10px;
  }
  .slider-next {
    right: -10px;
  }
}

@media (max-width: 768px) {
  .slider-nav-btn {
    display: none; /* Hide navigation arrows on smaller mobile screens in favor of swiping */
  }
}
