:root {
  color-scheme: light;
  --ink: #121417;
  --muted: #66707d;
  --line: #dfe3e8;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --charcoal: #262b31;
  --accent: #b80f1c;
  --accent-dark: #8f0c16;
  --success: #137a42;
  --shadow: 0 24px 70px rgba(18, 20, 23, 0.12);
  --radius-control: 10px;
}

* {
  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;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(223, 227, 232, 0.8);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--charcoal);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border: 1px solid var(--charcoal);
  border-radius: 50%;
  background: var(--ink);
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.cart-button,
.icon-button,
.secondary-action,
.primary-action {
  min-height: 42px;
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fff;
}

.cart-button span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--charcoal);
  color: #fff;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(46px, 7vw, 86px) 5vw 36px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.fitment-panel,
.checkout-note,
.status-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: var(--radius-control);
  font-weight: 760;
}

.primary-action {
  background: var(--ink);
  color: #fff;
}

.primary-action:hover {
  background: var(--accent-dark);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.compact {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
}

.full {
  width: 100%;
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: min(58vw, 650px);
  min-height: 420px;
  object-fit: cover;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 5vw;
  border: 1px solid var(--line);
  background: var(--line);
}

.trust-strip div {
  min-height: 110px;
  padding: 24px;
  background: #fff;
}

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

.trust-strip strong {
  margin-bottom: 8px;
  font-size: 16px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.section,
.fitment {
  padding: 74px 5vw;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.home-feature {
  background: var(--soft);
}

.shop-intro {
  padding-top: 54px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 520px));
  gap: 18px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  background: #fff;
}

.product-image {
  position: relative;
  aspect-ratio: 1.15;
  overflow: hidden;
  background: var(--soft);
}

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

.thumb-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.thumb-button {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.thumb-button.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.thumb-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.using-fallback-image {
  background: var(--soft);
}

.sale-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.product-info h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.product-info p {
  color: var(--muted);
  line-height: 1.55;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin-top: auto;
}

.sale-price {
  font-size: 28px;
  font-weight: 850;
}

.original-price {
  color: var(--muted);
  text-decoration: line-through;
}

.stock-line {
  margin: 12px 0 16px;
  color: var(--success);
  font-size: 14px;
  font-weight: 760;
}

.fitment {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 40px;
  align-items: start;
  background: var(--soft);
}

.fitment-panel {
  border-left: 4px solid var(--accent);
  padding-left: 24px;
}

.fitment-panel ul {
  margin: 18px 0 0;
  padding-left: 19px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(18, 20, 23, 0.38);
}

.cart-drawer.open {
  display: flex;
}

.drawer-panel {
  width: min(560px, 100%);
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.drawer-head,
.panel-head,
.cart-line,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.drawer-head h2,
.panel-head h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.icon-button {
  width: 42px;
  border-radius: var(--radius-control);
  background: var(--soft);
  font-size: 27px;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.cart-line {
  border: 1px solid var(--line);
  padding: 14px;
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  color: var(--muted);
  font-size: 14px;
}

.checkout-form,
.login-panel form {
  display: grid;
  gap: 16px;
}

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

label {
  position: relative;
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 760;
}

.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
}

.variant-picker {
  margin-top: 14px;
}

.address-field {
  position: relative;
  z-index: 2;
}

.address-suggestions {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(18, 20, 23, 0.16);
}

.address-suggestion {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
}

.address-suggestion:last-child {
  border-bottom: 0;
}

.address-suggestion:hover {
  background: var(--soft);
}

.address-status {
  min-height: 17px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.image-url-field {
  min-height: 150px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.payment-options {
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  border: 1px solid var(--line);
  padding: 14px;
}

.payment-options legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 850;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
}

.payment-options input {
  width: auto;
}

.cart-total {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 18px;
}

.checkout-note {
  margin: 0;
  font-size: 13px;
}

.admin-body,
.status-shell {
  background: var(--soft);
}

.admin-shell,
.status-shell {
  min-height: calc(100vh - 72px);
  padding: 48px 5vw;
}

.login-panel,
.status-card,
.admin-panel {
  border: 1px solid var(--line);
  background: #fff;
}

.login-panel {
  max-width: 480px;
  margin: 0 auto;
  padding: 30px;
}

.dashboard[hidden] {
  display: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(360px, 1.1fr);
  gap: 20px;
}

.admin-panel {
  padding: 22px;
}

.admin-product,
.order-card {
  display: grid;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.admin-product:first-child,
.order-card:first-child {
  border-top: 0;
}

.admin-product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.order-list {
  display: grid;
  gap: 0;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.status-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px;
}

.status-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 11px;
  background: #eaf5ef;
  color: var(--success);
  font-weight: 850;
}

@media (max-width: 920px) {
  .hero,
  .fitment,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-media img {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 18px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .section,
  .fitment,
  .admin-shell,
  .status-shell {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 39px;
  }

  .form-grid,
  .admin-product-row,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .drawer-panel {
    padding: 18px;
  }
}
