/* ==========================================================================
   ENAB STATION (محطة عنب) — Master Stylesheet
   Modern, Premium, Clean E-Commerce Platform
   ========================================================================== */

:root {
  /* Dark Theme (Default) - Deep obsidian, metallic slate, warm amber neon */
  --bg-base: #0a0e17;
  --bg-surface: #111724;
  --bg-surface-elevated: #182030;
  --bg-card: rgba(17, 23, 36, 0.85);
  --bg-card-hover: rgba(24, 32, 48, 0.95);
  --bg-glass: rgba(17, 23, 36, 0.65);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.5);
  --border-neon: rgba(245, 158, 11, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-amber: #f59e0b;
  --accent-amber-hover: #fbbf24;
  --accent-orange: #ea580c;
  --accent-glow: rgba(245, 158, 11, 0.22);

  --status-available: #10b981;
  --status-available-glow: rgba(16, 185, 129, 0.35);
  --status-unavailable: #64748b;
  
  --whatsapp-color: #25d366;
  --whatsapp-hover: #22bf5b;
  --whatsapp-glow: rgba(37, 211, 102, 0.25);
  --facebook-color: #1877f2;

  --header-bg: rgba(10, 14, 23, 0.85);
  --header-shadow: rgba(0, 0, 0, 0.4);

  --font-latin: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-focus: rgba(217, 119, 6, 0.5);
  --border-neon: rgba(217, 119, 6, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-amber: #d97706;
  --accent-amber-hover: #b45309;
  --accent-orange: #ea580c;
  --accent-glow: rgba(217, 119, 6, 0.15);

  --status-available: #059669;
  --status-available-glow: rgba(5, 150, 105, 0.25);
  --status-unavailable: #94a3b8;

  --header-bg: rgba(255, 255, 255, 0.9);
  --header-shadow: rgba(15, 23, 42, 0.06);
}

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

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

[dir="rtl"] {
  font-family: var(--font-arabic);
}

body {
  min-height: 100vh;
  background-color: var(--bg-base);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ==========================================================================
   Curved Header (Section 02)
   Distinctive modern appearance with smooth curved shape from both sides
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 10px 30px -10px var(--header-shadow);
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Logo & Discreet Admin Gear Icon */
.header-brand-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-logo img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--accent-amber);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.05);
}

.brand-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-weight: 900;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-title {
  background: linear-gradient(135deg, #0f172a 40%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
}

/* Discreet Admin Settings Gear Icon (Small, non-intrusive) */
.admin-gear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  opacity: 0.4;
  transition: opacity var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.admin-gear-btn:hover {
  opacity: 1;
  color: var(--accent-amber);
  transform: rotate(45deg);
}

.admin-gear-btn svg {
  width: 14px;
  height: 14px;
}

/* Global Search Input */
.header-search {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.header-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

[dir="rtl"] .header-search-icon {
  left: auto;
  right: 0.85rem;
}

.header-search input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.4rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

[dir="rtl"] .header-search input {
  padding: 0.55rem 2.4rem 0.55rem 1rem;
}

.header-search input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Header Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

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

.nav-link.used-link {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link.used-link:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--accent-amber);
}

/* Header Actions (Language, Theme, Share, Mobile) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
  background: var(--bg-surface-elevated);
}

.lang-btn {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 0 0.6rem;
  width: auto;
  min-width: 44px;
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   Home Page Components (Section 03)
   Clean, simple. NO individual product cards.
   1. Hero Banner
   2. Category Cards
   3. Children's Banner
   ========================================================================== */
.home-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.8) 55%, rgba(10, 14, 23, 0.35) 100%);
  display: flex;
  align-items: center;
}

[dir="rtl"] .hero-overlay {
  background: linear-gradient(270deg, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.8) 55%, rgba(10, 14, 23, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 3rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 1.85rem;
}

.btn-primary-neon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0b0f17;
  background: linear-gradient(135deg, var(--accent-amber) 0%, #f97316 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.btn-primary-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

/* Category Cards Grid (Section 03.2) */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.category-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  text-decoration: none;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 1;
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.2) 0%, rgba(10, 14, 23, 0.75) 60%, rgba(10, 14, 23, 0.95) 100%);
  z-index: 2;
  transition: background var(--transition-fast);
}

.category-card-content {
  position: relative;
  z-index: 3;
}

.category-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  margin-bottom: 0.85rem;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.4;
  opacity: 0.85;
}

/* Category Subtle Neon Hover Effect */
.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-neon);
  box-shadow: 0 12px 30px -5px rgba(245, 158, 11, 0.22);
}

.category-card:hover .category-card-bg {
  transform: scale(1.06);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.1) 0%, rgba(10, 14, 23, 0.65) 50%, rgba(10, 14, 23, 0.92) 100%);
}

/* Children's Tech Banner (Section 03.3) */
.children-banner {
  position: relative;
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

.children-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.82) 50%, rgba(10, 14, 23, 0.4) 100%);
  display: flex;
  align-items: center;
}

[dir="rtl"] .children-banner-overlay {
  background: linear-gradient(270deg, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.82) 50%, rgba(10, 14, 23, 0.4) 100%);
}

.children-banner-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 2.5rem;
}

.children-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.children-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.children-subtitle {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.btn-secondary-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: #059669;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-secondary-emerald:hover {
  background: #10b981;
  transform: translateY(-2px);
}

/* ==========================================================================
   Product Cards & Grid (Section 04 & 05)
   Stylish, clean, rounded corners, long enough to display specs clearly
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.35);
}

.product-image-box {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--bg-surface-elevated);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-image-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

.product-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.status-badge.available {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.unavailable {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
}

.status-badge.available .status-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-badge.unavailable .status-dot {
  background: #94a3b8;
}

.used-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.product-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  text-decoration: none;
}

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

/* Specifications Breakdown */
.product-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.spec-item {
  display: flex;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 0.3rem;
}

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

.spec-key {
  font-weight: 600;
  color: var(--text-muted);
  width: 38%;
  flex-shrink: 0;
}

.spec-val {
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
}

/* Price & Action Buttons */
.product-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.price-tag {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-amber);
}

.currency-sym {
  font-size: 1rem;
  font-weight: 600;
  margin-inline-end: 0.2rem;
}

.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.btn-whatsapp-inquire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--whatsapp-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-whatsapp-inquire:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 4px 15px var(--whatsapp-glow);
}

.btn-card-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.btn-card-share:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* ==========================================================================
   Product Details Page (Section 08)
   Spacious, clear specs, large image, Facebook & WhatsApp share
   ========================================================================== */
.product-details-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent-amber);
}

.product-details-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.details-image-gallery {
  position: relative;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  border: 1px solid var(--border-subtle);
}

.details-image-gallery img {
  max-height: 380px;
  object-fit: contain;
}

.details-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.details-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.details-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
}

.details-price-badge {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-amber);
}

.details-description {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.details-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.details-specs-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.details-specs-table th {
  text-align: start;
  padding: 0.75rem 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
  width: 35%;
}

.details-specs-table td {
  padding: 0.75rem 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.details-actions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.details-actions-row .btn-whatsapp-inquire {
  flex: 1;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* ==========================================================================
   Used Products Page & Category Filters (Section 09)
   ========================================================================== */
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
}

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

/* Empty State Component (Section 04) */
.empty-state-box {
  text-align: center;
  padding: 4.5rem 2rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 600px;
  margin: 2rem auto;
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  margin-bottom: 1.25rem;
}

.empty-state-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.empty-state-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Footer & Social Media (Section 12)
   Instagram, Telegram, Facebook, YouTube, TikTok managed from Admin
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  position: relative;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 420px;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

/* Social Icons Row */
.social-icons-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.social-icon-btn.instagram:hover {
  background: #e1306c;
  border-color: #e1306c;
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.social-icon-btn.telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
}

.social-icon-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-icon-btn.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.social-icon-btn.tiktok:hover {
  background: #000000;
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Modals & Share Dialogs (Section 06 & 11)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity var(--transition-fast);
}

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

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.share-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.share-btn.share-whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp-color);
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.share-btn.share-whatsapp:hover {
  background: var(--whatsapp-color);
  color: #ffffff;
}

.share-btn.share-facebook {
  background: rgba(24, 119, 242, 0.12);
  color: var(--facebook-color);
  border: 1px solid rgba(24, 119, 242, 0.3);
}

.share-btn.share-facebook:hover {
  background: var(--facebook-color);
  color: #ffffff;
}

.share-btn.share-copy {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.share-btn.share-copy:hover {
  border-color: var(--border-focus);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

[dir="rtl"] .toast-container {
  right: auto;
  left: 2rem;
}

.toast {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-focus);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

/* ==========================================================================
   Admin Dashboard Styles (Section 13)
   First-class management center
   ========================================================================== */
.admin-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-title-group h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.admin-nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.5rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  width: 100%;
}

.admin-tab-btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.admin-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.admin-tab-btn.active {
  color: #0b0f17;
  background: var(--accent-amber);
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* Stats Overview Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  flex-shrink: 0;
}

.stat-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

/* Admin Form Controls & Image Upload System (Section 13.3) */
.admin-card-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: flex-end;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-form-group.full-width {
  grid-column: 1 / -1;
}

.admin-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-input, .admin-select, .admin-textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast);
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
  border-color: var(--border-focus);
}

.admin-textarea {
  min-height: 90px;
  resize: vertical;
}

/* Image Upload Component */
.image-upload-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  background: var(--bg-surface-elevated);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
}

.image-preview-thumb {
  width: 100px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.upload-file-input {
  display: none;
}

.upload-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-trigger-btn:hover {
  border-color: var(--border-focus);
  background: var(--bg-base);
}

/* Admin Table */
.admin-table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  text-align: start;
  padding: 0.85rem 1rem;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--bg-surface-elevated);
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   Responsive Adaptations (Section 18)
   ========================================================================== */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-details-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .header-search {
    display: none; /* Accessible via search modal or drawer on mobile */
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .hero-banner {
    min-height: 340px;
  }
  .hero-content {
    padding: 2rem 1.5rem;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .children-banner-content {
    padding: 1.75rem 1.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}
