/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: white;
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: var(--color-primary);
  opacity: 0.08;
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  font-size: clamp(var(--font-size-3xl), 6vw, 3.5rem);
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-5);
  animation: slideInLeft 0.6s ease-out;
  color:aliceblue;
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  animation: slideInLeft 0.6s ease-out 0.1s both;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  animation: slideInLeft 0.6s ease-out 0.2s both;
}

.btn--outline-white {
  background: transparent;
  border: 2px solid white;
  color: white;
  transition: all var(--transition-base);
}

.btn--outline-white:hover {
  background: white;
  color: var(--color-secondary);
}

.hero__benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  animation: slideInLeft 0.6s ease-out 0.3s both;
}

.benefit-chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.9);
}

.benefit-chip i {
  font-size: 1.25rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero__visual {
  position: relative;
  animation: slideInRight 0.6s ease-out 0.2s both;
}

.hero__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-12) 0;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero__ctas {
    flex-direction: column;
  }
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title {
  font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-4xl));
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-tight);
}

.section-title--white {
  color: white;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

.section-subtitle--white {
  color: rgba(255, 255, 255, 0.9);
}

/* Featured Categories Section */
.featured-categories {
  padding: var(--space-12) 0;
  background-color: var(--color-background);
}

.categories-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.category-card-home {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.category-card-home:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.category-card-home__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.category-card-home__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.category-card-home:hover .category-card-home__image {
  transform: scale(1.05);
}

.category-card-home__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}

.category-card-home__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-accent);
  color: white;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.category-card-home__content {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-card-home__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.category-card-home__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  flex-grow: 1;
  line-height: var(--line-height-relaxed);
}

.category-card-home__cta {
  align-self: flex-start;
}

/* Why Choose Us Section */
.why-choose-us {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: white;
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}

.why-choose-us::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  opacity: 0.05;
  border-radius: 50%;
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
  text-align: center;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.feature-card__icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  animation: bounce 2s infinite;
}

.feature-card:nth-child(2) .feature-card__icon {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3) .feature-card__icon {
  animation-delay: 0.2s;
}

.feature-card:nth-child(4) .feature-card__icon {
  animation-delay: 0.3s;
}

.feature-card:nth-child(5) .feature-card__icon {
  animation-delay: 0.4s;
}

.feature-card:nth-child(6) .feature-card__icon {
  animation-delay: 0.5s;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.feature-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  line-height: var(--line-height-tight);
  color:aliceblue;
}

.feature-card__text {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--line-height-relaxed);
}

/* Featured Products Section */
.featured-products {
  padding: var(--space-12) 0;
  background-color: var(--color-surface);
}

.products-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.product-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.product-card:hover .product-card__image {
  transform: scale(1.1);
}

.product-card__badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.product-card__badge--bestseller {
  background: var(--color-primary);
  color: white;
}

.product-card__badge--hot {
  background: var(--color-accent);
  color: white;
}

.product-card__badge--new {
  background: var(--color-warning);
  color: white;
}

.product-card__content {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-normal);
  min-height: 2.5rem;
}

.product-card__category {
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
}

.stars {
  color: var(--color-accent);
  font-weight: bold;
}

.rating-count {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.product-card__price {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-primary);
}

.original-price {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.featured-products__cta {
  text-align: center;
}

/* Quality & Process Section */
.quality-process {
  padding: var(--space-12) 0;
  background-color: var(--color-background);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.process-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-base);
}

.process-step:hover {
  transform: translateY(-4px);
}

.process-step__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.process-step__image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.process-step:hover .process-step__image {
  transform: scale(1.05);
}

.process-step__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.process-step__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: white;
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  opacity: 0.05;
  border-radius: 50%;
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.testimonial-card__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__name {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color:aliceblue;
}

.testimonial-card__role {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
}

.testimonial-card__rating {
  margin-bottom: var(--space-3);
}

.testimonial-card__text {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* Special Offers Section */
.special-offers {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.special-offers .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.special-offers::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: white;
  opacity: 0.05;
  border-radius: 50%;
  pointer-events: none;
}

.offers-content {
  position: relative;
  z-index: 1;
}

.offers-title {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: var(--line-height-tight);
}

.offers-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
}

.offers-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-base);
}

.highlight-item i {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.offers-visual {
  position: relative;
  z-index: 1;
}

.offers-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .special-offers .container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* Newsletter & CTA Section */
.newsletter-cta {
  padding: var(--space-12) 0;
  background-color: var(--color-surface);
}

.newsletter-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-tight);
}

.newsletter-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.form-input {
  flex: 1;
  min-width: 250px;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.form-input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.newsletter-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Utility Classes */
.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
  font-weight: 600;
}

.btn--small {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
}

/* Responsive Design */
@media (max-width: 640px) {
  .hero {
    padding: var(--space-12) 0;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .categories-grid-home {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .products-carousel {
    grid-template-columns: 1fr;
  }

  .form-group {
    flex-direction: column;
  }

  .form-input {
    min-width: 100%;
  }

  .hero__ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn--large {
    width: 100%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero__title,
  .hero__subtitle,
  .hero__ctas,
  .hero__benefits,
  .hero__visual,
  .product-card,
  .category-card-home,
  .feature-card,
  .process-step,
  .testimonial-card {
    animation: none;
    transition: none;
  }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
