:root {
  --ink: #111318;
  --muted: #687180;
  --line: #d9e0ea;
  --paper: #f3f6f8;
  --panel: #ffffff;
  --soft: #e9eef4;
  --accent: #12a46f;
  --accent-dark: #08784e;
  --blue: #1d4ed8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 5vw;
  align-items: center;
}
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.brand {
  font-weight: 800;
  font-size: 21px;
  text-decoration: none;
}
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); }
.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
  padding: 50px 5vw 62px;
  background: linear-gradient(135deg, #f8fbff 0%, #edf4f2 100%);
}
h1 { font-size: clamp(42px, 6vw, 74px); line-height: 1; margin: 0 0 22px; letter-spacing: 0; }
h2 { font-size: 28px; margin: 0 0 12px; }
h3 { margin-bottom: 8px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
}
.button:hover { background: var(--accent-dark); }
.button.secondary { background: var(--soft); color: var(--ink); }
.button.small { min-height: 36px; }
.hero-art, .product-image {
  background:
    linear-gradient(rgba(255,255,255,.03), rgba(255,255,255,.03)),
    url("/static/images/real-hero.jpg?v=20260603") center / cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hero-art {
  min-height: 520px;
  box-shadow: 0 28px 70px rgba(17,19,24,.14);
}
.section, .padded, .page-title, .legal, .narrow { padding: 54px 5vw; }
.section-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.product-card h2 { font-size: 22px; }
.product-image {
  display: block;
  height: 250px;
  margin-bottom: 16px;
}
.product-image.case { background: url("/static/images/real-case.jpg?v=20260603") center / cover; }
.product-image.charger { background: url("/static/images/real-charger.jpg?v=20260603") center / cover; }
.product-image.earbuds { background: url("/static/images/real-earbuds.jpg?v=20260603") center / cover; }
.product-image.cable { background: url("/static/images/real-cable.jpg?v=20260603") center / cover; }
.product-image.large { height: 560px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-band div { background: #0f172a; color: #fff; padding: 28px 5vw; display: grid; gap: 6px; }
.trust-band span { color: #cbd5e1; }
.muted { color: var(--muted); }
.product-detail, .checkout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 54px 5vw;
}
.price { font-size: 24px; font-weight: 800; }
.panel, .summary {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.narrow { max-width: 840px; margin: 0 auto; }
label { display: grid; gap: 8px; margin-bottom: 16px; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  background: #fbfdff;
}
input:focus, textarea:focus { outline: 2px solid rgba(18,164,111,.2); border-color: var(--accent); }
.checkbox { display: flex; align-items: center; font-weight: 400; }
.checkbox input { width: auto; }
.total { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.receipt { display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; }
.alert { color: #991b1b; }
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 5vw 24px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 12px; text-align: left; }
.actions-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.actions-inline button {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}
.legal { max-width: 920px; }
.legal h1 { font-size: 44px; }
.site-footer {
  background: var(--ink);
  color: #fff;
  align-items: flex-start;
}
.site-footer p, .site-footer a { color: #dbe3ee; }
@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .hero, .product-detail, .checkout, .product-grid, .trust-band {
    grid-template-columns: 1fr;
  }
  .admin-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 360px; }
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
}
