/* ============================================
   TEK MUTFAK — Design System
   Premium endüstriyel mutfak e-ticaret teması
   ============================================ */

:root {
  /* Color Palette — Navy + Copper (Premium Industrial) */
  --bg: #f7f8fa;
  --panel: #ffffff;
  --soft: #f0f2f5;
  --border: rgba(26, 35, 50, 0.08);
  --border-hover: rgba(26, 35, 50, 0.16);

  --accent: #b8860b;
  --accent-light: rgba(184, 134, 11, 0.10);
  --accent-hover: #a07608;
  --accent-glow: rgba(184, 134, 11, 0.15);

  --accent-2: #2563eb;

  --ink: #1a2332;
  --ink-secondary: #374151;
  --muted: #6b7280;
  --muted-light: #737d8c;

  --success: #059669;
  --error: #dc2626;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;

  /* Typography */
  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;

  /* Layout */
  --container: 1280px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  margin: 0;
}

h1 { font-size: var(--text-2xl); font-weight: 700; }
h2 { font-size: var(--text-xl); font-weight: 700; }
h3 { font-size: var(--text-md); font-weight: 600; }
h4 { font-size: var(--text-base); font-weight: 600; }

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

.muted { color: var(--muted); }

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */

.page-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-root .page {
  flex: 1;
}

.page {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto var(--space-3xl);
  padding: 0 var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* ============================================
   TOPBAR
   ============================================ */

.topbar {
  width: 100%;
  background: var(--ink);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.top-search {
  flex: 1;
  max-width: 400px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: var(--text-sm);
  transition: var(--transition);
}

.top-search::placeholder { color: rgba(255, 255, 255, 0.45); }
.top-search:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  outline: none;
}

.topbar .contacts {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-left: auto;
}

.topbar .contacts a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: var(--text-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.topbar .contacts a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   HEADER
   ============================================ */

header {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  position: sticky;
  top: 38px;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  height: 45px;
  width: auto;
  border-radius: var(--radius-sm);
  border: none;
}

/* Icon actions */
.icon-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  position: relative;
  font-size: 16px;
}

.icon-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  background: var(--panel);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--panel);
}

/* Hamburger menu button (mobile) */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.hamburger-line:nth-child(1) { top: 12px; }
.hamburger-line:nth-child(2) { top: 19px; }
.hamburger-line:nth-child(3) { top: 26px; }

.hamburger.active .hamburger-line:nth-child(1) {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  display: block;
  position: relative;
  flex: 1;
  min-width: 0;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.navbar-nav > li {
  position: relative;
}

.navbar-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}

.navbar-nav > li > a:hover {
  color: var(--ink);
  background: var(--soft);
  border-color: var(--border);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  padding-top: calc(var(--space-md) + 6px);
  display: none;
  z-index: 25;
  min-width: 420px;
  max-width: min(85vw, calc(100vw - 32px));
}

/* Invisible bridge to prevent hover gap */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

/* Prevent right-side overflow */
.dropdown:last-of-type .dropdown-menu,
.dropdown:nth-last-of-type(2) .dropdown-menu {
  left: auto;
  right: 0;
}

.dropdown-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-sm);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown.dropdown-open .dropdown-menu {
  display: block;
}

.dropdown-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dropdown-menu li a {
  display: block;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  font-size: var(--text-xs);
  line-height: 1.4;
  transition: var(--transition-fast);
}

.dropdown-menu li a:hover {
  color: var(--ink);
  background: var(--soft);
  border-color: var(--border);
}

.dropdown-menu .see-all {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: var(--accent-light);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-xs);
  transition: var(--transition-fast);
}

.dropdown-menu .see-all:hover {
  background: rgba(184, 134, 11, 0.16);
  color: var(--accent-hover);
}

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

.cta, .btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: var(--text-base);
  border: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: inherit;
}

.cta:hover, .btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--panel);
  border: 1px solid var(--border-hover);
  color: var(--ink);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: var(--transition);
  font-family: inherit;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

button.btn-ghost,
button.btn-primary,
button.cta {
  font: inherit;
  font-weight: 600;
}

.add-to-cart {
  width: 100%;
  height: 44px;
  font-size: var(--text-base);
}

/* ============================================
   HERO / STATS
   ============================================ */

.hero {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  align-items: center;
}

.hero h1 {
  margin: 0 0 var(--space-sm);
  font-size: var(--text-2xl);
  letter-spacing: -0.3px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.stat {
  background: var(--soft);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
}

.stat strong {
  display: block;
  font-size: var(--text-xl);
  color: var(--ink);
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--panel);
  aspect-ratio: 16 / 5;
}

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

.slider-slide {
  flex: 0 0 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--soft);
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-dots {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: var(--space-xs) var(--space-md);
  background: rgba(26, 35, 50, 0.6);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0;
}

.slider-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: var(--radius-full);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 35, 50, 0.5);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  transition: var(--transition-fast);
  font-size: var(--text-lg);
  opacity: 0;
}

.hero-slider:hover .slider-arrow {
  opacity: 1;
}

.slider-arrow:hover {
  background: rgba(26, 35, 50, 0.8);
}

.slider-arrow.prev { left: var(--space-md); }
.slider-arrow.next { right: var(--space-md); }

/* ============================================
   LAYOUT — SIDEBAR + MAIN
   ============================================ */

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
}

aside {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--muted-light) transparent;
}

.aside-title {
  margin: 0 0 var(--space-md);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--ink);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Sidebar categories */
.category {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.category button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-family: inherit;
}

.category button:hover {
  background: var(--soft);
  border-color: var(--border);
  color: var(--ink);
}

.category button.active {
  background: var(--accent-light);
  border-color: rgba(184, 134, 11, 0.25);
  color: var(--accent-hover);
  font-weight: 600;
}

.chip {
  background: var(--soft);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  color: var(--muted);
  border: 1px solid var(--border);
}

main {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

/* Side menu (aside navigation) */
.side-menu-title {
  margin: var(--space-sm) 0;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.side-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-menu > li > a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.side-menu > li > a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.side-menu > li > a:hover {
  background: var(--soft);
  border-color: var(--border);
}

.side-menu > li > a:hover::before {
  opacity: 1;
}

.side-menu ul {
  list-style: none;
  padding-left: calc(var(--space-lg) + 6px);
  margin: 2px 0 var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 2px solid var(--border);
  margin-left: var(--space-md);
}

.side-menu ul li a {
  display: block;
  padding: 5px var(--space-sm);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.side-menu ul li a:hover {
  color: var(--accent);
  background: var(--accent-light);
  border-color: rgba(184, 134, 11, 0.12);
}

/* ============================================
   TOOLBAR / FILTERS
   ============================================ */

.toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.toolbar input,
.toolbar select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hover);
  background: var(--panel);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-light);
}

.toolbar label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
}

/* Badges */
.badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.badges a { text-decoration: none; }

.badge {
  padding: 6px var(--space-md);
  border-radius: var(--radius-full);
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 600;
  display: inline-block;
}

/* ============================================
   PRODUCT GRID
   ============================================ */

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

/* Product Card */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
  font-weight: 600;
  font-size: var(--text-sm);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: var(--space-sm);
}

.thumb-placeholder {
  width: 64px;
  height: 64px;
  color: var(--muted-light);
}

.card .card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  flex: 1;
}

.card .card-body .tag {
  margin: 0;
  align-self: flex-start;
}

.card h3 {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-category {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.4;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.price {
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--ink);
}

.stock-pill {
  font-size: var(--text-xs);
  color: var(--success);
  font-weight: 600;
  white-space: nowrap;
}

.tag {
  background: var(--soft);
  border-radius: var(--radius-sm);
  padding: 3px var(--space-sm);
  font-size: var(--text-xs);
  color: var(--muted);
  border: 1px solid var(--border);
}

.pill {
  background: var(--accent-light);
  color: var(--accent-hover);
  border-radius: var(--radius-full);
  padding: 4px var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid rgba(184, 134, 11, 0.15);
}

.card .add-to-cart {
  width: auto;
  margin: 0 var(--space-md) var(--space-md);
  height: 40px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

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

.controls {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.pagination-pages {
  display: flex;
  gap: var(--space-xs);
}

.controls button,
.page-btn {
  background: var(--panel);
  border: 1px solid var(--border-hover);
  color: var(--ink);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
}

.page-btn {
  min-width: 36px;
  padding: var(--space-sm);
  text-align: center;
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.controls button:hover:not(:disabled),
.page-btn:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

.controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Empty state */
.empty {
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  color: var(--muted);
  background: var(--soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  grid-column: 1 / -1;
}

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

.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: #e2e8f0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--space-2xl);
}

.footer-block h4 {
  margin: 0 0 var(--space-md);
  color: #fff;
  font-size: var(--text-base);
  font-weight: 600;
}

.footer-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-block a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.footer-block a:hover {
  color: #fff;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-size: var(--text-md);
}

.footer-brand img {
  height: 36px;
  width: auto;
  border-radius: var(--radius-sm);
}

.footer-meta {
  color: rgba(255, 255, 255, 0.45);
  font-size: var(--text-sm);
  margin-top: var(--space-sm);
  line-height: 1.6;
}

.footer-meta a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-meta a:hover {
  color: #fff;
}

/* Payment Icons */
.payment-icons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  align-items: center;
}

.pay-icon {
  display: inline-flex;
  opacity: 0.85;
  transition: var(--transition-fast);
}

.pay-icon:hover {
  opacity: 1;
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
}

.footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ============================================
   TOAST
   ============================================ */

.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: var(--space-md) var(--space-xl) var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: calc(100vw - 32px);
}

.toast.visible {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 12px;
  height: 12px;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: var(--space-xs);
  margin-left: var(--space-sm);
  font-size: 16px;
  line-height: 1;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.toast-close:hover {
  color: #fff;
}

@keyframes toast-in {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ============================================
   CHAT WIDGET
   ============================================ */

.chat-launcher {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 300;
}

.chat-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: var(--transition);
}

.chat-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.chat-panel {
  position: fixed;
  bottom: 84px;
  right: var(--space-xl);
  width: 340px;
  max-width: calc(100% - 32px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 300;
}

.chat-panel.open { display: flex; }

.chat-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: var(--text-sm);
}

.chat-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 320px;
  overflow-y: auto;
}

.chat-msg {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  max-width: 85%;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.chat-msg.user {
  align-self: flex-end;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--ink);
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--ink);
  color: #fff;
}

.chat-msg.bot a { color: var(--accent); }

.chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-top: 1px solid var(--border);
  background: var(--soft);
}

.chat-input input {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hover);
  font-family: inherit;
  font-size: var(--text-sm);
}

.chat-input input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input button {
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}

.chat-input button:hover {
  background: var(--accent-hover);
}

/* ============================================
   RESPONSIVE — TABLET & MOBILE
   ============================================ */

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

  aside {
    position: relative;
    top: 0;
    max-height: none;
  }

  .navbar-nav {
    display: none;
  }

  .hamburger {
    display: grid;
  }

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

@media (max-width: 768px) {
  .topbar-inner {
    padding: var(--space-sm) var(--space-lg);
    flex-wrap: wrap;
  }

  .top-search {
    max-width: none;
    flex: 1 1 100%;
    order: 2;
  }

  .topbar .contacts {
    flex: 1 1 100%;
    order: 1;
    justify-content: center;
    gap: var(--space-xs);
  }

  /* Hide social/email links, keep phone + WhatsApp */
  .topbar .contacts .contact-extra {
    display: none;
  }

  header {
    padding: var(--space-sm) var(--space-lg);
    top: 0;
    position: sticky;
  }

  .brand-logo {
    height: 38px;
  }

  .hero-slider {
    aspect-ratio: 16 / 7;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
  }

  .card h3 {
    font-size: var(--text-xs);
  }

  .card .add-to-cart {
    height: 36px;
    font-size: var(--text-xs);
    margin: 0 var(--space-sm) var(--space-sm);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Touch-friendly: make buttons minimum 44px */
  .icon-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-nav__drawer li a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 0 var(--space-lg) var(--space-lg);
    gap: var(--space-lg);
  }

  .topbar .contacts {
    display: none;
  }

  .topbar-inner {
    padding: var(--space-sm) var(--space-md);
  }

  header {
    padding: var(--space-sm) var(--space-md);
  }

  .hero-slider {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
  }

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

  .card .thumb {
    aspect-ratio: 1 / 1;
  }

  .card .card-body {
    padding: var(--space-sm);
  }

  .card-category { display: none; }

  .price { font-size: var(--text-sm); }

  .toolbar {
    grid-template-columns: 1fr;
  }

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

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-pages { display: none; }

  .controls button { flex: 1; min-width: 0; }

  /* Sidebar: collapse to horizontal scroll on smallest screens */
  aside {
    padding: var(--space-md);
  }

  .scroll-top {
    width: 36px;
    height: 36px;
    bottom: 72px;
    right: var(--space-md);
  }

  .chat-launcher {
    right: var(--space-md);
    bottom: var(--space-md);
  }

  .chat-toggle {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

/* ============================================
   MOBILE NAV DRAWER
   ============================================ */

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
}

.mobile-nav.open { display: block; }

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.mobile-nav__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 80vw;
  height: 100%;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  overflow-y: auto;
  animation: drawer-in 0.25s ease;
}

@keyframes drawer-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-nav__drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav__drawer li a {
  display: block;
  padding: var(--space-md) var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-base);
  transition: var(--transition-fast);
}

.mobile-nav__drawer li a:hover {
  background: var(--soft);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */

.scroll-top {
  position: fixed;
  bottom: 84px;
  right: var(--space-xl);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: none;
  place-items: center;
  z-index: 50;
  transition: var(--transition);
  color: var(--ink);
  font-size: var(--text-md);
}

.scroll-top:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.scroll-top.visible { display: grid; }

/* ============================================
   ACCESSIBILITY — prefers-reduced-motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* ============================================
   MOBILE FORM FULL WIDTH
   ============================================ */

@media (max-width: 768px) {
  .filters {
    flex-direction: column;
  }
  .filters label,
  .filters input,
  .filters select,
  .filters button {
    width: 100%;
    min-width: 0;
  }
  .cat-hero .filters input[type="search"],
  .cat-hero .filters input[type="number"] {
    width: 100%;
  }
}

/* ============================================
   MOBILE NAV SUBCATEGORIES (ACCORDION)
   ============================================ */

.mobile-nav__drawer li.has-sub > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav__drawer li.has-sub > a::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.mobile-nav__drawer li.has-sub.open > a::after {
  transform: rotate(-135deg);
}

.mobile-nav__drawer .sub-menu {
  display: none;
  padding-left: var(--space-lg);
  border-left: 2px solid var(--border);
  margin-left: var(--space-md);
  margin-top: 2px;
}

.mobile-nav__drawer li.has-sub.open > .sub-menu {
  display: flex;
}

.mobile-nav__drawer .sub-menu li a {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--ink-secondary);
  min-height: 40px;
  padding: var(--space-xs) var(--space-md);
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--muted);
  padding: var(--space-md) 0;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .bc-sep {
  color: var(--muted-light);
  font-size: var(--text-xs);
  user-select: none;
}

.breadcrumb .bc-current {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================
   SKELETON LOADING
   ============================================ */

.skeleton-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.skeleton-card .sk-thumb {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  position: relative;
  overflow: hidden;
}

.skeleton-card .sk-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  animation: sk-shimmer 1.5s infinite;
}

.skeleton-card .sk-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sk-line {
  height: 12px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  position: relative;
  overflow: hidden;
}

.sk-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  animation: sk-shimmer 1.5s infinite;
}

.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
.sk-line.w80 { width: 80%; }
.sk-line.h16 { height: 16px; }

@keyframes sk-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   CONTRAST FIXES (WCAG AA)
   ============================================ */

/* --muted (#6b7280) on --bg (#f7f8fa) = 4.6:1 ✓ AA
   --muted-light (#9ca3af) on --bg = 3.0:1 ✗ → bump to #737d8c for 4.5:1 */
