/* ============================================================
   No Fuss Computers — Shop design system
   Confident dark theme, brand orange accent, no neon tropes
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #0a0b0d;
  --bg-2:      #111317;
  --bg-3:      #181b21;
  --bg-4:      #20242c;
  --line:      #262a32;
  --line-2:    #353a44;

  /* text */
  --text:      #f0f1f3;
  --text-2:    #9aa0aa;
  --text-3:    #62686f;
  --text-mute: #41464d;

  /* brand + status */
  --orange:    #ff6b00;
  --orange-2:  #ff8533;
  --orange-dk: #cc5500;
  --hot:       #ff3b1f;
  --green:     #2ecc71;
  --warn:      #f5a623;
  --red:       #ff3b30;
  --blue:      #2a8cff;

  /* typography */
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* layout */
  --max:       1280px;
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --header-h:  64px;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; }
h3 { font-size: 18px; line-height: 1.3; }
p  { margin: 0; }

/* ── Utility wrappers ─────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── Top bar ──────────────────────────────────────────── */
.topbar {
  background: #000;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-2);
}
.topbar .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.topbar a { color: var(--text-2); transition: color .15s; }
.topbar a:hover { color: var(--text); }
.topbar .contact-info,
.topbar .trust-bits { display: flex; gap: 18px; align-items: center; }
.topbar .trust-bits .star { color: var(--orange); }

/* ── Main header ──────────────────────────────────────── */
.main-header {
  background: rgba(10,11,13,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 200;
}
.main-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-text span { color: var(--orange); }
.logo-sub {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 1px;
}

.search-bar {
  flex: 1;
  max-width: 600px;
  display: flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  transition: border-color .15s;
}
.search-bar:focus-within { border-color: var(--orange); }
.search-bar select {
  background: transparent;
  color: var(--text-2);
  border: none;
  padding: 0 14px;
  font-size: 13px;
  cursor: pointer;
  border-right: 1px solid var(--line);
  outline: none;
}
.search-bar select option { background: var(--bg-2); color: var(--text); }
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.search-bar input::placeholder { color: var(--text-3); }
.search-bar button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
}
.search-bar button:hover { background: var(--orange-2); }

.header-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.header-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.header-link:hover { color: var(--text); background: var(--bg-2); }
.cart-btn {
  background: var(--orange);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: background .15s, transform .1s;
  position: relative;
}
.cart-btn:hover { background: var(--orange-2); }
.cart-btn:active { transform: translateY(1px); }
.cart-count {
  background: #fff;
  color: var(--orange);
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Category nav ─────────────────────────────────────── */
.cat-nav {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  gap: 6px;
}
.cat-pill {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all .15s;
}
.cat-pill:hover { color: var(--text); border-color: var(--line-2); background: var(--bg-3); }
.cat-pill.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 600;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  max-width: var(--max);
  margin: 32px auto 28px;
  padding: 0 24px;
}
.hero-card {
  background: linear-gradient(135deg, #14161b 0%, #0d0e12 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255,107,0,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.hero-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,107,0,0.2);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,107,0,0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(255,107,0,0.05); }
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--orange); }
.hero p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.hero-stat { }
.hero-stat .num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.hero-stat .num .unit { color: var(--orange); }
.hero-stat .label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; padding: 40px 32px; gap: 32px; }
  .hero-stats { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 24px; }
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--text); background: var(--bg-3); }
.btn-dark {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-dark:hover { background: var(--bg-4); border-color: var(--line-2); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ── Trust strip ──────────────────────────────────────── */
.trust-strip {
  max-width: var(--max);
  margin: 0 auto 32px;
  padding: 0 24px;
}
.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color .15s;
}
.trust-tile:hover { border-color: var(--line-2); }
.trust-tile .icon {
  width: 38px; height: 38px;
  background: var(--bg-4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.trust-tile h4 { font-size: 14px; margin-bottom: 4px; }
.trust-tile p  { font-size: 12px; color: var(--text-2); line-height: 1.5; }

@media (max-width: 900px) { .trust-strip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trust-strip-grid { grid-template-columns: 1fr; } }

/* ── Section heading ──────────────────────────────────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
.section-head .lede {
  color: var(--text-2);
  font-size: 14px;
  margin-top: 6px;
  max-width: 560px;
}
.section-head .more {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .15s;
}
.section-head .more:hover { gap: 10px; }

/* ── Product grid ─────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  position: relative;
}
.product-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  z-index: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.badge-hot   { background: rgba(255,59,31,0.9); color: #fff; }
.badge-new   { background: rgba(46,204,113,0.9); color: #fff; }
.badge-sale  { background: rgba(255,107,0,0.92); color: #fff; }
.badge-build { background: rgba(42,140,255,0.9); color: #fff; }
.badge-order { background: rgba(34,38,46,0.92); color: var(--text-2); border: 1px solid var(--line-2); }

.product-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #0a0b0d;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-info { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-brand {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.product-name {
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.product-specs {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-specs strong { color: var(--text); font-weight: 600; }

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.price-main { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.price-was  { font-size: 12px; color: var(--text-3); text-decoration: line-through; }

.stock-status {
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}
.stock-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.stock-status.in-stock  { color: var(--green); }
.stock-status.low-stock { color: var(--warn); }
.stock-status.on-demand { color: var(--text-3); }

.product-actions {
  padding: 0 18px 18px;
  display: flex;
  gap: 8px;
}
.product-actions .btn { flex: 1; padding: 11px 14px; font-size: 13px; }

/* ── Content header / sort bar ────────────────────────── */
.content-header {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 14px;
}
.content-header h2 { font-size: 17px; font-weight: 700; }
.content-header .sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.sort-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sort-controls label { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.sort-controls select {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}
.sort-controls select:hover { border-color: var(--line-2); }

/* ── Cross-promo banner ───────────────────────────────── */
.cra-banner {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0 24px;
  display: block;
  text-decoration: none;
  color: inherit;
}
.cra-banner-inner {
  background: linear-gradient(135deg, #1a0d05 0%, #14161b 70%);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transition: border-color .2s, transform .2s;
}
.cra-banner:hover .cra-banner-inner { border-color: var(--orange); transform: translateY(-2px); }
.cra-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.cra-banner h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 8px; }
.cra-banner h2 span { color: var(--orange); }
.cra-banner p { color: var(--text-2); max-width: 600px; }
.cra-arrow { color: var(--orange); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ── Builds showcase strip ────────────────────────────── */
.builds-strip {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 0 24px;
}
.builds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .builds-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .builds-grid { grid-template-columns: 1fr; } }

.build-tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.build-tile:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--shadow); }
.build-tile .img-wrap {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #0d0e12 0%, #1a1d23 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.build-tile .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.build-tile .img-wrap .ph {
  font-size: 36px;
  color: var(--text-mute);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.build-tile .info { padding: 18px 18px 20px; }
.build-tile .tier {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.build-tile .name { font-size: 17px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.build-tile .summary { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin-bottom: 14px; min-height: 38px; }
.build-tile .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.build-tile .price { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.build-tile .price small { font-size: 11px; font-weight: 500; color: var(--text-3); margin-right: 4px; }
.build-tile .arrow { font-size: 13px; color: var(--orange); font-weight: 600; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer {
  background: #07080a;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 56px 0 24px;
  color: var(--text-2);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h4 {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 9px;
  line-height: 1.6;
  transition: color .15s;
}
.footer-col a:hover { color: var(--orange); }
.footer-col .brand { color: var(--text); font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.footer-copy {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Empty / offline states ───────────────────────────── */
.state-card {
  max-width: 560px;
  margin: 40px auto;
  padding: 36px 28px;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.state-card .icon { font-size: 32px; color: var(--text-3); margin-bottom: 14px; }
.state-card h3 { font-size: 17px; margin-bottom: 6px; }
.state-card p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.state-card a { color: var(--orange); font-weight: 600; }

.notice {
  max-width: var(--max);
  margin: 0 auto 28px;
  padding: 14px 20px;
  background: rgba(255,107,0,0.06);
  border: 1px solid rgba(255,107,0,0.25);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  display: flex;
  gap: 12px;
  align-items: center;
}
.notice .dot { color: var(--orange); font-size: 18px; line-height: 1; }
.notice a { color: var(--orange); font-weight: 600; }

/* ── Responsive header ────────────────────────────────── */
@media (max-width: 900px) {
  .main-header .inner { gap: 14px; }
  .header-link { display: none; }
  .logo-sub { display: none; }
  .topbar .trust-bits { display: none; }
}
@media (max-width: 540px) {
  .search-bar select { display: none; }
}
