@import url('https://cdn.jsdelivr.net/npm/@xz/fonts@1/serve/metropolis.min.css');
@import url('https://fonts.googleapis.com/css2?family=Anek+Malayalam:wght@100..800&family=Cabinet+Grotesk:wght@500;700;800;900&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Noto+Naskh+Arabic:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,800;1,400&family=Syne:wght@600;700;800&display=swap');

:root {
  --font-malayalam: 'Anek Malayalam', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-brand: 'Metropolis', 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: 'Noto Naskh Arabic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --color-primary: #E11D48;       /* Watermelon Crimson Red */
  --color-primary-dark: #BE123C;
  --color-primary-light: #FFE4E6;
  --color-accent-green: #059669;  /* Watermelon Rind Green */
  --color-accent-green-dark: #047857;
  
  --bg-main: #FAFAF9;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #F5F5F4;
  --text-primary: #18181B;
  --text-secondary: #52525B;
  --text-muted: #71717A;
  --border-color: #E4E4E7;
  --border-light: #F4F4F5;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);

  --header-height: 72px;
}

.dark {
  --bg-main: #09090B;
  --bg-card: #121215;
  --bg-card-subtle: #18181B;
  --text-primary: #FAFAFA;
  --text-secondary: #D4D4D8;
  --text-muted: #A1A1AA;
  --border-color: #27272A;
  --border-light: #1F1F23;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.7), 0 8px 10px -6px rgb(0 0 0 / 0.5);
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-malayalam);
  line-height: 1.7;
  font-weight: 300;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Hide scrollbar on touch scroll containers */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* RTL Support */
[dir="rtl"] {
  font-family: var(--font-arabic);
}

[dir="rtl"] .font-malayalam {
  font-family: var(--font-arabic);
}

/* Font helpers */
.font-anek {
  font-family: var(--font-malayalam);
}

.font-qurova, .font-metropolis {
  font-family: var(--font-brand);
  letter-spacing: -0.02em;
}

.font-inter {
  font-family: var(--font-sans);
}

.font-serif {
  font-family: var(--font-serif);
}

/* Headline and body weight controls as requested */
h1, h2, h3, h4, h5, h6, .lead-headline, .article-headline, .section-heading {
  font-family: var(--font-malayalam);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.headline-extrabold {
  font-weight: 800;
}

.body-light {
  font-weight: 300;
  color: var(--text-secondary);
}

.body-normal {
  font-weight: 400;
  color: var(--text-secondary);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-card-subtle);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Animations */
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

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

.animate-ticker {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

.animate-ticker:hover {
  animation-play-state: paused;
}

.animate-pulse-glow {
  animation: pulseGlow 2s infinite ease-in-out;
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Utility layout classes */
.container-custom {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 1536px) {
  .container-custom {
    max-width: 1400px;
  }
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(228, 228, 231, 0.6);
}

.dark .glass-panel {
  background: rgba(18, 18, 21, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(39, 39, 42, 0.6);
}

/* Button & Badge styles */
.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.6rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(225, 29, 72, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(225, 29, 72, 0.45);
}

.btn-secondary {
  background-color: var(--bg-card-subtle);
  color: var(--text-primary);
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.6rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-crimson {
  background-color: rgba(225, 29, 72, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(225, 29, 72, 0.25);
}

.badge-emerald {
  background-color: rgba(5, 150, 105, 0.12);
  color: var(--color-accent-green);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

/* Modals & Drawers */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-card);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
}

[dir="rtl"] .drawer-container {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
}

.drawer-container.active {
  transform: translateX(0);
}

.modal-dialog-custom {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-dialog-custom.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xl);
  -webkit-overflow-scrolling: touch;
}

.modal-dialog-custom.active .modal-content-card {
  transform: scale(1) translateY(0);
}

@media (max-width: 640px) {
  .modal-dialog-custom {
    padding: 0;
    align-items: flex-end;
  }
  .modal-content-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    max-height: 93vh;
    border-left: none;
    border-right: none;
    border-bottom: none;
    transform: translateY(100%);
  }
  .modal-dialog-custom.active .modal-content-card {
    transform: translateY(0);
  }
  .drawer-container {
    max-width: 88vw;
  }
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .floating-whatsapp {
    bottom: 16px;
    right: 16px;
  }
}

[dir="rtl"] .floating-whatsapp {
  right: auto;
  left: 24px;
}

@media (max-width: 640px) {
  [dir="rtl"] .floating-whatsapp {
    left: 16px;
  }
}

/* Line clamps */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Radiant glow & hero styles */
.hero-radiant-glow {
  background: radial-gradient(circle at 50% 25%, rgba(225, 29, 72, 0.07) 0%, rgba(254, 242, 242, 0.5) 45%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-curved-border {
  border-bottom: 1px solid #e4e4e7;
  border-bottom-left-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
}

@keyframes floatLogo3D {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    filter: drop-shadow(0 20px 40px rgba(225, 29, 72, 0.45));
  }
  50% {
    transform: translateY(-12px) rotate(1.5deg) scale(1.02);
    filter: drop-shadow(0 30px 60px rgba(225, 29, 72, 0.65));
  }
}

.logo-3d-floating {
  animation: floatLogo3D 6s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-3d-floating:hover {
  transform: scale(1.06) rotate(3deg);
}

/* Stacked / Cascading Cards */
.stacked-cards-container {
  display: flex;
  position: relative;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  perspective: 1000px;
  scroll-snap-type: x mandatory;
}

.stacked-card {
  flex-shrink: 0;
  width: 320px;
  min-height: 240px;
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-right: -4rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .stacked-card {
    width: 360px;
    min-height: 260px;
  }
}

.stacked-card:last-child {
  margin-right: 0;
}

.stacked-card:hover {
  transform: translateY(-16px) scale(1.03) rotate(-1deg);
  z-index: 30 !important;
  box-shadow: 0 16px 32px rgba(225, 29, 72, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stacked-card.active-card {
  transform: translateY(-12px) scale(1.02);
  z-index: 25 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
  .stacked-cards-container {
    gap: 0.875rem;
    padding: 0.5rem 0.25rem 1.25rem 0.25rem;
    perspective: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 0.5rem;
  }

  .stacked-card {
    width: 82vw;
    max-width: 310px;
    min-width: 260px;
    min-height: 220px;
    padding: 1.25rem;
    margin-right: 0;
    scroll-snap-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: none !important;
  }

  .stacked-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
  }

  .stacked-card.active-card {
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.18);
  }
}

/* Card Themes */
.card-theme-red, .card-theme-orange {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  border: 1px solid rgba(225, 29, 72, 0.3);
}

.card-theme-white {
  background: #ffffff;
  color: #09090b;
  border: 1px solid #e4e4e7;
}

.dark .card-theme-white {
  background: #f4f4f5;
  color: #09090b;
}

.card-theme-charcoal {
  background: #f4f4f5;
  color: #18181b;
  border: 1px solid #e4e4e7;
}

.card-theme-black {
  background: #ffffff;
  color: #18181b;
  border: 2px solid #e11d48;
}

/* Glowing Play Button */
.glow-play-btn {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 0 30px rgba(225, 29, 72, 0.65);
  transition: all 0.3s ease;
}

.glow-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 45px rgba(225, 29, 72, 0.9);
}

/* Order Tracking Step UI */
.tracking-step-dot {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.tracking-step-active {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.tracking-step-pending {
  background: #27272a;
  color: #71717a;
}

.tracking-line {
  flex-grow: 1;
  height: 3px;
  background: #27272a;
}

.tracking-line-active {
  background: #10b981;
}

