/* ==========================================================================
   DHANVANTARI AYURVEDA - LAYOUT STYLES (layout.css)
   Pure CSS - Header, Marquee, Navigation, Footer, Offcanvas Drawers
   ========================================================================== */

/* Utility visibility */
.is-hidden {
  display: none !important;
}

/* Top Marquee Banner - Exact match to React MarqueeBanner.tsx */

/* 1. Outer strip: FULL WIDTH background (same as React outer div) */
.marquee-banner {
  background-color: #1c3d27; /* overridden by JS from data-bg */
  color: #f5efe6; /* overridden by JS from data-color */
  position: relative;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  overflow: hidden;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 40;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

@media (min-width: 640px) {
  .marquee-banner {
    font-size: 0.875rem;
  }
}

/* 2. Inner container: max-width constrained, centered (React's max-w-7xl mx-auto px-4) */
.marquee-container {
  max-width: 1440px; /* 90rem = React's --container-7xl: 90rem override */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .marquee-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* 3. Clip zone: overflow hidden, hover target (React's overflow-hidden whitespace-nowrap flex) */
.marquee-clip {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  cursor: default;
}

/* 4. Hover to PAUSE animation — matches React's .animate-marquee:hover */
.marquee-track:hover {
  animation-play-state: paused;
}

/* 5. Moving track: 4 spans inline side by side, slides left (React's animate-marquee) */
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: marquee-slide 35s linear infinite;
  will-change: transform;
}

@media (min-width: 640px) {
  .marquee-track {
    gap: 4rem;
  }
}

.marquee-item {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Smooth infinite scroll: starts at 0, ends at -50% (2 of 4 spans width) */
@keyframes marquee-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Main Header */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(231, 229, 228, 0.6);
  z-index: 45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 640px) {
  .header-container {
    height: 5rem;
  }
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.header-brand:hover {
  transform: scale(1.03);
}

.header-logo {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .header-logo {
    height: 3.5rem;
  }
}

/* Desktop Navigation Links */
.header-nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .header-nav-desktop {
    display: flex;
  }
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #57534e;
}

.nav-item a {
  color: #57534e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-item a:hover {
  color: var(--color-primary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .header-actions {
    gap: 1rem;
  }
}

.header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  color: #78716c;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
}

@media (min-width: 640px) {
  .header-icon-btn {
    padding: 0.5rem;
  }
}

.header-icon-btn:hover {
  background-color: #fafaf9;
  color: var(--color-primary);
}

.wishlist-header-btn {
  display: none;
}

@media (min-width: 768px) {
  .wishlist-header-btn {
    display: flex;
  }
  .wishlist-header-btn:hover {
    color: #ef4444;
    background-color: #fef2f2;
  }
}

.header-account-wrap {
  display: none;
  border-left: none;
  padding-left: 0.25rem;
  position: relative;
}

@media (min-width: 1024px) {
  .header-account-wrap {
    display: block;
    border-left: 1px solid #e7e5e4;
    padding-left: 1.5rem;
  }
}

.account-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  z-index: 1050;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-dropdown-menu.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-menu-header {
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fbf9f4;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.account-menu-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #2d5a27;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-menu-userinfo {
  flex: 1;
  min-width: 0;
}

.account-menu-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1c1917;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu-email {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #78716c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu-badge {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-menu-divider {
  height: 1px;
  background: #f0eeea;
  margin: 0;
}

.account-menu-links {
  padding: 0.4rem 0;
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #44403c;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.account-menu-item:hover {
  background: #fbf9f4;
  color: #2d5a27;
}

.account-menu-footer {
  padding: 0.35rem 0;
}

.account-menu-item.is-logout {
  color: #dc2626;
}

.account-menu-item.is-logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.icon-badge {
  position: absolute;
  top: 0.125rem;
  right: 0.125rem;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.5rem;
  font-weight: 700;
  height: 1rem;
  min-width: 1rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.125rem;
  border: 1.5px solid #ffffff;
}

.wishlist-counter-badge {
  background-color: #ef4444;
}

.menu-toggle-btn {
  display: flex;
}

@media (min-width: 1024px) {
  .menu-toggle-btn {
    display: none;
  }
}

/* Off-canvas Mobile Menu Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.mobile-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 320px);
  background: #ffffff;
  z-index: 101;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  border-radius: 0 20px 20px 0;
  overflow: hidden;
}

.mobile-drawer-overlay.is-open .mobile-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  background: #fdfbf7;
  border-bottom: 1px solid rgba(45, 90, 39, 0.08);
}

.drawer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-brand-wrap .header-brand-logo {
  height: 38px;
  max-width: 190px;
  width: auto;
  object-fit: contain;
}

.drawer-brand-tagline {
  font-size: 0.65rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-family: var(--font-family-serif, Georgia, serif);
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(45, 90, 39, 0.1);
  color: var(--color-primary);
}

.drawer-body {
  padding: 0.85rem 0.9rem 1.5rem 0.9rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  -webkit-overflow-scrolling: touch;
}

.drawer-nav-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0.85rem 0 0.35rem 0.5rem;
}

.drawer-nav-section-title:first-child {
  margin-top: 0.1rem;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.drawer-nav-link:hover,
.drawer-nav-link:active {
  background: #f8f6f0;
  color: var(--color-primary);
  transform: translateX(2px);
}

.drawer-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fdfbf7;
  border: 1px solid rgba(45, 90, 39, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.drawer-nav-link:hover .drawer-link-icon {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.drawer-link-text {
  flex: 1;
  line-height: 1.2;
}

.drawer-link-chevron {
  color: #d1d5db;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.drawer-nav-link:hover .drawer-link-chevron {
  color: var(--color-primary);
  transform: translateX(2px);
}

/* Luxury PWA Card in Drawer */
.drawer-pwa-card {
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(135deg, #fdfbf7 0%, #f4eee2 100%);
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}

.drawer-pwa-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(45, 90, 39, 0.12);
}

.drawer-pwa-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(45, 90, 39, 0.2);
}

.drawer-pwa-info {
  flex: 1;
  min-width: 0;
}

.drawer-pwa-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.2;
}

.drawer-pwa-desc {
  font-size: 0.68rem;
  color: #6b7280;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-pwa-btn {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.drawer-pwa-btn:hover {
  background: var(--color-primary-dark);
}

/* Drawer Footer */
.drawer-footer {
  padding: 0.85rem 1.15rem;
  background: #fdfbf7;
  border-top: 1px solid rgba(45, 90, 39, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drawer-footer-shloka {
  font-family: var(--font-family-serif, Georgia, serif);
  font-size: 0.72rem;
  color: var(--color-primary);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.drawer-footer-helpline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #6b7280;
}

/* Mobile Bottom Navigation Bar (App Experience) */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(231, 229, 228, 0.8);
  display: flex;
  align-items: stretch;
  z-index: 50;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a8a29e;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.bottom-nav-item.is-active,
.bottom-nav-item:hover {
  color: var(--color-primary);
}

/* Mobile Account Bottom Sheet (Slide-Up, Compact & Sleek) */
.mobile-account-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mobile-account-sheet-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-account-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 0.5rem 1.15rem 1.25rem;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 70vh;
  overflow-y: auto;
}

.mobile-account-sheet-overlay.is-open .mobile-account-sheet {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 32px;
  height: 3.5px;
  background-color: #e7e5e4;
  border-radius: 9999px;
  margin: 0.2rem auto 0.6rem;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
}

.sheet-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.sheet-header-left .account-menu-avatar {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.85rem;
}

.sheet-header-left .account-menu-name {
  font-size: 0.85rem;
}

.sheet-header-left .account-menu-badge {
  font-size: 0.6rem;
  margin-top: 0.15rem;
}

.sheet-guest-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #1c1917;
}

.sheet-guest-desc {
  margin: 0.15rem 0 0;
  font-size: 0.725rem;
  color: #78716c;
}

.sheet-close-btn {
  background: #f5f5f4;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78716c;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s, color 0.2s;
}

.sheet-close-btn:hover {
  background: #e7e5e4;
  color: #1c1917;
}

.sheet-divider {
  height: 1px;
  background-color: #f5f5f4;
  margin-bottom: 0.5rem;
}

.sheet-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sheet-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.sheet-link-item:hover,
.sheet-link-item:active {
  background-color: #f7f5f0;
}

.sheet-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #edf4ed;
  color: #2d5a27;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sheet-link-title {
  flex: 1;
  font-size: 0.825rem;
  font-weight: 700;
  color: #292524;
}

.sheet-link-arrow {
  color: #a8a29e;
  flex-shrink: 0;
}

.sheet-footer {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f5f5f4;
}

.sheet-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.sheet-logout-btn:hover,
.sheet-logout-btn:active {
  background: #fee2e2;
  color: #b91c1c;
}

.sheet-guest-box {
  padding: 0.5rem 0 0.25rem;
}

.sheet-signin-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 8px;
  text-decoration: none;
}

/* Search Dropdown Bar (Directly Attached Underneath Header) */
.search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Transparent Click-Catcher below Header (Only active when open, no overflow) */
.search-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.search-overlay.is-open .search-backdrop {
  display: block;
}

.search-modal-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-bottom: 1px solid #e7e5e4;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.search-overlay.is-open .search-modal-card {
  transform: translateY(0);
}

.search-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
}

@media (min-width: 640px) {
  .search-container {
    padding: 1.15rem 1.5rem;
  }
}

.search-header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-form-wrap {
  flex: 1;
  position: relative;
}

.search-input-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon-svg {
  position: absolute;
  left: 1rem;
  color: #1c3d27;
  pointer-events: none;
  width: 20px;
  height: 20px;
}

.search-input-control {
  width: 100%;
  height: 3.25rem;
  padding: 0 5.75rem 0 3rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1c1917;
  background-color: #fafaf9;
  border: 1.5px solid #e7e5e4;
  border-radius: 9999px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

@media (max-width: 480px) {
  .search-input-control {
    font-size: 0.85rem;
    height: 3rem;
    padding: 0 5.25rem 0 2.65rem;
  }
  .search-icon-svg {
    left: 0.85rem;
    width: 18px;
    height: 18px;
  }
}

.search-input-control:focus {
  background-color: #ffffff;
  border-color: #1c3d27;
  box-shadow: 0 0 0 3px rgba(28, 61, 39, 0.12);
}

.search-submit-action-btn {
  position: absolute;
  right: 0.375rem;
  background: #1c3d27;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

.search-submit-action-btn:hover {
  background: #152e1e;
}

.search-submit-action-btn:active {
  transform: scale(0.97);
}

.search-close-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid #e7e5e4;
  background: #fafaf9;
  color: #78716c;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-close-action-btn:hover {
  background: #ffffff;
  color: #1c1917;
  border-color: #d6d3d1;
}

/* --------------------------------------------------------------------------
   SITE FOOTER (Exact Replica of React Footer.tsx)
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  margin-bottom: 0;
  color: #d6d3d1;
  padding-top: 2.5rem;
  padding-bottom: 6rem;
  border-top: 1px solid #1c3d27;
  overflow-x: hidden;
  position: relative;
  background-image: url("/Dhanwantari_Footer_bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .site-footer {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.footer-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 12, 0);
  z-index: 0;
  pointer-events: none;
}

.footer-content-wrap {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand-col {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

@media (min-width: 1024px) {
  .footer-brand-col {
    grid-column: span 1;
  }
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
}

.footer-brand-logo {
  height: 4rem;
  border-radius: 8px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .footer-brand-logo {
    height: 5rem;
  }
}

.footer-brand-desc {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #e7e5e4;
}

@media (min-width: 640px) {
  .footer-brand-desc {
    font-size: 0.875rem;
  }
}

.footer-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.footer-badge {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-weight: 700;
}

@media (min-width: 640px) {
  .footer-badge {
    font-size: 0.6875rem;
    padding: 0.375rem 0.75rem;
  }
}

.footer-links-col {
  text-align: left;
  grid-column: span 1;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .footer-heading {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
}

.footer-heading-dot {
  height: 0.375rem;
  width: 0.375rem;
  background-color: var(--color-accent);
  border-radius: 9999px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .footer-links-list {
    gap: 0.875rem;
    font-size: 0.875rem;
  }
}

.footer-links-list a {
  color: #d6d3d1;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-link-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: #fb923c;
  flex-shrink: 0;
}

.footer-newsletter-col {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

@media (min-width: 1024px) {
  .footer-newsletter-col {
    grid-column: span 1;
  }
}

.footer-newsletter-desc {
  font-size: 0.75rem;
  color: #e7e5e4;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .footer-newsletter-desc {
    font-size: 0.875rem;
  }
}

.footer-newsletter-box {
  display: flex;
  gap: 0.5rem;
}

.footer-newsletter-input {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  color: #ffffff;
  outline: none;
  width: 100%;
}

@media (min-width: 640px) {
  .footer-newsletter-input {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

.footer-newsletter-input:focus {
  border-color: var(--color-accent);
}

.footer-newsletter-btn {
  background-color: var(--color-accent);
  color: #0f1f14;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .footer-newsletter-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

.footer-newsletter-btn:hover {
  opacity: 0.9;
}

.footer-social-connect {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

.footer-social-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a8a29e;
}

@media (min-width: 640px) {
  .footer-social-label {
    font-size: 0.75rem;
  }
}

.footer-social-link {
  color: #d6d3d1;
  transition: color 0.2s ease;
}

.footer-social-link:hover {
  color: var(--color-accent);
}

.footer-social-icon {
  width: 1.125rem;
  height: 1.125rem;
}

@media (min-width: 640px) {
  .footer-social-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.footer-contact-strip {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  font-size: 0.75rem;
  color: #e7e5e4;
}

@media (min-width: 640px) {
  .footer-contact-strip {
    margin-top: 3rem;
    padding-top: 1.25rem;
    gap: 1.5rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .footer-contact-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-contact-item:first-child {
    justify-content: flex-start;
  }
  .footer-contact-item:last-child {
    justify-content: flex-end;
  }
}

.footer-contact-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .footer-contact-icon {
    width: 1.125rem;
    height: 1.125rem;
  }
}

.footer-disclaimer-wrap {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.625rem;
  line-height: 1.6;
  color: #a8a29e;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .footer-disclaimer-wrap {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    font-size: 0.75rem;
    gap: 1rem;
  }
}

.footer-disclaimer-text {
  max-width: 56rem;
  margin: 0 auto;
  font-style: italic;
}

.footer-copyright-text {
  color: #d6d3d1;
  font-weight: 600;
  font-size: 0.6875rem;
}

@media (min-width: 640px) {
  .footer-copyright-text {
    font-size: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   FLOATING ASSISTIVE WIDGETS (WhatsApp & Ayurvedic Bot - Exact React Replica)
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 5rem;
  left: 1rem;
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 9999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .floating-whatsapp {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
  }
}

.floating-whatsapp:hover {
  background-color: #1ebe57;
  transform: translateY(-0.25rem);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 768px) {
  .whatsapp-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
}

.whatsapp-tooltip {
  position: absolute;
  left: 115%;
  background: #ffffff;
  color: #44403c;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #f5f5f4;
  transition: opacity 0.3s ease;
}

.floating-whatsapp:hover .whatsapp-tooltip {
  opacity: 1;
}

/* Chatbot Floating Anchor Container */
.chatbot-wrapper {
  position: fixed;
  bottom: 5rem;
  right: 1rem;
  z-index: 50;
}

@media (min-width: 768px) {
  .chatbot-wrapper {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

.vaidya-trigger-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.floating-bot-trigger {
  width: 2.75rem;
  height: 2.75rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 9999px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(45, 90, 39, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .floating-bot-trigger {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.floating-bot-trigger:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-0.25rem);
  box-shadow: 0 12px 28px rgba(45, 90, 39, 0.5);
}

.bot-icon-stethoscope {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 768px) {
  .bot-icon-stethoscope {
    width: 1.75rem;
    height: 1.75rem;
  }
}

.bot-icon-close {
  width: 1.25rem;
  height: 1.25rem;
  display: none;
}

@media (min-width: 768px) {
  .bot-icon-close {
    width: 1.75rem;
    height: 1.75rem;
  }
}

.floating-bot-trigger.is-open .bot-icon-stethoscope {
  display: none;
}

.floating-bot-trigger.is-open .bot-icon-close {
  display: block;
}

/* Rotating Prompt Bubble */
.vaidya-prompt-bubble {
  position: absolute;
  right: 115%;
  background: #ffffff;
  color: #44403c;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border-bottom-right-radius: 0;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.12),
    0 8px 10px -6px rgba(0, 0, 0, 0.08);
  border: 1px solid #e7e5e4;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}

@media (min-width: 768px) {
  .vaidya-prompt-bubble {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    gap: 0.625rem;
  }
}

.vaidya-prompt-bubble.is-visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.vaidya-trigger-wrap:hover .vaidya-prompt-bubble:not(.is-dismissed) {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.vaidya-prompt-bubble.is-dismissed {
  display: none !important;
  pointer-events: none !important;
}

.vaidya-prompt-dismiss {
  background: transparent;
  border: none;
  color: #57534e; /* clearly visible dark stone */
  cursor: pointer;
  padding: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.vaidya-prompt-dismiss svg {
  display: block;
  stroke: currentColor;
}

.vaidya-prompt-dismiss:hover {
  color: #ef4444; /* red on hover like React */
  background-color: #fee2e2;
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   SCROLL TO TOP BUTTON (Exact Replica of React ScrollToTop.tsx)
   -------------------------------------------------------------------------- */
.scroll-to-top-btn {
  position: fixed;
  bottom: 8.25rem;
  right: 2.375rem;
  z-index: 40;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.25rem;
  border-radius: 9999px;
  background-color: var(--color-primary);
  color: #ffffff;
  border: 1px solid rgba(212, 160, 23, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(50%) translateY(10px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .scroll-to-top-btn {
    bottom: 5.75rem;
    right: 3.25rem;
    width: 2rem;
    height: 2rem;
    padding: 0.375rem;
  }
}

.scroll-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
  background-color: var(--color-primary-light);
  transform: translateX(50%) translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.scroll-to-top-btn:active {
  transform: translateX(50%) scale(0.95);
}

.scroll-to-top-icon {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .scroll-to-top-icon {
    width: 0.875rem;
    height: 0.875rem;
  }
}

.scroll-to-top-btn:hover .scroll-to-top-icon {
  transform: translateY(-2px);
}
