:root {
  --ink: #11151c;
  --muted: #626b78;
  --line: #d9dfe8;
  --bg: #f4f6f9;
  --panel: #ffffff;
  --field: #f8fafc;
  --accent: #d51f36;
  --accent2: #00888a;
  --gold: #f3b43f;
  --navy: #151b2b;
  --shadow: 0 18px 38px rgba(17, 21, 28, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: 24px; line-height: 1; }
h2 { font-size: clamp(30px, 5vw, 64px); line-height: .98; }
h3 { font-size: 20px; }

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(12px);
}

.brand, nav, .split, .filters, .drawerHead, .listingHead {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.brandMark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
  border: 3px solid var(--gold);
}

.eyebrow {
  color: var(--accent2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.light { color: var(--gold); }

main { padding: 0; }
.page { display: none; }
.activePage { display: block; }

button, .ghost {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.navlink {
  background: transparent;
  border-color: transparent;
}

.navlink.active {
  background: var(--navy);
  color: #fff;
}

.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.lightButton {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

.big { padding: 14px 20px; }
.wide { width: 100%; }

.hero {
  min-height: calc(100vh - 81px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 620px);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(28px, 5vw, 68px);
  background: #061426;
  color: #fff;
}

.heroCopy {
  display: grid;
  gap: 22px;
  max-width: 760px;
}

.heroCopy p:not(.eyebrow) {
  color: #dce3ef;
  font-size: 18px;
  max-width: 620px;
  line-height: 1.55;
}

.shotWall {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 14px;
}

.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  aspect-ratio: 4 / 5;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .24);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.strip div {
  padding: 22px clamp(18px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.strip strong, .strip span { display: block; }
.strip span { color: var(--muted); margin-top: 5px; }

.featured, #listingsPage, #contactPage {
  padding: 38px clamp(18px, 4vw, 54px) 54px;
}

.sectionHead {
  margin-bottom: 24px;
  max-width: 980px;
}

.sectionHead h2 {
  color: var(--ink);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  margin-top: 6px;
}

.listingHead {
  justify-content: space-between;
  max-width: none;
}

.listingHead .small { max-width: 330px; }

.notice {
  background: #fff8e8;
  border: 1px solid #f6cf7a;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.compact {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(17, 21, 28, .08);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #c7cfdb;
  box-shadow: 0 18px 42px rgba(17, 21, 28, .13);
}

.cardMedia {
  padding: 18px 18px 0;
  background: linear-gradient(180deg, #f9fafc, #fff);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: #e9edf3;
  border-radius: 16px;
  border: 1px solid #e6ebf2;
  margin: 0 auto;
}

.cardBody {
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
}

.cardTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card h3 {
  line-height: 1.15;
  min-height: 46px;
}

.cardText {
  color: #424b59;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cardFoot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef1f5;
}

.cardFoot button {
  flex: 0 0 auto;
  min-width: 112px;
}

.meta, .small { color: var(--muted); font-size: 13px; }
.price {
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 3px;
  letter-spacing: 0;
}
.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9fbfb;
  color: #006d6f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

dialog {
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 760px;
  width: min(92vw, 760px);
  padding: 0;
}

dialog::backdrop {
  background: rgba(17, 21, 28, .48);
  backdrop-filter: blur(3px);
}

.dialog { padding: 26px; }
.narrow { max-width: 480px; }
.x {
  float: right;
  font-size: 18px;
  padding: 7px 12px;
  background: #f3f5f8;
}

.accountDialog {
  display: grid;
  gap: 18px;
}

.accountHeader {
  display: grid;
  gap: 6px;
  padding-right: 42px;
}

.accountHeader h2 {
  font-size: 34px;
  line-height: 1.05;
}

.accountStatus {
  padding: 14px;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.signedIn {
  display: grid;
  gap: 4px;
}

.signedIn span {
  color: var(--muted);
  font-size: 13px;
}

.formGrid {
  display: grid;
  gap: 12px;
}

.formGrid label,
.settingsGrid label,
.listingFields label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #303846;
  font-size: 13px;
}

.accountActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.accountActions .subtle {
  grid-column: 1 / -1;
  color: var(--muted);
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  background: var(--field);
}

textarea { min-height: 110px; resize: vertical; }
label { display: block; margin: 10px 0; font-weight: 800; }
.stack { display: grid; gap: 10px; margin: 12px 0; }
.hidden { display: none; }

.modeToggle, .rosterHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rosterRow {
  display: grid;
  grid-template-columns: 90px 1fr 82px 78px 1fr auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.rosterRemove {
  padding: 10px 12px;
}

.contactHero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: 34px;
  align-items: center;
}

.contactHero h2 {
  font-size: clamp(34px, 5vw, 62px);
  margin: 8px 0 14px;
}

.contactHero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.contactForm {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 100vw);
  background: #f7f9fc;
  box-shadow: var(--shadow);
  padding: 0;
  transform: translateX(105%);
  transition: transform .2s ease;
  overflow: auto;
  z-index: 5;
}

.drawer.open { transform: translateX(0); }

.drawerHead {
  position: sticky;
  top: 0;
  z-index: 2;
  justify-content: space-between;
  padding: 22px 22px 18px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.drawerHead h2 {
  font-size: 30px;
  line-height: 1;
}

.cartOverview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 22px 0;
}

.cartOverview div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.cartOverview strong,
.cartOverview span {
  display: block;
}

.cartOverview strong {
  font-size: 18px;
}

.cartOverview span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.cartSection {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 16px 22px;
  padding: 16px;
}

.cartSection h3 {
  font-size: 17px;
}

.cartSectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cartItems {
  display: grid;
  gap: 12px;
}

.cartLine {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: #fbfcfe;
  border: 1px solid #e8edf4;
  border-radius: 16px;
}

.cartLine img {
  width: 74px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2f7;
  border: 1px solid #e4eaf2;
}

.cartLineBody {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.cartLineTop,
.cartLineBottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cartLineTop strong {
  line-height: 1.2;
}

.cartLineTop span {
  font-weight: 900;
  white-space: nowrap;
}

.qtyBadge {
  display: inline-flex;
  border-radius: 999px;
  background: #eef7f7;
  color: #006d6f;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.textButton {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.emptyCart {
  display: grid;
  gap: 4px;
  color: var(--muted);
  padding: 8px 0;
}

.emptyCart strong {
  color: var(--ink);
}

.choiceGroup {
  display: grid;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 14px 0 0;
}

.choiceGroup legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.choiceGroup label {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  margin: 0;
  border: 1px solid #e3e9f1;
  border-radius: 14px;
  background: #fbfcfe;
}

.choiceGroup input {
  width: auto;
}

.choiceGroup span,
.choiceGroup small {
  display: block;
}

.choiceGroup small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.shippingGrid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.totals {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 14px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.totals strong {
  color: var(--ink);
}

.totals .totalLine {
  border-top: 1px solid var(--line);
  margin-top: 5px;
  padding-top: 12px;
  color: var(--ink);
  font-size: 18px;
}

.checkoutBar {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  padding: 16px 22px 20px;
  backdrop-filter: blur(10px);
}

.checkoutBar .primary {
  padding: 14px 18px;
}

.admin { padding: 28px clamp(18px, 4vw, 48px) 64px; }
.admin h2 { margin: 28px 0 14px; font-size: 28px; }

.adminHero {
  display: grid;
  gap: 14px;
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: clamp(22px, 4vw, 34px);
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.adminHero h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.adminHero p:not(.eyebrow) {
  color: #dce3ef;
  max-width: 780px;
  line-height: 1.5;
}

.adminHero .ghost {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.adminPanel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.editorIntro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eef1f5;
}

.editorIntro span {
  color: var(--muted);
  font-size: 13px;
}

.settingsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.settingsGrid textarea {
  min-height: 84px;
  margin-top: 6px;
}

.compactSettings {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 0;
}

.inventoryEditor {
  display: grid;
  gap: 18px;
}

.listingEditorCard {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(17, 21, 28, .06);
}

.listingPreview {
  display: grid;
  align-content: start;
  gap: 10px;
}

.listingPreview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e6ebf2;
  background: #eef2f7;
}

.listingFields {
  display: grid;
  gap: 12px;
}

.listingFields textarea {
  min-height: 88px;
}

.editorActions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}

.uploadBox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px dashed #cbd4df;
  border-radius: 14px;
  background: #fbfcfe;
}

input[type="file"] {
  padding: 9px;
  background: #fff;
}

.admin table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}

th, td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px;
  vertical-align: top;
}

td input + input,
td input + textarea,
td textarea + input {
  margin-top: 8px;
}

.compactLabel {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.tableWrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }

.miniTable {
  margin-top: 8px;
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.miniTable th,
.miniTable td {
  padding: 5px 6px;
  border-bottom: 1px solid #edf0f5;
}

@media (max-width: 900px) {
  .hero, .contactHero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .strip { grid-template-columns: 1fr; }
  .listingEditorCard { grid-template-columns: 1fr; }
  .listingPreview { max-width: 260px; }
  .uploadBox { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar { align-items: flex-start; }
  .topbar nav { width: 100%; }
  h1 { font-size: 22px; }
  .brandMark { width: 42px; height: 42px; }
  .shotWall { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rosterRow { grid-template-columns: 1fr 1fr; }
  .rosterRemove { grid-column: 1 / -1; }
  .accountActions { grid-template-columns: 1fr; }
  .cardFoot { align-items: stretch; flex-direction: column; }
  .cardFoot button { width: 100%; }
}
