/* ═══════════════════════════════════════════════════════════════
   KITE Catalogue 2025 — Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --primary:       #E8541A;
  --primary-dark:  #C44010;
  --primary-pale:  rgba(232,84,26,0.08);
  --dark:          #1A1A1A;
  --dark-2:        #2C2C2C;
  --dark-3:        #3D3D3D;
  --gray:          #888888;
  --light:         #F5F5F5;
  --border:        #E2E2E2;
  --white:         #FFFFFF;
  --text:          #1A1A1A;
  --text-muted:    #666666;
  --font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono:     'Courier New', Courier, monospace;
  --radius:        8px;
  --radius-sm:     4px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.07);
  --shadow:        0 2px 10px rgba(0,0,0,0.10);
  --shadow-md:     0 6px 20px rgba(0,0,0,0.14);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.20);
  --ease:          0.2s ease;
  --header-h:      64px;
  --max-w:         1300px;
}

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

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }

/* ── Layout ── */
.wrap  { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
main   { flex: 1; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--dark);
  border-bottom: 3px solid var(--primary);
  display: flex; align-items: center;
}
.header-inner {
  display: flex; align-items: center; gap: 24px; width: 100%;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text {
  font-size: 1.9rem; font-weight: 900; letter-spacing: -1.5px;
  color: var(--white);
}
.logo-text em { color: var(--primary); font-style: normal; }
.logo-sub {
  font-size: 0.6rem; font-weight: 600; color: #777;
  text-transform: uppercase; letter-spacing: 0.06em;
  line-height: 1.3; border-left: 2px solid #333; padding-left: 8px;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: #BBB;
  transition: color var(--ease), background var(--ease);
}
.nav a:hover, .nav a.active { color: var(--white); background: rgba(255,255,255,0.07); }
.nav a.active { color: var(--primary); }

/* Header search */
.hdr-search { flex: 1; max-width: 300px; position: relative; }
.hdr-search input {
  width: 100%; height: 36px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 0 36px 0 14px;
  color: var(--white); font-size: 0.85rem; outline: none;
  transition: background var(--ease), border-color var(--ease);
}
.hdr-search input::placeholder { color: #666; }
.hdr-search input:focus { background: rgba(255,255,255,0.11); border-color: var(--primary); }
.hdr-search-icon {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #666; pointer-events: none;
}

/* Language toggle */
.lang-toggle { display: flex; background: rgba(255,255,255,0.07); border-radius: 20px; padding: 3px; flex-shrink: 0; }
.lang-btn {
  padding: 3px 11px; border-radius: 16px;
  font-size: 0.75rem; font-weight: 700; color: #888;
  transition: all var(--ease); letter-spacing: 0.04em;
}
.lang-btn.active { background: var(--primary); color: var(--white); }

/* Mobile hamburger (hidden on desktop) */
.nav-toggle { display: none; color: var(--white); padding: 8px; }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #111 0%, #242424 100%);
  min-height: 500px; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 40%, rgba(232,84,26,0.18) 0%, transparent 55%);
}
.hero::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 42%;
  background: url('../images/products/p28_img01.jpeg') center/cover no-repeat;
  opacity: 0.18; mask-image: linear-gradient(to right, transparent, rgba(0,0,0,0.5));
}
.hero-inner { position: relative; z-index: 1; max-width: 640px; padding: 64px 0; }
.hero-kicker {
  display: inline-block; background: var(--primary); color: var(--white);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 3px; margin-bottom: 22px;
}
.hero-title { color: var(--white); margin-bottom: 14px; }
.hero-title em { color: var(--primary); font-style: normal; }
.hero-sub { color: #999; font-size: 1.05rem; line-height: 1.65; margin-bottom: 36px; max-width: 480px; }

.hero-searchbar { display: flex; max-width: 560px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-searchbar input {
  flex: 1; height: 54px; padding: 0 18px;
  border: none; font-size: 0.975rem; outline: none;
  background: var(--white); color: var(--text);
}
.hero-searchbar input::placeholder { color: #AAA; }
.hero-searchbar button {
  height: 54px; padding: 0 26px;
  background: var(--primary); color: var(--white);
  font-size: 0.95rem; font-weight: 600;
  transition: background var(--ease); white-space: nowrap;
}
.hero-searchbar button:hover { background: var(--primary-dark); }
.hero-hint { margin-top: 11px; font-size: 0.78rem; color: #666; }

/* ═══════════════════════════════════════════════════════════════
   CATEGORY CARDS (homepage)
   ═══════════════════════════════════════════════════════════════ */
.cats-section { padding: 64px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.section-head a { font-size: 0.875rem; color: var(--primary); font-weight: 600; }
.section-head a:hover { text-decoration: underline; }

.cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .cats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cats-grid { grid-template-columns: 1fr; } }

.cat-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; min-height: 210px;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform var(--ease), box-shadow var(--ease);
  text-decoration: none;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.cat-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.4s ease;
}
.cat-card:hover .cat-card-bg { transform: scale(1.05); }

.cat-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.28) 55%, transparent 100%);
}
.cat-card-body { position: relative; padding: 18px 20px; color: var(--white); }
.cat-card-count { font-size: 0.72rem; font-weight: 700; color: var(--primary); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 5px; }
.cat-card-name  { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.cat-card-arrow {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--white);
  transition: transform var(--ease);
}
.cat-card:hover .cat-card-arrow { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════════════ */
.contact-section { background: var(--white); padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-kicker {
  display: inline-block; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px;
}
.contact-title { margin-bottom: 16px; }
.contact-text  { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }

.contact-form { background: var(--light); border-radius: var(--radius); padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.form-group input,
.form-group textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: var(--font);
  background: var(--white); color: var(--text); outline: none;
  transition: border-color var(--ease);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 100px; resize: vertical; }
.btn-submit {
  width: 100%; height: 48px;
  background: var(--primary); color: var(--white);
  font-size: 0.95rem; font-weight: 700; border-radius: var(--radius-sm);
  transition: background var(--ease);
}
.btn-submit:hover { background: var(--primary-dark); }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER (inner pages)
   ═══════════════════════════════════════════════════════════════ */
.page-hdr { background: var(--dark); padding: 28px 0; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; color: #666; margin-bottom: 10px; flex-wrap: wrap; }
.breadcrumb a { color: #666; transition: color var(--ease); }
.breadcrumb a:hover { color: #CCC; }
.breadcrumb span { color: #444; }
.page-hdr h1 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); }
.page-hdr-sub { color: #777; font-size: 0.9rem; margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════
   PRODUCTS LAYOUT (category + search pages)
   ═══════════════════════════════════════════════════════════════ */
.products-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 28px 0 64px; align-items: start; }
@media (max-width: 900px) { .products-wrap { grid-template-columns: 1fr; } }

/* Sidebar */
.sidebar {
  background: var(--white); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--header-h) + 14px);
}
@media (max-width: 900px) { .sidebar { position: static; } }

.sidebar-section { margin-bottom: 22px; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-title {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray);
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.filter-list { display: flex; flex-direction: column; gap: 1px; }
.filter-list button {
  width: 100%; text-align: left; padding: 7px 9px;
  border-radius: var(--radius-sm); font-size: 0.84rem;
  color: var(--text-muted); transition: all var(--ease);
  display: flex; align-items: center; justify-content: space-between;
}
.filter-list button:hover { background: var(--light); color: var(--text); }
.filter-list button.active { background: var(--primary-pale); color: var(--primary); font-weight: 600; }
.filter-count {
  font-size: 0.7rem; background: var(--light); border-radius: 10px;
  padding: 1px 7px; color: var(--gray); flex-shrink: 0;
}
.filter-list button.active .filter-count { background: rgba(232,84,26,0.15); color: var(--primary); }

.brand-select {
  width: 100%; padding: 8px 10px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.84rem; background: var(--white); color: var(--text);
  outline: none; cursor: pointer;
}
.brand-select:focus { border-color: var(--primary); }

/* Position pills */
.pos-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pos-pill {
  padding: 5px 12px; border-radius: 16px;
  border: 1.5px solid var(--border); font-size: 0.8rem;
  color: var(--text-muted); transition: all var(--ease);
}
.pos-pill:hover { border-color: var(--primary); color: var(--primary); }
.pos-pill.active { background: var(--primary); border-color: var(--primary); color: var(--white); font-weight: 600; }

/* Products area */
.products-area {}
.products-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.products-count { font-size: 0.84rem; color: var(--text-muted); }
.products-count strong { color: var(--text); font-weight: 700; }
.view-btns { display: flex; gap: 4px; }
.view-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--ease); font-size: 0.9rem;
}
.view-btn.active, .view-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

/* ── Product Card ── */
.product-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  cursor: pointer; overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.product-card-img {
  height: 150px; background: var(--light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-card-img .placeholder-icon { font-size: 2.8rem; color: var(--border); }

.product-card-body { padding: 13px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-code {
  font-family: var(--font-mono); font-size: 0.97rem;
  font-weight: 700; color: var(--primary); letter-spacing: 0.01em;
}
.product-brand { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.product-meta  { font-size: 0.78rem; color: var(--text-muted); line-height: 1.55; }
.product-price {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-top: 2px;
}
.product-price .price-vat { font-size: 0.7rem; font-weight: 400; color: var(--gray); }

.product-footer { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }

/* Badges */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-front { background: #E3F2FD; color: #1565C0; }
.badge-rear  { background: #F3E5F5; color: #7B1FA2; }
.badge-sub   { background: var(--light); color: var(--gray); }

/* Color dots */
.color-dots { display: flex; gap: 3px; align-items: center; }
.cdot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.cdot.AN { background: #555; } .cdot.AR { background: #FF6B00; }
.cdot.BL { background: #1565C0; } .cdot.DB { background: #5D4037; }
.cdot.GI { background: #F9C500; } .cdot.GO { background: #CCA800; }
.cdot.LB { background: #B8860B; } .cdot.NO { background: #111; }
.cdot.RO { background: #C62828; } .cdot.SI { background: #BDBDBD; border-color: #999; }
.cdot.TI { background: #607D8B; } .cdot.VE { background: #2E7D32; }

/* List view */
.products-grid.list-view { grid-template-columns: 1fr; }
.list-view .product-card { flex-direction: row; }
.list-view .product-card-img { width: 110px; height: auto; flex-shrink: 0; border-radius: 0; }
.list-view .product-card-body { flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; }
.list-view .product-code { min-width: 115px; }
.list-view .product-footer { margin-top: 0; padding-top: 0; }

/* No results */
.no-results { text-align: center; padding: 72px 20px; color: var(--text-muted); }
.no-results-icon { font-size: 3rem; margin-bottom: 16px; }
.no-results h3 { color: var(--text); margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════════════════
   CATALOGUE PAGE
   ═══════════════════════════════════════════════════════════════ */
.catalogue-page { padding: 48px 0 72px; }
.cat-block { margin-bottom: 52px; }
.cat-block-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.cat-block-title { display: flex; align-items: center; gap: 12px; }
.cat-block-thumb {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
}
.cat-block-thumb-placeholder {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--light); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.cat-block-name { font-size: 1.15rem; font-weight: 700; }
.cat-block-count { font-size: 0.75rem; color: var(--primary); font-weight: 600; }
.cat-block-link { font-size: 0.875rem; color: var(--primary); font-weight: 600; white-space: nowrap; }
.cat-block-link:hover { text-decoration: underline; }

.sub-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.84rem; color: var(--text-muted);
  transition: all var(--ease); text-decoration: none;
}
.sub-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.sub-pill-count {
  font-size: 0.7rem; background: var(--light); border-radius: 10px;
  padding: 1px 6px; color: var(--gray);
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════════════════════════════ */
.search-hero { background: var(--dark); padding: 40px 0; }
.search-bar-big { display: flex; max-width: 660px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.search-bar-big input {
  flex: 1; height: 52px; padding: 0 18px;
  border: none; font-size: 0.975rem; outline: none;
  background: var(--white); color: var(--text);
}
.search-bar-big button {
  height: 52px; padding: 0 22px;
  background: var(--primary); color: var(--white);
  font-weight: 600; font-size: 0.9rem; transition: background var(--ease);
}
.search-bar-big button:hover { background: var(--primary-dark); }
.search-info { color: #777; font-size: 0.875rem; margin-top: 14px; }
.search-info strong { color: var(--white); }

.search-content { padding: 32px 0 72px; }
.cat-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.cat-pill {
  padding: 5px 14px; border-radius: 16px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 0.8rem; color: var(--text-muted);
  transition: all var(--ease); cursor: pointer;
}
.cat-pill:hover { border-color: var(--primary); color: var(--primary); }
.cat-pill.active { background: var(--primary); border-color: var(--primary); color: var(--white); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.72); z-index: 300;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white); border-radius: var(--radius);
  max-width: 600px; width: 100%; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: modalIn 0.22s ease;
}
@keyframes modalIn { from { transform: translateY(18px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 22px 22px 0;
}
.modal-code-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray); margin-bottom: 3px; }
.modal-code { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--light); color: var(--gray); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background var(--ease);
}
.modal-close:hover { background: var(--border); }

.modal-img { width: 100%; height: 220px; object-fit: cover; object-position: center; margin-top: 16px; }
.modal-img-placeholder {
  height: 180px; background: var(--light);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--border); margin-top: 16px;
}

.modal-body { padding: 22px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-bottom: 20px; }
.modal-field label { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); margin-bottom: 3px; }
.modal-field span  { font-size: 0.9rem; color: var(--text); font-weight: 500; }

.modal-actions { display: flex; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.btn-primary {
  flex: 1; height: 44px; background: var(--primary); color: var(--white);
  font-weight: 700; font-size: 0.9rem; border-radius: var(--radius-sm);
  transition: background var(--ease);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  flex: 1; height: 44px; background: transparent; color: var(--text);
  font-weight: 600; font-size: 0.9rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); transition: all var(--ease);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer { background: var(--dark); color: #777; padding: 48px 0 24px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.84rem; line-height: 1.7; max-width: 300px; }

.footer-col h4 { color: var(--white); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 0.84rem; color: #777; transition: color var(--ease); }
.footer-col ul a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid #2A2A2A; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.78rem; }
.footer-disclaimer { font-size: 0.72rem; max-width: 480px; line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════════
   CARD ACTION BUTTONS (wishlist ♥ + compare ⊞)
   ═══════════════════════════════════════════════════════════════ */
.card-actions {
  position: absolute; top: 7px; right: 7px;
  display: flex; flex-direction: column; gap: 5px;
  opacity: 0; transition: opacity var(--ease);
}
.product-card:hover .card-actions { opacity: 1; }
.card-heart, .card-compare {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(4px);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: #BBB;
  transition: all var(--ease); cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.card-heart:hover  { color: #E53935; border-color: #E53935; background: #fff; }
.card-compare:hover{ color: var(--primary); border-color: var(--primary); background: #fff; }
.card-heart.wl-active  { color: #E53935; border-color: #E53935; background: #fff; opacity: 1 !important; }
.card-compare.cmp-active{ color: var(--primary); border-color: var(--primary); background: var(--primary-pale); opacity: 1 !important; }
.product-card:hover .card-heart.wl-active,
.product-card:hover .card-compare.cmp-active { opacity: 1; }

/* Wishlist nav badge */
.wl-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  font-size: 0.6rem; font-weight: 800; line-height: 1;
  min-width: 16px; height: 16px; border-radius: 8px;
  padding: 0 4px; margin-left: 4px; vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   COMPARE BAR (sticky bottom)
   ═══════════════════════════════════════════════════════════════ */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--dark); border-top: 3px solid var(--primary);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.28);
  transform: translateY(100%); transition: transform 0.28s ease;
}
.compare-bar.visible { transform: translateY(0); }
.cbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cbar-items { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.cbar-item {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm); padding: 5px 10px;
}
.cbar-code  { font-family: var(--font-mono); font-size: 0.82rem; color: var(--primary); font-weight: 700; }
.cbar-brand { font-size: 0.75rem; color: #999; }
.cbar-remove {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #888;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; line-height: 1; cursor: pointer;
  transition: all var(--ease);
}
.cbar-remove:hover { background: #E53935; color: #fff; }
.cbar-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cbar-btn {
  height: 36px; padding: 0 18px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font-weight: 700; font-size: 0.85rem;
  transition: background var(--ease);
}
.cbar-btn:hover { background: var(--primary-dark); }
.cbar-clear {
  height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.2); color: #888; font-size: 0.82rem;
  transition: all var(--ease);
}
.cbar-clear:hover { border-color: #E53935; color: #E53935; }

/* Compare table modal */
.cmp-modal { max-width: 780px; }
.cmp-table-wrap { overflow-x: auto; padding: 0 22px 8px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.cmp-table th, .cmp-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.cmp-table thead th { background: var(--light); font-weight: 700; }
.cmp-table tbody tr:hover { background: var(--light); }
.cmp-row-label { color: var(--gray); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.cmp-code  { font-family: var(--font-mono); color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.cmp-brand { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════
   BIKE CONFIGURATOR
   ═══════════════════════════════════════════════════════════════ */
.bike-filter { display: flex; flex-direction: column; }
.bike-filter-active { border-left: 3px solid var(--primary); padding-left: 10px; }
.btn-bike-apply {
  flex: 1; height: 32px; background: var(--primary); color: #fff;
  font-size: 0.8rem; font-weight: 700; border-radius: var(--radius-sm);
  transition: background var(--ease);
}
.btn-bike-apply:hover { background: var(--primary-dark); }
.btn-bike-clear {
  height: 32px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); color: var(--text-muted); font-size: 0.8rem;
  transition: all var(--ease);
}
.btn-bike-clear:hover { border-color: #E53935; color: #E53935; }
.bike-active-label {
  margin-top: 6px; font-size: 0.7rem; font-weight: 700;
  color: var(--primary); text-transform: uppercase; letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════════
   AUTOCOMPLETE DROPDOWN
   ═══════════════════════════════════════════════════════════════ */
.hdr-search, .hero-searchbar, .search-bar-big { position: relative; }
.ac-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 500;
  background: var(--white); border: 1.5px solid var(--border);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden;
  display: none;
}
.ac-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; cursor: pointer;
  transition: background var(--ease); font-size: 0.85rem;
}
.ac-item:hover, .ac-item.active { background: var(--light); }
.ac-code  { font-family: var(--font-mono); font-weight: 700; color: var(--primary); flex-shrink: 0; }
.ac-brand { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.ac-model { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }

/* ═══════════════════════════════════════════════════════════════
   FLAGSHIP — Alpinestars Tech-Air MX
   ═══════════════════════════════════════════════════════════════ */
.flagship-section {
  background: var(--dark);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}
.flagship-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232,84,26,0.13) 0%, transparent 60%);
  pointer-events: none;
}
.flagship-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.flagship-kicker {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.flagship-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px;
}
.flagship-title em { color: var(--primary); font-style: normal; }
.flagship-sub {
  font-size: 1rem; color: #999;
  line-height: 1.7; margin-bottom: 32px; max-width: 460px;
}
.flagship-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-bottom: 36px;
}
.stat-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 14px 8px; text-align: center;
  transition: border-color var(--ease);
}
.stat-item:hover { border-color: var(--primary); }
.stat-val {
  display: block; font-size: 1.3rem; font-weight: 800;
  color: var(--primary); line-height: 1; margin-bottom: 5px;
}
.stat-label {
  display: block; font-size: 0.6rem; font-weight: 600;
  color: #666; text-transform: uppercase; letter-spacing: 0.07em;
}
.btn-flagship {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: var(--white);
  font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: var(--radius);
  transition: background var(--ease), transform var(--ease);
  text-decoration: none; border: none; cursor: pointer;
}
.btn-flagship:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-flagship::after { content: '→'; }
.flagship-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.flagship-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--primary); color: var(--white);
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; z-index: 2;
}
.flagship-img-wrap {
  width: 100%; aspect-ratio: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.flagship-img-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(232,84,26,0.08) 0%, transparent 70%);
}
.flagship-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 32px; position: relative; z-index: 1;
}
.flagship-img-placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
  color: #444; position: relative; z-index: 1;
}
.flagship-img-placeholder span { font-size: 0.8rem; color: #555; letter-spacing: 0.04em; }

/* ── Product page layout ── */
.page-hdr h1 em { color: var(--primary); font-style: normal; }
.airbag-page-kicker {
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.product-main-section { padding: 56px 0 40px; }
.product-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
.product-gallery-main {
  aspect-ratio: 1;
  background: var(--light); border: 1.5px solid var(--border);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.product-gallery-placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px; color: #ccc;
}
.product-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.badge-new {
  background: var(--primary); color: #fff;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.badge-ce {
  background: #1a3a1a; color: #66bb6a;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid #2a5a2a;
}
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 6px; }
.product-info h1 em { color: var(--primary); font-style: normal; }
.product-tagline { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }
.product-price-block {
  background: var(--light); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px;
}
.product-price-lbl {
  display: block; font-size: 0.72rem; font-weight: 700;
  color: var(--gray); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 6px;
}
.product-price-val {
  display: block; font-size: 2rem; font-weight: 900;
  color: var(--dark); letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px;
}
.product-price-note { display: block; font-size: 0.75rem; color: var(--text-muted); }
.product-sizes-block { margin-bottom: 28px; }
.product-sizes-lbl {
  font-size: 0.75rem; font-weight: 700; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.product-sizes-list { display: flex; gap: 8px; flex-wrap: wrap; }
.size-chip {
  min-width: 44px; height: 44px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.88rem; color: var(--text);
}
.product-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 0.85rem;
  transition: color var(--ease); text-decoration: none;
  margin-top: 4px; align-self: flex-start;
}
.btn-back:hover { color: var(--primary); }

/* Content sections */
.content-section { padding: 64px 0; }
.content-section.bg-light { background: var(--light); }
.content-section h2 { margin-bottom: 24px; }
.content-section p { font-size: 1rem; line-height: 1.8; color: var(--text); max-width: 720px; }

/* Features */
.features-section { padding: 64px 0; background: var(--dark); }
.features-section h2 { color: var(--white); margin-bottom: 40px; text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px; padding: 28px 22px;
  transition: border-color var(--ease), transform var(--ease);
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; line-height: 1; }
.feature-card h3 { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.feature-card p { color: #888; font-size: 0.875rem; line-height: 1.6; }

/* Spec table */
.spec-table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 12px 16px; vertical-align: top; }
.spec-table td:first-child {
  font-weight: 600; color: var(--gray);
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.06em; white-space: nowrap; width: 220px;
}
.spec-table td:last-child { color: var(--text); font-weight: 500; }

/* Refill packs */
.refills-section { padding: 64px 0; }
.refills-section h2 { margin-bottom: 32px; }
.refill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.refill-card {
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 28px; background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.refill-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.refill-icon { font-size: 2.4rem; margin-bottom: 14px; }
.refill-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.refill-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.btn-refill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--primary); color: var(--primary);
  font-weight: 700; font-size: 0.85rem;
  padding: 9px 18px; border-radius: var(--radius-sm);
  transition: all var(--ease); text-decoration: none;
}
.btn-refill:hover { background: var(--primary); color: #fff; }

/* Responsive — flagship + product page */
@media (max-width: 900px) {
  .flagship-inner { grid-template-columns: 1fr; gap: 40px; }
  .flagship-visual { order: -1; }
  .flagship-img-wrap { aspect-ratio: 16/9; max-width: 420px; margin: 0 auto; }
  .flagship-stats { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .refill-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */
.pagination { display:flex; align-items:center; justify-content:center; gap:4px; padding:32px 0 8px; flex-wrap:wrap; }
.pg-btn {
  min-width:36px; height:36px; padding:0 10px; border-radius:var(--radius-sm);
  border:1.5px solid var(--border); background:var(--white); color:var(--text);
  font-size:0.85rem; font-weight:500; cursor:pointer; transition:all .15s;
}
.pg-btn:hover  { border-color:var(--primary); color:var(--primary); }
.pg-active     { background:var(--primary) !important; border-color:var(--primary) !important; color:var(--white) !important; }
.pg-ellipsis   { min-width:36px; text-align:center; color:var(--text-muted); font-size:0.85rem; }

/* ═══════════════════════════════════════════════════════════════
   SECTION SEPARATOR
   ═══════════════════════════════════════════════════════════════ */
.section-sep {
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 20%, var(--primary) 80%, transparent 100%);
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.mono  { font-family: var(--font-mono); }
.d-none { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { display: none; }
  .hdr-search { display: none; }
  .nav-toggle { display: flex; }
  .hero::after { display: none; }
  .hero-inner { padding: 48px 0; }
  .hero-searchbar { flex-direction: column; }
  .hero-searchbar input,
  .hero-searchbar button { border-radius: var(--radius); height: 48px; }
  .wrap { padding: 0 16px; }
  .contact-form { padding: 24px; }
  .modal-grid { grid-template-columns: 1fr; }
}

/* Mobile nav (appears on toggle) */
.nav.open {
  display: flex; flex-direction: column;
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--dark-2); padding: 12px;
  z-index: 99; box-shadow: var(--shadow-md);
}
.nav.open a { padding: 12px 16px; font-size: 1rem; }
