/* ═══════════════════════════════════════════════════════
   TESLASHOP.GE v4 — RADICAL DESIGN SYSTEM
   Loaded LAST — overrides all page styles
   ═══════════════════════════════════════════════════════ */

/* ── CUSTOM CURSOR ──────────────────────────────────── */
/* cursor:none only after JS confirms cursor is running */
body.ts-cursor-ready,
body.ts-cursor-ready *,
body.ts-cursor-ready *::before,
body.ts-cursor-ready *::after {
  cursor: none !important;
}

#ts-cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: #ff3b30;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%,-50%);
  transition: width .15s, height .15s, background .15s, box-shadow .15s;
  box-shadow: 0 0 12px rgba(255,59,48,.8), 0 0 24px rgba(255,59,48,.4);
  will-change: left, top;
  display: none;
}
#ts-cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,59,48,.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%,-50%);
  transition: width .3s cubic-bezier(.34,1.56,.64,1),
              height .3s cubic-bezier(.34,1.56,.64,1),
              border-color .2s;
  will-change: left, top;
  display: none;
}
body.ts-cursor-ready #ts-cursor-dot,
body.ts-cursor-ready #ts-cursor-ring { display: block; }

body.cursor-hover #ts-cursor-dot {
  width: 14px; height: 14px;
  background: #fff;
  box-shadow: 0 0 20px rgba(255,255,255,.6);
}
body.cursor-hover #ts-cursor-ring {
  width: 56px; height: 56px;
  border-color: rgba(255,59,48,.85);
}
body.cursor-click #ts-cursor-dot {
  width: 5px; height: 5px;
}
body.cursor-click #ts-cursor-ring {
  width: 22px; height: 22px;
  border-color: #ff3b30;
}

/* ── BASE ────────────────────────────────────────────── */
html { overflow-x: hidden; }
body {
  background: #050508 !important;
  overflow-x: hidden !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}

/* ── AMBIENT GLOWS ───────────────────────────────────── */
#ts-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
#ts-ambient .g1 {
  position: absolute;
  top: -20%; left: -10%;
  width: 70vw; height: 70vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(204,26,23,.14) 0%, transparent 65%);
  animation: gFloat 12s ease-in-out infinite;
}
#ts-ambient .g2 {
  position: absolute;
  top: 20%; right: -15%;
  width: 55vw; height: 55vw;
  max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, rgba(10,100,255,.08) 0%, transparent 65%);
  animation: gFloat 16s ease-in-out infinite reverse;
}
#ts-ambient .g3 {
  position: absolute;
  bottom: -10%; left: 30%;
  width: 50vw; height: 50vw;
  max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, rgba(120,40,200,.07) 0%, transparent 65%);
  animation: gFloat 20s ease-in-out infinite;
  animation-delay: -6s;
}
@keyframes gFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%  { transform: translate(3%,4%) scale(1.06); }
  66%  { transform: translate(-2%,-3%) scale(.95); }
}

/* ── NOISE OVERLAY ──────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
  opacity: 1;
}

/* ── HEADER ──────────────────────────────────────────── */
.site-header {
  position: fixed !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 24px) !important;
  max-width: 1280px !important;
  height: 56px !important;
  border-radius: 20px !important;
  background: rgba(8,8,14,.72) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  -webkit-backdrop-filter: blur(36px) saturate(2.2) !important;
  backdrop-filter: blur(36px) saturate(2.2) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,.07) inset,
    0 -1px 0 rgba(0,0,0,.5) inset,
    0 20px 60px rgba(0,0,0,.45),
    0 4px 16px rgba(0,0,0,.3) !important;
  z-index: 9000 !important;
  animation: headerDrop .7s cubic-bezier(.34,1.56,.64,1) both !important;
  transition: box-shadow .3s, background .3s !important;
  /* Red top glow line */
  outline: 1px solid transparent !important;
}
.site-header::before {
  content: '';
  position: absolute;
  top: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,59,48,.9), transparent);
  border-radius: 1px;
  pointer-events: none;
}
.site-header::after {
  content: '';
  position: absolute;
  top: -1px; left: 30%; right: 30%;
  height: 1px;
  background: rgba(255,59,48,.5);
  filter: blur(6px);
  pointer-events: none;
}
@keyframes headerDrop {
  from { transform: translateX(-50%) translateY(-120%); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
body { padding-top: calc(56px + 12px + 16px) !important; }
@media (max-width: 767px) {
  .site-header {
    width: calc(100% - 16px) !important;
    top: 8px !important;
    height: 52px !important;
  }
  body { padding-top: calc(52px + 8px + 10px) !important; }
}
.site-header.scrolled {
  background: rgba(5,5,10,.88) !important;
}

/* Header inner */
.header-inner {
  padding: 0 1rem !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: .75rem !important;
}
@media (max-width: 767px) {
  .header-inner { gap: .3rem !important; padding: 0 .75rem !important; }
}

/* Logo */
.site-logo {
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  color: #fff !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  transition: opacity .2s !important;
  font-family: 'Orbitron', 'Inter', sans-serif !important;
}
.site-logo:hover { opacity: .8 !important; color: #fff !important; }

/* Nav links */
.nav-link {
  font-size: .78rem !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.45) !important;
  padding: .4rem .7rem !important;
  border-radius: 10px !important;
  letter-spacing: .01em !important;
  display: flex !important;
  align-items: center !important;
  gap: .35rem !important;
  transition: color .18s, background .18s !important;
  position: relative !important;
}
.nav-link:hover, .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.07) !important;
}
.nav-link.active {
  color: #ff3b30 !important;
  background: rgba(255,59,48,.10) !important;
}
.nav-link svg { transition: transform .3s cubic-bezier(.34,1.56,.64,1) !important; }
.nav-link:hover svg { transform: scale(1.25) rotate(-5deg) !important; }

/* Icon buttons */
.icon-btn {
  width: 34px !important; height: 34px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.55) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all .2s cubic-bezier(.34,1.56,.64,1) !important;
  flex-shrink: 0 !important;
}
.icon-btn:hover {
  background: rgba(255,59,48,.14) !important;
  border-color: rgba(255,59,48,.35) !important;
  color: #ff3b30 !important;
  transform: scale(1.12) rotate(-3deg) !important;
  box-shadow: 0 4px 16px rgba(255,59,48,.25) !important;
}
.icon-btn:active { transform: scale(.9) !important; }
.icon-btn svg { transition: transform .25s cubic-bezier(.34,1.56,.64,1) !important; }

/* Theme toggle moon/sun spin */
#themeToggle:hover svg { transform: rotate(20deg) scale(1.15) !important; }

/* Cart badge */
.cart-badge {
  background: #ff3b30 !important;
  box-shadow: 0 0 8px rgba(255,59,48,.7) !important;
  animation: badgePop .4s cubic-bezier(.34,1.56,.64,1) both !important;
}
@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* User btn */
.user-menu-btn {
  border-radius: 10px !important;
  font-size: .8rem !important;
  transition: all .18s !important;
}
.user-menu-btn:hover {
  background: rgba(255,59,48,.12) !important;
  border-color: rgba(255,59,48,.3) !important;
}

/* Dropdown */
.user-dropdown {
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: 0 32px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04) inset !important;
  overflow: hidden !important;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-tesla, a.btn-tesla, button.btn-tesla {
  background: linear-gradient(135deg, #ff3b30 0%, #cc1a17 100%) !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  font-size: .76rem !important;
  padding: .68rem 1.5rem !important;
  box-shadow: 0 4px 20px rgba(204,26,23,.40), 0 1px 0 rgba(255,255,255,.18) inset !important;
  transition: all .22s cubic-bezier(.34,1.56,.64,1) !important;
  position: relative !important;
  overflow: hidden !important;
}
.btn-tesla::before {
  content: '';
  position: absolute;
  top: 50%; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: translateY(-50%) skewX(-20deg);
  transition: left .5s ease;
}
.btn-tesla:hover::before { left: 120%; }
.btn-tesla:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 12px 36px rgba(204,26,23,.55), 0 1px 0 rgba(255,255,255,.18) inset !important;
  color: #fff !important;
}
.btn-tesla:active { transform: scale(.96) translateY(0) !important; }

.btn-outline, a.btn-outline, button.btn-outline {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 999px !important;
  transition: all .22s !important;
}
.btn-outline:hover {
  border-color: rgba(255,59,48,.6) !important;
  color: #ff3b30 !important;
  background: rgba(255,59,48,.07) !important;
  transform: translateY(-2px) !important;
}

/* ── PRODUCT & CONTENT CARDS — 3D TILT ──────────────── */
.product-card,
.hp-product,
.hp-vehicle,
.hp-dash,
.hp-service,
.hp-module {
  background: #0c0c16 !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 20px !important;
  transition: box-shadow .3s, border-color .3s !important;
  transform-style: preserve-3d !important;
  will-change: transform !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Shimmer line on hover */
.product-card::after,
.hp-product::after,
.hp-module::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  transition: left .6s ease;
  pointer-events: none;
}
.product-card:hover::after,
.hp-product:hover::after,
.hp-module:hover::after { left: 150%; }

.product-card:hover,
.hp-product:hover,
.hp-vehicle:hover,
.hp-dash:hover,
.hp-service:hover,
.hp-module:hover {
  border-color: rgba(255,59,48,.25) !important;
  box-shadow:
    0 0 0 1px rgba(255,59,48,.10),
    0 24px 60px rgba(0,0,0,.6),
    0 8px 24px rgba(204,26,23,.10) !important;
}

/* Image zoom */
.product-img-wrap img,
.hp-product img,
.hp-vehicle img {
  transition: transform .5s cubic-bezier(.22,1,.36,1) !important;
}
.product-card:hover .product-img-wrap img,
.hp-product:hover img,
.hp-vehicle:hover img {
  transform: scale(1.07) !important;
}

/* Price glow */
.product-price, [class*="price"] {
  color: #ff3b30 !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
}

/* ── GENERAL CARDS ───────────────────────────────────── */
.card, .sec, .kpi-card, .card2,
.auth-card, [class*="-card"] {
  border-radius: 18px !important;
  border-color: rgba(255,255,255,.07) !important;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .25s, box-shadow .25s !important;
}
.card:hover, .kpi-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(255,255,255,.13) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.45) !important;
}
.auth-card {
  background: rgba(10,10,22,.82) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  box-shadow: 0 40px 100px rgba(0,0,0,.65) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

/* ── FORMS ───────────────────────────────────────────── */
input[type=text], input[type=email], input[type=password],
input[type=tel], input[type=search], input[type=number],
textarea, select {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 12px !important;
  color: #fff !important;
  transition: border-color .2s, box-shadow .2s, background .2s !important;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(255,59,48,.5) !important;
  box-shadow: 0 0 0 3px rgba(204,26,23,.16) !important;
  background: rgba(255,255,255,.06) !important;
  outline: none !important;
}
::placeholder { color: rgba(255,255,255,.28) !important; }

/* ── BOTTOM NAV — glassmorphism pill ─────────────────── */
@media (max-width: 767px) {
  .bottom-nav {
    background: rgba(6,6,12,.65) !important;
    -webkit-backdrop-filter: blur(48px) saturate(2.8) !important;
    backdrop-filter: blur(48px) saturate(2.8) !important;
    border: 1px solid rgba(255,255,255,.11) !important;
    border-radius: 28px !important;
    box-shadow:
      0 1px 0 rgba(255,255,255,.08) inset,
      0 20px 60px rgba(0,0,0,.6) !important;
  }
  .bn-item, .nav-item {
    transition: transform .2s cubic-bezier(.34,1.56,.64,1), color .18s !important;
  }
  .bn-item.active, .nav-item.active {
    color: #fff !important;
    background: rgba(255,255,255,.10) !important;
    border-radius: 20px !important;
  }
  .bn-ico-charger {
    background: linear-gradient(135deg, #ff3b30, #cc1a17) !important;
    box-shadow: 0 4px 20px rgba(204,26,23,.55), 0 0 0 2px rgba(255,59,48,.2) !important;
  }
}

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  background: #02020a !important;
  border-top: 1px solid rgba(204,26,23,.12) !important;
  margin-top: 6rem !important;
  position: relative !important;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,59,48,.7), transparent);
  pointer-events: none;
}

/* ── PAGINATION ──────────────────────────────────────── */
.page-btn {
  border-radius: 10px !important;
  transition: all .2s cubic-bezier(.34,1.56,.64,1) !important;
}
.page-btn:hover { transform: scale(1.08) !important; }
.page-btn.active {
  background: linear-gradient(135deg, #ff3b30, #cc1a17) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(204,26,23,.4) !important;
}

/* ── BADGES ──────────────────────────────────────────── */
.badge, [class*="badge"] { border-radius: 999px !important; }

/* ── FLASH ───────────────────────────────────────────── */
.flash { border-radius: 14px !important; }

/* ── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: #050508; }
::-webkit-scrollbar-thumb {
  background: rgba(204,26,23,.45);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,59,48,.75); }

/* ── SELECTION ───────────────────────────────────────── */
::selection { background: rgba(255,59,48,.35); color: #fff; }

/* ── PAGE LOADER ─────────────────────────────────────── */
#ts-loader {
  background: #050508 !important;
}
#ts-loader .ts-loader-bar {
  height: 2px !important;
  box-shadow: 0 0 20px rgba(255,59,48,.9), 0 0 40px rgba(255,59,48,.4) !important;
}

/* ── TABLE ───────────────────────────────────────────── */
thead th {
  font-size: .69rem !important;
  font-weight: 800 !important;
  letter-spacing: .15em !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.3) !important;
}
tbody tr { transition: background .15s !important; }
tbody tr:hover td { background: rgba(255,255,255,.025) !important; }

/* ── SECTION HEADINGS — animated accent ─────────────
   BUG #1 (general fix) — restrict the dark-text rule to actual homepage
   sections. The previous selector `.section-title, [class*="sec-hd"]` matched
   anywhere on the site and put #111 text on dark backgrounds. */
.hp-sec-title,
.hp-sec-title.section-title,
.hp-sec-title[class*="sec-hd"] {
  position: relative !important;
}
html[data-theme="dark"]  .hp-sec-title,
html[data-theme="dark"]  .hp-h1 { color: #f5f7fb !important; }
html[data-theme="light"] .hp-sec-title,
html[data-theme="light"] .hp-h1 { color: #16202e !important; }

/* ── HOMEPAGE HERO ───────────────────────────────────── */
.hp-hero {
  position: relative !important;
  isolation: isolate !important;
}

/* ── LINK HOVER ──────────────────────────────────────── */
.footer-col a {
  transition: color .18s, padding-left .18s !important;
}
.footer-col a:hover {
  color: rgba(255,255,255,.8) !important;
  padding-left: .5rem !important;
}

/* ── FILTER / SEARCH ELEMENTS ────────────────────────── */
[class*="flt-"], [class*="sv-tag"], [class*="cat-pill"] {
  border-radius: 999px !important;
  transition: all .18s cubic-bezier(.34,1.56,.64,1) !important;
}

/* ── FOCUS ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid rgba(255,59,48,.7) !important;
  outline-offset: 2px !important;
  border-radius: 6px !important;
}
:focus:not(:focus-visible) { outline: none !important; }

/* ── REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  #ts-cursor-dot, #ts-cursor-ring { display: none !important; }
  body.ts-cursor-ready,
  body.ts-cursor-ready *,
  body.ts-cursor-ready *::before,
  body.ts-cursor-ready *::after { cursor: auto !important; }
}

/* ═══════════════════════════════════════════════════════
   FIX PATCH — v4.1
   1) Homepage blocks visible text
   2) Mobile header symmetry
   3) Theme toggle hidden (via HTML)
   4) Desktop header responsive text overflow
   5) Footer services icon (via HTML)
   ═══════════════════════════════════════════════════════ */

/* ── FIX 1: HOMEPAGE BLOCKS — readable text ─────── */
/* ── All homepage cards — white text on dark bg ── */
.hp-module {
  border: 1px solid rgba(255,255,255,.12) !important;
}
.hp-module h3 {
  color: rgba(255,255,255,.95) !important;
  font-size: .98rem !important;
  font-weight: 700 !important;
}
.hp-module p {
  color: rgba(255,255,255,.62) !important;
  font-size: .74rem !important;
  line-height: 1.6 !important;
}
.hp-module .k { color: rgba(255,255,255,.55) !important; }
.hp-module .meta { color: rgba(255,255,255,.88) !important; }

/* Benefits section */
.hp-benefit {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06) !important;
}
.hp-benefit h3 { color: #111 !important; }
.hp-benefit p  { color: rgba(0,0,0,.55) !important; }

/* Category cards */
.hp-cat {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06) !important;
}
.hp-cat h3 { color: #111 !important; }
.hp-cat p  { color: rgba(0,0,0,.52) !important; }

/* Strip links */
.hp-strip-link {
  background: rgba(0,0,0,.04) !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  color: #111 !important;
}
.hp-strip-link:hover {
  background: rgba(0,0,0,.07) !important;
}
.hp-strip-link--main {
  background: rgba(204,26,23,.10) !important;
  border-color: rgba(204,26,23,.25) !important;
  color: #cc1a17 !important;
}

/* Product / vehicle / service cards */
.hp-product, .hp-vehicle, .hp-service,
.hp-dash, .hp-spot, .hp-diy-card {
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}

/* Any text inside dark cards */
.hp-product h3, .hp-product .title,
.hp-vehicle h3, .hp-service h3,
.hp-dash h3, [class*="hp-"] h3,
[class*="hp-"] .name, [class*="hp-"] .title {
  color: #111 !important;
}
[class*="hp-"] p,
[class*="hp-"] .desc {
  color: rgba(0,0,0,.55) !important;
}

/* ── FIX 2: MOBILE HEADER — symmetrical ─────────────── */
@media (max-width: 767px) {
  .site-header {
    width: calc(100% - 16px) !important;
    top: 8px !important;
    height: 52px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .header-inner {
    padding: 0 10px !important;
    gap: 6px !important;
    justify-content: space-between !important;
    overflow: hidden !important;
  }
  .site-logo {
    font-size: .88rem !important;
    letter-spacing: .05em !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
  }
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }
  .icon-btn {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0 !important;
    border-radius: 9px !important;
  }
  /* Hide login/register text on mobile — icon only */
  .hdr-desktop-only { display: none !important; }
  .hdr-mobile-only  { display: flex !important; }
  /* Hide desktop nav completely */
  .desktop-nav { display: none !important; }
  /* Compact user menu btn on mobile */
  .user-menu-btn {
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    justify-content: center !important;
    border-radius: 9px !important;
  }
  .user-menu-btn .user-name-short { display: none !important; }
}

/* ── FIX 4: DESKTOP HEADER — no text overflow ────────── */
@media (min-width: 768px) and (max-width: 1100px) {
  .nav-link {
    font-size: .72rem !important;
    padding: .38rem .5rem !important;
    gap: .25rem !important;
  }
  .nav-link svg { display: none !important; }
  .header-inner { gap: .5rem !important; }
  .site-logo { font-size: .92rem !important; }
}
@media (min-width: 768px) and (max-width: 880px) {
  /* Very small desktop — hide 2 least important nav items */
  .nav-link[href="/diy"],
  .nav-link[href="/dashlilebi"] { display: none !important; }
  .btn-outline.btn-sm { display: none !important; }
}

/* Desktop nav — prevent overflow always */
@media (min-width: 768px) {
  .header-inner {
    overflow: hidden !important;
    flex-wrap: nowrap !important;
  }
  .desktop-nav {
    min-width: 0 !important;
    overflow: hidden !important;
    flex-shrink: 1 !important;
  }
  .header-actions {
    flex-shrink: 0 !important;
  }
}