:root {
  --ink: #101820;
  --muted: #5f6b78;
  --line: #d9d3c2;
  --paper: #f6f2e8;
  --surface: #fffdfa;
  --navy: #13294b;
  --navy-dark: #081a33;
  --gold: #c89b3c;
  --gold-dark: #9d7426;
  --teal: var(--navy);
  --teal-dark: var(--navy-dark);
  --amber: var(--gold);
  --blue: var(--navy);
  --shadow: 0 18px 40px rgba(8, 26, 51, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0.7rem 4vw;
  background: rgba(247, 247, 244, 0.9);
  border-bottom: 1px solid rgba(18, 20, 23, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 6px;
  background: var(--navy);
  color: white;
  font-size: 0.85rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
}

.header-actions a {
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
}

.header-actions a:hover,
.header-actions a:focus-visible {
  color: var(--ink);
  background: rgba(18, 20, 23, 0.06);
}

.header-actions .header-button {
  background: var(--navy);
  border: 1px solid rgba(200, 155, 60, 0.45);
  color: white;
}

.header-actions .header-button:hover,
.header-actions .header-button:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 32rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 26, 51, 0.9), rgba(8, 26, 51, 0.25) 62%),
    linear-gradient(0deg, rgba(247, 247, 244, 0.1), rgba(247, 247, 244, 0));
}

.hero-content {
  display: flex;
  min-height: 32rem;
  width: min(1180px, 92vw);
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0 5rem;
  color: white;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c96e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: 4.5rem;
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.1;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 34rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.primary-action,
.secondary-action,
.checkout-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
}

.primary-action {
  background: var(--gold);
  color: var(--ink);
  padding: 0.8rem 1.1rem;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #e0b85c;
}

.primary-action.small {
  min-height: 2.75rem;
  flex: 1;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: white;
  padding: 0.8rem 1.1rem;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.secondary-action.dark {
  border-color: var(--ink);
  color: var(--ink);
}

.secondary-action.dark:hover,
.secondary-action.dark:focus-visible {
  background: rgba(18, 20, 23, 0.06);
}

.shop-panel {
  width: min(1180px, 92vw);
  margin: -3rem auto 0;
  padding: 1.2rem 0 3rem;
  position: relative;
  z-index: 2;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.search-box {
  flex: 0 1 20rem;
}

.search-box input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 1rem;
  color: var(--ink);
  background: var(--paper);
}

.search-box input:focus {
  outline: 3px solid rgba(200, 155, 60, 0.22);
  border-color: var(--gold);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.1rem;
}

.filter-button {
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 0.9rem;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

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

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-card:focus-within,
.product-card:hover {
  border-color: rgba(200, 155, 60, 0.7);
  box-shadow: 0 14px 30px rgba(8, 26, 51, 0.12);
}

.product-link {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e9eceb;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-body {
  flex: 1;
  padding: 1rem;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-price {
  color: var(--ink);
  font-size: 1rem;
}

.product-body p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-actions {
  padding: 0 1rem 1rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-band div {
  min-height: 7rem;
  padding: 1.4rem 4vw;
  background: var(--surface);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band span {
  margin-top: 0.3rem;
  color: var(--muted);
}

.support-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.support-strip h2 {
  max-width: 20ch;
}

.buy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
  gap: 2rem;
  width: min(1180px, 92vw);
  margin: 2rem auto 6rem;
}

.buy-media,
.buy-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(18, 20, 23, 0.08);
}

.buy-media {
  overflow: hidden;
  align-self: start;
}

.buy-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.buy-summary {
  padding: 1.5rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: var(--navy);
  font-weight: 800;
}

.buy-summary h1 {
  max-width: 12ch;
  margin-bottom: 0.7rem;
  font-size: 3.2rem;
}

.buy-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.2rem 0;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
}

.price-row strong {
  font-size: 1.8rem;
}

.price-row span {
  color: var(--muted);
}

.quantity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stepper {
  display: grid;
  grid-template-columns: 2.8rem 3rem 2.8rem;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.stepper button,
.stepper output {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--surface);
  color: var(--ink);
}

.stepper button {
  cursor: pointer;
  font-weight: 900;
}

.stepper button:hover,
.stepper button:focus-visible {
  background: var(--paper);
}

.checkout-button {
  width: 100%;
  min-height: 3.4rem;
  background: var(--navy);
  color: white;
}

.checkout-button:hover,
.checkout-button:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 1.2rem;
}

.payment-row span {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  padding: 0.35rem 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.buy-details {
  display: grid;
  gap: 0.8rem;
}

.buy-details div {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.buy-details p {
  margin-bottom: 0;
  color: var(--muted);
}

.sticky-checkout {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 40;
  display: none;
  width: min(38rem, 92vw);
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 26, 51, 0.96);
  color: white;
  padding: 0.55rem;
  box-shadow: var(--shadow);
}

.sticky-checkout span {
  padding-left: 0.6rem;
  font-weight: 800;
}

.sticky-checkout a {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--gold);
  color: var(--ink);
  padding: 0 1rem;
  font-weight: 900;
}

.buy-page .sticky-checkout {
  display: flex;
}

.not-found {
  width: min(720px, 92vw);
  margin: 7rem auto;
  padding: 2rem 0;
}

.not-found h1 {
  max-width: 12ch;
  color: var(--navy);
}

.not-found p:not(.eyebrow) {
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 900px) {
  .header-actions a:not(.header-button) {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 30rem;
  }

  h1 {
    font-size: 3.4rem;
  }

  .section-heading,
  .support-strip,
  .price-row {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    flex-basis: auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-band,
  .buy-layout {
    grid-template-columns: 1fr;
  }

  .buy-summary h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 3.8rem;
  }

  .brand span:last-child {
    max-width: 8.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero,
  .hero-content {
    min-height: 29rem;
  }

  .hero-content {
    padding-bottom: 4.3rem;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .shop-panel {
    margin-top: -2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .filter-button {
    white-space: nowrap;
  }

  .buy-layout {
    width: min(100%, 92vw);
    margin-top: 1rem;
  }

  .quantity-row {
    align-items: stretch;
    flex-direction: column;
  }

  .stepper {
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr;
  }
}
