/* ============================================================
   SRI MANIKANTA POOJA STORES — HOME PAGE STYLES
   ============================================================ */

/* ── Hero Slider ────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 55vh;
  min-height: 380px;
  max-height: 480px;
  overflow: hidden;
  margin-top: calc(var(--header-h) + 30px); /* ticker height */
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;        /* inactive slides must NOT intercept clicks */
  visibility: hidden;
  z-index: 0;                  /* stack inactive slides below */
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: all;         /* active slide is fully interactive */
  visibility: visible;
  z-index: 1;                  /* bring active slide to the front */
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* Ganesha slide — show the full head/crown */
#slide-3 img {
  object-position: center 20%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(75,10,10,0.82) 0%,
    rgba(75,10,10,0.50) 35%,
    rgba(20,5,5,0.18) 65%,
    transparent 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-text {
  max-width: 620px;
  color: var(--white);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(255,119,34,0.25);
  border: 1px solid rgba(255,119,34,0.5);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--sp-3);
  backdrop-filter: blur(8px);
}
.hero-tag i { color: var(--saffron); }
.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-family: var(--font-heading);
  line-height: 1.15;
  margin-bottom: var(--sp-3);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-title .highlight {
  color: var(--saffron);
  position: relative;
}
.hero-desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp-5);
  line-height: 1.6;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.hero-badge {
  position: absolute;
  bottom: var(--sp-8);
  right: var(--sp-8);
  background: rgba(201,168,76,0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
  color: var(--maroon-dark);
  min-width: 120px;
  display: none;
}
@media (min-width: 768px) { .hero-badge { display: block; } }
.hero-badge-num {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
}
.hero-badge-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.hero-dots {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-2);
  z-index: 5;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--t-normal);
  border: none;
}
.hero-dot.active { background: var(--saffron); width: 24px; }
.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--sp-5);
  pointer-events: none;
  z-index: 5;
}
.hero-arrow {
  width: 48px; height: 48px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: all var(--t-normal);
  font-size: 16px;
}
.hero-arrow:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  transform: scale(1.05);
}

/* ── Hero Progress Bar ──────────────────────────────────────── */
/* Thin saffron bar at the bottom of the hero that fills across
   the slide duration (3–5 s), resets on each new slide,
   and freezes in place when the user hovers over the hero.      */
.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  z-index: 10;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px rgba(255, 119, 34, 0.7);
  pointer-events: none;
  /* transition is set dynamically by JS with the exact duration */
}

/* ── Features Bar ───────────────────────────────────────────── */
.features-bar {
  background: var(--maroon);
  padding: var(--sp-6) 0;
}
.features-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-right: 1px solid rgba(255,255,255,0.1);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-lg);
  background: rgba(255,119,34,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--saffron);
  flex-shrink: 0;
}
.feature-text strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--white);
  font-weight: 600;
}
.feature-text small {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
}

/* ── Categories Grid ────────────────────────────────────────── */
.categories-section {
  padding: var(--sp-16) 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.category-card-sm {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  text-align: center;
  cursor: pointer;
  transition: all var(--t-normal);
  border: 1px solid var(--border-light);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.category-card-sm:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}
.cat-sm-img {
  width: 120px; height: 120px;
  border-radius: var(--r-full);
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--sand);
  transition: all var(--t-normal);
  background: #f5f0e8;
}
.category-card-sm:hover .cat-sm-img {
  border-color: var(--gold);
  transform: scale(1.08);
}
.cat-sm-emoji {
  width: 80px; height: 80px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--sand), var(--gold-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 3px solid var(--sand);
  transition: all var(--t-normal);
}
.category-card-sm:hover .cat-sm-emoji {
  border-color: var(--gold);
  transform: scale(1.08);
}
.cat-sm-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--charcoal);
}
.cat-sm-telugu {
  font-family: var(--font-telugu);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: -8px;
}
.cat-sm-count {
  font-size: var(--text-xs);
  color: var(--saffron);
  font-weight: 500;
}

/* ── Products Carousel ──────────────────────────────────────── */
.products-section {
  padding: var(--sp-16) 0;
  background: var(--sand);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

/* ── Festival Section ───────────────────────────────────────── */
.festivals-section {
  padding: var(--sp-16) 0;
}
.festivals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.festival-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t-normal);
  border: 1px solid var(--border-light);
  text-decoration: none;
}
.festival-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}
.festival-img {
  height: 140px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.festival-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.festival-card:hover .festival-img img { transform: scale(1.1); }
.festival-body {
  padding: var(--sp-4);
}
.festival-name {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  color: var(--maroon);
  margin-bottom: 4px;
}
.festival-date { font-size: var(--text-xs); color: var(--text-muted); }
.festival-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--saffron);
  margin-top: var(--sp-2);
}

/* ── Why Choose Us ──────────────────────────────────────────── */
.why-section {
  padding: var(--sp-16) 0;
  background: var(--maroon);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.why-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  text-align: center;
  transition: all var(--t-normal);
}
.why-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.why-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-full);
  background: rgba(255,119,34,0.2);
  border: 2px solid rgba(255,119,34,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-4);
  font-size: 26px;
  color: var(--saffron);
}
.why-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--gold-light);
  margin-bottom: var(--sp-3);
}
.why-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-section {
  padding: var(--sp-16) 0;
  background: var(--gold-pale);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-7);
  border: 1px solid var(--border-light);
  position: relative;
  transition: all var(--t-normal);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-card::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 80px;
  color: var(--gold-light);
  position: absolute;
  top: -10px;
  left: var(--sp-6);
  line-height: 1;
}
.testimonial-text {
  font-size: var(--text-base);
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
  padding-top: var(--sp-5);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.author-avatar {
  width: 46px; height: 46px;
  border-radius: var(--r-full);
  object-fit: cover;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: var(--text-sm); color: var(--charcoal); }
.author-loc  { font-size: var(--text-xs); color: var(--text-muted); }

/* ── Store Gallery ─────────────────────────────────────── */
.gallery-section {
  padding: var(--sp-16) 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--sp-3);
}
.gallery-item {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item:first-child {
  grid-column: 1 / -1;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(92,15,15,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-normal);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 28px; color: white; }

/* ── Newsletter / CTA Banner ────────────────────────────────── */
.cta-section {
  padding: var(--sp-16) 0;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--gold-dark) 50%, var(--maroon) 100%);
  position: relative;
  text-align: center;
  overflow: hidden;
}
.cta-section::before {
  content: 'ॐ';
  font-size: 320px;
  color: rgba(255,255,255,0.05);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: serif;
  pointer-events: none;
}
.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--sp-4);
}
.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-lg);
  margin-bottom: var(--sp-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ── Responsive Home ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .products-grid   { grid-template-columns: repeat(3, 1fr); }
  .festivals-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-grid        { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { height: 50vh; min-height: 350px; }
  .hero-badge { display: none; }
  .features-bar-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-item:nth-child(2) { border-right: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
  .products-grid   { grid-template-columns: repeat(2, 1fr); }
  .festivals-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-grid        { grid-template-columns: 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .gallery-item:first-child { grid-row: 1 / 3; grid-column: 1 / 2; }
}
@media (max-width: 480px) {
  .hero { height: 50vh; min-height: 300px; }
  .features-bar-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .feature-item:last-child { border-bottom: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid   { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .festivals-grid  { grid-template-columns: 1fr; }
  .gallery-grid    { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-row: auto; grid-column: auto; }
  .hero-actions    { flex-direction: column; gap: var(--sp-3); }
}
