/* ==========================================
   AVADH BUSINESS COMMUNITY PREMIUM DESIGN SYSTEM (2.0)
   ========================================== */

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

.admin-notice {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  width: fit-content;
}

[data-theme="dark"] .admin-notice {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
}

:root {
  /* Brand Colors */
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;
  --primary-200: #c7d2fe;
  --primary-300: #a5b4fc;
  --primary-400: #818cf8;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-800: #3730a3;
  --primary-900: #312e81;

  --accent-50: #fffbeb;
  --accent-100: #fef3c7;
  --accent-200: #fde68a;
  --accent-300: #fcd34d;
  --accent-400: #fbbf24;
  --accent-500: #f59e0b;
  --accent-600: #d97706;

  /* Neutrals & UI */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* State */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  --gradient-text: linear-gradient(to right, #4f46e5, #9333ea);
  --accent-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 15px rgba(99, 102, 241, 0.3);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
:root,
[data-theme="light"] {
  --bg-primary: #f8fafc;
  /* Slightly duller, more premium feel */
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-glass-border: rgba(0, 0, 0, 0.05);
  --text-primary: #000000;
  /* ABSOLUTE BLACK */
  --text-secondary: #111827;
  /* VERY DARK GRAY/BLACK */
  --text-tertiary: #334155;
  /* DARKER TERTIARY */
  --border-color: rgba(0, 0, 0, 0.12);
  --card-bg: #ffffff;
  /* Pure white */
  --surface-hover: rgba(0, 0, 0, 0.06);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #121214;
  /* Less intense black */
  --bg-secondary: #1a1a1e;
  --bg-tertiary: #2a2a2e;
  --bg-glass: rgba(18, 18, 20, 0.75);
  --bg-glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #e2e8f0;
  /* Less bright white */
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --border-color: #2a2a2e;
  --card-bg: #1a1a1e;
  --surface-hover: #26262a;
}

/* System Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #121214;
    --bg-secondary: #1a1a1e;
    --bg-tertiary: #2a2a2e;
    --bg-glass: rgba(18, 18, 20, 0.75);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --border-color: #2a2a2e;
    --card-bg: #1a1a1e;
    --surface-hover: #26262a;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-600);
}

/* Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

.section {
  padding: var(--space-3xl) 0;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

.gap-sm {
  gap: var(--space-sm);
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary-500);
  border: 2px solid var(--primary-200);
}

.btn-outline:hover {
  border-color: var(--primary-500);
  background: rgba(99, 102, 241, 0.05);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-disabled {
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
  border: 1px solid var(--border-color);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-circle {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -1px;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.logo-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-menu {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.navbar-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--primary-500);
}

/* Theme Switcher */
.theme-switcher {
  position: relative;
}

.theme-btn {
  background: var(--bg-tertiary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  min-width: 150px;
  box-shadow: var(--shadow-xl);
  display: none;
  z-index: 1001;
}

.theme-dropdown.active {
  display: block;
  animation: fadeUp 0.2s ease-out;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border: none;
  background: none;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  text-align: left;
}

.theme-option:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.theme-option.active {
  background: var(--primary-50);
  color: var(--primary-600);
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--space-3xl) 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.15) 0%, rgba(124, 58, 237, 0.08) 50%, transparent 80%);
  filter: blur(80px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-btns {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.container-wide {
  max-width: 1400px;
}

.text-center {
  text-align: center;
}

.mb-xs {
  margin-bottom: var(--space-xs);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--primary-100);
  /* Premium accent line */
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* Image Frame */
.card-img-wrapper {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 8px;
  /* The "Frame" effect */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
}


/* Search Page Layout */
.search-page-container {
  padding: var(--space-xl) 0;
  min-height: calc(100vh - 80px);
}

.search-sidebar {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-search-box {
  position: relative;
  margin-bottom: var(--space-xl);
}

.sidebar-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: inherit;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
}

.filter-section {
  margin-bottom: var(--space-xl);
}

.filter-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.filter-select {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
}

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

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.filter-checkbox input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  position: relative;
}

.filter-checkbox input:checked~.checkmark {
  background: var(--primary-500);
  border-color: var(--primary-500);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-checkbox input:checked~.checkmark:after {
  display: block;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.search-main {
  flex: 1;
}

/* Results Card Overrides */
.search-main .card {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-main .card-img-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 10px;
  /* Frame for search results too */
  background: var(--bg-secondary);
}

.search-main .card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.search-main .card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  width: fit-content;
}

.search-main .card h4 {
  text-align: left;
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.search-main .card p {
  text-align: left;
  margin-bottom: var(--space-lg);
  font-size: 0.9rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: auto;
}

/* AI Floating Button (Search Page) */
.ai-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: #000;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Responsive */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }

  .navbar-menu.active {
    display: flex;
  }

  .search-page-container .flex {
    flex-direction: column;
  }

  .search-sidebar {
    width: 100%;
    position: static;
    margin-bottom: var(--space-lg);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero {
    padding: var(--space-xl) 0;
    min-height: auto;
  }
}

/* Slider */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px;
  /* Premium Frame */
  aspect-ratio: 16 / 9;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all var(--transition-base);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 24px;
}

.next-btn {
  right: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-base);
}

.dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.contact-card {
  background: var(--bg-tertiary);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.contact-card:hover {
  border-color: var(--primary-400);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .slider-container {
    aspect-ratio: 4 / 3;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .prev-btn {
    left: 12px;
  }

  .next-btn {
    right: 12px;
  }
}

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary-500);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fadeIn 0.3s ease-out;
}

.modal.active {
  display: flex !important;
}

.modal-content {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.btn-close:hover {
  color: var(--error);
  transform: rotate(90deg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.form-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-helper {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

/* File Input Styling */
input[type="file"]::file-selector-button {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  margin-right: 1rem;
  transition: all var(--transition-fast);
}

input[type="file"]::file-selector-button:hover {
  background: var(--surface-hover);
}

/* Image Preview Grid */
#imagePreview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-preview {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.remove-preview:hover {
  background: var(--error);
  transform: scale(1.1);
}

/* Products Feature Styles */
.products-section {
  margin-top: var(--space-2xl);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-image-wrapper {
  aspect-ratio: 4/3;
  width: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

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

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-300);
}

.product-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  flex: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-500);
  background: var(--primary-50);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
}

[data-theme="dark"] .product-price {
  background: rgba(99, 102, 241, 0.15);
}

.product-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Modal Enhancements */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: all var(--transition-base);
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.modal-content {
  background: var(--card-bg);
  padding: var(--space-xl);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  animation: modalIn var(--transition-base);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Floating Cart Bar (Blinkit Style) */
.floating-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-top: 2px solid var(--primary-500);
  padding: var(--space-md);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  z-index: 999;
  transform: translateY(0);
  transition: transform var(--transition-base);
  animation: slideUp 0.3s ease-out;
}

.floating-cart-bar.hidden {
  transform: translateY(150%);
  pointer-events: none;
}

.cart-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-divider {
  color: var(--text-tertiary);
}

@keyframes slideUp {
  from {
    transform: translateY(150%);
  }

  to {
    transform: translateY(0);
  }
}

/* Quick Add Button on Product Cards */
.product-add-btn {
  background: var(--primary-500);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-add-btn:hover {
  background: var(--primary-600);
  transform: scale(1.05);
}

.product-add-btn:active {
  transform: scale(0.95);
}

/* Checkout Modal */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-lg);
}

.checkout-modal.hidden {
  display: none;
}

.checkout-content {
  background: var(--card-bg);
  border-radius: var(--radius-2xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl);
  box-shadow: var(--shadow-xl);
  animation: modalIn var(--transition-base);
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-name {
  font-weight: 600;
  flex: 1;
}

.order-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 var(--space-md);
}

.qty-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  background: var(--primary-500);
  color: white;
  border-color: var(--primary-500);
}

.order-item-price {
  font-weight: 700;
  color: var(--primary-500);
  min-width: 80px;
  text-align: right;
}

.order-total {
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  margin-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
}

.order-total-label {
  color: var(--text-secondary);
}

.order-total-amount {
  color: var(--primary-500);
  font-size: 1.5rem;
}

.logo-img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.5rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  background: var(--primary-50);
  color: var(--primary-600);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--primary-100);
}

[data-theme="dark"] .verified-badge {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Document Card Premium */
.document-card-premium {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
  min-width: 280px;
  flex: 1;
  max-width: 400px;
  box-shadow: var(--shadow-sm);
}

.document-card-premium:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-300);
}

.doc-icon {
  width: 48px;
  height: 48px;
  background: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.doc-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doc-name {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
}

.doc-size {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.doc-arrow {
  color: var(--gray-300);
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.document-card-premium:hover .doc-arrow {
  transform: translateX(5px);
  color: var(--primary-500);
}

[data-theme="dark"] .doc-icon {
  background: rgba(239, 68, 68, 0.1);
}

/* Contact Grid Brochure Card */
.accent-card {
  border-left: 4px solid var(--accent-500) !important;
  background: linear-gradient(to right, var(--card-bg), var(--bg-secondary)) !important;
}

.download-link {
  color: var(--accent-600) !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.download-link:hover {
  color: var(--accent-500) !important;
  transform: scale(1.02);
}

.highlight-glow {
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2) !important;
  animation: gentle-pulse 2s infinite ease-in-out;
}

@keyframes gentle-pulse {
  0% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
  }

  50% {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
  }

  100% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
  }
}

/* Business Description Box */
.description-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.description-box:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}

.description-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

.description-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.description-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* Catalog Download Section */
.catalog-section {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.catalog-section::after {
  content: '📄';
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 12rem;
  opacity: 0.1;
  transform: rotate(-15deg);
  pointer-events: none;
}

.catalog-content {
  flex: 1;
}

.catalog-section h2 {
  color: white;
  margin-bottom: var(--space-sm);
  font-size: 2rem;
}

.catalog-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-size: 1.1rem;
}

.catalog-download-btn {
  background: white;
  color: var(--primary-600);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.catalog-download-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: var(--primary-50);
  color: var(--primary-700);
}

.catalog-download-btn .icon {
  font-size: 1.5rem;
}

@media (max-width: 900px) {
  .catalog-section {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
  }

  .catalog-download-btn {
    width: 100%;
    justify-content: center;
  }
}