@font-face { font-family: "Michroma"; src: url("fonts/michroma-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Starlite Analog — 1960s jet-age livery meets 1970s mission-control.
   Change the palette here to restyle the whole site. */
:root {
  --hull: #eceee8;        /* cool off-white, like an airliner fuselage */
  --panel: #f8f9f5;
  --navy: #15213b;        /* orbit navy */
  --navy-2: #22314f;
  --orange: #f0661c;      /* international orange */
  --amber: #f2b134;       /* console readout */
  --teal: #2f7f7b;        /* instrument-panel teal */
  --smoke: #5d6573;
  --line: #cfd3cb;
  --crt: 22px;            /* rounded-screen corner */
  --display: "Michroma", "Eurostile", "Microgramma", "Arial Black", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--hull); color: var(--navy); font: 400 1.0625rem/1.55 var(--body); }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Livery stripes (the signature element) ---------- */
.cheatline { display: grid; grid-template-rows: 10px 5px 3px; gap: 3px; background: transparent; }
.cheatline span:nth-child(1) { background: var(--orange); }
.cheatline span:nth-child(2) { background: var(--amber); }
.cheatline span:nth-child(3) { background: var(--teal); }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--hull); }
.site-header .bar { max-width: 1160px; margin: 0 auto; padding: .9rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.logo svg { width: 42px; height: 42px; flex: none; }
.logo-word { font-family: var(--display); font-size: clamp(.8rem, 2.6vw, 1.05rem); letter-spacing: .08em; line-height: 1.15; text-transform: uppercase; }
.cart-link { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600;
  border: 1.5px solid rgba(236,238,232,.35); border-radius: 999px; padding: .4rem .95rem; }
.cart-link:hover { border-color: var(--amber); }
.badge { background: var(--orange); color: #fff; border-radius: 999px; font-size: .8rem; min-width: 1.4rem;
  text-align: center; padding: 0 .4rem; font-weight: 700; }

main { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; min-height: 60vh; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--hull); border-radius: var(--crt);
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem); margin-bottom: 3rem; overflow: hidden; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 5.2vw, 3.4rem);
  line-height: 1.12; letter-spacing: .01em; margin: 0 0 1rem; max-width: 15ch; }
.hero p { margin: 0; max-width: 46ch; color: #c4cad6; font-size: 1.125rem; }
.hero .orbit { position: absolute; right: -6%; top: 50%; width: min(520px, 60%); transform: translateY(-50%);
  opacity: .9; pointer-events: none; }
.hero > *:not(.orbit) { position: relative; }
@media (min-width: 641px) { .hero h1 { max-width: 60%; } .hero p { max-width: min(46ch, 55%); } }
@media (max-width: 640px) {
  .hero { padding-top: 8.5rem; }
  .hero .orbit { width: 62%; right: -14%; top: -2.2rem; transform: none; }
}

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2.25rem 1.75rem; }
.card { text-decoration: none; display: block; }
.card .screen { background: var(--panel); border-radius: var(--crt); border: 1.5px solid var(--line);
  overflow: hidden; aspect-ratio: 1; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover img { transform: scale(1.04); }
.card h2 { font: 600 1.125rem/1.3 var(--body); margin: .9rem .2rem .15rem; }
.card .price { margin: 0 .2rem; color: var(--smoke); }

/* ---------- Product page ---------- */
.back { display: inline-block; margin-bottom: 1.5rem; color: var(--smoke); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--navy); }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 800px) { .product-layout { grid-template-columns: 1fr; gap: 1.5rem; } }
.product-image { background: var(--panel); border-radius: var(--crt); border: 1.5px solid var(--line); overflow: hidden; }
.product-image img { width: 100%; }
.product-info h1 { font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 3.2vw, 2rem);
  line-height: 1.2; margin: .25rem 0 .75rem; }
.product-info .price { font-size: 1.5rem; font-weight: 600; margin: 0 0 1.75rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { font-weight: 600; margin-bottom: .6rem; }
.options { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { font: 600 1rem var(--body); color: var(--navy); background: var(--panel); border: 1.5px solid var(--navy);
  border-radius: 999px; padding: .5rem 1.1rem; min-width: 3.25rem; cursor: pointer; }
.opt:hover { background: #fff; }
.opt.active { background: var(--navy); color: var(--hull); }
.opt:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
select, input[type=number] { font: inherit; color: var(--navy); background: var(--panel);
  border: 1.5px solid var(--navy); border-radius: 12px; padding: .55rem .7rem; }
select { width: 100%; margin-bottom: 1.5rem; }
.qty-row { display: flex; gap: .75rem; align-items: end; margin-top: .5rem; }
.qty-row label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; }
.qty-row input { width: 5rem; }

button.primary { font: 600 1.0625rem var(--body); background: var(--orange); color: #fff; border: 0;
  border-radius: 999px; padding: .9rem 1.75rem; cursor: pointer; flex: 1; }
button.primary:hover { background: #d9540d; }
button.primary:disabled { background: var(--line); color: var(--smoke); cursor: not-allowed; }
#p-added { margin-top: 1rem; }

/* ---------- Cart ---------- */
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 3.5vw, 2.2rem); margin: 0 0 1.75rem; }
.cart-list { list-style: none; padding: 0; margin: 0 0 2rem; border-top: 1.5px solid var(--line); }
.cart-list li { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1.5px solid var(--line); }
.cart-list img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; background: var(--panel); border: 1.5px solid var(--line); }
.cart-name { flex: 1; display: flex; flex-direction: column; }
.cart-name a { font-weight: 600; text-decoration: none; }
.cart-name span { color: var(--smoke); }
.cart-qty { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.cart-qty button { width: 2.2rem; height: 2.2rem; border: 1.5px solid var(--navy); background: var(--panel);
  border-radius: 999px; cursor: pointer; font-size: 1.1rem; color: var(--navy); }
.cart-total { max-width: 380px; margin-left: auto; display: flex; flex-direction: column; }
.cart-total p { margin: 0 0 .5rem; font-size: 1.125rem; }
.cart-total button { margin-top: .75rem; }
.muted { color: var(--smoke); font-size: 1rem !important; }
.error { color: #b3261e; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #aab2c2; }
.site-footer .inner { max-width: 1160px; margin: 0 auto; padding: 2rem 1.25rem 2.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; }
  .card h2 { font-size: 1rem; }
  .card .price { font-size: .95rem; }
}

/* ---------- Order tracking ---------- */
.track-form { max-width: 440px; display: flex; flex-direction: column; gap: 1.1rem; }
.track-form p { margin: 0; }
.track-form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; }
.track-form input[type=text], .track-form input[type=email] { font: inherit; color: inherit; padding: .7rem .8rem;
  border: 2px solid currentColor; border-radius: 6px; background: transparent; }
.track-form button { flex: none; align-self: flex-start; }
.order-box { max-width: 620px; border: 2px solid currentColor; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; }
.order-meta { margin: 0 0 .75rem; }
.status { margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.status-pill { font-weight: 700; padding: .2rem .75rem; border-radius: 999px; background: currentColor; }
.status-pill { color: inherit; background: rgba(127, 127, 127, .18); }
.shipment { border-top: 1.5px dashed currentColor; padding-top: 1rem; margin-bottom: 1rem; }
.shipment p { margin: 0 0 .5rem; }
.button-link { display: inline-block; font-weight: 700; }
.order-items-title { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.order-items { margin: 0 0 1rem; padding-left: 1.2rem; }
.order-no { white-space: nowrap; }
.hero-links a { margin-right: .75rem; }
.hero p + p { margin-top: .9rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.hero-links a { margin-right: 0; font-weight: 600; }
