@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300..900;1,14..32,300..900&display=swap');

::selection { background: rgba(244, 127, 45, 0.22); color: inherit; }

:root {
  --bg: #1d3b66;
  --bg-deep: #173158;
  --panel: #f4f5f7;
  --card: #ffffff;
  --ink: #17233a;
  --muted: #7e8794;
  --line: #dfe4ec;
  --orange: #f47f2d;
  --blue: #2f67bd;
  --shadow: 0 18px 40px rgba(6, 18, 39, 0.24);
  --soft-shadow: 0 10px 24px rgba(9, 23, 46, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(92, 146, 220, 0.34), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 163, 75, 0.14), transparent 18%),
    linear-gradient(135deg, #18365f 0%, #1d3b66 42%, #163053 100%);
}

button,
input,
select { font: inherit; }
button { cursor: pointer; }

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 242px minmax(470px, 1fr) 242px;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: calc(100vh - 41px);
  padding: 6px 16px 8px;
}

.topbar {
  position: relative;
  z-index: 5000;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 242px minmax(360px, 1fr) 242px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 224px;
  height: 62px;
  padding: 6px 10px 6px 6px;
  overflow: hidden;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(6, 18, 39, 0.14);
}

.logo-mark {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 10px;
}

.logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1;
}

.logo-copy strong {
  display: block;
  color: #142c5c;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo-copy em {
  color: #f47f2d;
  font-style: normal;
}

.logo-copy small {
  display: block;
  color: #142c5c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.global-search {
  justify-self: center;
  display: flex;
  width: min(360px, 100%);
  height: 36px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(17, 35, 58, 0.08);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72), 0 10px 22px rgba(18, 42, 73, 0.12);
}

.global-search input {
  min-width: 0;
  flex: 1;
  padding: 0 15px;
  color: #23405f;
  font-size: 12px;
  border: 0;
  outline: 0;
}

.global-search button {
  width: 40px;
  color: #d7e4ff;
  background: #2c6ab6;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

.top-actions {
  position: relative;
  z-index: 5100;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.top-actions .login-link {
  color: #1c2f49;
  background: #ffffff;
}

.top-actions .action-icon,
.auth-nav .action-icon {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 14px 28px rgba(6, 18, 39, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.top-actions .login-link,
.auth-nav .login-link {
  color: #1c2f49;
  background:
    linear-gradient(145deg, #ffffff, #edf4ff);
  border-color: rgba(255, 255, 255, 0.82);
}

.action-icon:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 18px 34px rgba(6, 18, 39, 0.3);
}

.action-icon:active {
  transform: translateY(1px);
}

.icon-svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-popover-wrap {
  position: relative;
  z-index: 5200;
  display: inline-flex;
}

.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  color: #ffffff;
  background: #e11d48;
  border: 2px solid #ffffff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.34);
}

.nav-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 99999;
  width: 285px;
  max-height: min(430px, calc(100vh - 105px));
  overflow: auto;
  padding: 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(28, 43, 68, 0.12);
  border-radius: 8px;
  box-shadow: 0 24px 55px rgba(6, 18, 39, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.nav-popover[hidden] {
  display: none;
}

.nav-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 17px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-left: 1px solid rgba(28, 43, 68, 0.12);
  border-top: 1px solid rgba(28, 43, 68, 0.12);
  transform: rotate(45deg);
}

.nav-popover-wrap.is-open .nav-popover {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-popover strong {
  display: block;
  font-size: 14px;
  font-weight: 950;
}

.nav-popover p,
.popover-muted {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.popover-heading {
  display: block;
  margin-top: 12px;
  color: #516174;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.popover-list {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.top-actions .nav-popover a {
  justify-content: space-between;
  width: 100%;
  min-height: auto;
  padding: 9px;
  color: var(--ink);
  background: #f7f9fc;
  border: 1px solid rgba(28, 43, 68, 0.08);
  border-radius: 7px;
  text-align: left;
  text-transform: none;
}

.top-actions .nav-popover a:hover {
  background: #fff5ed;
  border-color: rgba(244, 127, 45, 0.26);
}

.nav-popover a span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-popover a small {
  margin-left: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.popover-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(28, 43, 68, 0.1);
}

.top-actions .nav-popover .popover-button {
  justify-content: center;
  margin-top: 10px;
  color: #ffffff;
  background: var(--orange);
  border-color: transparent;
}

.top-actions .nav-popover .popover-button.secondary {
  background: var(--blue);
}

.popover-logout {
  margin: 10px 0 0;
}

.popover-logout button {
  width: 100%;
  min-height: 34px;
  color: #b91c1c;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 950;
}

.popover-logout button:hover {
  color: #ffffff;
  background: #dc2626;
  border-color: #dc2626;
}

.left-panel,
.right-panel {
  min-height: 0;
  color: #ffffff;
}

.left-panel {
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.right-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  grid-template-rows: auto auto;
}

.right-panel > section {
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.vehicle-select {
  display: grid;
  gap: 10px;
  padding: 13px 12px;
  background: #f5f7fb;
  border: 1px solid rgba(28, 47, 73, 0.08);
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.64);
}

.vehicle-filters {
  grid-template-columns: 1fr;
}

.vehicle-kind-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.vehicle-kind-toggle label {
  position: relative;
  display: grid;
}

.vehicle-kind-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.vehicle-kind-toggle span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  color: #000000;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.vehicle-kind-toggle input:checked + span {
  color: #000000;
  background: #f8d6bd;
  border-color: #f47f2d;
}

.vehicle-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.vehicle-field span {
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.vehicle-field select {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  color: #111827;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 5px;
  outline: 0;
  font-size: 13px;
  font-weight: 800;
  min-width: 0;
}

.ticker {
  display: flex;
  align-items: center;
  min-height: 26px;
  margin-top: 8px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  background: #203f6c;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 7px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.ticker::before { content: "⚠"; margin-right: 7px; color: var(--orange); }
.ticker::after { content: "▶"; margin-left: auto; color: var(--orange); }
.fuel { background: #1c3862; }
.fuel::after { content: "-5%"; color: #dce5f4; }

.garage-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% - 18px);
  min-height: 50px;
  margin: 16px auto 14px;
  color: #ffffff;
  background: linear-gradient(180deg, #ff8c32, #f17623);
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 12px 20px rgba(0, 0, 0, 0.15);
}

.garage-button span { font-size: 24px; color: #1f5b9d; }
.mini-section { margin-top: 8px; }

.mini-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
}

.mini-title span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 8px;
  color: #ffffff;
  background: var(--orange);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
}

.bike-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-tile {
  position: relative;
  display: block;
  min-width: 0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}

.category-tile img {
  width: 100%;
  height: 72px;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.08) 56%, rgba(17, 24, 39, 0.2));
}

.category-tile span {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 8px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.92);
  color: #1c2f49;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-tile:hover img {
  transform: scale(1.04);
}

.mini-caption {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  text-transform: uppercase;
}

.announcement-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.announcement-item {
  display: grid;
  gap: 2px;
  padding: 8px;
  color: #1c2f49;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(28, 47, 73, 0.08);
  border-radius: 6px;
  text-decoration: none;
}

.announcement-item strong {
  font-size: 11px;
  line-height: 1.2;
}

.announcement-item small {
  color: #718096;
  font-size: 9px;
  line-height: 1.25;
}

.announcement-type {
  width: fit-content;
  padding: 2px 6px;
  color: #ffffff;
  background: #1c2f49;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.announcement-item:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.side-ad {
  position: relative;
  display: block;
  min-height: 260px;
  margin-top: 10px;
  overflow: hidden;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: var(--soft-shadow);
}

.side-ad img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.side-ad::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 25, 43, 0.08), rgba(13, 25, 43, 0.72));
}

.side-ad span {
  position: absolute;
  z-index: 1;
  left: 10px;
  right: 10px;
  bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.balance-card { margin-top: 18px; }
.balance-card strong { display: block; font-size: clamp(32px, 3.8vw, 42px); line-height: 1; }
.balance-card span { display: block; margin-top: 12px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.balance-card p { margin: 8px 0; color: #b8c6d9; font-size: 9px; }
.progress { width: 70%; height: 4px; background: rgba(255,255,255,0.2); border-radius: 999px; }
.progress span { display: block; width: 64%; height: 100%; background: #ffffff; border-radius: inherit; }

.market-card {
  align-self: stretch;
  min-height: 0;
  max-height: calc(100vh + 330px);
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,245,247,0.98));
  border: 1px solid rgba(255,255,255,0.46);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}


.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(28, 43, 68, 0.08);
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; color: #213556; font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
.selected-vehicle-label {
  display: inline;
  margin-left: 8px;
  color: #f47f2d;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.clear-vehicle-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.clear-vehicle-filter:hover {
  background: #fecaca;
}
.section-head button { display: none; }
.section-head button.clear-vehicle-filter {
  display: inline-flex;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 14px;
  height: auto;
}

.ad-carousel {
  position: relative;
  grid-column: 1 / -1;
  min-height: 440px;
  overflow: hidden;
  background: #111d2f;
  border: 1px solid rgba(17, 35, 58, 0.1);
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(14, 31, 57, 0.16);
}

.ad-carousel-track {
  position: relative;
  height: 100%;
  min-height: inherit;
}

.ad-slide {
  position: absolute;
  inset: 0;
  display: block;
  color: #ffffff;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.ad-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ad-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.ad-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 25, 43, 0.82), rgba(13, 25, 43, 0.22) 62%, rgba(13, 25, 43, 0.48));
}

.ad-slide-copy {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 72px;
  bottom: 22px;
  display: grid;
  gap: 6px;
  max-width: 520px;
}

.ad-slide-copy small {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  color: #10233b;
  font-size: 11px;
  font-weight: 800;
  background: #ffffff;
  border-radius: 4px;
}

.ad-slide-copy strong {
  font-size: 28px;
  line-height: 1.05;
}

.ad-carousel-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  background: rgba(13, 25, 43, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  transform: translateY(-50%);
}

.ad-carousel-control:hover {
  background: rgba(47, 103, 189, 0.88);
}

.ad-carousel-control.prev { left: 12px; }
.ad-carousel-control.next { right: 12px; }

.ad-carousel-dots {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 6px;
}

.ad-carousel-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  background: rgba(255, 255, 255, 0.52);
  border: 0;
  border-radius: 999px;
}

.ad-carousel-dots button.is-active {
  width: 22px;
  background: #ffffff;
}

.product {
  position: relative;
  min-height: 0;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(14, 31, 57, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 103, 189, 0.22);
  box-shadow: 0 14px 28px rgba(14, 31, 57, 0.16);
}

.product img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.garage-page .product img {
  object-fit: cover;
}

.product .save {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 14px;
  height: 14px;
  padding: 0;
  color: #294d7d;
  background: #eef4ff;
  border: 1px solid #afbdd1;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(41, 77, 125, 0.18);
}

.product .tag { position: absolute; top: 8px; right: 8px; }
.product .double { width: 42px; height: 26px; justify-content: center; text-align: center; line-height: 1.05; border-radius: 4px; }
.product h2 { margin: 0 0 6px; color: #1d2f4f; font-size: 18px; line-height: 1.15; }
.product strong { display: block; margin-bottom: 6px; color: #20385b; font-size: 16px; font-weight: 900; }
.product p { min-height: 32px; margin-bottom: 5px; color: #697586; font-size: 13px; line-height: 1.35; }

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.product-actions button,
.product-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 8px;
  color: #ffffff;
  background: linear-gradient(180deg, #ff8c32, #f17623);
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 7px 12px rgba(0, 0, 0, 0.12);
  transition: transform 160ms ease, filter 160ms ease;
}

.product-actions button:hover,
.product-actions a:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.product-actions button:active,
.product-actions a:active {
  transform: translateY(1px);
}

.product-actions .primary {
  background: linear-gradient(180deg, #3a77c9, #2f67bd);
}

.product-actions .wide { grid-column: 1 / -1; }

.garage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(28, 43, 68, 0.08);
}

.pagination a,
.pagination span,
.pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}

.pagination a {
  color: #ffffff;
  background: #f17623;
  box-shadow: 0 8px 16px rgba(241, 118, 35, 0.18);
}

.pagination span {
  color: #7c8798;
  background: #eef2f7;
}

.pagination strong {
  color: #1d2f4f;
  background: #ffffff;
  border: 1px solid rgba(28, 43, 68, 0.1);
}

.garage-card {
  display: grid;
  gap: 10px;
  padding: 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(14, 31, 57, 0.09);
}

.garage-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 7px;
  background: #f8fafc;
}

.garage-card-head {
  display: grid;
  gap: 6px;
}

.garage-card-head .tag {
  width: fit-content;
}

.garage-card h2 {
  margin: 0;
  color: #1d2f4f;
  font-size: 17px;
  line-height: 1.15;
}

.garage-rating {
  display: inline-flex;
  gap: 2px;
  color: #f7c948;
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.garage-rating .empty {
  color: #cbd5e1;
}

.garage-rating-large {
  font-size: 22px;
}

.garage-meta {
  display: grid;
  gap: 6px;
  margin: 0;
}

.garage-meta div {
  display: grid;
  gap: 3px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(28, 43, 68, 0.1);
}

.garage-meta dt {
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.garage-meta dd {
  margin: 0;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.garage-specialties {
  display: grid;
  gap: 6px;
}

.garage-specialties strong {
  color: #1d2f4f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.garage-specialties ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.garage-specialties li {
  display: inline-flex;
}

.garage-specialties a,
.garage-specialties .specialty-empty {
  display: inline-flex;
  align-items: center;
  padding: 5px 7px;
  color: #1f2937;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.garage-specialties a:hover,
.garage-specialties a.active {
  color: #ffffff;
  background: #f17623;
  border-color: #f17623;
}

.garage-detail .detail-media img {
  object-fit: cover;
}

.map-toggle-button {
  width: 100%;
}

.garage-map-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(14, 31, 57, 0.09);
}

.garage-map-panel[hidden] {
  display: none;
}

.garage-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.garage-map-head h2 {
  margin: 0;
  color: #1d2f4f;
  font-size: 20px;
  line-height: 1.15;
}

.garage-map-head button {
  min-height: 32px;
  padding: 0 12px;
  color: #ffffff;
  background: #1f5b9d;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.garage-map {
  width: 100%;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid rgba(28, 43, 68, 0.12);
  border-radius: 8px;
}

.cool-garage-marker {
  display: grid;
  place-items: center;
}

.cool-garage-marker span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: #f17623;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(14, 31, 57, 0.3);
  font-size: 15px;
  font-weight: 900;
}

.leaflet-popup-content {
  display: grid;
  gap: 5px;
  margin: 10px 12px;
  color: #1f2937;
  font-family: inherit;
}

.leaflet-popup-content strong {
  color: #1d2f4f;
  font-size: 15px;
}

.leaflet-popup-content small,
.leaflet-popup-content span,
.leaflet-popup-content em {
  display: block;
  color: #4b5563;
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
}

.leaflet-popup-content a {
  color: #f17623;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.cart-modal[hidden] {
  display: none;
}

.cart-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}

.cart-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  color: #1f2937;
  background: #f3f4f6;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
}

.cart-title {
  color: #1d2f4f;
  font-size: 20px;
  font-weight: 900;
}

.cart-dialog p {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  font-weight: 800;
}

.cart-quantity {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 8px;
  align-items: center;
}

.cart-quantity button,
.cart-quantity input {
  min-height: 38px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.cart-quantity button {
  color: #ffffff;
  background: #1f5b9d;
  border: 0;
}

.cart-quantity input {
  color: #111827;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.cart-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cart-modal-actions a,
.checkout-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  color: #ffffff;
  background: #1f5b9d;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.cart-modal-actions .primary,
.checkout-primary {
  background: #f17623;
}

.checkout-shell {
  min-height: 100vh;
  padding: 24px;
  background: #eef4f8;
}

.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto 18px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.checkout-error {
  grid-column: 1 / -1;
  padding: 12px 14px;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}

.checkout-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(14, 31, 57, 0.09);
}

.checkout-card h1,
.checkout-card h2 {
  margin: 0;
  color: #1d2f4f;
  font-size: 22px;
  line-height: 1.15;
}

.checkout-card label {
  display: grid;
  gap: 6px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 900;
}

.checkout-card input,
.checkout-card textarea,
.checkout-card select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
}

.checkout-card textarea {
  min-height: 82px;
  resize: vertical;
}

.auth-body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 16%, rgba(92, 146, 220, 0.24), transparent 26%),
    radial-gradient(circle at 82% 24%, rgba(244, 127, 45, 0.16), transparent 22%),
    linear-gradient(135deg, #18365f 0%, #1d3b66 45%, #163053 100%);
}

.auth-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  min-height: 100vh;
  padding: 22px;
}

.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.auth-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-grid {
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 18px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.auth-card {
  align-content: start;
  min-height: 0;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 24px 54px rgba(6, 18, 39, 0.24);
}

.auth-card p {
  margin: 8px 0 0;
  color: #5e6b7c;
  font-size: 14px;
  line-height: 1.45;
}

.auth-two-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-errors {
  padding: 10px 12px;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.reception-shell {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.reception-card {
  width: min(420px, 100%);
}

.reception-card .logo {
  margin-bottom: 12px;
}

.reception-message {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.reception-message-success {
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.reception-message-error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.checkout-summary {
  align-self: start;
  grid-row: span 4;
}

.checkout-summary p,
.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #374151;
  font-size: 14px;
  font-weight: 800;
}

.checkout-total {
  padding-top: 12px;
  border-top: 1px solid rgba(28, 43, 68, 0.12);
}

.checkout-total strong {
  color: #1d2f4f;
  font-size: 18px;
  font-weight: 900;
}

.cart-lines {
  display: grid;
  gap: 10px;
}

.cart-market-card {
  align-content: start;
}

.cart-main-card {
  box-shadow: none;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 130px 120px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid rgba(28, 43, 68, 0.1);
  border-radius: 8px;
}

.cart-line h2 {
  margin: 0 0 4px;
  color: #1d2f4f;
  font-size: 17px;
}

.cart-line p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.cart-quantity.inline {
  grid-template-columns: 32px 1fr 32px;
}

.success-card {
  max-width: 620px;
  margin: 60px auto 0;
  text-align: center;
}

.invoice-shell {
  padding: 28px;
  background: #eef4f8;
}

.invoice-document {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 28px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(14, 31, 57, 0.12);
}

.invoice-header {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 2px solid #e5eaf2;
}

.invoice-company,
.invoice-address,
.invoice-title {
  display: grid;
  gap: 8px;
}

.invoice-address {
  color: #526173;
  font-size: 13px;
  line-height: 1.45;
}

.invoice-address strong {
  color: #17233a;
  font-size: 15px;
}

.invoice-title {
  justify-items: start;
  align-content: start;
  text-align: left;
}

.invoice-title span {
  color: #f47f2d;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-title strong {
  color: #17233a;
  font-size: 28px;
  line-height: 1.1;
}

.invoice-title small {
  color: #6b7280;
  font-weight: 800;
}

.invoice-parties,
.invoice-meta,
.invoice-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.invoice-parties > div,
.invoice-meta > div,
.invoice-note,
.invoice-totals {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
}

.invoice-parties-flat {
  align-items: start;
  margin-top: 22px;
}

.invoice-parties-flat > div {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.invoice-parties-flat .invoice-company {
  justify-items: end;
  text-align: right;
}

.invoice-parties-flat .invoice-address {
  justify-items: end;
}

.invoice-client-details h2 {
  margin-top: 18px;
}

.invoice-client-details h2:first-child {
  margin-top: 0;
}

.invoice-parties h2,
.invoice-lines h2,
.invoice-note h2 {
  margin: 0 0 10px;
  color: #1d2f4f;
  font-size: 16px;
  font-weight: 900;
}

.invoice-parties p,
.invoice-note p {
  margin: 4px 0;
  color: #526173;
  font-size: 13px;
  line-height: 1.45;
}

.invoice-meta > div {
  display: grid;
  gap: 5px;
}

.invoice-meta span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.invoice-meta strong {
  color: #1d2f4f;
  font-size: 14px;
}

.invoice-lines {
  margin-top: 22px;
}

.invoice-lines table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #e5eaf2;
  border-radius: 8px;
}

.invoice-lines th,
.invoice-lines td {
  padding: 12px;
  border-bottom: 1px solid #e5eaf2;
  font-size: 13px;
  text-align: left;
}

.invoice-lines th {
  color: #1d2f4f;
  background: #eef3f8;
  font-weight: 900;
}

.invoice-lines tr:last-child td {
  border-bottom: 0;
}

.invoice-totals {
  align-self: start;
  display: grid;
  gap: 10px;
}

.invoice-totals p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  color: #374151;
  font-size: 14px;
  font-weight: 850;
}

.invoice-grand-total {
  padding-top: 12px;
  border-top: 2px solid #dfe4ec;
}

.invoice-grand-total strong {
  color: #f47f2d;
  font-size: 20px;
}

.invoice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.invoice-actions .checkout-primary {
  width: auto;
  min-height: 40px;
  padding: 0 16px;
}

.invoice-print {
  border: 0;
}

@media print {
  .invoice-shell {
    padding: 0;
    background: #ffffff;
  }

  .invoice-document {
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .invoice-actions {
    display: none;
  }
}

.nearby-garages {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.nearby-garages h2 {
  margin: 0;
  color: #1d2f4f;
  font-size: 20px;
  line-height: 1.15;
}

.nearby-garage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nearby-garage-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(14, 31, 57, 0.08);
}

.nearby-garage-card img {
  width: 74px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 7px;
}

.nearby-garage-card span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nearby-garage-card strong {
  color: #1d2f4f;
  font-size: 15px;
  line-height: 1.2;
}

.nearby-garage-card small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.empty-state {
  margin: 0;
  padding: 18px;
  color: #4b5563;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.detail-card {
  overflow: visible;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.detail-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(14, 31, 57, 0.09);
}

.detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.detail-info {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(14, 31, 57, 0.09);
}

.detail-info .tag {
  position: static;
  width: fit-content;
}

.detail-info h2 {
  margin: 0;
  color: #1d2f4f;
  font-size: 25px;
  line-height: 1.1;
}

.detail-price {
  color: #20385b;
  font-size: 21px;
  font-weight: 900;
}

.detail-specs {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-specs div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(28, 43, 68, 0.1);
}

.detail-specs dt {
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-specs dd {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.detail-note {
  padding: 12px;
  background: #f8fafc;
  border: 1px solid rgba(28, 43, 68, 0.08);
  border-radius: 8px;
}

.detail-note h3 {
  margin: 0 0 8px;
  color: #1d2f4f;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-note p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.detail-cart-button {
  min-height: 44px;
  color: #ffffff;
  background: linear-gradient(180deg, #ff8c32, #f17623);
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 7px 12px rgba(0, 0, 0, 0.12);
}

.right-panel h2 {
  margin: 0 0 10px;
  color: #eef4ff;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.side-switch-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-bottom: 10px;
  padding: 0 12px;
  color: #ffffff;
  background: linear-gradient(180deg, #ff8c32, #f17623);
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.38), 0 10px 18px rgba(0, 0, 0, 0.14);
  transition: transform 160ms ease, filter 160ms ease;
}

.side-switch-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.side-switch-button:active {
  transform: translateY(1px);
}

.showroom-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.project {
  position: relative;
  overflow: hidden;
  background: #213e6b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(9, 24, 45, 0.14);
}

.project img { display: block; width: 100%; height: 92px; object-fit: cover; }
.project-wide img { height: 68px; }
.project-badge { position: absolute; left: 8px; top: 8px; color: #ffd447; font-size: 15px; text-shadow: 0 1px 3px rgba(0,0,0,0.35); }
.project strong { display: block; padding: 4px 6px 6px; color: #ffffff; background: #213e6b; font-size: 7px; }
.project-info {
  display: grid;
  gap: 3px;
  padding: 7px 9px 8px;
  background: #213e6b;
}

.project-info a {
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.project-info a:hover {
  text-decoration: underline;
}

.project-info small {
  color: #d7e2f0;
  font-size: 11px;
  line-height: 1.25;
}
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 10px; }

.agenda-card,
.guide-card { padding-top: 2px; }

.guide-card {
  display: flex;
  flex-direction: column;
}

.agenda-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 8px;
  background: #203f6c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}

.agenda-grid button {
  min-height: 18px;
  padding: 0 6px;
  color: #d5dfef;
  text-align: left;
  background: transparent;
  border: 0;
  font-size: 8px;
}

.agenda-grid button::before { content: "●"; margin-right: 5px; color: var(--orange); }
.agenda-grid .active { color: #ffffff; background: rgba(255,255,255,0.12); border-radius: 8px; }

.ad-banner {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(14, 31, 57, 0.12);
}

.ad-banner img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.ad-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 25, 43, 0.1), rgba(13, 25, 43, 0.74));
}

.ad-banner span {
  position: absolute;
  z-index: 1;
  left: 10px;
  right: 10px;
  bottom: 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.google-ad {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 150px;
  margin-top: 18px;
  padding: 12px;
  color: #1f2937;
  text-align: center;
  background: #ffffff;
  border: 1px dashed rgba(31, 41, 55, 0.34);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(14, 31, 57, 0.1);
}

.google-ad span {
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.google-ad strong {
  color: #1f2937;
  font-size: 13px;
  font-weight: 900;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: 33px;
  background: rgba(42, 45, 50, 0.92);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
}

.bottom-nav[hidden] {
  display: none;
}

.bottom-nav a {
  display: grid;
  place-items: center;
  align-content: center;
  color: #9aa1ad;
  text-decoration: none;
  font-size: 14px;
}

.bottom-nav a span { margin-top: 1px; font-size: 7px; }
.bottom-nav .active { color: var(--orange); }

@media (max-width: 980px) {
  body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell {
    min-height: calc(100vh - 41px);
    grid-template-columns: 218px minmax(420px, 1fr);
  }

  .topbar { grid-template-columns: minmax(180px, 1fr) auto; }
  .topbar .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
  }
  .topbar .top-actions { justify-self: end; }
  .right-panel { grid-column: 1 / -1; grid-template-columns: 1.2fr 0.9fr 0.9fr; grid-template-rows: none; }
  .garage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .app-shell {
    display: block;
    min-height: calc(100vh - 41px);
    padding: 8px 10px 8px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 10px;
    margin-bottom: 12px;
  }

  .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
  }

  .top-actions {
    justify-self: end;
  }

  .top-actions { gap: 6px; }
  .top-actions a { min-height: 30px; padding: 0 8px; font-size: 10px; }
  .top-actions .action-icon { width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 50%; }
  .icon-svg { width: 20px; height: 20px; }
  .auth-grid { grid-template-columns: 1fr; align-self: start; }
  .auth-shell { padding: 16px; }
  .auth-head { align-items: flex-start; }
  .auth-two-fields { grid-template-columns: 1fr; }
  .left-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .vehicle-select, .garage-button, .mini-section, .balance-card { margin: 0; }
  .vehicle-select { grid-column: span 2; }
  .ticker { margin-top: 0; }
  .garage-button { width: 100%; grid-column: span 2; }
  .mini-section, .balance-card { grid-column: span 2; }
  .market-card {
    min-height: 0;
    max-height: none;
    padding: 18px 14px;
    margin-bottom: 16px;
    overflow: visible;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: auto;
  }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; height: auto; }
  .ad-carousel { min-height: 190px; }
  .ad-slide img { min-height: 190px; }
  .ad-slide-copy { left: 18px; right: 56px; bottom: 18px; }
  .ad-slide-copy strong { font-size: 22px; }
  .garage-list { grid-template-columns: 1fr; }
  .nearby-garage-list { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-media { aspect-ratio: 1 / 1; }
  .cart-line { grid-template-columns: 1fr; }
  .right-panel { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar { grid-template-columns: minmax(130px, 1fr) auto; }
  .logo { width: 168px; height: 52px; padding: 5px 8px 5px 5px; }
  .logo-mark { flex-basis: 42px; width: 42px; height: 42px; }
  .logo-mark img { width: 100%; height: 100%; transform: none; }
  .logo-copy strong { font-size: 16px; }
  .logo-copy small { font-size: 8px; }
  .top-actions .action-icon { width: 32px; height: 32px; min-height: 32px; }
  .icon-svg { width: 18px; height: 18px; }
  .global-search { width: 100%; height: 34px; }
  .left-panel { grid-template-columns: 1fr; }
  .vehicle-select { grid-column: auto; }
  .garage-button, .mini-section, .balance-card { grid-column: auto; }
  .product-grid { grid-template-columns: 1fr; }
  .ad-carousel { min-height: 170px; }
  .ad-slide img { min-height: 170px; }
  .ad-slide-copy { left: 14px; right: 46px; bottom: 14px; }
  .ad-slide-copy strong { font-size: 18px; line-height: 1.12; }
  .ad-carousel-control { width: 30px; height: 30px; font-size: 21px; }
  .garage-list { grid-template-columns: 1fr; }
  .nearby-garage-list { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   RAFFINEMENTS DESIGN — ÉLÉGANCE & FINESSE
   ====================================================== */

/* Typographie raffinée */
:root {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Barre de recherche en pilule avec glow au focus */
.global-search {
  border-radius: 999px;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.global-search:focus-within {
  border-color: rgba(47, 103, 189, 0.45);
  box-shadow: 0 0 0 3px rgba(47, 103, 189, 0.15), inset 0 1px 0 rgba(255,255,255,0.72), 0 10px 22px rgba(18, 42, 73, 0.12);
}
.global-search button {
  border-radius: 0 999px 999px 0;
  transition: background 180ms ease;
}
.global-search button:hover { background: #1f57a0; }

/* Topbar : lumière supérieure subtile */
.topbar {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* Logo hover */
.logo {
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(6, 18, 39, 0.22);
}

/* Icônes d'action : meilleur focus ring */
.action-icon:focus-visible {
  outline: 2px solid rgba(244, 127, 45, 0.7);
  outline-offset: 3px;
}

/* Lettres espacées sur tous les boutons/libellés majuscules */
.top-actions a,
.garage-button,
.product-actions button,
.product-actions a,
.detail-cart-button,
.side-switch-button,
.cart-modal-actions a,
.checkout-primary,
.ticker {
  letter-spacing: 0.05em;
}

/* Carte produit : élévation sur hover plus prononcée */
.product {
  transition: transform 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 220ms ease, border-color 220ms ease;
}
.product:hover {
  transform: translateY(-5px) scale(1.012);
  border-color: rgba(47, 103, 189, 0.28);
  box-shadow: 0 20px 40px rgba(14, 31, 57, 0.18);
}

/* Image produit : léger zoom au survol */
.product img {
  transition: transform 320ms ease;
}
.product:hover img {
  transform: scale(1.04);
}

/* Carte garage : hover élégant */
.garage-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.garage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(14, 31, 57, 0.15);
}

/* Annonces : glissement horizontal au hover */
.announcement-item {
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.announcement-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 18px rgba(14, 31, 57, 0.12);
}

/* Category tile : libellé orange au hover */
.category-tile span {
  transition: background 200ms ease, color 200ms ease;
}
.category-tile:hover span {
  background: rgba(244, 127, 45, 0.92);
  color: #ffffff;
}

/* Scrollbar personnalisée sur la carte marché */
.market-card { scroll-behavior: smooth; }
.market-card::-webkit-scrollbar { width: 4px; }
.market-card::-webkit-scrollbar-track { background: transparent; }
.market-card::-webkit-scrollbar-thumb {
  background: rgba(47, 103, 189, 0.28);
  border-radius: 999px;
}
.market-card::-webkit-scrollbar-thumb:hover {
  background: rgba(47, 103, 189, 0.5);
}

/* Pagination : micro hover */
.pagination a {
  transition: transform 140ms ease, filter 140ms ease;
}
.pagination a:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Badge panier : pulsation subtile */
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 8px 18px rgba(225, 29, 72, 0.34); }
  50%       { box-shadow: 0 8px 18px rgba(225, 29, 72, 0.5), 0 0 0 5px rgba(225, 29, 72, 0.08); }
}
.cart-badge { animation: badge-pulse 2.8s ease-in-out infinite; }

/* Navigation mobile : indicateur actif + transition */
.bottom-nav a {
  transition: color 140ms ease;
  border-top: 2px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.bottom-nav .active { border-top-color: var(--orange); }
.bottom-nav a:hover:not(.active) { color: rgba(244, 127, 45, 0.75); }

/* Boutons de contrôle carousel */
.ad-carousel-control {
  transition: background 180ms ease, transform 160ms ease;
}
.ad-carousel-control:hover { transform: translateY(-50%) scale(1.08); }

/* Specialty tags : transition couleur */
.garage-specialties a {
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

/* Focus rings universels accessibles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(244, 127, 45, 0.65);
  outline-offset: 2px;
}

/* Nearby garage card hover */
.nearby-garage-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.nearby-garage-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(14, 31, 57, 0.14);
}

/* Project card hover (garages sidebar) */
.project {
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.project:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(9, 24, 45, 0.22);
}

/* Bouton garage call-to-action */
.garage-button {
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}
.garage-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.48), 0 16px 28px rgba(0, 0, 0, 0.2);
}
.garage-button:active { transform: translateY(1px); }
