/* ════════════════════════════════════════════════════════════════
   INDEX.HTML — PAGE-SPECIFIC STYLES
   (hero, marquee, categories, sale banner, features, testimonials,
   CTA). Everything else (header, footer, product cards, cart,
   wishlist, checkout, quick view) lives in sabarmart-shared.css.
   Animation keyframes here are prefixed "hero" to avoid colliding
   with same-named keyframes in the shared stylesheet.
   ════════════════════════════════════════════════════════════════ */

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ─── HERO ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(217,115,12,0.18), transparent 70%);
  top: -100px; right: -100px;
  animation: heroFloat 8s ease-in-out infinite;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,67,26,0.16), transparent 70%);
  bottom: 0; left: 200px;
  animation: heroFloat 10s ease-in-out infinite reverse;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroCardFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(217,115,12,0.1); border: 1px solid rgba(217,115,12,0.3);
  border-radius: 100px; padding: 0.4rem 1rem; font-size: 0.78rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 2rem; animation: heroFadeUp 0.8s 0.2s ease both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: heroPulse 2s infinite; display: inline-block;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 900; line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 1.5rem; animation: heroFadeUp 0.8s 0.4s ease both;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-sub {
  font-size: 1.1rem; color: var(--muted); line-height: 1.7; max-width: 460px;
  margin-bottom: 3rem; animation: heroFadeUp 0.8s 0.6s ease both;
}

.hero-actions { display: flex; gap: 1rem; align-items: center; animation: heroFadeUp 0.8s 0.8s ease both; }

.btn-hero-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; padding: 1rem 2.5rem; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none; display: inline-block;
}
.btn-hero-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 40px rgba(232,67,26,0.4); }

.btn-hero-ghost {
  background: transparent; color: var(--text); border: 1px solid var(--border);
  padding: 1rem 2rem; border-radius: 100px; font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 500; cursor: pointer;
  transition: border-color 0.25s, background 0.25s; text-decoration: none; display: inline-block;
}
.btn-hero-ghost:hover { border-color: var(--accent); background: rgba(217,115,12,0.05); }

.hero-stats { display: flex; gap: 3rem; margin-top: 3.5rem; animation: heroFadeUp 0.8s 1s ease both; }
.stat-num {
  font-family: 'DM Sans', sans-serif; font-size: 2rem; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--text);
}
.stat-label { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.2rem; }

.hero-visual {
  position: relative; z-index: 2; display: flex; justify-content: center;
  align-items: center; animation: heroCardFadeIn 1.2s 0.5s ease both;
}

/* ─── HERO CIRCULAR ORBIT CAROUSEL ─── */
.hero-orbit-stage {
  position: relative; width: clamp(420px, 34vw, 560px); height: clamp(420px, 34vw, 560px);
  display: flex; align-items: center; justify-content: center;
}

/* soft rotating gradient halo behind everything */
.orbit-glow {
  position: absolute; inset: 18px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(217,115,12,0.22), rgba(232,67,26,0.05), rgba(217,115,12,0.22));
  filter: blur(18px);
  animation: orbitGlowSpin 12s linear infinite;
}
/* dashed orbit path */
.hero-orbit-stage::before {
  content: ''; position: absolute; inset: 34px; border-radius: 50%;
  border: 1.5px dashed rgba(217,115,12,0.28);
}

.orbit-ring {
  position: absolute; inset: 0;
  animation: orbitSpin 26s linear infinite;
}
.hero-orbit-stage:hover .orbit-ring,
.hero-orbit-stage:hover .orbit-glow { animation-play-state: paused; }

.orbit-item {
  position: absolute; top: 50%; left: 50%; width: 0; height: 0;
}
.orbit-item-inner {
  width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.85rem;
  box-shadow: 0 8px 20px rgba(60,40,15,0.14); cursor: pointer;
  transform: rotate(var(--start-rot, 0deg));
  animation: orbitCounterSpin 26s linear infinite;
  transition: border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.orbit-item-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero-orbit-stage:hover .orbit-item-inner { animation-play-state: paused; }
.orbit-item-inner.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--glow), 0 8px 20px rgba(60,40,15,0.18);
}

.orbit-center {
  position: relative; z-index: 5; width: 300px; height: 300px;
  border-radius: 50%; cursor: pointer;
  background: linear-gradient(145deg, #ffffff, #f7eedf);
  box-shadow: 0 30px 60px rgba(60,40,15,0.2), 0 0 0 8px var(--surface), 0 0 0 9px var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.35rem; padding: 1.5rem;
  transition: transform 0.3s, opacity 0.35s ease;
}
.orbit-center:hover { transform: scale(1.04); }
.orbit-center .icon-big { font-size: 2.9rem; margin-bottom: 0.15rem; }
.orbit-center .icon-big img { width: 100px; height: 100px; object-fit: cover; border-radius: 50%; }
.orbit-center .card-tag {
  background: var(--accent2); color: #fff; font-size: 0.6rem; font-weight: 700;
  padding: 0.22rem 0.6rem; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em;
}
.orbit-center .card-title { font-family: 'Playfair Display', serif; font-size: 1.08rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.orbit-center .card-sub { font-size: 0.7rem; color: var(--muted); }
.orbit-center .card-price { font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.orbit-center .card-price s { color: var(--muted); font-size: 0.85rem; font-weight: 500; margin-right: 0.35rem; }

@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitCounterSpin {
  from { transform: rotate(var(--start-rot, 0deg)); }
  to   { transform: rotate(calc(var(--start-rot, 0deg) - 360deg)); }
}
@keyframes orbitGlowSpin { to { transform: rotate(-360deg); } }


/* ─── MARQUEE ─── */
.marquee-section {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.2rem 0; overflow: hidden; background: var(--surface);
}
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 20s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); white-space: nowrap; font-weight: 500; }
.marquee-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── SHOP BY BUDGET ─── */
.budget-section { padding: 2rem 4rem 0; max-width: 1600px; margin: 0 auto; }
.budget-inner { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.budget-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.budget-chips { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.budget-chip {
  padding: 0.55rem 1.1rem; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.budget-chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ─── TRENDING SEARCHES ─── */
.trending-section { padding: 1rem 4rem 0; max-width: 1600px; margin: 0 auto; }
.trending-inner { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.trending-label { font-size: 0.85rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.trending-chips { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.trending-chip {
  padding: 0.4rem 0.85rem; border-radius: 20px; background: var(--surface2);
  color: var(--text); font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: all 0.2s;
}
.trending-chip:hover { background: var(--accent); color: #fff; }
@media (max-width: 640px) {
  .budget-section, .trending-section { padding-left: 1rem; padding-right: 1rem; }
  .budget-inner, .trending-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── SECTION HEADERS (shared by categories/products/features/testimonials) ─── */
.section-label { font-size: 0.78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--text); line-height: 1.15; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 540px; margin: 0 auto; }

section.categories, section.products-section, section.features-section, section.testimonials, section.cta-section {
  padding: 3rem 4rem;
}
section.categories { padding-top: 1.5rem; }

/* ─── CATEGORIES ─── */
.cat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  text-align: center; cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden;
  text-decoration: none; color: inherit;
}
.cat-card:hover, .cat-card:visited, .cat-card:active, .cat-card:focus { text-decoration: none; color: inherit; }
.cat-card .cat-name { text-decoration: none; }
.cat-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 28px var(--glow); }
.cat-photo-wrap { position: relative; height: 150px; overflow: hidden; background: var(--bg); }
.cat-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.cat-card:hover .cat-photo-wrap img { transform: scale(1.08); }
.cat-emoji-badge {
  position: absolute; bottom: 0.6rem; right: 0.6rem; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(60,40,15,0.2);
}
.cat-body { padding: 0.85rem 1rem 1.05rem; }
.cat-name { font-weight: 600; color: var(--text); font-size: 0.87rem; margin-bottom: 0.25rem; }
.cat-count { font-size: 0.74rem; color: var(--muted); }

/* ─── SALE BANNER ─── */
.sale-banner {
  background: linear-gradient(135deg, var(--text), #1a140d); color: #fff;
  border-radius: 28px; margin: 0 4rem; padding: 3.5rem 4rem;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem;
  position: relative; overflow: hidden;
}
.sale-banner::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(217,115,12,0.35), transparent 70%); border-radius: 50%;
}
.sale-badge-big {
  display: inline-block; background: rgba(217,115,12,0.2); color: var(--accent);
  font-size: 0.78rem; font-weight: 700; padding: 0.4rem 1rem; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.25rem;
}
.sale-banner h2 { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; line-height: 1.15; margin-bottom: 1rem; }
.sale-banner h2 span { color: var(--accent); }
.sale-banner p { color: rgba(255,255,255,0.65); margin-bottom: 1.5rem; max-width: 420px; }
.sale-code { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; font-size: 0.9rem; }
.sale-code span { color: rgba(255,255,255,0.65); }
.sale-code strong { background: rgba(255,255,255,0.1); padding: 0.3rem 0.8rem; border-radius: 8px; letter-spacing: 0.05em; }
.sale-timer { display: flex; gap: 1rem; position: relative; z-index: 1; }
.timer-block {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 1rem 1.25rem; text-align: center; min-width: 80px;
}
.timer-num { display: block; font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer-label { font-size: 0.7rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── PRODUCTS SECTION (uses shared .product-card / .card-image / .card-body) ─── */
.products-section .product-grid { margin-top: 3rem; }

/* ─── FEATURES ─── */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-card { text-align: center; padding: 2.25rem 1.75rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: all 0.3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px var(--glow); border-color: var(--accent); }
.feature-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.feature-title { font-weight: 600; color: var(--text); margin-bottom: 0.6rem; }
.feature-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ─── TESTIMONIALS SLIDER ─── */
.testi-carousel-wrap { position: relative; margin-top: 3rem; display: flex; align-items: center; gap: 1rem; }
.testi-grid {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; gap: 1.5rem; scroll-behavior: smooth;
  scrollbar-width: none; padding: 0.5rem 0.25rem;
}
.testi-grid::-webkit-scrollbar { display: none; }
.testi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; transition: box-shadow 0.3s, border-color 0.3s;
  flex: 0 0 calc(33.333% - 1rem); scroll-snap-align: start;
}
.testi-card:hover { box-shadow: 0 12px 28px var(--glow); border-color: var(--accent); }
.testi-stars { color: var(--accent); margin-bottom: 1rem; font-size: 0.95rem; }
.testi-text { color: var(--text); font-size: 0.92rem; line-height: 1.65; margin-bottom: 1.5rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 0.75rem; }
.testi-nav {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: background 0.2s, color 0.2s;
}
.testi-nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.testi-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border);
  border: none; padding: 0; cursor: pointer; transition: all 0.25s;
}
.testi-dot.active { background: var(--accent); width: 22px; border-radius: 5px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.author-name { font-weight: 600; color: var(--text); font-size: 0.88rem; }
.author-loc { font-size: 0.78rem; color: var(--muted); }

/* ─── CTA ─── */
.cta-section { text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow), transparent 60%); pointer-events: none;
}
.cta-section .section-label, .cta-section .section-title { position: relative; z-index: 1; }
.cta-section .section-title { margin-bottom: 1.5rem; }
.cta-section .section-sub { margin: 0 auto 2.5rem; text-align: center; position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; position: relative; z-index: 1; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 2.5rem 2rem; gap: 3rem; }
  .hero-visual { display: none; }
  section.categories, section.products-section, section.features-section, section.testimonials, section.cta-section {
    padding: 4rem 2rem;
  }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-card { flex: 0 0 calc(50% - 0.75rem); }
  .sale-banner { margin: 0 2rem; grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 2rem 1.5rem; }
  .hero-actions { flex-wrap: wrap; gap: 0.8rem; }
  .hero-stats { gap: 1.8rem; flex-wrap: wrap; margin-top: 2.5rem; }
  .section-sub { max-width: 100%; }
  .marquee-track { gap: 2rem; }
  .marquee-item { font-size: 0.78rem; }
  .cat-grid { gap: 1rem; }
  .cat-body { padding: 0.85rem 0.9rem 1.1rem; }
  .sale-banner { padding: 2.5rem 1.5rem; margin: 0 1.5rem; }
  .sale-banner::after { display: none; }
  .sale-banner h2 { font-size: 2.1rem; }
  .sale-timer { flex-wrap: wrap; gap: 0.7rem; }
  .timer-block { min-width: 64px; padding: 0.6rem 0.9rem; }
  .features-grid { gap: 1.2rem; }
  .feature-card { padding: 1.8rem 1.5rem; }
  .testi-grid { gap: 1.2rem; }
  .cta-actions { flex-wrap: wrap; gap: 0.8rem; }
}

@media (max-width: 540px) {
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3.2rem); }
  .hero-sub { max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-hero-primary,
  .hero-actions .btn-hero-ghost { text-align: center; width: 100%; }
  .hero-stats { gap: 1.4rem; }
  .stat-num { font-size: 1.6rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .cat-photo-wrap { height: 120px; }
  .cat-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .sale-banner { grid-template-columns: 1fr; padding: 2rem 1.2rem; margin: 0 1rem; border-radius: 20px; }
  .sale-code { flex-wrap: wrap; gap: 0.6rem; }
  .sale-banner h2 { font-size: 1.7rem; }
  .features-grid { grid-template-columns: 1fr; }
  .testi-card { flex: 0 0 88%; padding: 1.5rem; }
  .testi-nav { width: 36px; height: 36px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  section.testimonials { padding-left: 0; padding-right: 0; }
  .testi-carousel-wrap { gap: 0; margin-top: 2rem; }
  .testi-nav { display: none; }
  .testi-grid { padding: 0.5rem 1rem; gap: 1rem; }
  .testi-card { flex: 0 0 100%; width: 100%; border-radius: 0; border-left: none; border-right: none; }
}
