/* ═══════════════════════════════════════════════════
   SecureVision — Modern Light Theme
   ═══════════════════════════════════════════════════ */

:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --red-500: #ef4444;
  --green-500: #22c55e;
  --yellow-500: #f59e0b;

  --primary: var(--blue-600);
  --primary-hover: var(--blue-700);
  --primary-light: var(--blue-50);
  --text: var(--slate-800);
  --text-muted: var(--slate-500);
  --border: var(--slate-200);
  --bg: var(--slate-50);
  --card-bg: var(--white);

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

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.04);
  --shadow-blue: 0 8px 24px rgba(37,99,235,.2);

  --transition: .2s cubic-bezier(.4,0,.2,1);
  --transition-slow: .4s cubic-bezier(.4,0,.2,1);

  --header-h: 72px;
  --container: 1280px;
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--slate-900);
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, textarea, select, button { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ── Container ────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ───────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__icon { width: 40px; height: 40px; flex-shrink: 0; }
.logo__icon svg { width: 100%; height: 100%; }
.logo__name { display: block; font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 800; color: #0f172a; letter-spacing: -.3px; -webkit-text-stroke: 0.4px rgba(0,0,0,.3); text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.logo__name strong { color: var(--primary); -webkit-text-stroke: 0.4px rgba(37,99,235,.4); }
.logo__tagline { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; margin-top: -2px; }
.logo--white .logo__name { color: #fff; }
.logo--white .logo__tagline { color: rgba(255,255,255,.6); }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-700);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.active { color: var(--primary); background: var(--blue-50); }

.nav__dropdown { position: relative; }
.nav__drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav__dropdown:hover .nav__drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__drop-item {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--slate-700);
  transition: all var(--transition);
}
.nav__drop-item:hover { background: var(--blue-50); color: var(--primary); }
.nav__drop-item--sub { padding-left: 24px; font-size: 13px; color: var(--text-muted); }

/* Header actions */
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--slate-600);
  transition: all var(--transition);
}
.header__icon:hover { background: var(--blue-50); color: var(--primary); }

.cart-icon__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: pop .3s cubic-bezier(.175,.885,.32,1.275);
}

@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--slate-700); border-radius: 2px; transition: all var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37,99,235,.3); }
.btn--primary:active { transform: translateY(0); }
.btn--in-cart { background: #16a34a !important; box-shadow: 0 4px 14px rgba(22,163,74,.3) !important; }
.btn--in-cart:hover { background: #15803d !important; transform: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-spin { animation: spin .7s linear infinite; }

/* ── Карточка товара ─────────────────────────────── */
.product-card__cart-wrap { display: none; } /* оверлей не используется */
.product-card__footer { display: flex; }

.product-card__cart-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary, #2563eb);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
}
.product-card__cart-btn:hover {
  background: var(--primary-hover, #1d4ed8);
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(37,99,235,.5);
}
.product-card__qty-ctrl {
  display: flex;
  align-items: center;
  background: var(--primary, #2563eb);
  border-radius: 30px;
  padding: 6px;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  animation: fadeIn .18s ease;
}
.product-card__qty-ctrl .qty-dec,
.product-card__qty-ctrl .qty-inc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: background .15s;
  flex-shrink: 0;
  user-select: none;
}
.product-card__qty-ctrl .qty-dec:hover,
.product-card__qty-ctrl .qty-inc:hover { background: rgba(255,255,255,.3); }
.product-card__qty-ctrl .qty-val {
  min-width: 32px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  line-height: 1;
}

/* ── Footer qty control (Купить → - qty + на мобиле) */
.footer-qty-ctrl {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #16a34a;
  border-radius: 10px;
  color: #fff;
  height: 36px;
  padding: 2px 4px;
  font-weight: 700;
  animation: fadeIn .15s ease;
}
.footer-qty-ctrl .fqty-dec,
.footer-qty-ctrl .fqty-inc {
  width: 30px; height: 30px;
  background: rgba(255,255,255,.18);
  border: none; border-radius: 7px;
  color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  user-select: none;
}
.footer-qty-ctrl .fqty-dec:hover,
.footer-qty-ctrl .fqty-inc:hover { background: rgba(255,255,255,.32); }
.footer-qty-ctrl .fqty-val { font-size: 15px; font-weight: 700; }

/* ── Нижняя навигация (только магазин, только моб.) ─ */
.bottom-nav { display: none; }
.bottom-nav-spacer { display: none; }
@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #fff;
    border-top: 1px solid var(--border-color, #e2e8f0);
    align-items: stretch;
    z-index: 1001;
    box-shadow: 0 -2px 20px rgba(0,0,0,.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted, #64748b);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    position: relative;
    transition: color .15s;
    padding: 5px 2px;
  }
  .bottom-nav__item:hover,
  .bottom-nav__item--active { color: var(--primary, #2563eb); }
  .bottom-nav__item--center svg {
    width: 28px;
    height: 28px;
  }
  .bottom-nav__badge {
    position: absolute;
    top: 5px;
    right: calc(50% - 20px);
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    min-width: 16px;
    padding: 1px 4px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 1.5;
  }
  .bottom-nav-spacer { display: block; height: 68px; }
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--blue-200);
}
.btn--outline:hover { background: var(--blue-50); border-color: var(--primary); }
.btn--ghost { background: var(--slate-100); color: var(--slate-700); }
.btn--ghost:hover { background: var(--slate-200); }
.btn--danger { background: var(--red-500); color: #fff; }
.btn--danger:hover { background: #dc2626; }
.btn--lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn--sm { padding: 7px 16px; font-size: 13px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37,99,235,.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(6,182,212,.2) 0%, transparent 50%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { 0% { transform: translateY(0); } 100% { transform: translateY(48px); } }

.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  animation: float linear infinite;
}
@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-full);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-400); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }

.hero__title {
  font-size: clamp(36px, 5vw, 60px);
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero__title span { color: var(--cyan-400); }

.hero__desc { font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 36px; max-width: 480px; line-height: 1.7; }

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__actions .btn--primary { background: linear-gradient(135deg, var(--blue-500), var(--cyan-500)); border: none; }

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}
.hero__stat-num { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 800; color: #fff; }
.hero__stat-label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight .8s ease both;
}
@keyframes fadeInRight { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: translateX(0); } }

.hero__camera-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(16px);
  position: relative;
  max-width: 380px;
  width: 100%;
}
.hero__camera-screen {
  background: #000;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}
.camera-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-400), transparent);
  animation: scan 3s linear infinite;
}
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

.camera-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.15) 1px, transparent 1px);
  background-size: 40px 40px;
}
.camera-corners {
  position: absolute;
  inset: 12px;
  border: 2px solid transparent;
}
.camera-corners::before, .camera-corners::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--cyan-400);
  border-style: solid;
}
.camera-corners::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.camera-corners::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.hero__camera-info { display: flex; justify-content: space-between; align-items: center; }
.camera-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.8); }
.camera-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
.camera-res { font-family: 'Sora', sans-serif; font-size: 13px; color: var(--cyan-400); font-weight: 600; }

/* ── Section ──────────────────────────────────────── */
.section { padding: 80px 0; }
.section--bg { background: var(--white); }
.section--dark { background: var(--slate-900); }

.section__header { text-align: center; margin-bottom: 56px; }
.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 12px;
}
.section__label::before, .section__label::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: currentColor;
  opacity: .5;
}
.section__title { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.5px; margin-bottom: 16px; }
.section__desc { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ── Product Card ─────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--slate-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card__image img { transform: scale(1.05); }

.product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge--new { background: var(--primary); color: #fff; }
.badge--sale { background: var(--red-500); color: #fff; }
.badge--hot { background: var(--yellow-500); color: #fff; }

.product-card__actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
}
.product-card:hover .product-card__actions { opacity: 1; transform: translateX(0); }
.product-card__action {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.product-card__action:hover { background: var(--primary); color: #fff; }

.product-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card__category { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.product-card__name {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: color var(--transition);
}
.product-card:hover .product-card__name { color: var(--primary); }
.product-card__price {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
}
.product-card__price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.product-card__footer { display: flex; gap: 8px; }
.product-card__cart { flex: 1; }

/* ── Services ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan-500));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--blue-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  transition: all var(--transition);
}
.service-card:hover .service-card__icon { background: var(--primary); color: #fff; }
.service-card__title { font-size: 18px; margin-bottom: 10px; }
.service-card__desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.service-card__price { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--primary); }

/* ── Features ─────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-item {
  text-align: center;
  padding: 32px 16px;
}
.feature-item__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.feature-item__title { font-size: 16px; margin-bottom: 8px; }
.feature-item__desc { font-size: 14px; color: var(--text-muted); }

/* ── Filters & Shop ───────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.filters {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.filters__title { font-size: 16px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.filters__clear { font-size: 13px; color: var(--primary); font-weight: 500; cursor: pointer; }
.filters__section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.filters__section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filters__label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 12px; }
.filter-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.filter-item input { cursor: pointer; accent-color: var(--primary); }
.filter-item span { font-size: 14px; color: var(--slate-700); }
.filter-item span small { color: var(--text-muted); }
.price-range { display: flex; flex-direction: column; gap: 8px; }
.price-inputs { display: flex; gap: 8px; }
.price-inputs input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* Toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.shop-toolbar__count { font-size: 14px; color: var(--text-muted); }
.shop-toolbar__sort {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--card-bg);
  color: var(--text);
  cursor: pointer;
}

/* ── Product Detail ───────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.product-detail__gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.product-detail__main-img {
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  margin-bottom: 12px;
}
.product-detail__main-img img { max-height: 360px; object-fit: contain; }
.product-detail__category { font-size: 13px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.product-detail__title { font-size: 28px; margin-bottom: 16px; }
.product-detail__price { font-family: 'Sora', sans-serif; font-size: 36px; font-weight: 800; color: var(--primary); margin-bottom: 24px; }
.product-detail__desc { color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; }
.product-detail__qty { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all var(--transition); background: var(--slate-50); }
.qty-btn:hover { background: var(--blue-50); color: var(--primary); }
.qty-input { width: 56px; height: 40px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 15px; font-weight: 600; }

/* ── Cart ─────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.checkout-confirm-block { grid-column: 1 / -1; max-width: 480px; padding-bottom: 32px; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: all var(--transition);
}
.cart-item:hover { border-color: var(--blue-200); }
.cart-item__img { width: 80px; height: 80px; object-fit: contain; background: var(--slate-50); border-radius: var(--radius-sm); padding: 8px; }
.cart-item__name { font-weight: 600; margin-bottom: 4px; }
.cart-item__price { font-size: 13px; color: var(--text-muted); }
.cart-item__subtotal { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; text-align: right; min-width: 120px; }
.cart-remove { color: var(--text-muted); padding: 4px; transition: color var(--transition); }
.cart-remove:hover { color: var(--red-500); }

.order-summary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.order-summary h3 { font-size: 18px; margin-bottom: 20px; }
.order-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.order-row:last-of-type { border-bottom: none; }
.order-total { display: flex; justify-content: space-between; padding-top: 16px; margin-top: 8px; border-top: 2px solid var(--border); }
.order-total span:last-child { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: var(--primary); }

/* ── Forms ────────────────────────────────────────── */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 560px;
}
.form-card--wide { max-width: 100%; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--slate-700); margin-bottom: 6px; }
.form-label span { color: var(--red-500); }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-input.error, .form-textarea.error { border-color: var(--red-500); }
.form-error { font-size: 12px; color: var(--red-500); margin-top: 4px; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; gap: 12px; }

/* ── Auth ─────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-card__logo { text-align: center; margin-bottom: 32px; }
.auth-card__title { font-size: 26px; text-align: center; margin-bottom: 8px; }
.auth-card__subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.auth-tabs { display: flex; background: var(--slate-100); border-radius: var(--radius); padding: 4px; margin-bottom: 28px; }
.auth-tab {
  flex: 1;
  padding: 8px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.auth-tab.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }
.auth-divider { text-align: center; color: var(--text-muted); font-size: 13px; margin: 20px 0; position: relative; }
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}
.auth-divider span { background: var(--card-bg); padding: 0 12px; position: relative; }

/* ── Account ──────────────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.account-menu {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.account-menu__user { padding: 16px; text-align: center; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.account-menu__avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--cyan-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.account-menu__name { font-weight: 600; font-size: 15px; }
.account-menu__email { font-size: 12px; color: var(--text-muted); }
.account-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
  cursor: pointer;
  transition: all var(--transition);
}
.account-menu-item:hover { background: var(--blue-50); color: var(--primary); }
.account-menu-item.active { background: var(--blue-50); color: var(--primary); font-weight: 600; }
.account-menu-item svg { flex-shrink: 0; }

.account-section { display: none; }
.account-section.active { display: block; }

/* ── Orders Table ─────────────────────────────────── */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  background: var(--slate-50);
  border-bottom: 1px solid var(--border);
}
.orders-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: var(--slate-50); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.status-badge--new { background: var(--blue-50); color: var(--primary); }
.status-badge--processing { background: #fef3c7; color: #d97706; }
.status-badge--shipped { background: #e0f2fe; color: var(--cyan-500); }
.status-badge--delivered { background: #dcfce7; color: #16a34a; }
.status-badge--cancelled { background: #fee2e2; color: var(--red-500); }

/* ── Admin ────────────────────────────────────────── */
.admin-wrap { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--slate-900);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  overflow-y: auto;
  z-index: 100;
}
.admin-sidebar__header {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 8px;
}
.admin-sidebar__logo { color: #fff; font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; }
.admin-sidebar__sub { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px; }
.admin-nav__section { padding: 8px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.3); margin-top: 8px; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.admin-nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-item.active { background: var(--primary); color: #fff; }
.admin-nav-item .badge-count {
  margin-left: auto;
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}

.admin-main { margin-left: 260px; padding: 0; }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar h1 { font-size: 20px; }
.admin-content { padding: 32px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-card__num { font-family: 'Sora', sans-serif; font-size: 28px; font-weight: 800; }
.stat-card__label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Alert ────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}
.alert--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert--info { background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--blue-700); }
.alert__icon { font-weight: 700; flex-shrink: 0; }

/* ── Pagination ───────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination__item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
  transition: all var(--transition);
  background: var(--card-bg);
}
.pagination__item:hover { border-color: var(--primary); color: var(--primary); background: var(--blue-50); }
.pagination__item.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Breadcrumb ───────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__sep { color: var(--slate-300); }
.breadcrumb__current { color: var(--slate-700); font-weight: 500; }

/* ── Page Header ──────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
  padding: 60px 0;
  color: #fff;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,.2) 0%, transparent 60%);
}
.page-header__inner { position: relative; }
.page-header__title { font-size: 40px; color: #fff; margin-bottom: 8px; }
.page-header__sub { color: rgba(255,255,255,.6); font-size: 16px; }

/* ── Testimonials ─────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.testimonial-card__stars { color: var(--yellow-500); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card__text { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-card__name { font-weight: 600; font-size: 15px; }
.testimonial-card__role { font-size: 13px; color: var(--text-muted); }

/* ── CTA ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--cyan-500) 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section__inner { position: relative; }
.cta-section h2 { font-size: 40px; color: #fff; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 36px; }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--blue-50); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.btn--outline-white { border: 2px solid rgba(255,255,255,.5); color: #fff; }
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ── Animations ───────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }

/* ── Back to Top ──────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-hover); }
@media (max-width: 768px) {
  .back-to-top { bottom: calc(58px + 14px); right: 14px; }
}

/* ── Empty State ──────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state__icon { font-size: 64px; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { font-size: 22px; color: var(--slate-700); margin-bottom: 8px; }
.empty-state p { font-size: 15px; margin-bottom: 24px; }

/* ── Breadcrumb Page ──────────────────────────────── */
.container--page { padding-top: 40px; padding-bottom: 80px; }

/* ── Modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  transform: scale(.95);
  transition: transform var(--transition);
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition);
}
.modal__close:hover { background: var(--slate-100); color: var(--text); }

/* ── Table ────────────────────────────────────────── */
.table-wrap { overflow-x: auto; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  background: var(--slate-50);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--slate-50); }

/* ── Card ─────────────────────────────────────────── */
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card__header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card__title { font-size: 16px; font-weight: 700; }
.card__body { padding: 24px; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-detail__gallery { position: static; top: auto; }
  .product-detail__main-img { padding: 16px; min-height: 240px; }
  .product-detail__main-img img { max-height: 280px; }
  .product-detail__title { font-size: 22px; margin-bottom: 12px; }
  .product-detail__price { font-size: 28px; margin-bottom: 18px; }
  .cart-layout { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .account-layout { grid-template-columns: 1fr; }
  .account-menu { position: static; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 12px; flex-direction: column; align-items: stretch; gap: 4px; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav__dropdown { position: static; }
  .nav__drop { position: static; box-shadow: none; border: none; padding: 4px 0 4px 16px; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav__dropdown:hover .nav__drop { display: block; }
  .burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__visual { display: none; }
  .hero__stats { justify-content: center; }
  .hero__actions { justify-content: center; }
  .hero__desc { margin: 0 auto 36px; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item__subtotal, .cart-remove { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero__title { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero__stats { flex-direction: column; gap: 16px; }
}

/* ── Admin form fix ──────────────────────────────── */
.admin-content .form-input,
.admin-content .form-textarea,
.admin-content .form-select,
.modal .form-input,
.modal .form-textarea,
.modal .form-select {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1.5px solid #e2e8f0 !important;
}
.admin-content .form-input:focus,
.admin-content .form-textarea:focus,
.admin-content .form-select:focus,
.modal .form-input:focus,
.modal .form-textarea:focus,
.modal .form-select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1) !important;
}
.admin-content .form-label {
  color: #334155 !important;
}
.admin-content input[type="checkbox"],
.admin-content input[type="radio"] {
  accent-color: #2563eb;
  width: 16px; height: 16px;
}
.admin-content .card {
  background: #ffffff !important;
}
.admin-content .data-table td,
.admin-content .data-table th {
  color: #1e293b !important;
}

/* ── Search dropdown (in header) ──────────────────── */
.search-drop {
    position: relative;
    display: flex;
    align-items: center;
}
.search-drop__form {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    width: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: width .35s cubic-bezier(.4,0,.2,1), opacity .25s;
    margin-right: 4px;
}
.search-drop.open .search-drop__form {
    width: 320px;
    opacity: 1;
    pointer-events: auto;
    box-shadow: var(--shadow);
}
.search-drop.open #searchToggle {
    background: var(--blue-50);
    color: var(--primary);
}
.search-drop__icon {
    flex-shrink: 0;
    color: var(--text-muted);
    margin-left: 14px;
    pointer-events: none;
}
.search-drop__input {
    flex: 1;
    padding: 9px 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    outline: none;
    min-width: 0;
}
.search-drop__input::placeholder { color: var(--slate-400); }
.search-drop__submit {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    margin: 2px;
    border-radius: var(--radius-full);
}
.search-drop__submit:hover { background: var(--primary-hover); }

@media (max-width: 768px) {
    .search-drop {
        position: static;
    }
    .search-drop__form {
        margin-right: 0;
    }
    .search-drop.open .search-drop__form {
        position: fixed;
        top: var(--header-h);
        left: 12px;
        right: 12px;
        width: auto !important;
        max-width: none;
        background: var(--white);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        z-index: 1100;
        margin: 8px 0;
    }
    .search-drop.open #searchToggle {
        position: relative;
        z-index: 1101;
    }
    /* Backdrop when search is open on mobile */
    .search-drop.open::before {
        content: '';
        position: fixed;
        inset: 0;
        top: var(--header-h);
        background: rgba(15,23,42,.4);
        z-index: 1099;
        animation: fadeIn .2s ease;
    }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
}

/* ── Hero camera image (Atlant-Azia view) ─────────── */
.hero__camera-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05) saturate(1.1);
  z-index: 0;
}

/* Add subtle dark/blue overlay for camera-feed look */
.hero__camera-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.05) 0%, rgba(37,99,235,.08) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Make all overlays sit above the image */
.camera-scan { z-index: 3; }
.camera-grid-overlay { z-index: 2; opacity: 0.4; }
.camera-corners { z-index: 4; }

/* Center target reticle */
.camera-target {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  opacity: 0.5;
  filter: drop-shadow(0 0 4px rgba(34,211,238,.6));
  animation: targetPulse 3s ease-in-out infinite;
}
@keyframes targetPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
}

/* REC indicator (top left) */
.camera-rec {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: recBlink 1.5s ease-in-out infinite;
}
@keyframes recBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(239,68,68,.8); }
  50% { opacity: 0.3; box-shadow: 0 0 0 rgba(239,68,68,0); }
}

/* Live timestamp (top right) */
.camera-timestamp {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Sora', monospace, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #22d3ee;
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums;
}

/* ── Mobile responsive fixes ──────────────────────── */
@media (max-width: 768px) {
    html {
        font-size: 15px;
        -webkit-text-size-adjust: 100%;
    }
    body {
        font-size: 15px;
    }
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }
    .hero {
        min-height: auto;
        padding: 32px 0 40px;
    }
    .hero__inner {
        padding: 32px 0;
        gap: 28px;
    }
    .hero__title {
        font-size: 30px;
        line-height: 1.15;
    }
    .hero__desc {
        font-size: 15px;
    }
    .hero__camera-card {
        max-width: 280px;
        padding: 20px;
    }
    .hero__stat-num {
        font-size: 22px;
    }
    .section {
        padding: 44px 0;
    }
    .section__title {
        font-size: 24px;
    }
    .section__desc {
        font-size: 15px;
    }
    .product-card__name {
        font-size: 14px;
    }
    .product-card__price {
        font-size: 17px;
    }
    .product-card__body {
        padding: 12px;
    }
    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    .btn--lg {
        padding: 12px 24px;
        font-size: 15px;
    }
    .nav__link {
        font-size: 15px;
    }
    .page-header {
        padding: 36px 0;
    }
    .page-header__title {
        font-size: 26px;
    }
    .page-header__sub {
        font-size: 14px;
    }
    .testimonial-card {
        padding: 20px;
    }
    .feature-item {
        padding: 22px 12px;
    }
    .service-card {
        padding: 22px;
    }
    .service-card__title {
        font-size: 17px;
    }
    .cta-section {
        padding: 50px 0;
    }
    .cta-section h2 {
        font-size: 26px;
    }
    .cta-section p {
        font-size: 15px;
    }
    .form-card {
        padding: 24px;
    }
    .footer__top {
        padding: 36px 0 20px;
    }
    .footer__title {
        font-size: 14px;
    }
    .footer__about {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    body { font-size: 14px; }
    .container { padding-left: 12px; padding-right: 12px; }
    .hero__title { font-size: 26px; }
    .hero__desc { font-size: 14px; }
    .section__title { font-size: 22px; }
    .page-header__title { font-size: 22px; }
    .product-card__name { font-size: 13px; }
    .product-card__price { font-size: 15px; }
    .products-grid { gap: 10px; }
    .product-card__image { padding: 16px; }
    .btn { padding: 9px 14px; font-size: 13px; }
    .btn--lg { padding: 11px 20px; font-size: 14px; }
    .header__inner { gap: 12px; }
    .logo__icon { width: 36px; height: 36px; }
    .logo__name { font-size: 16px; }
    .logo__tagline { font-size: 10px; }
}

/* iOS Safari fixes */
input, textarea, select {
    font-size: 16px !important; /* prevent zoom on focus */
}
@media (min-width: 769px) {
    input:not([type="checkbox"]):not([type="radio"]),
    textarea, select {
        font-size: inherit !important;
    }
}

/* ── Categories grid (homepage) ───────────────────── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-card {
        padding: 18px 10px !important;
    }
    .category-card > div:first-child {
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }
    .category-card span {
        font-size: 12px !important;
    }
    .category-card span:last-child {
        font-size: 11px !important;
    }
}

/* ── Horizontal Scroll (Categories / Services) ────── */
.hscroll-wrap {
    position: relative;
}
.hscroll-wrap .container {
    position: relative;
    padding-left: 0;
    padding-right: 0;
}
.hscroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 12px 24px 12px 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }

/* Arrow buttons */
.hscroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    color: var(--slate-700);
    z-index: 5;
    transition: all .2s;
}
.hscroll-arrow:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-blue);
}
.hscroll-arrow--left { left: 8px; }
.hscroll-arrow--right { right: 8px; }
.hscroll-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 768px) {
    .hscroll-arrow { display: none; }
    .hscroll { padding: 8px 14px 16px 14px; gap: 10px; }
}

/* ── Category tile (horizontal carousel) ──────────── */
.cat-tile {
    flex: 0 0 auto;
    width: 190px;
    scroll-snap-align: start;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex;
    flex-direction: column;
}
.cat-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-200);
}
.cat-tile__media {
    width: 100%;
    aspect-ratio: 1;
    background: var(--slate-50, #f8fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 16px;
    box-sizing: border-box;
}
.cat-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s;
}
.cat-tile:hover .cat-tile__media img { transform: scale(1.06); }
.cat-tile__icon {
    font-size: 56px;
}
.cat-tile__name {
    padding: 12px 14px 4px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--slate-900);
    line-height: 1.3;
}
.cat-tile:hover .cat-tile__name { color: var(--primary); }
.cat-tile__count {
    padding: 4px 14px 14px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .cat-tile { width: 150px; }
    .cat-tile__media { padding: 12px; }
    .cat-tile__name { padding: 10px 12px 3px; font-size: 13px; }
    .cat-tile__count { padding: 3px 12px 12px; font-size: 11px; }
}

/* ── Service tile (horizontal carousel) ───────────── */
.srv-tile {
    flex: 0 0 auto;
    width: 320px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all .25s;
    display: flex;
    flex-direction: column;
}
.srv-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-200);
}
.srv-tile__media {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--slate-100), var(--slate-200));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.srv-tile__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.srv-tile:hover .srv-tile__media img { transform: scale(1.05); }
.srv-tile__icon {
    font-size: 56px;
}
.srv-tile__price {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 13px;
    box-shadow: var(--shadow-sm);
}
.srv-tile__body { padding: 16px; }
.srv-tile__name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--slate-900);
    margin-bottom: 6px;
    line-height: 1.3;
}
.srv-tile__desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .srv-tile { width: 260px; }
    .srv-tile__name { font-size: 14px; }
    .srv-tile__desc { font-size: 12px; }
}

/* ── Compact centered footer (Comfy-style) ────────── */
.footer-mini {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 36px 0 28px;
    text-align: center;
}
@media (max-width: 768px) {
    .main { padding-bottom: 40px; }
}
.footer-mini .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.footer-mini__phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 28px;
    color: var(--primary) !important;
    text-decoration: none;
    letter-spacing: -.5px;
    transition: color .15s;
}
.footer-mini__phone:hover {
    color: var(--primary-hover) !important;
}
.footer-mini__hours {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: -4px;
}
.footer-mini__email {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--slate-700);
    text-decoration: none;
    margin-top: 4px;
}
.footer-mini__email:hover { color: var(--primary); }
.footer-mini__addr {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}
.footer-mini__addr:hover { color: var(--primary); }

.footer-mini__social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 12px 0 4px;
}
.fmi-soc {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-600);
    transition: all .2s;
}
.fmi-soc:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.footer-mini__links {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}
.footer-mini__links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
}
.footer-mini__links a:hover { color: var(--primary); }
.footer-mini__links span { opacity: .4; }

.footer-mini__copy {
    font-size: 12px;
    color: var(--slate-400);
    margin-top: 8px;
}

@media (max-width: 480px) {
    .footer-mini__phone { font-size: 24px; }
}

/* Hide old footer if accidentally still present */
.footer { display: none; }

/* ── Product cards — reduce text sizes ───────────── */
.product-card__name { font-size: 13px !important; line-height: 1.35 !important; min-height: 38px !important; }
.product-card__price { font-size: 16px !important; font-weight: 800 !important; color: var(--primary) !important; }
.product-card__body { padding: 10px 12px 14px !important; }
.product-card__price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; font-weight: 500; }
.product-card__sale-badge { display:inline-block; background:#dc2626; color:#fff; font-size:10px; font-weight:700; padding:2px 7px; border-radius:4px; margin-left:6px; vertical-align: middle; text-transform: uppercase; }

/* Sale + New badges on detail page */
.product-detail__badges { display:flex; gap:8px; margin-bottom: 10px; flex-wrap:wrap; }
.product-detail__badges .bdg {
    display:inline-block; padding: 4px 10px; border-radius: 6px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
}
.bdg-new-big { background: var(--primary); color: #fff; }
.bdg-sale-big { background: #dc2626; color: #fff; }

/* ── Mobile contact page fixes ────────────────────── */
@media (max-width: 768px) {
    /* Contact info cards - prevent text overflow */
    .container--page > div[style*="border-radius:var(--radius)"] {
        flex-wrap: wrap;
    }
    /* Generic: any card with email/long URLs */
    .container--page a[href^="mailto:"],
    .container--page a[href^="https://2gis"] {
        word-break: break-all;
        overflow-wrap: anywhere;
    }
    /* Form inputs full width */
    .form-card .form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Admin tabs - ensure clickable ──────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.tabs::-webkit-scrollbar { height: 3px; }
.tabs a {
    padding: 10px 16px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all .15s;
    flex-shrink: 0;
}
.tabs a:hover { color: #2563eb; background: #f8fafc; }
.tabs a.on { color: #2563eb; border-bottom-color: #2563eb; }

/* ── Prevent horizontal overflow on all pages ─────── */
/* overflow-x: clip — не создаёт scroll-container, не ломает position:sticky, нет двойных ползунков */
html { overflow-x: clip; }
body { overflow-x: clip; }
.container, .container--page { max-width: 100%; }

/* Services page mobile fixes */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 0 !important;
    }
    .service-card {
        max-width: 100%;
        overflow: hidden;
        word-wrap: break-word;
    }
    /* Contact page two-column layout */
    .container--page > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    /* Hero overflow */
    .hero {
        overflow-x: clip;
    }
    /* Horizontal scrolls don't bleed */
    .hscroll-wrap {
        overflow-x: clip;
    }
}

/* Long URLs in contact cards */
.contact-info-card a,
.container--page a {
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

/* ── Cookie consent modal (поверх сайта) ──────────── */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: cookieFadeIn .3s ease-out;
}
@keyframes cookieFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.cookie-modal__box {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px 28px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15,23,42,.3);
    animation: cookieSlideUp .35s cubic-bezier(.16,1,.3,1);
}
@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-modal__icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}
.cookie-modal__title {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}
.cookie-modal__text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 24px;
}
.cookie-modal__text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}
.cookie-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.cookie-modal__actions .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

@media (max-width: 480px) {
    .cookie-modal__box {
        padding: 26px 22px 22px;
        border-radius: 14px;
    }
    .cookie-modal__icon { font-size: 40px; }
    .cookie-modal__title { font-size: 19px; }
    .cookie-modal__text { font-size: 13px; }
    .cookie-modal__actions {
        flex-direction: column;
    }
    .cookie-modal__actions .btn {
        width: 100%;
    }
}

/* ── Product card overflow fix ────────────────────── */
.product-card {
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}
.product-card__body {
    overflow: hidden;
    word-wrap: break-word;
    min-width: 0;
}
.product-card__price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    max-width: 100%;
    overflow: hidden;
}
.product-card__footer {
    overflow: hidden;
    flex-wrap: nowrap;
}
.product-card__cart {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-card__footer .btn--ghost,
.product-card__footer .btn--outline {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Mobile product card footer ──────────────────── */
@media (max-width: 540px) {
    .product-card__footer {
        flex-direction: column;
        gap: 6px;
    }
    .product-card__cart {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-overflow: clip;
    }
    .product-card__footer .btn--ghost,
    .product-card__footer .btn--outline {
        width: 100%;
        justify-content: center;
    }
    .product-card__price {
        font-size: 15px !important;
    }
    .product-card__name {
        font-size: 12px !important;
        min-height: unset !important;
    }
}

/* ── Floating quick actions (desktop) ─────────────── */
.float-actions {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.float-actions.visible {
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 900px) {
    .float-actions { display: none; }
}
.float-action {
    width: 46px;
    height: 46px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-600);
    box-shadow: 0 2px 10px rgba(0,0,0,.10);
    cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s, border-color .18s;
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
}
.float-action:hover {
    background: var(--blue-50);
    color: var(--primary);
    border-color: var(--blue-200);
    box-shadow: 0 4px 18px rgba(37,99,235,.18);
}
.float-action__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    border: 2px solid #fff;
}
