/* ===========================================================
   Bansal Sarees — Custom Styles
   Brand: Vastrashri | खूबसूरत रंगों की नई उड़ान
   =========================================================== */

:root {
  --maroon: #8e1c46;
  --magenta: #b21d54;
  --pink: #ec2c7a;
  --pink-soft: #f7d2e1;
  --gold: #c9a24b;
  --gold-light: #e6cf94;
  --ivory: #fff9f5;
  --ink: #2b1721;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  background-color: var(--ivory);
  overflow-x: hidden;
}

.font-serif-display {
  font-family: 'Playfair Display', serif;
}

.font-cormorant {
  font-family: 'Cormorant Garamond', serif;
}

/* ---------- Gradient helpers ---------- */
.text-gradient {
  background: linear-gradient(90deg, var(--maroon), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-brand-gradient {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--pink) 100%);
}

.bg-gold-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

/* ---------- Decorative divider ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.divider span.line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider span.line.right {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.divider .diamond {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--gold);
}

/* ---------- Navbar ---------- */
.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--pink);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--maroon), var(--pink));
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 25px -10px rgba(178, 29, 84, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px -12px rgba(178, 29, 84, 0.8);
}
.btn-outline {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--maroon);
  padding: 0.8rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}

/* ---------- Cards ---------- */
.product-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -20px rgba(142, 28, 70, 0.45);
}
.product-card img {
  transition: transform 0.6s ease;
}
.product-card:hover img {
  transform: scale(1.08);
}

/* ---------- Hero ---------- */
.hero-overlay {
  background: linear-gradient(
    100deg,
    rgba(43, 23, 33, 0.78) 0%,
    rgba(142, 28, 70, 0.55) 45%,
    rgba(236, 44, 122, 0.25) 100%
  );
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Marquee ---------- */
.marquee {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: scroll-left 22s linear infinite;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Float animation ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.float-anim {
  animation: float 5s ease-in-out infinite;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--maroon), var(--pink));
  border-radius: 10px;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-menu.open {
  max-height: 420px;
}

/* ===========================================================
   Sliders & extra animations
   =========================================================== */

/* ---------- Hero slideshow (crossfade + Ken Burns) ---------- */
.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.4s ease-in-out;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  animation: kenburns 7s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.14); }
}

/* ---------- Testimonials slider ---------- */
.testi-viewport {
  position: relative;
  overflow: hidden;
}
.testi-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.testi-slide {
  min-width: 100%;
  padding: 0 0.5rem;
}
.testi-dot {
  width: 11px;
  height: 11px;
  border-radius: 9999px;
  background: var(--pink-soft);
  transition: all 0.3s ease;
  cursor: pointer;
}
.testi-dot.active {
  background: linear-gradient(90deg, var(--maroon), var(--pink));
  width: 30px;
}

/* ---------- Bestseller carousel ---------- */
.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item {
  scroll-snap-align: start;
  flex: 0 0 80%;
}
@media (min-width: 640px) { .carousel-item { flex-basis: 45%; } }
@media (min-width: 1024px) { .carousel-item { flex-basis: 23.5%; } }
.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--maroon);
  box-shadow: 0 8px 20px -8px rgba(142, 28, 70, 0.5);
  transition: all 0.25s ease;
}
.carousel-btn:hover {
  background: linear-gradient(135deg, var(--maroon), var(--pink));
  color: #fff;
  transform: scale(1.08);
}

/* ---------- Back to top ---------- */
#backToTop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--maroon), var(--pink));
  color: #fff;
  box-shadow: 0 10px 25px -8px rgba(178, 29, 84, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s ease;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 25px -6px rgba(37, 211, 102, 0.65);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float:hover { transform: translateY(-4px) scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 10px 25px -6px rgba(37,211,102,.65), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 10px 25px -6px rgba(37,211,102,.65), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 25px -6px rgba(37,211,102,.65), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Shimmer on primary buttons ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover::after {
  animation: shimmer 0.9s ease;
}
@keyframes shimmer {
  to { left: 130%; }
}

/* ---------- Fade-in zoom for images on reveal ---------- */
.zoom-in {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Pulse for badges ---------- */
@keyframes softpulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.badge-pulse { animation: softpulse 2.2s ease-in-out infinite; }

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active,
  .marquee,
  .float-anim,
  .badge-pulse { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ===========================================================
   Renewal reminder popup
   =========================================================== */
.renew-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(43, 23, 33, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: renewFade 0.4s ease forwards;
}
@keyframes renewFade { to { opacity: 1; } }

.renew-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--ivory);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(24px) scale(0.96);
  animation: renewPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes renewPop { to { transform: translateY(0) scale(1); } }

.renew-modal__head {
  background: linear-gradient(135deg, var(--maroon), var(--pink));
  color: #fff;
  padding: 1.75rem 1.75rem 1.5rem;
  text-align: center;
}
.renew-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: softpulse 2s ease-in-out infinite;
}
.renew-modal__body { padding: 1.5rem 1.75rem 1.75rem; text-align: center; }
.renew-modal__due {
  display: inline-block;
  margin-top: 0.25rem;
  background: var(--pink-soft);
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
}
.renew-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.renew-close {
  position: absolute;
  top: 0.85rem;
  right: 0.95rem;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.renew-close:hover { background: rgba(255, 255, 255, 0.45); }
.renew-foot {
  margin-top: 1.25rem;
  font-size: 0.7rem;
  color: var(--ink);
  opacity: 0.55;
}
