/* ========================================
   NEXUS BIKE — PREMIUM RACING DESIGN
   ======================================== */

:root {
  --black: #090909;
  --dark: #101010;
  --card: #151515;
  --white: #f5f5f5;
  --muted: #929292;
  --red: #e5242a;
  --red-dark: #b8171d;
  --border: #292929;
  --heading: "Barlow Condensed", sans-serif;
  --body: "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  overflow-x: hidden;
  line-height: 1.6;
}
body.cart-open, body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
::selection { background: var(--red); color: white; }

.announcement {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: var(--red);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-align: center;
}

.header {
  height: 78px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: rgba(9,9,9,0.97);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { display: inline-flex; align-items: center; font-family: var(--heading); font-size: 29px; font-weight: 900; letter-spacing: -0.8px; white-space: nowrap; }
.logo span:first-child { color: var(--red); margin-left: 5px; }
.logo .logo-dot { color: white; margin-left: 1px; }
.navigation { display: flex; align-items: center; gap: 34px; }
.navigation a, .footer-links a {
  color: #b8b8b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.navigation a:hover, .footer-links a:hover { color: var(--red); }
.cart-button {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #363636;
  background: transparent;
  padding: 10px 15px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
}
#cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  background: var(--red);
  border-radius: 50%;
  font-size: 10px;
}
.menu-button { display: none; background: transparent; border: 0; font-size: 25px; cursor: pointer; }

.section-padding { padding: 110px 7%; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 2.4px; }
.eyebrow > span { width: 23px; height: 2px; background: var(--red); display: inline-block; }
h1, h2, h3, strong, span, p, label, a, button, input, textarea { font-family: var(--body); }
h1, h2, h3 { font-family: var(--heading); line-height: 0.98; }
h2 { font-size: clamp(40px, 5vw, 65px); font-weight: 900; letter-spacing: -1px; }
h2 span, h1 span { color: var(--red); }
.button { min-height: 49px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border: 1px solid transparent; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.button-red { background: var(--red); color: white; }
.button-red:hover { background: var(--red-dark); }
.button-outline { border-color: #505050; background: rgba(0,0,0,0.15); color: white; }
.button-outline:hover { border-color: white; }
.button span { font-size: 16px; }

.hero {
  position: relative;
  min-height: 650px;
  height: min(780px, calc(100vh - 108px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b0b0b;
}
.hero-image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.85) 30%, rgba(8,8,8,0.45) 65%, rgba(8,8,8,0.2) 100%),
    url("https://tractionbikes.co.uk/cdn/shop/files/ubx-desertbrown.jpg?v=1787158951");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-content { width: 100%; max-width: 720px; position: relative; z-index: 2; padding: 70px 0 65px 10%; }
.hero h1 { margin-top: 25px; color: var(--red); font-size: clamp(76px, 10vw, 135px); font-weight: 900; letter-spacing: -3px; line-height: 0.83; }
.hero-description { max-width: 390px; margin-top: 28px; color: #c2c2c2; font-size: 13px; line-height: 1.9; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-footer { display: flex; flex-wrap: wrap; gap: 35px; margin-top: 65px; }
.hero-footer div { display: flex; flex-direction: column; gap: 5px; }
.hero-footer strong { font-family: var(--heading); font-size: 23px; color: var(--red); }
.hero-footer span { color: #aaa; font-size: 8px; font-weight: 700; letter-spacing: 1.4px; }
.hero-side-label { position: absolute; z-index: 2; right: 25px; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%); color: rgba(255,255,255,0.65); font-size: 8px; font-weight: 700; letter-spacing: 1.8px; }

.category-strip {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 28px; padding: 23px 20px; background: var(--red); color: white; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
.category-strip .separator { color: rgba(255,255,255,0.5); }

.gallery {
  background: #0d0d0d;
}
.gallery-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.gallery-item {
  display: block;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: #171717;
}
.gallery-item figcaption {
  padding: 14px 16px;
  color: #c7c7c7;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.shop { background: var(--black); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.section-heading h2 { margin-top: 20px; }
.section-description { max-width: 490px; margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.product-count { padding: 10px 13px; border: 1px solid var(--border); color: #aaa; font-size: 9px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.shop-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 45px; margin-bottom: 27px; }
.search-box { width: min(320px, 100%); height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--border); background: #111; }
.search-box > span { color: var(--red); font-size: 25px; }
.search-box input { width: 100%; min-width: 0; background: transparent; border: 0; outline: none; color: white; font-size: 11px; }
.search-box input::placeholder { color: #777; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { padding: 11px 13px; border: 1px solid var(--border); background: transparent; color: #aaa; font-size: 9px; font-weight: 800; letter-spacing: 0.7px; cursor: pointer; }
.filter-button:hover, .filter-button.active { background: var(--red); color: white; border-color: var(--red); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.product-card { min-width: 0; background: var(--card); border: 1px solid #222; cursor: pointer; overflow: hidden; }
.product-card:hover { border-color: #555; transform: translateY(-4px); }
.product-image-wrap { position: relative; aspect-ratio: 1 / 0.91; overflow: hidden; background: radial-gradient(ellipse at center, #292929 0%, #141414 65%); }
.product-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-badge { position: absolute; top: 12px; left: 12px; padding: 6px 8px; background: var(--red); color: white; font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.product-info { padding: 19px 15px 15px; }
.product-category { color: var(--red); font-size: 8px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.product-name { margin-top: 9px; font-family: var(--heading); font-size: 23px; font-weight: 700; line-height: 1.05; }
.product-description { min-height: 38px; margin-top: 9px; color: #929292; font-size: 10px; line-height: 1.7; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 19px; padding-top: 13px; border-top: 1px solid #2a2a2a; }
.product-price { font-family: var(--heading); font-size: 24px; font-weight: 800; }
.add-button { width: 37px; height: 37px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 0; background: var(--red); color: white; font-size: 22px; cursor: pointer; }
.add-button:hover { background: var(--red-dark); }
.catalogue-note { margin-top: 28px; color: #777; font-size: 10px; line-height: 1.8; }
.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed #333; }
.empty-state h3 { font-size: 30px; }
.empty-state p { margin-top: 10px; color: var(--muted); font-size: 12px; }

.brand-banner { min-height: 440px; display: flex; align-items: center; position: relative; overflow: hidden; background: #121212; }
.brand-banner-image { position: absolute; inset: 0; background-image: linear-gradient(90deg, #101010 0%, rgba(16,16,16,0.94) 35%, rgba(16,16,16,0.48) 100%), url("./assets/banner-bike.svg"); background-size: cover; background-position: center; }
.brand-banner-content { position: relative; z-index: 1; max-width: 620px; padding: 85px 7%; }
.brand-banner h2 { margin-top: 20px; font-size: clamp(55px, 7vw, 85px); }
.brand-banner-content > p:not(.eyebrow) { max-width: 360px; margin-top: 20px; margin-bottom: 25px; color: #b4b4b4; font-size: 12px; line-height: 1.9; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; border-bottom: 1px solid var(--border); }
.benefit { padding: 10px 0; }
.benefit-number { color: var(--red); font-family: var(--heading); font-size: 25px; font-weight: 800; }
.benefit h3 { margin-top: 17px; font-size: 25px; }
.benefit p { max-width: 270px; margin-top: 13px; color: var(--muted); font-size: 11px; line-height: 1.9; }

.contact-section { display: flex; justify-content: space-between; align-items: center; gap: 35px; background: #111; }
.contact-section h2 { margin-top: 20px; }
.contact-section > div > p:last-child { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.contact-section .button { flex-shrink: 0; }

.footer { padding: 45px 7%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 25px; background: #080808; }
.footer > p { color: #888; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { font-size: 9px; }
.footer .copyright { width: 100%; padding-top: 22px; border-top: 1px solid #222; font-size: 8px; letter-spacing: 1px; }

.cart-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.75); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; z-index: 201; top: 0; right: 0; width: min(440px, 100%); height: 100dvh; display: flex; flex-direction: column; padding: 27px; background: #111; border-left: 1px solid #2a2a2a; transform: translateX(100%); transition: transform 0.3s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 25px; border-bottom: 1px solid #303030; }
.cart-header h2 { margin-top: 12px; font-size: 35px; }
.close-cart { width: 38px; height: 38px; background: #222; border: 1px solid #393939; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 15px 0; }
.cart-empty { padding: 35px 0; color: var(--muted); font-size: 12px; text-align: center; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 17px 0; border-bottom: 1px solid #292929; }
.cart-item-name { font-family: var(--heading); font-size: 22px; }
.cart-item-price { margin-top: 5px; color: #bbb; font-size: 11px; }
.cart-item-actions { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.quantity-button { width: 27px; height: 27px; background: #222; border: 1px solid #383838; cursor: pointer; }
.quantity-number { min-width: 16px; text-align: center; font-size: 11px; }
.remove-button { margin-left: 8px; background: transparent; border: 0; color: #e77777; font-size: 10px; cursor: pointer; }
.cart-item-total { font-family: var(--heading); font-size: 21px; font-weight: 800; }
.cart-footer { padding-top: 22px; border-top: 1px solid #303030; flex-shrink: 0; max-height: 70vh; overflow-y: auto; }
.cart-total { display: flex; justify-content: space-between; align-items: center; }
.cart-total > span { color: #aaa; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.cart-disclaimer { margin-top: 12px; color: #909090; font-size: 10px; line-height: 1.8; }
.checkout-form { display: grid; gap: 16px; margin-top: 18px; }
.checkout-field { display: grid; gap: 8px; }
.checkout-field span { color: #bfbfbf; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.checkout-field input, .checkout-field textarea {
  width: 100%; border: 1px solid #353535; background: #171717; color: white; padding: 12px 13px;
}
.checkout-honeypot { position: absolute; left: -9999px; opacity: 0; }
.checkout-button { margin-top: 6px; width: 100%; }
.checkout-status { min-height: 20px; margin-top: 8px; color: #e8e8e8; font-size: 11px; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); background: rgba(15,15,15,0.96); border: 1px solid #363636; color: white; padding: 10px 14px; font-size: 11px; letter-spacing: 0.8px; opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 300; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.product-modal { position: fixed; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; z-index: 250; }
.product-modal.open { opacity: 1; visibility: visible; }
.product-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.74); }
.product-modal-panel { position: relative; z-index: 1; width: min(820px, calc(100% - 28px)); display: grid; grid-template-columns: 1fr 1fr; background: #111; border: 1px solid #303030; }
.product-modal-media { background: #121212; }
.product-modal-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-modal-content { padding: 28px 24px 22px; }
.product-modal-category { color: var(--red); font-size: 8px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.product-modal-content h3 { margin-top: 12px; font-size: clamp(35px, 4vw, 52px); }
.product-modal-description { margin-top: 14px; color: #b2b2b2; line-height: 1.8; font-size: 12px; }
.product-modal-footer { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.product-modal-footer span { font-family: var(--heading); font-size: 28px; font-weight: 800; }
.close-product-modal { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; background: rgba(0,0,0,0.5); border: 1px solid #3a3a3a; color: white; cursor: pointer; }

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-banner-content { padding: 70px 6%; }
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header { padding: 0 5%; }
  .navigation { display: none; }
  .menu-button { display: block; }
  .hero { min-height: 560px; }
  .hero-content { padding: 48px 6% 42px; }
  .hero h1 { font-size: clamp(58px, 18vw, 88px); }
  .section-padding { padding: 70px 5%; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .shop-controls { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
  .filter-buttons { gap: 6px; }
  .filter-button { padding: 10px; font-size: 8px; }
  .product-grid { grid-template-columns: 1fr; }
  .brand-banner { min-height: 420px; }
  .benefits { grid-template-columns: 1fr; }
  .contact-section { flex-direction: column; align-items: flex-start; }
  .product-modal-panel { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
