/* ==========================================================================
   HomeNestStore - Core & Shared Stylesheet (css/style.css)
   Clean 8px Spacing System, Fluid Typography, Shared Components & Theme
   ========================================================================== */

:root {
  /* Colors */
  --bg-cream: #FAF7F2;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F4EFEB;
  --header-dark: #1A1816;
  --header-dark-elevated: #282420;
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-muted: #78716C;
  --text-inverse: #F5F5F4;
  --accent-gold: #C5A059;
  --accent-gold-hover: #B38E46;
  --accent-gold-light: #F9F5EE;
  --accent-gold-border: #E8D7B8;
  --border-color: #E7E0D8;
  --border-dark: #38332E;
  --danger-color: #DC2626;
  --danger-light: #FEF2F2;
  --success-color: #16A34A;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* 8px Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 14px 32px rgba(0, 0, 0, 0.1);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Layout */
  --header-height: 72px;
  --container-max: 1240px;
  --transition-base: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  touch-action: manipulation;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-base);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.18);
}

/* Container */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 24px);
  padding-right: clamp(16px, 3vw, 24px);
}

/* Fluid Headings */
h1, h2, h3, h4, .serif-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.lead-text {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 680px;
}

/* ==========================================================================
   BUTTONS & CONTROLS (Min 44px Touch Targets)
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background-color: var(--accent-gold);
  color: #1A1816;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  box-shadow: 0 2px 6px rgba(197, 160, 89, 0.25);
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 10px 20px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  text-align: center;
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-hover);
  background-color: var(--accent-gold-light);
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background-color: var(--header-dark);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.btn-dark:hover {
  background-color: var(--accent-gold);
  color: #1A1816;
}

/* ==========================================================================
   STICKY HEADER & NAVIGATION
   - Dark theme (#1A1816)
   - Sticky with soft blur/shadow on scroll
   - Hamburger on mobile (min 44x44px) placed at top-left
   - Cart and Wishlist icons with live count badges
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--header-dark);
  color: var(--text-inverse);
  border-bottom: 1px solid var(--border-dark);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  background-color: rgba(26, 24, 22, 0.96);
  backdrop-filter: blur(8px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Hamburger button */
.hamburger-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--text-inverse);
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hamburger-toggle-btn:hover {
  background-color: var(--header-dark-elevated);
  color: var(--accent-gold);
}

.hamburger-toggle-btn svg {
  width: 24px;
  height: 24px;
}

/* Brand Logo */
.site-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.site-brand-logo .brand-icon-svg {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.site-brand-logo span.accent {
  color: var(--accent-gold);
}

/* Desktop Navigation Menu */
.desktop-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.desktop-nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #D6D3D1;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.desktop-nav-link:hover,
.desktop-nav-link.active {
  color: #FFFFFF;
}

.desktop-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-gold);
  border-radius: 2px;
}

/* Header Right Actions (Wishlist, Cart) */
.header-actions-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: #E7E5E4;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header-icon-btn:hover {
  background-color: var(--header-dark-elevated);
  color: var(--accent-gold);
}

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

.header-badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--accent-gold);
  color: #1A1816;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: var(--radius-full);
  padding: 0 4px;
  display: none;
}

/* Mobile Slide-in Drawer */
.mobile-nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background-color: var(--header-dark);
  color: var(--text-inverse);
  z-index: 2100;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

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

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

.mobile-drawer-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D6D3D1;
  border-radius: var(--radius-sm);
}

.mobile-drawer-close:hover {
  color: #FFFFFF;
}

.mobile-drawer-links {
  list-style: none;
  padding: var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #E7E5E4;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  min-height: 44px;
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background-color: var(--header-dark-elevated);
  color: var(--accent-gold);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding: var(--space-5);
  border-top: 1px solid var(--border-dark);
  font-size: 0.85rem;
  color: #A8A29E;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==========================================================================
   PRODUCT CARD COMPONENT (Shared Across All Pages)
   - Fixed 1/1 aspect ratio
   - Subtle neutral fallback background
   - Top-right wishlist heart button
   - Lift + shadow hover effect
   - Smooth zoom on image hover
   ========================================================================== */
.product-card {
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-gold-border);
}

.product-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-surface-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.product-img-wrap {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  padding: var(--space-3);
  opacity: 0.4;
  pointer-events: none;
}

/* Tag Badge */
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: rgba(26, 24, 22, 0.88);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  backdrop-filter: blur(2px);
}

/* Top-Right Wishlist Heart Button */
.wishlist-toggle-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wishlist-toggle-btn:hover {
  transform: scale(1.1);
  color: var(--danger-color);
  background-color: #FFFFFF;
}

.wishlist-toggle-btn.active {
  color: var(--danger-color);
  background-color: #FFFFFF;
}

.wishlist-toggle-btn svg {
  width: 19px;
  height: 19px;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.product-cat-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}

.product-cat {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

.product-rating {
  font-size: 0.75rem;
  font-weight: 600;
  color: #D97706;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title a:hover {
  color: var(--accent-gold);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

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

.product-old-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: auto;
  width: 100%;
}

.btn-add-cart {
  flex: 1;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background-color: var(--header-dark);
  color: #FFFFFF;
}

.btn-add-cart:hover {
  background-color: var(--accent-gold);
  color: #1A1816;
}

.btn-quick-details {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   TOAST NOTIFICATIONS & POPUP MODALS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
  max-width: 90vw;
}

.toast-message {
  background-color: var(--header-dark);
  color: #FFFFFF;
  border: 1px solid var(--border-dark);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  pointer-events: auto;
  animation: toastSlideIn 0.3s ease;
  max-width: 360px;
}

.toast-icon {
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.toast-error .toast-icon {
  color: var(--danger-color);
}

.toast-fade-out {
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Popup Modal */
.popup-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 3100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.popup-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-out;
}

.popup-modal-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  max-width: 440px;
  width: 100%;
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.popup-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background-color: var(--accent-gold-light);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4) auto;
  border: 1px solid var(--accent-gold-border);
}

.popup-modal-icon svg {
  width: 26px;
  height: 26px;
}

.popup-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-2);
}

.popup-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

/* ==========================================================================
   SHARED FOOTER (100% Identical Markup and Styles Across All Pages)
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--header-dark);
  color: #D6D3D1;
  border-top: 1px solid var(--border-dark);
  padding: var(--space-12) 0 var(--space-6) 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

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

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-title span.accent {
  color: var(--accent-gold);
}

.footer-brand-desc {
  color: #A8A29E;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: var(--space-3);
  max-width: 320px;
}

.footer-domain-badge {
  font-size: 0.825rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.footer-col-heading {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: var(--space-4);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links-list a {
  color: #A8A29E;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: #A8A29E;
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--header-dark-elevated);
  color: #D6D3D1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition-base);
}

.footer-social-btn:hover {
  background-color: var(--accent-gold);
  color: #1A1816;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-dark);
  padding-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  color: #78716C;
  font-size: 0.825rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* 1. Both dropdown trigger buttons styling */
.dropdown-trigger-btn,
#shopSortSelect,
.shop-sort-select {
  height: 40px !important;
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  padding: 0 12px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  outline: none !important;
}

/* 2. Hover state like native select */
.dropdown-trigger-btn:hover,
#shopSortSelect:hover {
  border-color: #9ca3af !important;
}

/* 3. Department Dropdown Menu Popup - Native Select Style */
.category-dropdown-menu ul#categoryFilterList {
  position: absolute !important;
  top: 45px !important;
  left: 0 !important;
  width: 100% !important;
  min-width: 200px !important;
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  list-style: none !important;
  z-index: 100 !important;
}

/* 4. Dropdown options (Native option look) */
.category-dropdown-menu .filter-category-btn {
  width: 100% !important;
  text-align: left !important;
  padding: 8px 12px !important;
  border: none !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-weight: 400 !important;
}

/* Hover & Selected Option like browser select dropdown */
.category-dropdown-menu .filter-category-btn:hover {
  background-color: #2563eb !important; /* Standard dropdown highlight blue */
  color: #ffffff !important;
}

.category-dropdown-menu .filter-category-btn:hover span {
  color: #ffffff !important;
}

.category-dropdown-menu .filter-category-btn.active {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
  font-weight: 600 !important;
}
/* Dropdown Popup Menu Container */
.category-dropdown-menu ul#categoryFilterList {
  position: absolute !important;
  top: 46px !important;
  left: 0 !important;
  width: 220px !important;
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  padding: 6px !important;
  margin: 0 !important;
  list-style: none !important;
  z-index: 100 !important;
}

/* Default State (Normal Options Text) */
.category-dropdown-menu .filter-category-btn {
  width: 100% !important;
  text-align: left !important;
  padding: 9px 12px !important;
  border: none !important;
  background: transparent !important;
  color: #1f2937 !important; /* Dark text for crystal clear visibility */
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-radius: 6px !important;
}

.category-dropdown-menu .filter-category-btn span {
  color: #6b7280 !important; /* Number count text color */
}

/* Hover State - Dark background with white text for maximum contrast */
.category-dropdown-menu .filter-category-btn:hover {
  background-color: #111827 !important; /* Dark Black/Navy Background */
  color: #ffffff !important; /* Pure White Text */
}

.category-dropdown-menu .filter-category-btn:hover span {
  color: #d1d5db !important; /* Subtle light gray count */
}

/* Selected/Active Item */
.category-dropdown-menu .filter-category-btn.active {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
  font-weight: 700 !important;
}

.category-dropdown-menu .filter-category-btn.active span {
  color: #4b5563 !important;
}/* Hover aur Normal dono states me Text hamesha Dark dikhega */
.category-dropdown-menu .filter-category-btn,
.category-dropdown-menu .filter-category-btn:hover,
.category-dropdown-menu .filter-category-btn:focus,
.category-dropdown-menu .filter-category-btn.active {
  color: #111827 !important; /* Pure Dark Color - White nahi hoga */
}

/* Hover par Light Grey Background + Clear Dark Text */
.category-dropdown-menu .filter-category-btn:hover {
  background-color: #e5e7eb !important; /* Soft Grey Highlight */
}

/* Count (numbers) color fix */
.category-dropdown-menu .filter-category-btn span,
.category-dropdown-menu .filter-category-btn:hover span {
  color: #4b5563 !important; /* Dark Grey Numbers */
}

/* Selected item styling */
.category-dropdown-menu .filter-category-btn.active {
  background-color: #d1d5db !important;
  font-weight: 700 !important;
}