/* ============================================================
   LAYOUT — header, footer, hero, grids, sections
   ============================================================ */

/* ── HEADER ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Brand mark */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  color: var(--white);
  transition: opacity var(--dur-fast);
}
.brand:hover { opacity: 0.8; }
.brand-mark {
  display: inline-flex;
  color: var(--red);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-primary {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--white);
}
.brand-secondary {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 3px;
}

/* Nav */
.primary-nav {
  display: flex;
  gap: 2px;
  margin-left: var(--sp-5);
}
.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 14px;
  border-radius: var(--r-md);
  letter-spacing: 0.02em;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav-link[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
}
.admin-badge {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: #fbbf24;
  color: #111;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.cart-btn { width: auto; padding: 0 12px; gap: 6px; }
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--r-pill);
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--f-mono);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-cta { white-space: nowrap; }

/* Hamburger */
.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  margin-left: 4px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
  border-radius: 2px;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--black);
  border-bottom: 2px solid var(--red);
  padding: var(--sp-2) 0 var(--sp-4);
  box-shadow: var(--sh-lg);
}
.mobile-menu a {
  display: block;
  padding: 14px var(--sp-6);
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.mobile-menu a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.mobile-menu hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0;
}
.mob-tel { color: var(--red) !important; font-weight: 700 !important; }

/* ── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding: var(--sp-11) var(--sp-6) var(--sp-10);
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 20% 30%, rgba(200, 0, 47, 0.2), transparent 70%),
    radial-gradient(600px 400px at 90% 80%, rgba(200, 0, 47, 0.1), transparent 70%),
    linear-gradient(180deg, #0c0c0c 0%, #1a1a1a 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--red);
  box-shadow: 0 0 40px var(--red);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero-content .eyebrow { color: var(--red); }
.hero-content .eyebrow-dash { background: var(--red); }

.hero-title {
  font-family: var(--f-display);
  font-size: var(--fs-display);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: var(--sp-5);
}
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in 0.8s var(--ease-out) forwards;
  animation-delay: calc(var(--d) * 120ms + 100ms);
}
.hero-em { color: var(--red); }

@keyframes hero-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-md);
  max-width: 480px;
  margin-bottom: var(--sp-7);
  line-height: 1.7;
  opacity: 0;
  animation: hero-in 0.8s var(--ease-out) 0.5s forwards;
}

.search-bar {
  display: flex;
  max-width: 600px;
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-xl);
  opacity: 0;
  animation: hero-in 0.8s var(--ease-out) 0.65s forwards;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--white);
}
.search-bar input::placeholder { color: var(--slate-400); }
.btn-search {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0 28px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color var(--dur-fast);
}
.btn-search:hover { background: var(--red-700); }

/* ── TRUST STRIP ───────────────────────────────────── */
.trust-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  position: relative;
}
.trust-item + .trust-item { padding-left: var(--sp-6); }
.trust-item + .trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: var(--border);
}
.trust-icon {
  font-size: 18px;
  width: 36px;
  height: 36px;
  background: var(--red-glow);
  color: var(--red);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}
.trust-item div { display: flex; flex-direction: column; }
.trust-item strong {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
}
.trust-item span {
  font-size: var(--fs-xs);
  color: var(--text-mid);
}

/* ── CATEGORY STRIP ────────────────────────────────── */
.cat-strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--sp-6);
  display: flex;
  gap: var(--sp-1);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-btn {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-mid);
  padding: 14px 22px;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color var(--dur-fast), border-color var(--dur-fast);
  letter-spacing: 0.02em;
}
.cat-btn:hover { color: var(--text); }
.cat-btn.is-active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* ── PRODUCT GRID ──────────────────────────────────── */
.grid-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-6);
}
.grid-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--text-mid);
}
.sort-select {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 14px;
  font-size: var(--fs-sm);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--dur-fast);
}
.sort-select:hover { border-color: var(--text-mid); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-5);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 0, 47, 0.3);
  box-shadow: var(--sh-lg);
}
.product-card:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 4px;
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.product-card:hover .card-img img { transform: scale(1.06); }

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--r-xs);
}

.card-body { padding: 16px 18px 18px; }
.card-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.card-model {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: var(--text-soft);
  margin-bottom: var(--sp-3);
  letter-spacing: 0.02em;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-price {
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.card-price small {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-mid);
  margin-right: 2px;
}
.btn-add {
  background: var(--red);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color var(--dur-fast), transform var(--dur-fast);
  flex-shrink: 0;
}
.btn-add:hover { background: var(--red-700); transform: translateY(-1px); }
.btn-add:active { transform: scale(0.96); }

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-11) var(--sp-5);
  color: var(--text-mid);
}
.empty-state .icon { font-size: 48px; margin-bottom: var(--sp-3); opacity: 0.5; }
.empty-state h3 { font-size: var(--fs-lg); color: var(--text); margin-bottom: var(--sp-2); }

/* Skeleton loaders */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.skeleton {
  background: linear-gradient(90deg, var(--border) 0%, var(--bg-alt) 50%, var(--border) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-img { aspect-ratio: 4 / 3; }
.skeleton-line { height: 14px; border-radius: 4px; margin: 10px 18px; }
.skeleton-line:first-of-type { margin-top: 18px; }
.skeleton-line.short { width: 50%; margin-bottom: 18px; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── SERVICES SECTION ──────────────────────────────── */
.services {
  background: var(--bg-alt);
  padding: var(--sp-11) var(--sp-6);
  border-top: 1px solid var(--border);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}
.svc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-7) var(--sp-6);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}
.svc-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.svc-card:hover .svc-icon { transform: scale(1.15) rotate(-3deg); }
.svc-icon {
  font-size: 38px;
  margin-bottom: var(--sp-4);
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}
.svc-card h3 {
  font-family: var(--f-display);
  font-size: var(--fs-xl);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-3);
}
.svc-card p {
  font-size: var(--fs-sm);
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--sp-4);
}
.svc-price {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
  background: var(--red-glow);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  align-self: flex-start;
}

/* ── WHY SECTION ───────────────────────────────────── */
.why {
  background: var(--ink);
  color: var(--white);
  padding: var(--sp-11) var(--sp-6);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: center;
  position: relative;
  z-index: 1;
}
.why-text .eyebrow { color: var(--red); }
.why-text .eyebrow-dash { background: var(--red); }
.why-text .section-title { color: var(--white); margin-bottom: var(--sp-4); }
.why-text .section-desc { color: rgba(255, 255, 255, 0.7); }
.why-text .btn { margin-top: var(--sp-5); }

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: rgba(255, 255, 255, 0.02);
  padding: var(--sp-7) var(--sp-6);
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  transition: background-color var(--dur-base);
}
.stat:hover { background: rgba(200, 0, 47, 0.12); }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(36px, 4vw, 56px);
  color: var(--red);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── FOOTER ────────────────────────────────────────── */
.site-footer { background: var(--black); color: var(--white); }

.footer-cta {
  background: var(--red);
  padding: var(--sp-7) var(--sp-6);
}
.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.footer-cta .eyebrow {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}
.footer-cta .eyebrow-dash { background: rgba(255, 255, 255, 0.6); }
.footer-cta-title {
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-cta-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.footer-main {
  padding: var(--sp-10) var(--sp-6) var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: var(--sp-7);
}
.footer-brand-col { padding-right: var(--sp-5); }
.footer-logo {
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: var(--sp-3);
}
.footer-logo span { color: var(--red); }
.footer-tagline {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
  max-width: 320px;
}
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-badges span {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  padding: 5px 10px;
  border-radius: var(--r-pill);
}

.footer-col h3 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--dur-fast);
}
.footer-col li a:hover { color: var(--white); }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact li > span:first-child {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.footer-contact li a, .footer-contact li > span:last-child {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}
.footer-contact li a:hover { color: var(--white); }

.footer-bottom { padding: var(--sp-5) var(--sp-6); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom strong { color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.footer-bottom-links {
  display: flex;
  gap: var(--sp-5);
}
.footer-bottom-links a {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--dur-fast);
}
.footer-bottom-links a:hover { color: var(--white); }
