:root {
  --navy: #08243a;
  --navy-soft: #123b58;
  --gold: #c79b38;
  --cream: #faf7f0;
  --white: #ffffff;
  --ink: #17222a;
  --muted: #68747c;
  --line: #e3ddd0;
  --price-red: #b42318;
  --price-green: #18733c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 4px 16px rgba(8, 36, 58, .14);
}

.header-inner {
  width: min(1440px, 92vw);
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  padding: 7px 12px;
  border-radius: 7px;
  background: var(--white);
}

.brand img { width: min(320px, 48vw); height: auto; }

.contact { margin-left: auto; color: var(--gold); text-align: right; }
.contact span { display: block; font-size: 11px; font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: .11em; }
.contact a {
  display: block;
  color: var(--white);
  font-size: 58px;
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.035em;
  text-decoration: none;
}

main { width: min(1440px, 92vw); margin: auto; padding: 25px 0 48px; }

.toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 10px; }
.eyebrow { margin: 0 0 3px; color: #8a661c; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; color: var(--navy); font: 700 clamp(27px, 3vw, 38px)/1.1 Georgia, serif; }

.search input {
  width: min(390px, 42vw);
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid #b8c0c5;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.search input:focus { outline: 3px solid rgba(199, 155, 56, .35); border-color: var(--gold); }
.summary { min-height: 22px; margin: 0 0 14px; color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--white); box-shadow: 0 8px 24px rgba(8, 36, 58, .08); }
.image-frame { aspect-ratio: 1.15; display: grid; place-items: center; padding: 12px; border-bottom: 1px solid var(--line); background: #f5f4f0; }
.image-frame img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 15px 16px 18px; }
.condition { margin: 0 0 6px; color: #8a661c; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.title { min-height: 48px; margin: 0 0 15px; color: var(--navy); font: 700 19px/1.25 Georgia, serif; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.retail {
  color: var(--price-red);
  font-size: 20px;
  font-weight: 800;
  text-decoration: line-through;
  text-decoration-color: var(--price-red);
  text-decoration-thickness: 2px;
}
.retail:empty { display: none; }
.selling { color: var(--price-green); font-size: 27px; font-weight: 800; }
.empty { padding: 70px 20px; border: 1px dashed #b9b09e; border-radius: 12px; background: rgba(255,255,255,.55); text-align: center; }
.empty h2 { margin: 0; color: var(--navy); font: 700 25px Georgia, serif; }
.empty p { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mobile-contact { display: none; }

@media (max-width: 1050px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .contact a { font-size: clamp(42px, 6vw, 52px); } }
@media (max-width: 760px) {
  .header-inner { min-height: 72px; }
  .contact a { font-size: clamp(26px, 6vw, 38px); }
  .toolbar { align-items: stretch; flex-direction: column; gap: 15px; }
  .search input { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  body { padding-bottom: 104px; }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 0; }
  .brand img { width: min(310px, 78vw); }
  main { padding-top: 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .mobile-contact {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 88px;
    padding: 11px max(4vw, env(safe-area-inset-right)) calc(11px + env(safe-area-inset-bottom)) max(4vw, env(safe-area-inset-left));
    border-top: 3px solid var(--gold);
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 -5px 20px rgba(8, 36, 58, .2);
  }
  .mobile-contact span { display: block; color: #d9e5eb; font-size: 12px; }
  .mobile-contact strong { display: block; font-size: 17px; }
  .mobile-contact nav { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
  .mobile-contact nav span { color: var(--gold); }
  .mobile-contact a { color: var(--white); font-weight: 800; text-decoration-color: var(--gold); text-underline-offset: 4px; }
}
