/* Summit Supply — dark storefront theme. Hand-written, no dependencies.
   Accent color is Akamai blue (#009CDE). */

:root {
  --bg: #0b1019;
  --bg-raised: #111827;
  --surface: #141d2e;
  --border: #1f2a3d;
  --border-strong: #2c3a52;
  --text: #e6edf6;
  --muted: #93a1b5;
  --accent: #009cde;          /* Akamai blue */
  --accent-soft: rgba(0, 156, 222, 0.14);
  --accent-strong: #36b9f0;
  --success: #2dd4a0;
  --success-soft: rgba(45, 212, 160, 0.12);
  --danger: #f8717e;
  --danger-soft: rgba(248, 113, 126, 0.12);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background:
    radial-gradient(60rem 30rem at 80% -10%, var(--accent-soft), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  margin-top: 2.2rem;
}

/* --- Header / nav -------------------------------------------------------- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 16, 25, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

nav .brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-right: 0.5rem;
}

nav .brand::before {
  content: "▲ ";
  color: var(--accent);
}

nav .spacer {
  flex: 1;
}

/* --- Layout --------------------------------------------------------------- */

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 3rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
}

/* --- Hero / promo (home) --------------------------------------------------- */

.hero {
  padding: 3.5rem 0 2rem;
  max-width: 44rem;
}

.hero h1 {
  font-size: 2.6rem;
  margin: 0 0 0.6rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

.promo {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1.2rem;
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.promo code {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 5px;
  padding: 0.1rem 0.45rem;
  font-weight: 700;
  color: var(--accent-strong);
}

/* --- Buttons --------------------------------------------------------------- */

.btn,
button {
  display: inline-block;
  background: var(--accent);
  color: #04121c;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover,
button:hover {
  background: var(--accent-strong);
  text-decoration: none;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn.ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

button.linklike {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

button.linklike:hover {
  color: var(--text);
  background: none;
}

form.inline {
  display: inline;
}

/* --- Forms ------------------------------------------------------------------ */

input,
select,
textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

label {
  color: var(--muted);
  font-size: 0.92rem;
}

form p label {
  display: block;
  margin-bottom: 0.25rem;
}

form p input {
  width: 100%;
  max-width: 26rem;
}

.helptext,
form ul {
  color: var(--muted);
  font-size: 0.82rem;
}

.errorlist {
  color: var(--danger);
  font-size: 0.88rem;
  list-style: none;
  padding-left: 0;
}

/* --- Messages (coupon feedback etc.) ----------------------------------------- */

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.messages li {
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.messages li.success {
  border-color: var(--success);
  background: var(--success-soft);
}

.messages li.error {
  border-color: var(--danger);
  background: var(--danger-soft);
}

/* --- Product grid / cards ------------------------------------------------------ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  padding: 0;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.product-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
}

.product-card p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.product-card .price {
  color: var(--accent-strong);
  font-size: 1.05rem;
}

.price {
  font-weight: 700;
}

/* --- Lists & tables --------------------------------------------------------------- */

main ul {
  padding-left: 1.2rem;
}

main li {
  margin: 0.25rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  max-width: 46rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-raised);
}

tr:last-child td {
  border-bottom: none;
}

/* --- Cards / panels (checkout, profile, rewards) ------------------------------------ */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.3rem 1.5rem;
  margin: 1.2rem 0;
}

.card h2 {
  margin-top: 0;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

@media (max-width: 50rem) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.totals {
  margin-top: 1rem;
  max-width: 24rem;
}

.totals .row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  color: var(--muted);
}

.totals .row.grand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  border-top: 1px solid var(--border-strong);
  margin-top: 0.4rem;
  padding-top: 0.6rem;
}

.totals .row.discount {
  color: var(--success);
}

.strike {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent);
}

.badge.success {
  background: var(--success-soft);
  color: var(--success);
  border-color: var(--success);
}

.rewards-balance {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-strong);
}

/* --- Pagination -------------------------------------------------------------------- */

.pagination {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination a {
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 0.25rem 0.7rem;
  margin: 0 0.3rem;
}

.pagination a:hover {
  border-color: var(--accent);
  text-decoration: none;
}
