/* ==========================================================================
   Shubhday Green Tea - Master Stylesheet
   Crafted for Mindful Moments & Everyday Wellness
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --color-cream-50: #FDFBF7;
  --color-cream-100: #F7F3EA;
  --color-cream-200: #EFE8D8;
  --color-cream-300: #E4DAC3;

  --color-sand-100: #EAE3D2;
  --color-sand-200: #DDD2BE;
  --color-sand-300: #C8BA9F;
  --color-sand-400: #AFA083;

  --color-sage-100: #E2E8DE;
  --color-sage-200: #C5D2BE;
  --color-sage-300: #A8B89F;
  --color-sage-400: #8A9D80;

  --color-fresh-light: #659B5E;
  --color-fresh: #4F7A4A;
  --color-fresh-dark: #3A5C36;

  --color-botanical-light: #2F5A3B;
  --color-botanical: #23452C;
  --color-botanical-dark: #1B3622;

  --color-dark-forest-light: #183323;
  --color-dark-forest: #102318;
  --color-dark-forest-deep: #0B1710;

  --color-charcoal-light: #2E3530;
  --color-charcoal: #1D211E;
  --color-charcoal-dark: #131614;

  --color-gold-light: #DFCA99;
  --color-gold: #C7A86B;
  --color-gold-dark: #A6884C;

  --font-serif: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-cream-100);
  color: var(--color-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, h1, h2, h3, h4, h5, h6, p, span, button, input, textarea, select, a {
  font-family: var(--font-sans);
}

body {
  background-color: #F7F3EA;
  color: #1D211E;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

::selection {
  background-color: #4F7A4A;
  color: #ffffff;
}

/* Custom aesthetic scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #F7F3EA;
}
::-webkit-scrollbar-thumb {
  background: #C5D2BE;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4F7A4A;
}

/* Explicit & Crisp Typography Rules */
.font-serif {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  letter-spacing: -0.015em;
}

.font-display {
  font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif !important;
  letter-spacing: -0.02em;
}

.font-sans {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: #111111;
}

/* Global High-Contrast Paragraph Visibility (Black & Sharp) */
p {
  color: #111111;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* Light Background Content Paragraphs Across All Pages */
main p:not(.text-white):not([class*="text-white"]):not([class*="text-[#DFCA99]"]):not([class*="text-[#DDD2BE]"]):not([class*="text-[#F7F3EA]"]),
section:not([class*="bg-[#102318]"]):not([class*="bg-[#183323]"]):not([class*="bg-[#23452C]"]) p:not(.text-white):not([class*="text-white"]):not([class*="text-[#DFCA99]"]):not([class*="text-[#DDD2BE]"]):not([class*="text-[#F7F3EA]"]) {
  color: #111111 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

/* Card Descriptions Across All Pages */
.card-desc,
.product-card-desc,
[data-product-card] p,
.glass-card p,
.modal-overlay p:not(.text-white):not([class*="text-[#DFCA99]"]):not([class*="text-[#DDD2BE]"]):not([class*="text-[#F7F3EA]"]) {
  color: #111111 !important;
  opacity: 1 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
}

/* Override Faint Font-Light on Light Backgrounds */
main .font-light:not(.text-white):not([class*="text-white"]):not([class*="text-[#DFCA99]"]):not([class*="text-[#DDD2BE]"]):not([class*="text-[#F7F3EA]"]) {
  font-weight: 400 !important;
  color: #111111 !important;
  opacity: 1 !important;
}



/* Glassmorphism */
.glass-nav {
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-nav-dark {
  background: rgba(16, 35, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(221, 210, 190, 0.6);
}

.glass-card-dark {
  background: rgba(23, 49, 32, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 184, 159, 0.2);
}

/* Gradients */
.text-gold-gradient {
  background: linear-gradient(135deg, #DFCA99 0%, #C7A86B 50%, #9D7B38 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-leaf-gradient {
  background: linear-gradient(135deg, #659B5E 0%, #23452C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Shimmer Button */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 70%
  );
  transform: translateX(-100%) rotate(25deg);
  transition: transform 0.7s ease;
}
.btn-shimmer:hover::after {
  transform: translateX(100%) rotate(25deg);
}

/* Keyframe Animations */
@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.16) translate(-1.5%, -1.2%); }
  100% { transform: scale(1.04) translate(1.2%, 0.8%); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes floatMed {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes pulseGentle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.38; transform: scale(1.08); }
}

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

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-ken-burns {
  animation: kenBurns 28s ease-in-out infinite alternate;
}

.animate-float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-medium {
  animation: floatMed 4s ease-in-out infinite;
}

.animate-pulse-gentle {
  animation: pulseGentle 5s ease-in-out infinite;
}

.animate-scale-up {
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Luxury Premium Cards & Hover Elevations */
.premium-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(221, 210, 190, 0.7);
  box-shadow: 0 4px 20px -2px rgba(29, 33, 30, 0.04);
}

.premium-card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 168, 107, 0.6);
  box-shadow: 0 20px 40px -12px rgba(35, 69, 44, 0.14);
}

.gold-glow-badge {
  background: linear-gradient(135deg, rgba(223, 202, 153, 0.15) 0%, rgba(199, 168, 107, 0.25) 100%);
  border: 1px solid rgba(199, 168, 107, 0.5);
  color: #23452C;
}

.luxury-gradient-dark {
  background: linear-gradient(145deg, #102318 0%, #183424 50%, #0E1F15 100%);
  border: 1px solid rgba(223, 202, 153, 0.25);
}

.number-watermark {
  font-family: 'Playfair Display', serif;
  color: rgba(199, 168, 107, 0.12);
  font-weight: 700;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}


/* Header Dynamic Contrast Styles */
#main-header {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#main-header.nav-scrolled {
  background-color: rgba(247, 243, 234, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #DDD2BE !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding-top: 0.85rem !important;
  padding-bottom: 0.85rem !important;
}

#main-header.nav-scrolled #brand-title {
  color: #23452C !important;
}

#main-header.nav-scrolled #brand-subtitle {
  color: #4F7A4A !important;
}

#main-header.nav-scrolled .brand-logo-img {
  filter: none !important;
}

#main-header.nav-scrolled .nav-link {
  color: rgba(29, 33, 30, 0.8) !important;
}

#main-header.nav-scrolled .nav-link:hover {
  color: #23452C !important;
}

#main-header.nav-scrolled .nav-link.active-link {
  color: #23452C !important;
  font-weight: 700 !important;
}

#main-header.nav-scrolled .nav-link.active-link::after {
  background-color: #4F7A4A !important;
}

#main-header.nav-scrolled .header-icon-btn {
  color: #1D211E !important;
}

#main-header.nav-scrolled .header-icon-btn:hover {
  background-color: rgba(221, 210, 190, 0.5) !important;
}

#main-header.nav-scrolled #mobile-menu-drawer {
  background-color: #F7F3EA !important;
  border-color: #DDD2BE !important;
}

#main-header.nav-scrolled #mobile-menu-drawer a {
  color: rgba(29, 33, 30, 0.85) !important;
}

#main-header.nav-scrolled #mobile-menu-drawer a.active-mobile-link {
  color: #23452C !important;
  border-color: #4F7A4A !important;
}

/* Footer Typography */
footer p,
footer li a {
  font-size: 17px !important;
  line-height: 1.65 !important;
}

/* Card Descriptions */
.product-card-desc,
[data-product-card] p.card-desc,
.card-desc {
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* Custom 2rem Heading Size */
@media (min-width: 640px) {
  .sm\:text-5xl {
    font-size: 2rem !important;
    line-height: 1 !important;
  }
}





/* Modals & Drawers */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(16, 35, 24, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid #DDD2BE;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 48rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 28rem;
  background: #FDFBF7;
  z-index: 1000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-panel.open {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 35, 24, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #102318;
  border: 1.5px solid #4F7A4A;
  background: rgba(79, 122, 74, 0.08);
}

.custom-cursor.button {
  width: 48px;
  height: 48px;
  border-color: #C7A86B;
  background: rgba(199, 168, 107, 0.15);
}

.custom-cursor.product {
  width: 64px;
  height: 64px;
  background: #DFCA99;
  border-color: #C7A86B;
  color: #102318;
}

@media (pointer: coarse), (max-width: 1024px) {
  .custom-cursor {
    display: none !important;
  }
}

/* Toast container */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  padding: 0.85rem 1.25rem;
  background: #102318;
  color: #F7F3EA;
  border: 1px solid #4F7A4A;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.success {
  border-color: #659B5E;
}

.toast-item.error {
  border-color: #ef4444;
}
