/* ==========================================================================
   SAYYAM PERFUME - CORE STYLESHEET (css/style.css)
   Luxury Artisanal Perfumery & Handcrafted Attars
   Designed for High Performance, Mobile-First Responsiveness & Pure Vanilla JS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS VARIABLES & DESIGN TOKENS --- */
:root {
  /* Colors - Royal Burgundy & Pure White (Golden Completely Removed) */
  --gold-primary: #721035;       /* Royal Burgundy Primary */
  --gold-hover: #540A26;         /* Deep Wine Hover */
  --gold-light: #FBF4F7;         /* Soft Blush White */
  --gold-bright: #8B1A43;        /* Vibrant Burgundy Accent */
  --gold-gradient: linear-gradient(135deg, #27272B 0%, #18181B 50%, #141416 100%);
  
  /* Dark Elements - Luxury Light Black (Soft Charcoal / Matte Graphite, Not Solid #000000) */
  --dark-black: #141416;         /* Refined Charcoal / Light Black */
  --dark-header: #18181B;        /* Premium Light Black for Nav & Footer */
  --dark-surface: #222226;       /* Elevated Dark Surface / Dropdowns */
  --dark-card: #27272B;          /* Soft Dark Card */
  
  --cream-bg: #FFFFFF;           /* Pure Crisp White */
  --cream-card: #FFFFFF;         /* Crisp White Card */
  --white: #FFFFFF;
  
  --text-primary: #18181B;       /* Deep Charcoal Text */
  --text-muted: #64748B;         /* Muted Slate Gray */
  --text-light: #FFFFFF;
  --text-dim: #A1A1AA;           /* Soft Light Gray for Dark Backgrounds */
  
  --border-light: #E4E4E7;       /* Clean Subtle Border */
  --border-dark: rgba(255, 255, 255, 0.12); /* Subtle Light-Black Border */
  --badge-discount: #C41230;     /* Ruby Red */
  --badge-green: #15803D;
  
  /* Typography - Clean, Simple, Modern Sans-Serif */
  --font-serif: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-crest: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Elevations & Radius */
  --shadow-sm: 0 2px 8px rgba(114, 16, 53, 0.05);
  --shadow-md: 0 8px 24px rgba(114, 16, 53, 0.08);
  --shadow-lg: 0 16px 40px rgba(114, 16, 53, 0.12);
  --shadow-hover: 0 14px 28px rgba(114, 16, 53, 0.22);
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-base: 0.28s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Max width */
  --container-max: 1320px;
  --header-height: 74px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

ul, ol {
  list-style: none;
}

/* --- LAYOUT UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-padding {
  padding-top: 70px;
  padding-bottom: 70px;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 45px;
    padding-bottom: 45px;
  }
}

.text-center { text-align: center; }
.text-gold { color: var(--gold-primary); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- SECTION HEADERS --- */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px auto;
}

.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 1.8vw, 0.82rem);
  font-weight: 700;
  letter-spacing: clamp(2px, 0.4vw, 3.5px);
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.section-head .title {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.24;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  word-break: break-word;
}

.section-head .subtitle {
  font-size: clamp(0.88rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 18px auto;
}

.gold-divider::before, .gold-divider::after {
  content: '';
  height: 1px;
  width: 48px;
  background: var(--gold-primary);
  opacity: 0.6;
}

.gold-divider .diamond {
  width: 7px;
  height: 7px;
  background: var(--gold-primary);
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .section-head {
    margin-bottom: 24px;
    padding: 0 12px;
  }
}

/* --- HEADINGS ALIGNMENT --- */
/* Section headings explicitly remain centered */
.section-head,
.section-head h1,
.section-head h2,
.section-head h3,
.section-head .title,
.section-head .eyebrow,
.section-head .subtitle {
  text-align: center;
}

/* Product cards and Product detail pages headings must be side/left aligned */
.card-body,
.card-body h1,
.card-body h2,
.card-body h3,
.card-body h4,
.card-title,
.card-title a,
.card-brand-tag,
.card-price-row,
.product-info-wrap,
.product-info-wrap h1,
.product-info-wrap h2,
.product-info-wrap h3,
.product-info-wrap h4,
.product-title,
.product-page-title,
.product-detail-title,
.product-brand-inspired,
.product-price-display {
  text-align: left;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
  min-height: 40px;
}

.btn-primary {
  background-color: var(--gold-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(114, 16, 53, 0.25);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-dark {
  background-color: var(--gold-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(114, 16, 53, 0.25);
}

.btn-dark:hover {
  background-color: var(--gold-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(114, 16, 53, 0.35);
}

.btn-outline {
  border: 1.5px solid var(--gold-primary);
  color: var(--gold-primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--gold-primary);
  color: var(--white);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  min-height: 34px;
}

.btn-block {
  width: 100%;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  transform: translateY(-2px);
}

.btn:disabled, .btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #CCCCCC !important;
  color: #666666 !important;
  border-color: #CCCCCC !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ==========================================================================
   GLOBAL INJECTED COMPONENTS (Generated by app.js)
   ========================================================================== */

/* 1. ANNOUNCEMENT BAR (Continuous Right to Left Marquee) */
.announcement-bar {
  background-color: var(--dark-header);
  color: var(--white);
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 105;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.announcement-marquee-track {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.announcement-marquee-content {
  display: inline-flex;
  white-space: nowrap;
  animation: announcementScroll 24s linear infinite;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.announcement-marquee-content span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
}

@keyframes announcementScroll {
  from { transform: translateX(0%); }
  to { transform: translateX(-50%); }
}


/* 2. HEADER - Sticky 2-Tier Header: Row 1 (Search Left | Center Logo | Fav & Cart Right) + Row 2 (Single-Row Centered Nav) */
#siteHeaderMount {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100%;
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100%;
  background-color: var(--dark-header);
  color: var(--white);
  border-bottom: 1px solid var(--border-dark);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background-color: rgba(20, 20, 22, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* Header Top Main Row (Row 1: Search, Logo, Actions) */
.header-top-bar {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

/* Left Column: Search Bar */
.header-left-col {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.header-search-bar-wrap {
  position: relative;
  width: 290px;
  max-width: 100%;
}

.header-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 8px 16px;
  transition: all 0.22s ease;
  outline: none !important;
}

.header-search-box:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-bright);
  box-shadow: 0 0 14px rgba(139, 26, 67, 0.35);
  outline: none !important;
}

.header-search-box *:focus,
.header-search-box *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.header-search-icon {
  width: 17px;
  height: 17px;
  color: var(--text-dim);
  margin-right: 10px;
  flex-shrink: 0;
}

.header-search-input {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #FFFFFF;
  font-size: 0.88rem;
  font-family: inherit;
  width: 100%;
  -webkit-appearance: none;
}

.header-search-input:focus,
.header-search-input:focus-visible,
.header-search-input:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.header-search-input::placeholder {
  color: #8E8E93;
}

.header-search-clear {
  background: transparent;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--text-dim);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.header-search-clear:focus,
.header-search-clear:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.header-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 360px;
  background: #18181B;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  overflow: hidden;
}

.header-search-dropdown.active {
  display: block;
  animation: fadeInDown 0.2s ease forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Center Column: Perfectly Centered Logo */
.header-center-col {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  text-align: center;
}

.header-logo-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header-logo-center img {
  height: 52px;
  width: auto;
  display: block;
}

/* Right Column: Actions (Fav + Cart) */
.header-right-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  justify-self: end;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--text-light);
  background: transparent;
  position: relative;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
}

.action-btn:hover {
  color: var(--gold-bright);
  background-color: rgba(255, 255, 255, 0.06);
}

.action-btn svg {
  width: 22px;
  height: 22px;
}

.badge-count {
  position: absolute;
  top: 3px;
  right: 3px;
  background-color: var(--gold-primary);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Second Navigation Bar (Row 2: Non-Sticky Single Row Centered Links - Scrolls Away on Page Scroll) */
.second-nav-bar {
  position: relative;
  z-index: 990;
  background: rgba(16, 16, 18, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 7px 0;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.second-nav-bar::-webkit-scrollbar {
  display: none;
}

.second-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.second-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.second-nav-links li {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.second-nav-links .nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: #D4D4D8;
  text-decoration: none;
  padding: 4px 2px;
  position: relative;
  white-space: nowrap !important;
  display: inline-block;
  transition: color 0.18s ease;
}

.second-nav-links .nav-link:hover,
.second-nav-links .nav-link.active {
  color: var(--gold-bright);
}

.second-nav-links .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-bright);
  transition: width 0.2s ease;
}

.second-nav-links .nav-link:hover::after,
.second-nav-links .nav-link.active::after {
  width: 100%;
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--white);
  border: none;
  padding: 0;
  cursor: pointer;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: var(--white);
  margin: 3px 0;
  transition: var(--transition-fast);
  border-radius: 1px;
}

@media (max-width: 900px) {
  .header-top-container {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .header-search-bar-wrap {
    display: none;
  }
  .header-logo-center img {
    height: 42px;
  }
  .action-btn.action-wishlist,
  .action-wishlist {
    display: none !important;
  }
  .second-nav-bar {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .second-nav-bar::-webkit-scrollbar {
    display: none;
  }
  .second-nav-container {
    justify-content: flex-start;
    padding: 0 16px;
  }
  .second-nav-links {
    flex-wrap: nowrap !important;
    gap: 16px;
    justify-content: flex-start;
  }
}

/* 3. MOBILE SLIDE-IN DRAWER */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99990 !important;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 310px;
  max-width: 85vw;
  background-color: var(--dark-header);
  color: var(--white);
  z-index: 99999 !important;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.6);
}

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-dark);
}

.drawer-header .site-logo img {
  height: 34px;
}

.drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  border-radius: 50%;
}

.drawer-close:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.drawer-body {
  padding: 20px;
  flex: 1;
}

.drawer-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-light);
}

.drawer-nav-link:hover, .drawer-nav-link.active {
  color: var(--gold-bright);
}

.drawer-subnav {
  padding-left: 14px;
  display: none;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.drawer-subnav.open {
  display: block;
}

.drawer-subnav a {
  display: block;
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.drawer-subnav a:hover {
  color: var(--gold-bright);
}

.drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-dark);
  background-color: rgba(0, 0, 0, 0.25);
}

.drawer-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25D366;
  color: #FFF !important;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
}

/* 4. MARQUEE STRIP (Luxury Light Black Ticker) */
.marquee-container {
  background: var(--dark-black);
  color: #FFFFFF;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-content {
  display: inline-flex;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-content span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
}

.marquee-separator {
  color: var(--gold-bright);
  font-size: 1.1rem;
}

@keyframes marqueeScroll {
  from { transform: translateX(0%); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-content {
    animation: none;
    overflow-x: auto;
  }
}

/* 5. PRODUCT CARD COMPONENT */
.product-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #D6C8B5;
}

.card-media-wrapper {
  position: relative;
  background-color: #F8F5F0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-primary, .card-img-secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.card-img-secondary {
  opacity: 0;
}

.product-card:hover .card-img-primary {
  transform: scale(1.04);
}

.product-card:hover .card-img-secondary {
  opacity: 1;
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--badge-discount);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  letter-spacing: 0.5px;
}

.card-badge.gold {
  background-color: var(--gold-primary);
}

.card-badge.sold-out {
  background-color: #4A4642;
}

.card-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 2;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-wishlist-btn:hover, .card-wishlist-btn.active {
  color: #C5221F;
  background-color: var(--white);
  transform: scale(1.1);
}

.card-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-brand-tag {
  font-size: 0.76rem;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 2vw, 1.12rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.32;
}

.card-title a:hover {
  color: var(--gold-primary);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: #E5A826;
  margin-bottom: 12px;
}

.card-rating .rating-score {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-left: 2px;
}

.card-price-row {
  margin-top: auto;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.card-current-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-old-price {
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.card-action-btn {
  width: 100%;
  background-color: var(--gold-primary);
  color: var(--white);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.card-action-btn:hover {
  background-color: var(--gold-hover);
}

.card-action-btn.sold-out {
  background-color: #E2DDD5;
  color: #8C867E;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .product-card {
    border-radius: var(--radius-sm);
  }
  .card-body {
    padding: 10px 8px;
  }
  .card-brand-tag {
    font-size: 0.65rem;
    margin-bottom: 2px;
  }
  .card-title {
    font-size: 0.84rem;
    margin-bottom: 4px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-rating {
    font-size: 0.72rem;
    margin-bottom: 6px;
    gap: 3px;
  }
  .card-price-row {
    margin-bottom: 8px;
    gap: 4px;
    flex-wrap: wrap;
  }
  .card-current-price {
    font-size: 0.95rem;
  }
  .card-old-price {
    font-size: 0.75rem;
  }
  .card-action-btn {
    padding: 7px 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .card-badge {
    top: 6px;
    left: 6px;
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  .card-wishlist-btn {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* 6. SEARCH MODAL / OVERLAY - Live Search */
.search-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(38, 5, 17, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000 !important;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
}

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

.search-modal-container *:focus,
.search-modal-container *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.search-modal-container {
  width: 100%;
  max-width: 680px;
  margin: 30px auto auto auto;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--white);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-full);
  padding: 8px 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.search-input-field:focus,
.search-input-field:focus-visible,
.search-input-field:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.search-input-field {
  width: 100%;
  height: 46px;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0 12px;
}

.search-input-field::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-close-btn {
  color: var(--text-muted);
  font-size: 1.6rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.search-close-btn:hover {
  color: var(--gold-primary);
  background-color: #F8F4F6;
}

.search-results-box {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-top: 14px;
  max-height: 480px;
  overflow-y: auto;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  display: none;
}

.search-results-box.has-results {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
  color: var(--text-primary);
}

.search-result-item:hover {
  background-color: #FBF4F7;
  transform: translateX(3px);
}

.search-result-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: #F5EEF1;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
}

.search-result-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.search-result-sub {
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 2px;
}

.search-result-price {
  font-weight: 700;
  color: var(--gold-primary);
  font-size: 0.95rem;
}

.search-result-price {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.95rem;
}

/* 7. TOAST NOTIFICATION SYSTEM */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--dark-surface);
  color: var(--white);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
  max-width: 380px;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-success {
  border-left: 4px solid #25D366;
}

.toast.toast-error {
  border-left: 4px solid #C5221F;
}

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

/* 8. FLOATING WHATSAPP BUTTON */
.whatsapp-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 95;
  transition: all var(--transition-base);
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn svg {
  width: 32px;
  height: 32px;
}

/* Subtle Pulse Effect */
.whatsapp-float-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.7;
  animation: pulseWa 2s infinite;
}

@keyframes pulseWa {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* Avoid collision on product page mobile sticky bar */
body.has-sticky-bottom-bar .whatsapp-float-btn {
  bottom: 96px;
}

/* 9. MINI-CART SLIDE-IN DRAWER */
.mini-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background-color: var(--white);
  color: var(--text-primary);
  z-index: 99999 !important;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
}

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

.mini-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
}

.mini-cart-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.free-delivery-bar {
  background-color: var(--cream-bg);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
}

.delivery-progress-track {
  height: 6px;
  background-color: #E0D7C9;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.delivery-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  width: 0%;
  transition: width 0.4s ease;
}

.mini-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mini-cart-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.mini-cart-thumb {
  width: 68px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background-color: var(--cream-bg);
}

.mini-cart-details {
  flex: 1;
}

.mini-cart-name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.mini-cart-size {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mini-cart-price {
  font-weight: 700;
  color: var(--gold-primary);
  margin-top: 6px;
  font-size: 0.92rem;
}

.mini-cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.mini-cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-light);
  background-color: var(--cream-bg);
}

.mini-cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* 10. FOOTER (CENTER-ALIGNED ELEGANT LUXURY MATERIAL) */
.site-footer {
  background-color: var(--dark-header);
  color: var(--text-light);
  padding-top: 70px;
  padding-bottom: 35px;
  border-top: 1px solid var(--border-dark);
  text-align: center;
}

.site-footer .container {
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
  text-align: center;
}

.footer-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-brand .site-logo {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-brand .site-logo img {
  height: 46px;
  margin: 0 auto;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 auto 20px auto;
  max-width: 380px;
  text-align: center;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 10px;
  text-align: center;
}

.footer-contact-item svg {
  flex-shrink: 0;
}

.footer-contact-item a:hover {
  color: var(--gold-bright);
}

.footer-social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.social-icon-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.social-icon-link:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

.footer-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  text-align: center;
}

.footer-col-title::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--gold-primary);
  margin: 8px auto 0 auto;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.footer-links-list li {
  margin-bottom: 10px;
  text-align: center;
}

.footer-links-list a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: var(--transition-fast);
  display: inline-block;
  text-align: center;
}

.footer-links-list a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-payment-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-payment-strip a {
  color: var(--text-dim);
  text-decoration: underline;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
}

/* 11. SKELETON LOADER */
.skeleton {
  background: linear-gradient(90deg, #F0ECE4 25%, #FAF7F2 50%, #F0ECE4 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 12. NOSCRIPT BANNER */
.noscript-banner {
  background-color: #2D1A08;
  color: #FFF;
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
}
.noscript-banner a {
  color: #F3E3B6;
  text-decoration: underline;
  font-weight: 700;
}
