/* Home Page Specific Styles */

/* Hero Section */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsl(220 15% 15% / 0.9), hsl(220 15% 15% / 0.7), transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 76rem;
  animation: slideUp 0.6s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background-color: hsl(var(--accent) / 0.2);
  color: hsl(var(--accent));
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.6s ease-out;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1.5rem;
  line-height: 1.2;
  animation: slideUp 0.6s ease-out 0.1s both;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-title .text-accent {
  display: block;
  color: hsl(var(--accent));
}

.hero-description {
  font-size: 1.125rem;
  color: hsl(var(--primary-foreground) / 0.8);
  margin-bottom: 2rem;
  animation: slideUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: slideUp 0.6s ease-out 0.3s both;
}

/* Features Bar */
.features-bar {
  background-color: hsl(var(--secondary));
  padding: 2rem 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: hsl(var(--accent) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: hsl(var(--accent));
}

.feature-item h4 {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.feature-item p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Categories Section */
.categories-section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 2.5rem;
  }
}

.section-header p {
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto;
}

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

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 1;
  transition: all 0.3s ease-out;
  text-decoration: none;
  display: block;
}

.category-card.featured {
  aspect-ratio: 4/5;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(220 15% 15% / 0.9), hsl(220 15% 15% / 0.4), transparent);
}

.category-content {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: hsl(var(--primary-foreground));
}

.category-content span {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.7);
  margin-bottom: 0.25rem;
}

.category-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.category-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--accent));
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
  transition: gap 0.3s;
}

.category-card:hover .category-link {
  gap: 0.75rem;
}

/* Featured Products */
.featured-products {
  padding: 5rem 0;
  background-color: hsl(var(--secondary) / 0.5);
}

.section-header-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-header-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.section-header-flex h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .section-header-flex h2 {
    font-size: 2.5rem;
  }
}

.section-header-flex p {
  color: hsl(var(--muted-foreground));
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background-color: hsl(var(--card));
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  transition: all 0.3s ease-out;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: #fff;
  display: flex;
}

.product-image img {
  width: auto;
  height: 100%;
  margin: auto;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.badge {
  padding: 0.25rem 0.5rem;
  font-size: 0.55rem;
  font-weight: 500;
  border-radius: 0.25rem;
  position: relative;
}

.badge-new {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.badge-sale {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.product-badges-right {
  left: auto;
  right: 0.75rem;
}

.badge-out-of-stock {
  background-color: #dc3545;
  color: #ffffff;
}

.product-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.btn-icon-small {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background-color: hsl(var(--secondary));
  color: hsl(var(--foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.btn-icon-small:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.product-add-cart {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, hsl(220 15% 15% / 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  width: 100%;
}

.product-card:hover .product-add-cart {
  opacity: 1;
}

.product-info {
  padding: 1rem;
}

.product-category {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-top: 0.25rem;
  text-decoration: none;
  transition: color 0.3s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name:hover {
  color: hsl(var(--accent));
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.stars {
  display: flex;
  gap: 0.125rem;
}

.star {
  font-size: 0.875rem;
  color: hsl(var(--border));
}

.star.filled {
  color: hsl(var(--accent));
}

.rating-text {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-left: 0.25rem;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.price-current {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.price-original {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: line-through;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
}

.cta-content {
  background: linear-gradient(135deg, hsl(220 15% 15%) 0%, hsl(220 15% 25%) 100%);
  border-radius: 1rem;
  padding: 3rem 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-content {
    padding: 4rem;
  }
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .cta-content h2 {
    font-size: 2.5rem;
  }
}

.cta-content p {
  color: hsl(var(--primary-foreground) / 0.7);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Exclusives Collection Section */
.exclusives-section {
  padding: 5rem 0;
}

/* Category Tabs */
.category-tabs-wrapper {
  margin-bottom: 3rem;
  border-bottom: 2px solid hsl(var(--border));
}

.category-tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.category-tab {
  background: transparent;
  border: none;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.category-tab:hover {
  color: hsl(var(--accent));
  background: hsl(var(--accent) / 0.05);
}

.category-tab.active {
  color: hsl(var(--accent));
  border-bottom-color: hsl(var(--accent));
  background: hsl(var(--accent) / 0.05);
}

.category-tab span {
  position: relative;
  z-index: 1;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.no-products-message {
  text-align: center;
  padding: 3rem 1rem;
  color: hsl(var(--muted-foreground));
  grid-column: 1 / -1;
}

.no-products-message p {
  font-size: 1.125rem;
}

/* Pongal Popup Styles */
.pongal-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.pongal-popup.active {
  display: flex;
}

.pongal-popup-overlay {
  position: absolute;
  inset: 0;
  background-color: hsl(220 15% 15% / 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.pongal-popup-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd700 100%);
  border-radius: 1.5rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px hsl(220 15% 15% / 0.5);
  animation: slideUpScale 0.4s ease-out;
  overflow: hidden;
}

@keyframes slideUpScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.pongal-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background-color: hsl(220 15% 15% / 0.3);
  color: hsl(var(--primary-foreground));
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.pongal-popup-close:hover {
  background-color: hsl(220 15% 15% / 0.5);
  transform: rotate(90deg);
}

.pongal-popup-inner {
  padding: 3rem 2rem;
  text-align: center;
  color: hsl(var(--primary-foreground));
}

.pongal-icon {
  font-size: 4rem;
  animation: bounce 2s infinite;
  max-height: 110px;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.pongal-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: hsl(var(--primary-foreground));
  text-shadow: 2px 2px 4px hsl(220 15% 15% / 0.3);
}

.pongal-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: hsl(var(--primary-foreground));
  opacity: 0.95;
}

.pongal-message {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: hsl(var(--primary-foreground));
  opacity: 0.9;
}

.pongal-tamil-message {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: hsl(var(--primary-foreground));
  opacity: 0.9;
  font-weight: 500;
}

.btn-pongal {
  background-color: hsl(var(--primary-foreground));
  color: #ff6b35;
  border: 2px solid hsl(var(--primary-foreground));
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-pongal:hover {
  background-color: transparent;
  color: hsl(var(--primary-foreground));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsl(220 15% 15% / 0.3);
}

@media (max-width: 640px) {
  .pongal-popup-content {
    max-width: 90%;
  }
  
  .pongal-popup-inner {
    padding: 2rem 1.5rem;
  }
  
  .pongal-title {
    font-size: 2rem;
  }
  
  .pongal-subtitle {
    font-size: 1.25rem;
  }
  
  .pongal-icon {
    font-size: 3rem;
  }
}

.pongal-icon img {
  max-width: 100px;
}