/* Custom CSS for Al Qamar Perfumes */

/* Font definitions */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Force footer accent colors */
footer h4,
footer h5,
footer a:hover,
footer .text-\[\#40e0d0\],
footer .text-\[\#ffd700\] {
  color: var(--footer-accent) !important;
  transition: color 0.3s ease;
}

/* Tailwind custom colors */
:root {
  --midnight-blue: #0f0f23;
  --lunar-gold: #ffd700;
  --turquoise-oasis: #f6c343;
  --moon-silver: #c0c0c0;
  --bg-marquee: #000;
  --text-marquee: #fff;
}

:root.light {
  --bg-marquee: #fff;
  --text-marquee: #000;
}

/* ============================================
   GLOBAL THEME TRANSITIONS - 300ms fade
   ============================================ */
*,
*::before,
*::after {
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth theme transition for html and body */
html,
body {
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile layout safety */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Footer layout improvements */
.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.site-footer .footer-column {
  flex: 1 1 220px;
  min-width: 220px;
}

.site-footer .footer-brand .brand-column {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer .footer-connect .social-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2.5rem 1rem;
  }

  .site-footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .site-footer .footer-column {
    width: 100%;
  }

  .site-footer .footer-brand .brand-column {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .site-footer .footer-brand .brand-column h3,
  .site-footer .footer-brand .brand-column p {
    margin: 0;
  }

  .site-footer .footer-connect .social-icons {
    justify-content: flex-start;
  }

  .site-footer .footer-logo {
    width: 60px;
    height: 60px;
  }

  .site-footer h4,
  .site-footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: left;
  }

  .site-footer ul {
    text-align: left;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  footer {
    padding: 1.5rem 0.75rem !important;
  }

  footer .grid {
    gap: 1.5rem !important;
  }

  .footer-brand-column .brand-column {
    gap: 0.75rem;
  }

  .footer-brand-column .brand-column h3 {
    font-size: 1.1rem;
  }

  .footer-brand-column .brand-column p {
    font-size: 0.8rem;
  }

  .footer-logo {
    width: 50px !important;
    height: 50px !important;
  }

  footer h4,
  footer h5 {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
  }

  .header-social-icons {
    gap: 0.75rem !important;
  }

  .header-social-icon {
    width: 35px !important;
    height: 35px !important;
  }
}

/* Theme Variables - Dark Theme (Default - Arabian Aroma style) */
:root,
:root[data-theme="dark"] {
  /* Background Colors */
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: rgba(15, 15, 35, 0.5);
  --bg-card: rgba(15, 15, 35, 0.5);
  --bg-hover: rgba(255, 215, 0, 0.1);
  --bg-input: #0f0f23;
  --bg-modal: #0f0f23;
  --bg-marquee: #000000;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #c0c0c0;
  --text-muted: #888888;
  --text-inverse: #0f0f23;

  /* Accent Colors */
  --accent-gold: #ffd700;
  --accent-gold-dark: #b8860b;
  --accent-gold-light: #ffed4a;
  --accent-turquoise: #f6c343;
  --accent-turquoise-dark: #d6a634;

  /* Border Colors */
  --border-color: rgba(255, 215, 0, 0.2);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-dark: rgba(0, 0, 0, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
  --shadow-gold-hover: 0 0 30px rgba(255, 215, 0, 0.5);

  /* Gradient */
  --gradient-hero: linear-gradient(to bottom, #0f0f23, #1a1a2e, #0f0f23);
  --gradient-overlay: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(0, 0, 0, 0.6));

  /* Scrollbar */
  --scrollbar-track: #0f0f23;
  --scrollbar-thumb: #ffd700;
  --scrollbar-thumb-hover: #40e0d0;

  /* Special */
  --backdrop-blur: blur(10px);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --white: #ffffff;
  --black: #000000;

  /* Header/Footer Accents */
  --header-accent: #f6c343;
  /* Aquatic/Turquoise for Dark Mode */
  --footer-accent: #f6c343;
  --header-bg: #0f0f23;
  --footer-bg: #0f0f23;
  --link-hover: #f6c343;

  /* Social Icons - Dark Mode */
  --social-icon-color: #FFD700;
  --social-icon-hover: #FFA500;
}

/* Marquee styles */
.marquee-container {
  position: static;
  width: 100%;
  background: var(--bg-marquee);
  z-index: 999;
  overflow: hidden;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.marquee-text {
  animation: scroll 20s linear infinite;
  white-space: nowrap;
  color: var(--text-marquee);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding-left: 32px;
}

@keyframes scroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Moon phases animation */
#moon-phases div {
  animation: moonGlow 3s ease-in-out infinite;
}

#moon-phases div:nth-child(1) {
  animation-delay: 0s;
}

#moon-phases div:nth-child(2) {
  animation-delay: 0.5s;
}

#moon-phases div:nth-child(3) {
  animation-delay: 1s;
}

#moon-phases div:nth-child(4) {
  animation-delay: 1.5s;
}

#moon-phases div:nth-child(5) {
  animation-delay: 2s;
}

@keyframes moonGlow {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Product card hover effects */
.product-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.5s;
}

.product-card:hover::before {
  left: 100%;
}

.product-image {
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* Glowing bottle effect */
.bottle-glow {
  filter: drop-shadow(0 0 10px rgba(64, 224, 208, 0.5));
  transition: filter 0.3s ease;
}

.product-card:hover .bottle-glow {
  filter: drop-shadow(0 0 20px rgba(64, 224, 208, 0.8));
}

/* Scent note popup */
.scent-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--modal-bg);
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  padding: 8px 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  white-space: nowrap;
}

.scent-note:hover .scent-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

/* Parallax dunes effect */
.parallax-dunes {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--bg-tertiary), transparent);
  transform: translateY(0);
}

/* Lunar particles */
.lunar-particle {
  position: absolute;
  background: var(--moon-silver);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .marquee {
    font-size: 14px;
  }

  #moon-phases {
    top: 20px;
    right: 20px;
  }

  #moon-phases div {
    width: 6px;
    height: 6px;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* Form styling */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(64, 224, 208, 0.5);
}

/* Button hover effects */
.btn-primary {
  background: var(--lunar-gold);
  color: var(--midnight-blue);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: rgba(255, 215, 0, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

/* Modal animations */
.modal-enter {
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Theme-aware elements */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.product-card:hover {
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.3);
}

input,
textarea {
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

input:focus,
textarea:focus {
  border-color: var(--accent-secondary);
}

button {
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-1px);
}

/* Modal backgrounds */
.modal {
  background: var(--modal-bg);
  color: var(--text-primary);
}

/* Section backgrounds */
section {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Text colors */
.text-secondary {
  color: var(--text-secondary);
}

.text-primary {
  color: var(--text-primary);
}

/* Header theme awareness */
header {
  background: var(--bg-primary);
  border-bottom-color: var(--accent-primary);
}

/* Footer theme awareness */
footer {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-top-color: var(--accent-primary);
}

/* Navigation links */
nav a {
  color: var(--text-primary);
}

nav a:hover {
  color: var(--accent-secondary);
}

/* Modal overlays */
.modal-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Form labels and text */
label {
  color: var(--text-secondary);
}

/* Links */
a {
  color: var(--accent-secondary);
}

a:hover {
  color: var(--accent-primary);
}

/* Geometric patterns background */
.geometric-bg {
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(64, 224, 208, 0.1) 0%, transparent 50%);
  background-size: 100px 100px;
}

/* Smoke/oud particles effect */
.oud-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(192, 192, 192, 0.6);
  border-radius: 50%;
  animation: drift 8s linear infinite;
}

@keyframes drift {
  0% {
    transform: translateY(100vh) translateX(0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-100px) translateX(50px) scale(0.5);
    opacity: 0;
  }
}

/* ============================================
   TAILWIND COLOR OVERRIDES FOR THEMING
   These make standard Tailwind classes use CSS variables
   ============================================ */

/* Background colors - map to theme variables */
.bg-black {
  background-color: var(--bg-primary) !important;
}

.bg-white {
  background-color: var(--bg-secondary) !important;
}

.bg-gray-900 {
  background-color: var(--bg-primary) !important;
}

.bg-gray-800 {
  background-color: var(--bg-tertiary) !important;
}

.bg-gray-700 {
  background-color: var(--bg-tertiary) !important;
}

.bg-gray-100 {
  background-color: var(--bg-secondary) !important;
}

.bg-gray-50 {
  background-color: var(--bg-secondary) !important;
}

/* Text colors - map to theme variables */
.text-white {
  color: var(--text-primary) !important;
}

.text-gray-100 {
  color: var(--text-primary) !important;
}

.text-gray-200 {
  color: var(--text-primary) !important;
}

.text-gray-300 {
  color: var(--text-secondary) !important;
}

.text-gray-400 {
  color: var(--text-secondary) !important;
}

.text-gray-500 {
  color: var(--text-muted) !important;
}

/* Border colors - map to theme variables */
.border-black {
  border-color: var(--border-color) !important;
}

.border-gray-800 {
  border-color: var(--border-color) !important;
}

.border-gray-700 {
  border-color: var(--border-color) !important;
}

.border-gray-600 {
  border-color: var(--border-light) !important;
}

.border-gray-200 {
  border-color: var(--border-light) !important;
}

/* Yellow/Gold accent colors - these should remain consistent */
.text-yellow-500,
.text-yellow-400,
.text-yellow-300 {
  color: var(--accent-gold) !important;
}

.bg-yellow-500,
.bg-yellow-400,
.bg-yellow-300 {
  background-color: var(--accent-gold) !important;
}

.border-yellow-500,
.border-yellow-400 {
  border-color: var(--accent-gold) !important;
}

/* Turquoise accent */
.text-teal-400,
.text-teal-500,
.text-turquoise-400 {
  color: var(--accent-turquoise) !important;
}

.bg-teal-500,
.bg-teal-400 {
  background-color: var(--accent-turquoise) !important;
}

/* Hover states for backgrounds */
.hover\:bg-gray-800:hover {
  background-color: var(--bg-hover) !important;
}

.hover\:bg-gray-700:hover {
  background-color: var(--bg-hover) !important;
}

.hover\:bg-gray-900:hover {
  background-color: var(--bg-primary) !important;
}

/* Hover states for text */
.hover\:text-white:hover {
  color: var(--text-primary) !important;
}

.hover\:text-gray-300:hover {
  color: var(--text-secondary) !important;
}

/* Focus states */
.focus\:border-teal-400:focus,
.focus\:border-teal-500:focus {
  border-color: var(--accent-turquoise) !important;
}

/* Input backgrounds */
input,
textarea,
select {
  background-color: var(--bg-input) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted) !important;
}

/* Header styles */
header {
  background-color: var(--bg-primary) !important;
  border-color: var(--border-color) !important;
}

header .text-white {
  color: var(--text-primary) !important;
}

/* ============================================
   HEADER + FOOTER COLOR UNIFORMITY
   - Nav and mobile nav text: white
   - Hover + active: golden
   - Social icon baseline white → hover gold
   - Footer links white → hover gold
   ============================================ */
.header-nav a,
.site-header .nav-link,
.site-header nav a.nav-link,
header nav a,
nav a.nav-link,
.nav-link {
  color: #ffffff !important;
  transition: color 0.3s ease !important;
}

.header-nav a:hover,
.site-header .nav-link:hover,
.site-header nav a.nav-link:hover,
header nav a:hover,
nav a.nav-link:hover,
.nav-link:hover {
  color: #f6c343 !important;
}

.nav-link.active,
a.active,
header nav a.active,
header nav a[aria-current="page"],
.site-header .nav-link.active,
.site-header nav a.nav-link.active {
  color: #f6c343 !important;
}

.header-social a,
.footer-social a,
.header-social-icon,
.footer-social-icon,
.social-icon,
header .header-social-icon,
footer .footer-social-icon {
  color: #ffffff !important;
}

.header-social a:hover,
.footer-social a:hover,
.header-social-icon:hover,
.footer-social-icon:hover,
.social-icon:hover,
header .header-social-icon:hover,
footer .footer-social-icon:hover {
  color: #f6c343 !important;
}

footer a,
.footer a,
footer .footer-link {
  color: #ffffff !important;
}

footer a:hover,
.footer a:hover,
footer .footer-link:hover {
  color: #f6c343 !important;
}

/* Keep site-header transforms for nav-pseudo glow */
.site-header .nav-link,
.site-header nav a.nav-link {
  color: #ffffff !important;
  transition: color 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.site-header .nav-link.active,
.site-header nav a.nav-link.active {
  color: var(--accent-gold) !important;
}

.site-header .nav-link:hover,
.site-header nav a.nav-link:hover {
  color: var(--accent-gold) !important;
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.35));
}

/* Header social icons: force pure white baseline */
.site-header .header-social-icon,
.mobile-menu .header-social-icon {
  color: #ffffff !important;
}

.site-header .header-social-icon:hover,
.mobile-menu .header-social-icon:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.45));
}

/* Header dynamic accents */
.header-accent,
.header-link:hover,
header a:hover {
  color: var(--header-accent) !important;
  transition: color 0.3s ease;
}

header .fa-moon,
header .fa-sun {
  color: var(--header-accent) !important;
}

/* Footer styles */
footer {
  background-color: var(--bg-primary) !important;
  border-color: var(--border-color) !important;
  color: var(--text-primary) !important;
  margin-bottom: 0 !important;
  padding-bottom: 20px !important;
  margin-top: auto !important; /* Push footer to bottom in flexbox */
}

/* Footer link styling - ensure consistent colors across all pages */
footer .footer-link {
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  transition: color 0.3s ease !important;
}

footer .footer-link:hover {
  color: var(--accent-gold) !important;
}

/* Footer heading colors */
footer h4 {
  color: var(--text-primary) !important;
}

footer h5 {
  color: var(--text-primary) !important;
}

/* Footer list text */
footer ul li {
  color: var(--text-secondary) !important;
}

/* Desktop Footer Layout */
.footer-brand-column .brand-column {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand-column .brand-column > div {
  display: flex;
  flex-direction: column;
}

.footer-brand-column .brand-column h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--accent-color);
}

.footer-brand-column .brand-column p {
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Footer copyright */
footer .theme-text-secondary {
  color: var(--text-secondary) !important;
}

/* Body background and text */
body {
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

/* Section backgrounds */
section {
  background-color: var(--bg-primary) !important;
}

/* Card backgrounds */
.bg-gray-900,
.bg-gray-800,
.bg-black\/95,
.bg-black\/90 {
  background-color: var(--bg-card) !important;
}

/* Gradient overrides */
.bg-gradient-to-br {
  background: var(--gradient-hero) !important;
}

/* Backdrop blur support */
.backdrop-blur-sm {
  backdrop-filter: blur(10px);
  background-color: var(--bg-primary) !important;
}

/* Mobile menu */
#mobile-menu {
  background-color: var(--bg-primary) !important;
  border-color: var(--border-color) !important;
}

/* Header actions and social icon strip */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 4px 0;
}

.header-actions > * {
  margin: 0;
}

.header-social-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.header-social-icon {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-primary);
  background-color: var(--icon-bg);
  border: 1px solid var(--icon-ring);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.header-social-icon svg {
  width: 16px;
  height: 16px;
}

.header-social-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px var(--accent-gold-light, rgba(255, 215, 0, 0.6));
  background-color: rgba(0, 0, 0, 0.12);
}

/* ============================
   MOBILE HEADER + MENU (<=768)
   ============================ */
.mobile-header,
.mobile-menu-overlay {
  display: none !important;
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--header-bg, var(--bg-primary));
  border-bottom: 2px solid var(--accent-gold);
  backdrop-filter: blur(10px);
}

/* Ensure cart and overlay modals appear above the sticky header on mobile and all pages */
#cart-modal, #auth-modal, #order-success-modal, #success-modal, #address-modal {
  z-index: 1300 !important;
}

#cart-modal {
  /* Keep cart topmost over header when opened */
  z-index: 1300 !important;
}

#cart-modal .relative {
  position: relative;
  z-index: 1301;
}

#close-cart-modal {
  z-index: 1302;
}


.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  text-decoration: none;
}

.wa-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}

.wa-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4cff9a, #05a85b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.35);
}

.wa-icon-circle i,
.wa-icon-circle svg {
  font-size: 24px;
  color: #ffffff;
}

.wa-label {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.whatsapp-float:hover .wa-icon-circle,
.whatsapp-float:hover .wa-label {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(5, 168, 91, 0.8);
  transition: all 0.2s ease;
}

@keyframes whatsapp-dynamic-float {
  0%, 100% { 
    transform: translateY(0) scale(1) rotate(0deg); 
  }
  20% { 
    transform: translateY(-3px) scale(1.02); 
  }
  40% { 
    transform: translateY(-8px) scale(1.03) rotate(1deg); 
  }
  60% { 
    transform: translateX(2px) translateY(-5px) scale(1.02) rotate(-1deg); 
  }
  80% { 
    transform: translateX(-1px) translateY(-2px) scale(1.01); 
  }
}

.whatsapp-float {
  animation: whatsapp-dynamic-float 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
  }

  .wa-icon-circle {
    width: 48px;
    height: 48px;
  }

  .wa-icon-circle i,
  .wa-icon-circle svg {
    font-size: 22px;
  }

  .wa-label {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .wa-icon-circle {
    width: 44px;
    height: 44px;
  }

  .wa-icon-circle i,
  .wa-icon-circle svg {
    font-size: 20px;
  }
}

header.main-header {
  border-bottom: 2px solid var(--accent-gold);
}

.site-footer {
  background: var(--bg-primary);
  border-top: 2px solid var(--accent-gold);
  color: var(--text-primary);
}

.site-footer .footer-link,
.site-footer .header-social-icon {
  color: #ffffff;
}

.site-footer .footer-link:hover,
.site-footer .header-social-icon:hover {
  color: var(--accent-gold);
}

footer .footer-bottom {
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #c0c0c0;
}


.mobile-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-logo {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.mobile-brand {
  flex: 1 1 auto;
  min-width: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.mobile-cart-btn:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-gold);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--accent-color);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
}

.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-gold);
}

.hamburger-lines {
  width: 18px;
  height: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-lines span {
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  display: block;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding: 12px 16px 14px;
}

.mobile-menu-overlay.is-open .mobile-menu {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease, filter 0.3s ease, background-color 0.3s ease;
}

.mobile-menu a.active,
.mobile-menu a:hover {
  background: rgba(255, 215, 0, 0.12);
  color: var(--accent-gold);
  transform: scale(1.03);
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.35));
}

.mobile-social-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}

.mobile-social-row .header-social-icon {
  width: 44px;
  height: 44px;
}

.mobile-social-row .header-social-icon svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  header.main-header,
  .desktop-header {
    display: none !important;
  }

  .mobile-header {
    display: flex !important;
  }

  .mobile-menu-overlay {
    display: block !important;
  }

  .header-actions {
    gap: 8px;
  }

  .header-social-icons {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .header-social-icons {
    justify-content: center;
  }
}

/* Auth + cart buttons in header */
.login-btn {
  background: var(--accent-gold);
  color: var(--text-inverse);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
}

.login-btn:hover {
  transform: scale(1.03) translateY(-1px);
  box-shadow: var(--shadow-gold-hover);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .header-actions {
    gap: 6px !important;
    font-size: 11px !important;
    flex-wrap: wrap !important;
  }

  .header-social-icons {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .whatsapp-phone,
  .header-actions .header-whatsapp-number {
    font-size: 11px !important;
  }
}

/* Collection items */
.collection-item>div {
  background-color: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

.collection-item h4 {
  color: var(--text-primary) !important;
}

.collection-item p {
  color: var(--text-secondary) !important;
}

.collection-item span {
  color: var(--accent-gold) !important;
}

/* Marquee background */
.bg-black.text-white.py-3 {
  background-color: var(--bg-marquee) !important;
}

/* Perfume card "Add to Cart" buttons */
.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background-color: var(--accent-gold, #d4a574);
  color: var(--text-inverse, #1a1a1a);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  transform: translateY(0) scale(1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  min-height: 44px;
}

.add-to-cart-btn:hover {
  background-color: var(--accent-gold-light, #e6c250);
  transform: translateY(-1px) scale(1.05);
  box-shadow: var(--shadow-gold-hover, 0 12px 30px rgba(0, 0, 0, 0.55));
}

.add-to-cart-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.4));
}

/* =========================
   HOME Best Sellers Lock
   =========================
   Never allow Best Sellers cards to become transparent/hidden after reloads.
   (GSAP animations may temporarily set opacity; this enforces the final visible state.)
*/
#best-sellers-grid .product-card {
  opacity: 1 !important;
  visibility: visible !important;
}

/* =========================================
   ADDITIONAL OVERRIDES FOR OPACITY & GRADIENTS
   ========================================= */

/* Border Opacities */
.border-yellow-500\/20 {
  border-color: var(--border-gold-faint) !important;
}

.border-yellow-500\/10 {
  border-color: var(--border-gold-faint) !important;
  opacity: 0.5;
}

.border-teal-400\/20 {
  border-color: var(--border-teal-faint) !important;
}

/* Background Opacities */
.bg-gray-900\/50,
.bg-black\/50 {
  background-color: var(--bg-surface-translucent) !important;
}

.bg-gray-900\/30 {
  background-color: var(--bg-surface-faint) !important;
}

.bg-gray-900\/20 {
  background-color: var(--bg-surface-faint) !important;
}

/* Gradients */
.from-yellow-500 {
  --tw-gradient-from: var(--accent-gold) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

.to-yellow-500,
.to-yellow-600 {
  /* Mapping 600 to gold for simplicity or define gold-dark */
  --tw-gradient-to: var(--accent-gold) !important;
}

.from-teal-400 {
  --tw-gradient-from: var(--accent-turquoise) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

.to-teal-400 {
  --tw-gradient-to: var(--accent-turquoise) !important;
}

/* Border Colors */
.border-teal-400,
.border-teal-500 {
  border-color: var(--accent-turquoise) !important;
}

/* Define missing variables in Root if needed, 
   but ideally they should be in the :root block at top.
   For now, we map to existing vars or inline rgba. */

:root {
  --border-gold-faint: rgba(255, 215, 0, 0.2);
  --border-teal-faint: rgba(64, 224, 208, 0.2);
  --bg-surface-translucent: rgba(15, 15, 35, 0.5);
  --bg-surface-faint: rgba(15, 15, 35, 0.3);
}

/* Social Media Icons */
.social-icons {
  color: var(--social-icon-color) !important;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icons:hover {
  color: var(--social-icon-hover) !important;
  transform: scale(1.2) !important;
}

/* Footer Font - Match Header */
footer h4,
footer h5,
footer a,
footer p,
footer li {
  font-family: 'Poppins', sans-serif;
}

footer h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
/* ============================================
   MOBILE FIXES
   ============================================ */

/* Mobile footer spacing fix (320px-768px) */
@media (max-width: 768px) {
  body { padding-bottom: 0 !important; }
  footer { padding-bottom: 15px !important; }
  html { overflow-x: hidden !important; }
}
