/* ===================================
   DealWagon - Professional CSS Framework
   Modern, Responsive, Dark-First Design
   SYNCHRONIZED VERSION - All Issues Fixed
   ================================== */

/* ===================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ================================== */
@font-face {
  font-family: "InterVar";
  src: url("/assets/fonts/Inter-Variable.woff2") format("woff2-variations");
  font-display: swap;
}
html { font-family: "InterVar", var(--font-family-base); }

:root {
  /* Typography */
  color-scheme: dark light;
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: clamp(1.75rem, 1rem + 2vw, 1.875rem); /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: clamp(2.25rem, 1rem + 4vw, 3rem); /* 48px */
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing Scale */
  --space-0: 0;
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.25rem; /* 20px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-10: 2.5rem; /* 40px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */

  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem; /* 2px */
  --radius-base: 0.25rem; /* 4px */
  --radius-md: 0.375rem; /* 6px */
  --radius-lg: 0.5rem; /* 8px */
  --radius-xl: 0.75rem; /* 12px */
  --radius-2xl: 1rem; /* 16px */
  --radius-3xl: 1.5rem; /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 6px 20px rgba(0,0,0,.25)
;
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 200ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;

  /* Brand Colors */
  --brand-primary: #3b82f6;
  --brand-secondary: #10b981;
  --brand-accent: #f59e0b;
  --brand-danger: #ef4444;
  --brand-warning: #f59e0b;
  --brand-info: #06b6d4;
  --brand-success: #10b981;

  /* Platform Brand Colors */
  --platform-amazon: #ff9900;
  --platform-flipkart: #047bd6;
  --platform-myntra: #ff3f6c;
  --platform-ajio: #000000;
  --platform-nykaa: #fc2779;
  --platform-meesho: #9c1a96;
  --platform-tata: #1a73e8;
}

/* ===================================
   DARK THEME (DEFAULT)
   ================================== */

:root {
  --color-background: #0f172a;
  --color-background-secondary: #1e293b;
  --color-background-tertiary: #334155;
  --color-surface: #1e293b;
  --color-surface-secondary: #334155;
  --color-surface-hover: #475569;
  --color-text-primary: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-text-quaternary: #64748b;
  --color-text-inverse: #1e293b;
  --color-border: #334155;
  --color-border-light: #475569;
  --color-border-focus: var(--brand-primary);
  --color-overlay: rgba(0, 0, 0, 0.8);

  /* Shadow adjustments for dark mode */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* ===================================
   LIGHT THEME
   ================================== */

[data-theme="light"] {
  --color-background: #ffffff;
  --color-background-secondary: #f8fafc;
  --color-background-tertiary: #f1f5f9;
  --color-surface: #ffffff;
  --color-surface-secondary: #f8fafc;
  --color-surface-hover: #f1f5f9;
  --color-text-primary: #1e293b;
  --color-text-secondary: #475569;
  --color-text-tertiary: #64748b;
  --color-text-quaternary: #94a3b8;
  --color-text-inverse: #ffffff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-border-focus: var(--brand-primary);
  --color-overlay: rgba(0, 0, 0, 0.5);

  /* Shadow adjustments for light mode */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 6px 20px rgba(0,0,0,.25);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===================================
   BASE STYLES & RESET
   ================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-background);
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus management */
/* Accessible focus rings */
*:where(:focus-visible, :focus-within) {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 2px;
  border-radius: var(--radius-base);
}


/* ===================================
   TYPOGRAPHY
   ================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--font-size-4xl, clamp(2rem, 3vw + 1rem, 2.25rem)); }
h2 { font-size: var(--font-size-3xl, clamp(1.75rem, 2.3vw + 1rem, 1.875rem)); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

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

a:hover {
  color: var(--brand-secondary);
}

/* Lists */
ul, ol {
  list-style: none;
}

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

/* Form elements */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===================================
   LAYOUT COMPONENTS
   ================================== */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ===================================
   HEADER & NAVIGATION
   ================================== */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--brand-secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text-primary);
  background-color: var(--color-surface-hover);
}

/* FIXED: Added active navigation state */
.nav-link.active {
  color: var(--brand-primary);
  font-weight: var(--font-weight-semibold);
  background-color: var(--color-surface-hover);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--brand-primary);
  color: var(--color-text-inverse);
  border-color: var(--brand-primary);
  transform: scale(1.05);
}

/* FIXED: Navigation Dropdown Styles */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: var(--space-2);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
  margin: 0;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu .nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  width: 100%;
}

.dropdown-menu .nav-link:hover {
  background: var(--color-surface-hover);
  color: var(--brand-primary);
}

.dropdown-menu .nav-link.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--brand-primary);
}

/* ===================================
   HERO SECTION
   ================================== */

.hero {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: var(--color-text-inverse);
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='rgba(255,255,255,0.05)' fill-opacity='0.4' fill-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

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

.hero h1 {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: inherit;
}

.hero p {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-8);
  opacity: 0.9;
  color: inherit;
}

/* FIXED: Hero Search (was .search-container) */
.hero-search {
  max-width: 40rem;
  margin: 0 auto;
}

.search-box {
  display: flex;
  background-color: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.search-box:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl);
}

.search-box input,
.search-input {
  flex: 1;
  border: none;
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
  background: transparent;
  color: var(--color-text-primary);
}

.search-box input::placeholder,
.search-input::placeholder {
  color: var(--color-text-tertiary);
}

.search-box button,
.search-button {
  background-color: var(--brand-primary);
  color: var(--color-text-inverse);
  padding: var(--space-4) var(--space-6);
  font-weight: var(--font-weight-semibold);
  transition: background-color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border: none;
  cursor: pointer;
}

.search-box button:hover,
.search-button:hover {
  background-color: var(--brand-secondary);
}

/* ===================================
   FILTER BAR
   ================================== */

.filter-bar {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-base);
}

/* FIXED: Filter Options (was .filter-grid) */
.filter-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-group label,
.filter-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.filter-group select,
.filter-select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-group select:focus,
.filter-select:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-group select:hover,
.filter-select:hover {
  border-color: var(--color-border-focus);
}

/* ===================================
   CONTENT LAYOUT
   ================================== */

/* FIXED: Content Wrapper (was .content-layout) */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-8);
  margin: var(--space-8) 0;
  align-items: start;
    container-type: inline-size;   /* establishes a query-able container */

}
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .sidebar {
    order: -1;
  }
}

/* ===================================
   SIDEBAR
   ================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: calc(4rem + var(--space-4));
}

.sidebar-section {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-base);
  transition: box-shadow var(--transition-base);
}

.sidebar-section:hover {
  box-shadow: var(--shadow-lg);
}

.sidebar-section h3,
.sidebar-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--brand-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
}

/* Hot Deals List */
.hot-deals-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hot-deal-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.hot-deal-item:hover {
  background-color: var(--color-surface-hover);
  border-color: var(--color-border);
}

.hot-deal-image {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-base);
  overflow: hidden;
  background-color: var(--color-background-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hot-deal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ADDED: Deal Placeholder Small */
.deal-placeholder-small {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background-secondary);
  border-radius: var(--radius-base);
  color: var(--color-text-tertiary);
  font-size: 1.5rem;
}

.hot-deal-content {
  flex: 1;
  min-width: 0;
}

.hot-deal-content h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-deal-price {
  font-weight: var(--font-weight-bold);
  color: var(--brand-success);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-1);
}

.hot-deal-likes {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Partner Stores */
.partner-stores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.partner-store-item {
  padding: var(--space-3);
  text-align: center;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.partner-store-item:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-base);
}

/* ADDED: Store Badge */
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 30px;
  border-radius: var(--radius-base);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xs);
  color: white;
  margin-bottom: var(--space-1);
  letter-spacing: 0.05em;
}

.partner-store-item span {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
}

.btn-telegram {
  background: #0088cc;
  color: white;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-semibold);
  transition: all var(--transition-fast);
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.btn-telegram:hover {
  background: #007bb5;
  transform: translateY(-1px);
  box-shadow: var(--shadow-base);
  color: white;
}

/* ===================================
   DEALS GRID
   ================================== */

@media (max-width: 640px) {

/* base */
.deals-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;                 /* start with 1 column */
  margin-block-end: var(--space-8);
}

/* component-level break-points */
@container (min-width: 600px) {
  .deals-grid { grid-template-columns: repeat(2, 1fr); }
}

@container (min-width: 960px) {
  .deals-grid { grid-template-columns: repeat(3, 1fr); }
}

}
@media (max-width: 640px) {
  .deals-grid { grid-template-columns: 1fr; }
}
/* No Deals State */
.no-deals {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-16);
  background-color: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-2xl);
  color: var(--color-text-tertiary);
}

.no-deals i,
.no-deals-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.no-deals h3 {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

/* ===================================
   DEAL CARDS
   ================================== */

.deal-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-base);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand-primary);
}

/* FIXED: Deal Image (was .deal-image-container) */
.deal-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--color-background-secondary);
}

.deal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.deal-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
   background:
    linear-gradient(45deg,
      var(--color-background-tertiary) 25%,
      transparent 25% 50%,
      var(--color-background-tertiary) 50% 75%,
      transparent 75%) 0 0 / 2rem 2rem,
    var(--color-background-secondary);
  color: var(--color-text-tertiary);
  font-size: 3rem;
}

/* Deal Badges */
.platform-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-base);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

.hot-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background-color: var(--brand-danger);
  color: white;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-base);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  animation: pulse 2s infinite;
  box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.39);
}

.discount-badge {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  background-color: var(--brand-success);
  color: white;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Deal Content */
.deal-content {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.deal-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: var(--line-height-tight);
}

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

.current-price {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--brand-success);
}

.original-price {
  font-size: var(--font-size-base);
  color: var(--color-text-tertiary);
  text-decoration: line-through;
}

.deal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.deal-category,
.deal-time {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--font-weight-medium);
}

.deal-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
}

/* ===================================
   BUTTONS
   ================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: var(--color-text-inverse);
  flex: 1;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--brand-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: var(--color-text-inverse);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background-color: rgba(59, 130, 246, 0.05);
}

.btn-like {
  background-color: transparent;
  color: var(--color-text-tertiary);
  border: 1px solid var(--color-border);
  min-width: 5rem;
}

.btn-like:hover:not(:disabled) {
  border-color: var(--brand-danger);
  color: var(--brand-danger);
  background-color: rgba(239, 68, 68, 0.05);
}

.btn-like.liked {
  border-color: var(--brand-danger);
  color: var(--brand-danger);
  background-color: rgba(239, 68, 68, 0.1);
}

/* ===================================
   RESULTS INFO
   ================================== */

.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-base);
}

.results-info p {
  margin: 0;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.search-results {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
}

.search-results a {
  color: var(--brand-primary);
  font-weight: var(--font-weight-medium);
}

.search-results a:hover {
  text-decoration: underline;
  color: var(--brand-secondary);
}

/* ===================================
   PAGINATION
   ================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-8) 0;
  flex-wrap: wrap;
}

.pagination .btn {
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-lg);
}

.pagination .btn.active {
  background: var(--brand-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}

/* ===================================
   FOOTER
   ================================== */

/* ----------  Footer Polish  ---------- */
.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-16);
    padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
    position: relative;
}

/* Add decorative line before footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 10vw, 100px);
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: var(--radius-full);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-10);
    margin-bottom: var(--space-8);
}

.footer-section {
    max-width: 320px;
}

.footer-section h4 {
    color: var(--brand-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    position: relative;
}

/* Add decorative underline to footer headings */
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--brand-secondary);
    border-radius: var(--radius-full);
}

.footer-description {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
    font-size: var(--font-size-sm);
}

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

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    padding: var(--space-1) 0;
    border-radius: var(--radius-base);
}

.footer-links a:hover {
    color: var(--brand-primary);
    transform: translateX(6px);
    padding-left: var(--space-2);
    background: rgba(59, 130, 246, 0.05);
}

.footer-links a i {
    width: 18px;
    text-align: center;
    opacity: 0.8;
}

.footer-description{margin-top:var(--space-3)}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-6);
    margin-top: var(--space-8);
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--brand-primary);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-links a {
    color: var(--color-text-tertiary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-primary);
    transition: width var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--brand-primary);
}

.footer-bottom-links a:hover::after {
    width: 100%;
}
@media(max-width:640px){
  .footer-content{gap:var(--space-6)}
  .footer-section{max-width:none}
  .footer-bottom-content{flex-direction:column;align-items:center}
  .footer-bottom-links{gap:var(--space-4)}
}

.copyright p {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
    margin: 0;
}
.footer-logo .logo-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.footer-logo .logo-text i {
    font-size: var(--font-size-2xl);
}
/* ADDED: Logo Text for CSS-based Logo */
.logo-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.logo-text i {
  font-size: var(--font-size-2xl);
}

/* ADDED: Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: var(--z-fixed);
     visibility: hidden;
  opacity: 0;
  transition:
    visibility 0s linear 300ms,
    opacity 300ms ease-out;
    opacity: 0;
    box-shadow: var(--shadow-lg);
    font-size: var(--font-size-lg);
}

.back-to-top:hover {
    background: var(--brand-secondary);
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.back-to-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
     visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}


/* ===================================
   ATTRACTIVE AFFILIATE DISCLOSURE NOTICE
   ================================== */

#affiliateNotice {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    z-index: var(--z-toast);
    padding: 0;
    opacity: 0;
    transform: translateY(100%) scale(0.95);
    transition: all var(--transition-slow);
    overflow: hidden;
    display: block;
}

/* Add gradient border effect */
#affiliateNotice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary), var(--brand-accent));
}

#affiliateNotice.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#affiliateNotice.auto-fade {
    opacity: 0.7;
    transform: scale(0.98);
}

#affiliateNotice.hide {
    opacity: 0;
    transform: translateY(100%) scale(0.9);
}

.affiliate-notice-content {
    padding: var(--space-5) var(--space-6);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    position: relative;
}

/* Add decorative icon */
.affiliate-notice-content::before {
    content: '📢';
    font-size: var(--font-size-xl);
    flex-shrink: 0;
    margin-top: var(--space-1);
}

.affiliate-notice-content p {
    flex: 1;
    margin: 0;
    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
    padding-right: var(--space-2);
}

.affiliate-notice-content strong {
    color: var(--brand-primary);
    font-weight: var(--font-weight-bold);
}

.close-notice {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--brand-danger);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
    position: relative;
    overflow: hidden;
}

.close-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.3s;
}

.close-notice:hover::before {
    left: 100%;
}

.close-notice:hover {
    background: #dc2626;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Responsive Design for Affiliate Notice */
@media (max-width: 640px) {
    #affiliateNotice {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    
    .affiliate-notice-content {
        padding: var(--space-4);
        gap: var(--space-3);
    }
    
    .close-notice {
        width: 28px;
        height: 28px;
    }
}


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

/* Newsletter signup */
.newsletter-signup {
    margin-bottom: var(--space-4);
}

.notification-signup {
    margin-top: var(--space-4);
}

/* ===================================
   LOADING STATES
   ================================== */

.loading {
  opacity: 0.6;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-background-secondary),
    var(--color-background-tertiary),
    var(--color-background-secondary)
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-base);
}

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

/* ===================================
   PLATFORM COLORS
   ================================== */

.platform-amazon { background-color: var(--platform-amazon); }
.platform-flipkart { background-color: var(--platform-flipkart); }
.platform-myntra { background-color: var(--platform-myntra); }
.platform-ajio { background-color: var(--platform-ajio); }
.platform-nykaa { background-color: var(--platform-nykaa); }
.platform-meesho { background-color: var(--platform-meesho); }
.platform-tata { background-color: var(--platform-tata); }

/* ===================================
   UTILITY CLASSES
   ================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-tertiary); }
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--brand-primary);
  color: var(--color-text-inverse);
  padding: 8px 16px;
  text-decoration: none;
  border-radius: var(--radius-base);
  z-index: var(--z-tooltip);
  transition: top 0.3s;
  font-size: var(--font-size-sm);
}

.skip-link:focus {
  top: 6px;
}
/* logical padding helpers */
.p-inline-sm { padding-inline: var(--space-2); }
.p-inline-md { padding-inline: var(--space-4); }
.p-block-sm  { padding-block: var(--space-2); }
.p-block-md  { padding-block: var(--space-4); }

/* ===================================
   RESPONSIVE DESIGN
   ================================== */

/* Mobile Navigation */
@media (max-width: 768px) {
    .footer {
        padding: var(--space-12) 0 var(--space-4) 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }
    
    .footer-section {
        max-width: none;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
    }
    
    .footer-bottom-links {
        order: -1;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-4);
    }
    
    .social-links {
        justify-content: center;
        margin: var(--space-4) 0;
    }
    
    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: var(--space-6);
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
}

/* ===================================
   ANIMATIONS & INTERACTIONS
   ================================== */

/* Animation for deal cards */
@media (prefers-reduced-motion: no-preference) {
  .deal-card {
    animation: fade-in-up 0.6s ease-out backwards;
  }

  .deal-card:nth-child(1) { animation-delay: 0.1s; }
  .deal-card:nth-child(2) { animation-delay: 0.2s; }
  .deal-card:nth-child(3) { animation-delay: 0.3s; }
  .deal-card:nth-child(4) { animation-delay: 0.4s; }
  .deal-card:nth-child(5) { animation-delay: 0.5s; }
  .deal-card:nth-child(6) { animation-delay: 0.6s; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   ACCESSIBILITY & HIGH CONTRAST
   ================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-border: currentColor;
    --shadow-base: 0 0 0 1px currentColor;
    --shadow-md: 0 0 0 2px currentColor;
    --shadow-lg: 0 0 0 3px currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-slower: 0ms;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
   .liked-animation {
    animation-name: none !important;
  }
}

/* ===================================
   PRINT STYLES
   ================================== */

@media print {
  .header,
  .hero,
  .filter-bar,
  .sidebar,
  .btn,
  .footer {
    display: none !important;
  }

  .deal-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
/* ----------  Affiliate-Disclosure Notice  ---------- */
#affiliateNotice{
  position:fixed;
  bottom:1.25rem;          /* 20 px */
  left:1.25rem;
  right:1.25rem;
  z-index:1080;            /* above header & cards */
  max-width:32rem;         /* 512 px */
  margin:auto;
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-xl);
  padding:var(--space-4) var(--space-5);
  display:flex;
  align-items:flex-start;
  gap:var(--space-3);
  opacity:0;               /* start hidden – JS will fade in */
  transform:translateY(30%);
  transition:opacity .3s var(--transition-fast),
             transform .3s var(--transition-fast);
}

#affiliateNotice.show{     /* JS adds this class */
  opacity:1;
  transform:translateY(0);
}

#affiliateNotice p{
  flex:1;
  margin:0;
  color:var(--color-text-primary);
  font-size:var(--font-size-sm);
  line-height:var(--line-height-relaxed);
}

#affiliateNotice .close-notice{
  flex:0 0 32px;
  height:32px;
  border:none;
  border-radius:50%;
  background:var(--brand-danger);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .2s;
}
#affiliateNotice .close-notice:hover{background:#c82333}

/* Mobile tweak */
@media(max-width:480px){
  #affiliateNotice{left:0;right:0;bottom:.75rem;padding:var(--space-3)}
}

/* ===================================
   ADDITIONAL ATTRACTIVE ENHANCEMENTS
   ================================== */

/* Animated gradient text for important elements */
.gradient-text {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

/* Subtle animation for footer sections on scroll */
@media (prefers-reduced-motion: no-preference) {
    .footer-section {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease forwards;
    }
    
    .footer-section:nth-child(1) { animation-delay: 0.1s; }
    .footer-section:nth-child(2) { animation-delay: 0.2s; }
    .footer-section:nth-child(3) { animation-delay: 0.3s; }
    .footer-section:nth-child(4) { animation-delay: 0.4s; }
    .footer-section:nth-child(5) { animation-delay: 0.5s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow effect for interactive elements */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: all var(--transition-base);
}

.glow-on-hover:hover::after {
    width: 200px;
    height: 200px;
    opacity: 0.1;
}
 /* Navigation Dropdown Styles */
    .nav-dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-hover);
        list-style: none;
        padding: var(--space-sm);
        min-width: 220px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
        z-index: 1000;
        margin: 0;
    }

    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu .nav-link {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        padding: var(--space-sm) var(--space-md);
        border-radius: var(--radius);
        color: var(--text-primary);
        font-size: var(--text-sm);
        transition: var(--transition);
        text-decoration: none;
    }

    .dropdown-menu .nav-link:hover {
        background: var(--bg-secondary);
        color: var(--primary);
    }

    /* Active navigation states */
    .nav-link.active {
        color: var(--primary);
        font-weight: 600;
    }

    .dropdown-menu .nav-link.active {
        background: rgba(0, 123, 255, 0.1);
        color: var(--primary);
    }

    /* Skip Link for Accessibility */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 6px;
        background: var(--primary);
        color: white;
        padding: 8px 16px;
        text-decoration: none;
        border-radius: var(--radius);
        z-index: 1001;
        transition: top 0.3s;
        font-size: var(--text-sm);
    }

    .skip-link:focus {
        top: 6px;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: none;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        padding: var(--space-sm);
    }

    @media (max-width: 768px) {
        .nav-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-top: none;
            flex-direction: column;
            padding: var(--space-md);
            box-shadow: var(--shadow-hover);
        }

        .nav-menu.mobile-active {
            display: flex;
        }

        .nav-menu li {
            width: 100%;
            margin-bottom: var(--space-sm);
        }

        .nav-dropdown .dropdown-menu {
            position: static;
            opacity: 1;
            visibility: visible;
            transform: none;
            box-shadow: none;
            border: none;
            background: var(--bg-secondary);
            margin-top: var(--space-sm);
        }

        .mobile-menu-toggle {
            display: block;
        }

        .header-content {
            position: relative;
        }
    }
