/* =========================================================================
   Gomisteri Sula — Design System  (Lumina Velocity)
   Tokens derived from DESIGN.md
   ========================================================================= */
:root {
  /* Colors */
  --surface: #fcf9f8;
  --surface-dim: #dcd9d9;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f6f3f2;
  --surface-container: #f0eded;
  --surface-container-high: #eae7e7;
  --surface-container-highest: #e5e2e1;
  --on-surface: #1b1c1c;
  --on-surface-variant: #4c4733;
  --inverse-surface: #303030;
  --inverse-on-surface: #f3f0ef;
  --outline: #7e7761;
  --outline-variant: #cfc6ac;

  --primary: #705d00;            /* dark gold (text on yellow) */
  --primary-yellow: #fdd835;     /* brand yellow */
  --primary-yellow-dim: #e8c41d;
  --secondary: #4c56af;          /* brand deep blue */
  --secondary-dim: #3b4496;
  --on-secondary: #ffffff;
  --secondary-container: #e0e0ff;

  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  --success: #2e7d32;

  --border-light: #e0e0e0;
  --section-grey: #f5f5f5;

  /* Typography */
  --font: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Radius */
  --r-sm: 0.125rem;
  --r: 0.25rem;
  --r-md: 0.375rem;
  --r-lg: 0.5rem;
  --r-xl: 0.75rem;
  --r-full: 9999px;

  /* Spacing */
  --gutter: 24px;
  --margin-mobile: 16px;
  --margin-desktop: 64px;
  --container-max: 1280px;

  --shadow-soft: 0 10px 40px rgba(76, 86, 175, 0.08);
  --shadow-card: 0 4px 18px rgba(27, 28, 28, 0.06);
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ----------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-mobile);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--margin-desktop); }
}
.section { padding-block: 64px; }
@media (min-width: 768px) { .section { padding-block: 88px; } }

.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--secondary);
}

/* ----------------------------------------------------------------- Type */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--on-surface); }
.display {
  font-size: clamp(36px, 6vw, 56px); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.05;
}
.section-title {
  font-size: clamp(24px, 4vw, 32px); font-weight: 700;
  text-align: center; text-transform: uppercase; letter-spacing: 0.01em;
}
.section-title .accent {
  display: block; width: 64px; height: 4px; margin: 18px auto 0;
  background: var(--primary-yellow); border-radius: var(--r-full);
}

/* ----------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  font-size: 14px; padding: 14px 28px; border-radius: var(--r); transition: .18s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: var(--secondary-dim); transform: translateY(-1px); }
.btn-secondary { background: var(--primary-yellow); color: var(--secondary); }
.btn-secondary:hover { background: var(--primary-yellow-dim); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn-ghost:hover { background: var(--secondary); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ----------------------------------------------------------------- Header */
.topbar { background: var(--primary-yellow); color: var(--on-surface); position: relative; z-index: 50; }

/* Expanding header search */
.header-search {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--border-light); box-shadow: var(--shadow-card);
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
}
.header-search.open { max-height: 120px; }
.header-search form { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.header-search svg { color: var(--outline); flex: 0 0 auto; }
.header-search input {
  flex: 1; min-width: 0; border: none; font: inherit; font-size: 16px;
  padding: 8px 0; background: transparent; outline: none; color: var(--on-surface);
}
.header-search input::placeholder { color: var(--outline); }
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .02em; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 50%; background: transparent;
  display: grid; place-items: center; color: var(--secondary);
}
.brand .logo-img { height: 58px; width: auto; display: block; }
.brand .brand-name { font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.main-nav { display: none; gap: 28px; }
.main-nav a {
  font-size: 14px; font-weight: 600; letter-spacing: .02em; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: .15s;
}
.main-nav a:hover, .main-nav a.active { border-color: var(--secondary); }
.nav-icons { display: flex; align-items: center; gap: 14px; }
.nav-icons button, .nav-icons a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-full);
  color: var(--on-surface); transition: .15s;
}
.nav-icons button:hover, .nav-icons a:hover { background: rgba(0,0,0,.08); }
.nav-toggle { display: grid; }
@media (min-width: 980px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
}
/* mobile menu */
.mobile-nav {
  display: none; flex-direction: column; background: var(--primary-yellow);
  border-top: 1px solid rgba(0,0,0,.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px var(--margin-mobile); font-weight: 600; border-bottom: 1px solid rgba(0,0,0,.06); }

/* ----------------------------------------------------------------- Hero */
/* Full-bleed video — fills the whole frame edge to edge, no side areas */
.hero {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 86vh;
  overflow: hidden; background: #000;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
/* gentle vignette for depth */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0,0,0,.3);
}

/* Laptop / desktop: cinematic full-width band */
@media (min-width: 1024px) {
  .hero { aspect-ratio: auto; height: 66vh; max-height: 720px; }
}

/* ----------------------------------------------------------------- Intro */
.intro { background: var(--surface); padding-top: 48px; }
.intro p { max-width: 720px; margin-inline: auto; text-align: center;
  color: var(--on-surface-variant); font-size: 16px; line-height: 1.6; }

/* ----------------------------------------------------------------- Stats */
.stats { background: var(--surface); padding-top: 40px; padding-bottom: 16px; }
.stats-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
  background: var(--surface-container-lowest); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 28px; text-align: center;
}
.stat-card .ico { color: var(--secondary); margin-bottom: 14px; }
.stat-card h3 { font-size: 20px; }
.stat-card p { color: var(--on-surface-variant); font-size: 14px; margin-top: 6px; }

/* ----------------------------------------------------------------- Services */
.services-section { background: var(--surface); }
.services-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .services-grid { grid-template-columns: repeat(5, 1fr); } }
.service-card {
  background: var(--surface-container-lowest); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 24px 20px; text-align: center; transition: .18s;
}
.service-card:hover { border-color: var(--primary-yellow); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.service-card .ico {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--secondary-container); color: var(--secondary);
  display: grid; place-items: center;
}
.service-card h3 { font-size: 16px; }
.service-card p { font-size: 13px; color: var(--on-surface-variant); margin-top: 8px; line-height: 1.5; }

.assist-band {
  margin-top: 28px; background: var(--primary-yellow); border-radius: var(--r-lg);
  padding: 22px 28px; display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
}
.assist-text { display: flex; align-items: center; gap: 16px; }
.assist-badge {
  background: #fff; color: var(--secondary); font-weight: 800; font-size: 18px;
  padding: 8px 14px; border-radius: var(--r); letter-spacing: .02em; flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.assist-text strong { display: block; font-size: 18px; color: var(--on-surface); text-transform: uppercase; letter-spacing: .03em; }
.assist-text span { font-size: 14px; color: var(--on-surface-variant); }
.assist-band .btn { font-size: 16px; }

/* ----------------------------------------------------------------- Featured (dark) */
.featured { background: var(--inverse-surface); color: var(--inverse-on-surface); }
.featured .section-title { color: #fff; }
.cards-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
@media (min-width: 900px) { .cards-grid { grid-template-columns: repeat(4, 1fr); } }

/* Spec-focused feature card (homepage dark section) */
.feature-card {
  background: var(--surface-container-lowest); color: var(--on-surface);
  border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
  transition: .18s; border: 1px solid transparent;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.feature-card .thumb {
  aspect-ratio: 4/3; background: #fff; display: grid; place-items: center; padding: 22px;
}
.feature-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.feature-card .body { padding: 14px 16px 18px; border-top: 1px solid var(--surface-container-high); }
.feature-card .cat {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--secondary); margin-bottom: 12px;
}
.feature-card .specs { display: grid; gap: 7px; }
.feature-card .specs .row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.feature-card .specs .row span { color: var(--on-surface-variant); }
.feature-card .specs .row b { color: var(--on-surface); font-weight: 600; }

.tire-card {
  background: var(--surface-container-lowest); color: var(--on-surface);
  border: 1px solid var(--border-light); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: .18s;
}
.tire-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--primary-yellow); }
.tire-card .thumb {
  aspect-ratio: 1/1; background: var(--surface-container-low); display: grid; place-items: center; padding: 18px;
}
.tire-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.tire-card .body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.tire-card .cat { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--secondary); letter-spacing: .05em; }
.tire-card h3 { font-size: 16px; margin-top: 4px; }
.tire-card .specs { margin-top: 12px; font-size: 12px; color: var(--on-surface-variant); display: grid; gap: 5px; }
.tire-card .specs .row { display: flex; justify-content: space-between; gap: 8px; }
.tire-card .specs .row b { color: var(--on-surface); font-weight: 600; }
.tire-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { color: var(--secondary); font-weight: 800; font-size: 18px; }
.price small { font-weight: 600; font-size: 12px; }

/* badges */
.badge { display:inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: 3px 10px; border-radius: var(--r-full); }
.badge-sale { background: var(--error-container); color: var(--on-error-container); }
.badge-new { background: var(--primary-yellow); color: var(--primary); }
.badge-stock { background: #e3f3e4; color: var(--success); }
.badge-out { background: var(--surface-container-high); color: var(--outline); }

/* ----------------------------------------------------------------- CTA band */
.cta-band {
  position: relative; color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(120deg, var(--secondary-dim), var(--secondary) 70%);
}
.cta-band::before {
  content:""; position:absolute; inset:0; opacity:.12;
  background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 22px);
}
.cta-band .container { position: relative; z-index: 2; padding-block: 70px; }
.cta-band h2 { color:#fff; font-size: clamp(26px,4vw,38px); text-transform: uppercase; }
.cta-band p { color: rgba(255,255,255,.9); margin: 14px auto 28px; max-width: 540px; }

/* ----------------------------------------------------------------- Brands */
.brands-carousel { margin-top: 40px; overflow: hidden; }
.brands-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 6px; scrollbar-width: none;
}
.brands-track::-webkit-scrollbar { display: none; }
.brand-card {
  flex: 0 0 230px; background: #fff; border: 1px solid var(--border-light); border-radius: 8px;
  height: 140px; display: grid; place-items: center; transition: .15s; padding: 14px;
}
.brand-card img { max-width: 100%; max-height: 100px; width: auto; object-fit: contain;
  opacity: 1; transition: .2s; }
.brand-card:hover { border-color: var(--primary-yellow); box-shadow: var(--shadow-card); }
.brand-card:hover img { transform: scale(1.05); }
.carousel-nav { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.round-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--outline-variant);
  background: #fff; color: var(--secondary); font-size: 22px; line-height: 1;
  display: grid; place-items: center; transition: .15s; padding-bottom: 3px;
}
.round-btn:hover { background: var(--secondary); color: #fff; border-color: var(--secondary); }

/* ----------------------------------------------------------------- Gallery carousel */
.gallery-section { background: var(--surface); }
.gallery-carousel { position: relative; margin-top: 40px; }
.gallery-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16/10;
  overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--border-light);
  background: var(--surface-container-low);
}
@media (min-width: 620px) { .gallery-slide { flex-basis: calc((100% - 14px) / 2); } }
@media (min-width: 980px) { .gallery-slide { flex-basis: calc((100% - 28px) / 3); } }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-slide:hover img { transform: scale(1.06); }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--secondary);
  border: 1px solid var(--outline-variant); font-size: 24px; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow-card); transition: .15s; padding-bottom: 3px;
}
.carousel-arrow:hover { background: var(--secondary); color: #fff; }
.carousel-arrow.prev { left: -10px; }
.carousel-arrow.next { right: -10px; }
@media (max-width: 620px) { .carousel-arrow.prev { left: 4px; } .carousel-arrow.next { right: 4px; } }
.gallery-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.g-dot { width: 9px; height: 9px; border-radius: var(--r-full); background: var(--outline-variant); cursor: pointer; transition: .15s; }
.g-dot.active { width: 26px; background: var(--primary-yellow); }

/* ----------------------------------------------------------------- Location */
.location-section { background: var(--section-grey); }
.location { position: relative; }
.location .map {
  width: 100%; min-height: 440px; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border-light);
  background: repeating-linear-gradient(45deg, var(--surface-container) 0 14px, var(--surface-container-low) 14px 28px);
}
.location .map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
.location .info {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-card); margin-top: 16px;
}
.location .info h3 { font-size: 22px; }
.location .info address { font-style: normal; color: var(--on-surface-variant); margin: 12px 0 18px; line-height: 1.6; }
.loc-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--secondary); }
.loc-link:hover { color: var(--secondary-dim); }
@media (min-width: 900px) {
  .location .info { position: absolute; top: 28px; left: 28px; width: 300px; margin-top: 0; }
}

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--surface-container-low); border-top: 1px solid var(--border-light); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-block: 56px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1.4fr 1.4fr; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--on-surface-variant); margin-bottom: 16px; }
.footer-logo { color: var(--secondary); font-size: 20px; text-transform: none; letter-spacing: 0; margin-bottom: 14px; }
.footer-logo-img { height: 84px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--on-surface-variant); font-size: 14px; max-width: 260px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--border-light);
  display: grid; place-items: center; color: var(--on-surface-variant); transition: .15s;
}
.socials a:hover { border-color: var(--secondary); color: var(--secondary); }
.footer-contact div { display: flex; gap: 8px; }
.footer-contact div svg { flex: 0 0 auto; margin-top: 3px; color: var(--secondary); }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { font-size: 14px; color: var(--on-surface-variant); }
.footer-grid ul a:hover { color: var(--secondary); }
.footer-contact div { font-size: 14px; color: var(--on-surface-variant); margin-bottom: 12px; }
.newsletter form { display: flex; gap: 8px; margin-top: 10px; }
.newsletter input { flex: 1; }
.footer-bottom { border-top: 1px solid var(--border-light); padding-block: 18px; font-size: 13px; color: var(--outline);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- Forms */
.input, select.input, textarea.input {
  width: 100%; background: #fff; border: 1px solid var(--border-light);
  border-bottom: 2px solid var(--border-light);
  border-radius: var(--r); padding: 12px 14px; font: inherit; color: var(--on-surface);
  transition: .15s;
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: none; border-bottom-color: var(--secondary); border-bottom-width: 2px;
}
label.field { display: block; }
label.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--on-surface-variant); }
.field-row { display: grid; gap: 14px; }

/* ----------------------------------------------------------------- Utilities */
.muted { color: var(--on-surface-variant); }
.center { text-align: center; }
.flex { display: flex; }
.hidden { display: none !important; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--inverse-surface); color: #fff; padding: 14px 22px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft); z-index: 200; font-size: 14px; opacity: 0; pointer-events: none;
  transition: .25s; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.error { background: var(--error); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--surface-container-high);
  border-top-color: var(--secondary); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- Floating contact */
.fab-contact {
  position: fixed; right: 20px; bottom: 22px; z-index: 120;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--inverse-surface); color: #fff; padding: 12px 18px;
  border-radius: var(--r-full); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: bottom .3s ease, background .15s ease, transform .15s ease;
}
.fab-contact:hover { background: #111; transform: translateY(-2px); }
/* lifts up only when the footer is in view, so the credit stays visible */
.fab-contact.lifted { bottom: 92px; }
.footer-bottom { padding-bottom: 24px; }

/* ----------------------------------------------------------------- Page head */
.page-head { background: linear-gradient(120deg, #1b2a52, #4c56af); color: #fff; padding-block: 48px; }
.page-head h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); }
.page-head p { color: rgba(255,255,255,.85); margin-top: 8px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--primary-yellow); }

/* ----------------------------------------------------------------- Catalog */
.catalog { display: grid; gap: 28px; grid-template-columns: 1fr; padding-block: 40px; }
@media (min-width: 900px) { .catalog { grid-template-columns: 280px 1fr; align-items: start; } }

.filters {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--r-lg);
  padding: 22px; position: sticky; top: 16px;
}
.filters h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--secondary); margin-bottom: 4px; }
.filter-group { padding-block: 16px; border-bottom: 1px solid var(--surface-container-high); }
.filter-group:last-of-type { border-bottom: none; }
.filter-group > label.lbl { display:block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; padding: 6px 12px; border-radius: var(--r-full); cursor: pointer;
  border: 1px solid var(--outline-variant); background: #fff; transition: .12s;
}
.chip:hover { border-color: var(--secondary); }
.chip.active { background: var(--secondary); color: #fff; border-color: var(--secondary); }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs .input { padding: 8px 10px; }

.catalog-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--outline); }
.search-box input { padding-left: 42px; }
.result-count { font-size: 14px; color: var(--on-surface-variant); }
.catalog-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (min-width: 560px) { .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.filters-mobile-toggle { display: inline-flex; }
.filters-close, .filters-apply, .filters-backdrop { display: none; }
@media (min-width: 900px) { .filters-mobile-toggle { display: none; } }

/* Mobile: filters become an off-canvas drawer so results stay visible */
@media (max-width: 899px) {
  .filters {
    position: fixed; top: 0; left: 0; bottom: 0; width: 88%; max-width: 360px;
    z-index: 200; border-radius: 0; margin: 0; overflow-y: auto;
    transform: translateX(-100%); transition: transform .28s ease;
    box-shadow: 6px 0 30px rgba(0,0,0,.28);
  }
  .filters.open { transform: translateX(0); }
  .filters-backdrop {
    display: block; position: fixed; inset: 0; background: rgba(8,14,28,.5);
    z-index: 190; opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .filters-backdrop.open { opacity: 1; pointer-events: auto; }
  .filters-close {
    display: grid; place-items: center; width: 32px; height: 32px; font-size: 15px;
    border-radius: var(--r); border: 1px solid var(--border-light); color: var(--on-surface-variant);
  }
  .filters-apply { display: block; margin-top: 20px; }
}
.empty-state { text-align: center; padding: 60px 20px; color: var(--on-surface-variant); grid-column: 1/-1; }

/* ----------------------------------------------------------------- Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,18,40,.55); z-index: 150;
  display: none; align-items: flex-start; justify-content: center; padding: 24px; overflow:auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: var(--r-lg); width: 100%; max-width: 520px;
  box-shadow: var(--shadow-soft); margin: auto;
}
.modal-head { display:flex; align-items:center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--surface-container-high); }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--surface-container-high); display:flex; gap: 12px; justify-content: flex-end; }
.detail-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 18px; }
.detail-spec .row { display:flex; justify-content: space-between; border-bottom: 1px dashed var(--surface-container-high); padding-bottom: 6px; font-size: 14px; }
.detail-spec .row b { color: var(--secondary); }

/* ----------------------------------------------------------------- Admin */
.admin-shell { display: grid; gap: 28px; grid-template-columns: 1fr; padding-block: 36px; }
@media (min-width: 980px) { .admin-shell { grid-template-columns: 420px 1fr; align-items: start; } }
.panel { background: #fff; border: 1px solid var(--border-light); border-radius: var(--r-lg); padding: 24px; }
.panel h2 { font-size: 18px; margin-bottom: 18px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.form-divider { border-top: 1px solid var(--surface-container-high); padding-top: 14px; margin-top: 2px; }
.form-divider > span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--outline); }
.login-card { max-width: 400px; margin: 80px auto; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 10px 12px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--on-surface-variant); border-bottom: 2px solid var(--surface-container-high); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--surface-container-high); vertical-align: middle; }
.admin-table tr:hover td { background: var(--surface-container-low); }
.admin-table .thumb-sm { width: 44px; height: 44px; border-radius: var(--r); background: var(--surface-container-low); object-fit: contain; padding: 4px; }
.row-actions { display: flex; gap: 6px; }
.icon-btn { width: 32px; height: 32px; border-radius: var(--r); display:grid; place-items:center; border: 1px solid var(--border-light); color: var(--on-surface-variant); }
.icon-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.icon-btn.danger:hover { border-color: var(--error); color: var(--error); }
.admin-bar { display:flex; align-items:center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-search { max-width: 280px; }
.kpis { display:grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--surface-container-low); border-radius: var(--r-lg); padding: 16px; text-align:center; }
.kpi b { font-size: 22px; color: var(--secondary); display:block; }
.kpi span { font-size: 12px; color: var(--on-surface-variant); text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }

/* Admin image upload */
.upl-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--on-surface-variant); }
.upload-preview { margin-top: 12px; display: flex; align-items: center; gap: 14px; }
.upload-preview img {
  width: 90px; height: 90px; object-fit: cover; border-radius: var(--r);
  border: 1px solid var(--border-light); background: var(--surface-container-low); padding: 4px;
}
#uploadStatus { display: block; margin-top: 8px; font-size: 12px; }
#uploadStatus.err { color: var(--error); }
input[type="file"].input { padding: 9px 12px; cursor: pointer; }
