/* ============================================
   DUMPHANDEL ZANDVLIET — Design System
   Military/Tactical theme with modern aesthetics
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary palette - Dark military */
  --color-bg-dark: #0d1117;
  --color-bg-main: #161b22;
  --color-bg-card: #1c2333;
  --color-bg-card-hover: #222d3f;
  --color-bg-surface: #21262d;
  --color-bg-elevated: #2a3140;

  /* Accent colors */
  --color-accent: #d4a843;
  --color-accent-hover: #e6be5a;
  --color-accent-dark: #b08d2f;
  --color-accent-glow: rgba(212, 168, 67, 0.15);
  --color-olive: #4a6741;
  --color-olive-light: #5c8a50;
  --color-olive-dark: #3a5234;

  /* Text */
  --color-text: #e6edf3;
  --color-text-secondary: #8b949e;
  --color-text-muted: #6e7681;
  --color-text-accent: #d4a843;
  --color-text-on-accent: #0d1117;

  /* Borders */
  --color-border: #30363d;
  --color-border-muted: #21262d;
  --color-border-accent: rgba(212, 168, 67, 0.3);

  /* Status */
  --color-success: #3fb950;
  --color-warning: #d29922;
  --color-danger: #f85149;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(212, 168, 67, 0.1);

  /* Glass */
  --glass-bg: rgba(28, 35, 51, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 12px;

  /* Typography */
  --font-body: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Container */
  --container-max: 1280px;
  --container-padding: 1.5rem;

  /* Header */
  --header-height: 72px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-dark);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Glass Card --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(13, 17, 23, 0.98);
  box-shadow: var(--shadow-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-lg);
}

/* Logo */
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-bg-dark);
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--color-accent);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.85rem;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
  background: var(--color-bg-surface);
}

.nav-link .chevron {
  font-size: 0.6rem;
  transition: transform var(--transition-fast);
}

.nav-item:hover .chevron {
  transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: all var(--transition-base);
  z-index: 100;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.mega-menu-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.mega-menu-section h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.mega-menu-list a {
  display: block;
  padding: 0.35rem 0;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.mega-menu-list a:hover {
  color: var(--color-text);
  padding-left: 6px;
}

/* Header Search */
.header-search {
  position: relative;
  flex-shrink: 0;
}

.search-input {
  width: 220px;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-size: 0.85rem;
  transition: all var(--transition-base);
  outline: none;
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-input:focus {
  width: 280px;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--header-height);
  overflow: hidden;
  background: linear-gradient(135deg, #1a2e1a 0%, #0d1117 40%, #1a1a2e 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(74, 103, 65, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(212, 168, 67, 0.08) 0%, transparent 50%);
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: var(--space-4xl) var(--container-padding);
  animation: fadeUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  background: var(--color-accent-glow);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-text-on-accent);
  box-shadow: 0 2px 8px rgba(212, 168, 67, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.35);
  color: var(--color-text-on-accent);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
  color: var(--color-accent);
}

/* ============================================
   USP BAR
   ============================================ */
.usp-bar {
  background: var(--color-bg-main);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-lg) 0;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.usp-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
}

.usp-icon {
  font-size: 1.3rem;
  color: var(--color-accent);
}

.usp-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.section-dark {
  background: var(--color-bg-dark);
}

.section-main {
  background: var(--color-bg-main);
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.category-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  background: var(--color-bg-card-hover);
}

.category-card-icon {
  font-size: 2.2rem;
  margin-bottom: var(--space-md);
  display: block;
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.category-card p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
}

.product-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1a1f2e;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-md);
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.product-card-category {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-olive-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.product-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-desc {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-accent);
}

.product-card-price .currency {
  font-size: 0.8rem;
  font-weight: 600;
}

.product-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  font-size: 1rem;
}

.product-card-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-on-accent);
}

/* ============================================
   PRODUCT TABS (Homepage)
   ============================================ */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.product-tab {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product-tab:hover,
.product-tab.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
}

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.product-detail {
  margin-top: var(--header-height);
  padding: var(--space-2xl) 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.product-image-main {
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.product-image-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info h1 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
}

.product-price-large {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.product-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.product-sizes {
  margin-bottom: var(--space-xl);
}

.product-sizes label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.size-options {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.size-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-btn:hover,
.size-btn.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
  color: var(--color-accent);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs .separator {
  color: var(--color-text-muted);
}

.breadcrumbs .current {
  color: var(--color-text-secondary);
}

/* ============================================
   CATEGORY PAGE
   ============================================ */
.category-page {
  margin-top: var(--header-height);
  padding: var(--space-xl) 0 var(--space-4xl);
}

.category-header {
  margin-bottom: var(--space-xl);
}

.category-header h1 {
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}

.category-meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.category-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl);
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-lg));
}

.sidebar-section {
  margin-bottom: var(--space-xl);
}

.sidebar-section h3 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-list a {
  display: block;
  padding: 0.4rem 0;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.sidebar-list a:hover,
.sidebar-list a.active {
  color: var(--color-accent);
  padding-left: 6px;
}

.sidebar-list .count {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

/* Sort bar */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.sort-bar .results-count {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.sort-select {
  padding: 0.4rem 0.8rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
}

.sort-select:focus {
  border-color: var(--color-accent);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 var(--space-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover,
.page-btn.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}

.search-overlay.active {
  display: flex;
}

.search-modal {
  width: 90%;
  max-width: 640px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeUp 0.3s ease-out;
}

.search-modal-input {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1.1rem;
  outline: none;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: var(--space-sm);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: var(--color-bg-surface);
}

.search-result-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--color-bg-surface);
  flex-shrink: 0;
}

.search-result-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.search-result-info p {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 700;
}

.search-empty {
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-main);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer-section h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children>* {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stagger-children.visible>*:nth-child(1) {
  transition-delay: 0ms;
}

.stagger-children.visible>*:nth-child(2) {
  transition-delay: 60ms;
}

.stagger-children.visible>*:nth-child(3) {
  transition-delay: 120ms;
}

.stagger-children.visible>*:nth-child(4) {
  transition-delay: 180ms;
}

.stagger-children.visible>*:nth-child(5) {
  transition-delay: 240ms;
}

.stagger-children.visible>*:nth-child(6) {
  transition-delay: 300ms;
}

.stagger-children.visible>*:nth-child(7) {
  transition-delay: 360ms;
}

.stagger-children.visible>*:nth-child(8) {
  transition-delay: 420ms;
}

.stagger-children.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   LOADING / SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg,
      var(--color-bg-surface) 25%,
      var(--color-bg-elevated) 50%,
      var(--color-bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 500;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .category-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --container-padding: 1rem;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-lg);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .mega-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: var(--color-bg-surface);
    border-radius: var(--radius-sm);
    margin: var(--space-xs) 0;
    display: none;
  }

  .nav-item.expanded .mega-menu {
    display: block;
  }

  .mega-menu::before {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-search {
    display: none;
  }

  .hero {
    min-height: 380px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .product-tabs {
    gap: var(--space-xs);
  }

  .product-tab {
    font-size: 0.78rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usp-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   TELEGRAM BUTTONS
   ============================================ */

/* Product Detail — big CTA button */
.telegram-btn-product {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.8rem 2rem;
  margin-top: var(--space-xl);
  background: linear-gradient(135deg, #0088cc, #0077b5);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.telegram-btn-product:hover {
  background: linear-gradient(135deg, #0099dd, #0088cc);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.45);
}

.telegram-btn-product .telegram-icon {
  flex-shrink: 0;
}

/* Product Card — small icon button */
.telegram-card-btn {
  background: var(--color-bg-surface) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text-secondary) !important;
  text-decoration: none;
}

.telegram-card-btn:hover {
  background: #0088cc !important;
  border-color: #0088cc !important;
  color: #fff !important;
}

/* Floating Telegram Button (global) */
.telegram-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0088cc, #0077b5);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
  z-index: 500;
  transition: all var(--transition-base);
  text-decoration: none;
  animation: telegramPulse 3s ease-in-out infinite;
}

.telegram-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 136, 204, 0.6);
}

@keyframes telegramPulse {

  0%,
  100% {
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
  }

  50% {
    box-shadow: 0 4px 25px rgba(0, 136, 204, 0.7);
  }
}

@media (max-width: 768px) {
  .telegram-float {
    bottom: 1.2rem;
    left: 1.2rem;
    width: 48px;
    height: 48px;
  }
}