/* ==================================================================
   Radius Ramp Co
   Dark storefront. Near-black page, bone type, hard edges.
   Product photos sit on light tiles so they stay crisp on black.
   Swap the tokens below and everything follows.
   ================================================================== */

:root {
  --bg:        #0a0a0a;   /* page background                        */
  --panel:     #141414;   /* header / cards / footer                */
  --panel-2:   #1c1c1c;   /* hover lift                             */
  --ink:       #f2efe6;   /* primary text ("bone")                  */
  --muted:     #97928699; /* secondary text                         */
  --muted-s:   #9b9686;   /* secondary text, solid                  */
  --line:      #2a2a2a;   /* subtle structural borders              */
  --line-2:    #3a3a3a;   /* slightly stronger border               */
  --accent:    #e2481d;   /* brand red — used sparingly             */
  --photo:     #e9e5db;   /* light tile behind product photography  */
  --cream:     #f4f1ea;   /* cream bands: header, hero, footer       */
  --ok:        #4caf6a;
  --bad:       #e05a4a;
  --border-w:  2px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Courier New", "Courier", monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

img { display: block; max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--accent); color: #fff; }

/* ---- header / nav ---------------------------------------------- */
header.site {
  border-bottom: 2px solid var(--bg);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bg);
  font-size: 18px;
}
.brand:hover { color: var(--bg); }
.brand img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bg);
  background: #000;
}
nav.main { display: flex; align-items: center; }
nav.main a {
  color: #6b6b6b;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-left: 26px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav.main a:hover { color: var(--bg); border-bottom-color: var(--accent); }
.cart-link { position: relative; }
.cart-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 6px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid #000;
  vertical-align: middle;
}

/* ---- hero ------------------------------------------------------- */
.hero { background: var(--bg); }
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 24px;
}
.hero-text { max-width: 60ch; }
.hero h1 {
  margin: 0 0 14px;
  font-size: 46px;
  line-height: 1.03;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero p { margin: 0 0 24px; color: var(--muted-s); font-size: 17px; }
.hero-badge {
  width: 210px; height: 210px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-2);
  background: #000;
}

/* ---- section headings ------------------------------------------ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 44px 0 20px;
  border-bottom: 2px solid var(--line-2);
  padding-bottom: 10px;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.filters button {
  font-family: inherit;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: transparent;
  color: var(--muted-s);
  border: 1px solid var(--line-2);
  padding: 6px 14px;
  margin-left: 8px;
  cursor: pointer;
  transition: all .15s;
}
.filters button.active,
.filters button:hover { background: var(--ink); color: #0a0a0a; border-color: var(--ink); }

/* ---- product grid ---------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card .thumb {
  aspect-ratio: 4 / 3;
  background: var(--photo) url("../assets/img/placeholder.svg") center/cover no-repeat;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: block;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 6px; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card .blurb { margin: 0 0 16px; color: var(--muted-s); font-size: 13.5px; flex: 1; line-height: 1.5; }
.card .row { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: bold; font-size: 18px; letter-spacing: .5px; }
.tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  border: 1px solid var(--line-2); padding: 2px 7px; color: var(--muted-s);
}
.soldout { color: var(--bad); font-weight: bold; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.soon {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  font-weight: bold;
  padding: 5px 11px;
}
.soon-box { margin: 22px 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.soon-box .soon { font-size: 13px; padding: 8px 15px; }

/* ---- buttons ---------------------------------------------------- */
.btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #0a0a0a;
  padding: 11px 20px;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--accent); }
.btn:disabled { background: #222; color: #666; cursor: not-allowed; border-color: #333; }
.btn.block { display: block; width: 100%; }

/* ---- product detail -------------------------------------------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 40px 0 60px; }
.gallery .main {
  border: 1px solid var(--line-2);
  aspect-ratio: 4 / 3;
  background: var(--photo);
  overflow: hidden;
}
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery .thumbs img {
  width: 80px; height: 60px; object-fit: cover;
  border: 1px solid var(--line-2); cursor: pointer; background: var(--photo);
  transition: border-color .15s;
}
.gallery .thumbs img:hover { border-color: var(--ink); }
.detail h1 { margin: 0 0 8px; font-size: 32px; text-transform: uppercase; letter-spacing: 1px; }
.detail .blurb { color: var(--muted-s); margin: 0 0 12px; }
.detail .price { font-size: 26px; margin: 8px 0 18px; font-weight: bold; }
table.specs { width: 100%; border-collapse: collapse; margin: 18px 0; }
table.specs td { border: 1px solid var(--line); padding: 8px 12px; font-size: 13.5px; }
table.specs td:first-child { background: var(--panel); text-transform: uppercase; letter-spacing: 1px; width: 42%; color: var(--muted-s); font-size: 12px; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line-2); margin-right: 12px; }
.qty button { font-family: inherit; width: 38px; height: 44px; border: 0; background: var(--panel-2); color: var(--ink); cursor: pointer; font-size: 18px; }
.qty button:hover { background: var(--ink); color: #0a0a0a; }
.qty input { width: 48px; height: 44px; border: 0; border-left: 2px solid var(--line-2); border-right: 2px solid var(--line-2); text-align: center; font-family: inherit; font-size: 16px; background: var(--bg); color: var(--ink); }

.prod-desc p { margin: 0 0 14px; }
.prod-desc p:first-child { margin-top: 4px; }

/* ---- cart ------------------------------------------------------- */
.cart-table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.cart-table th, .cart-table td { border: 1px solid var(--line); padding: 12px; text-align: left; font-size: 13.5px; }
.cart-table th { background: var(--panel); color: var(--muted-s); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; }
.cart-table img { width: 64px; height: 48px; object-fit: cover; border: 1px solid var(--line-2); background: var(--photo); }
.cart-total { display: flex; justify-content: flex-end; gap: 28px; font-size: 20px; font-weight: bold; margin: 12px 0 22px; }
.checkout-box { border: 1px solid var(--line-2); background: var(--panel); padding: 24px; max-width: 440px; margin-left: auto; }
.checkout-box h3 { margin: 0 0 16px; text-transform: uppercase; letter-spacing: 2px; font-size: 16px; }
#paypal-buttons { margin-top: 14px; }
.link-remove { color: var(--bad); cursor: pointer; text-transform: uppercase; font-size: 11px; letter-spacing: 1.5px; }
.link-remove:hover { color: var(--accent); }
.empty { text-align: center; padding: 72px 0; color: var(--muted-s); }
.empty h1 { color: var(--ink); }

/* ---- notices ---------------------------------------------------- */
.notice {
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  background: var(--panel);
  color: var(--muted-s);
  padding: 12px 16px;
  margin: 18px 0;
  font-size: 13.5px;
}

/* ---- prose (about page) ---------------------------------------- */
.prose { max-width: 68ch; margin: 40px 0 60px; }
.prose h1 { text-transform: uppercase; letter-spacing: 2px; font-size: 32px; margin: 0 0 24px; }
.prose p { margin: 0 0 18px; color: #d8d4c8; }
.prose .lead-in { font-weight: bold; color: var(--ink); }
.prose .signoff { font-weight: bold; font-size: 19px; margin-top: 30px; color: var(--ink); }
.prose .rule { border: 0; border-top: 1px solid var(--line-2); margin: 30px 0; }

/* ---- footer ----------------------------------------------------- */
footer.site {
  border-top: 2px solid var(--bg);
  background: var(--cream);
  margin-top: 56px;
}
footer.site .wrap { padding: 28px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 12px; letter-spacing: 1px; color: #6b6b6b; text-transform: uppercase; }
footer.site a { color: #6b6b6b; }
footer.site a:hover { color: var(--bg); }

/* ---- responsive ------------------------------------------------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; padding: 40px 24px; }
  .hero h1 { font-size: 34px; }
  .hero-badge { width: 130px; height: 130px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .bar { flex-direction: column; gap: 12px; }
  nav.main a { margin: 0 12px; }
  .hero h1 { font-size: 30px; }
}
