:root {
  color-scheme: light;
  --bg: #f3ead6;
  --ink: #1a1a1a;
  --muted: #666666;
  --panel: #ede5cf;
  --panel-2: #e8dbc4;
  --line: rgba(0, 0, 0, 0.15);
  --leaf: #c4452a;
  --moss: #c4452a;
  --gold: #c8a400;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.cart-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(243, 234, 214, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  font-size: 1.08rem;
}

.brand img {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.cart-header button,
.qty-control button {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  cursor: pointer;
}

.cart-fab {
  position: fixed;
  top: 84px;
  right: 28px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--leaf);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cart-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.cart-fab strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 0.75rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 7vw, 86px);
  min-height: calc(100svh - 72px);
  padding: clamp(46px, 8vw, 96px) clamp(18px, 6vw, 84px) clamp(34px, 6vw, 64px);
  background:
    linear-gradient(120deg, rgba(8, 19, 13, 0.28), rgba(8, 19, 13, 0.88)),
    image-set(url("assets/hero-forest-trail.webp") type("image/webp"), url("assets/hero-forest-trail.png") type("image/png")) center / cover;
  color: #ffffff;
}

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

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

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #f3ead6;
}

.page-hero p:not(.eyebrow) {
  color: #f3ead6;
}

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

.page-hero {
  display: grid;
  align-content: center;
  min-height: 46svh;
  padding: clamp(64px, 10vw, 132px) clamp(18px, 6vw, 84px);
  background:
    linear-gradient(120deg, rgba(8, 19, 13, 0.42), rgba(8, 19, 13, 0.92)),
    image-set(url("assets/hero-forest-trail.webp") type("image/webp"), url("assets/hero-forest-trail.png") type("image/png")) center / cover;
  color: #ffffff;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
}

.page-hero p {
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--leaf);
  color: #ffffff;
}

.button.secondary {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.button:disabled,
.button[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
}

.profile-preview {
  display: flex;
  justify-content: center;
}

.profile-card {
  width: min(100%, 338px);
  padding: 22px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--moss);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.profile-identity {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
}

.profile-identity strong {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 850;
}

.profile-identity span {
  color: #666666;
  font-size: 0.86rem;
}

.ranger-tag {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 9px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: rgba(200, 164, 0, 0.10);
  color: var(--gold);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ranger-tag[hidden] {
  display: none;
}

.profile-xp-card,
.profile-stats-row {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.04);
}

.profile-xp-card {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
  border-color: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}

.profile-xp-row,
.profile-xp-bottom,
.profile-collection-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-xp-row strong {
  color: #c4452a;
  font-size: 1rem;
  font-weight: 850;
}

.profile-xp-row span {
  color: #1a1a1a;
  font-size: 0.84rem;
  font-weight: 700;
}

.profile-xp-bar,
.profile-collection-bar {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
}

.profile-xp-bar {
  height: 4px;
}

.profile-xp-bar i,
.profile-collection-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4caf50;
}

.profile-xp-bar i {
  background: #c4452a;
}

.profile-xp-bottom {
  margin-top: 4px;
  color: #666666;
  font-size: 0.68rem;
}

.profile-stats-row {
  display: flex;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px 0;
  border-color: rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}

.profile-stat {
  flex: 1;
  display: grid;
  gap: 4px;
  place-items: center;
}

.profile-stat strong {
  color: #1a1a1a;
  font-size: 1.38rem;
  font-weight: 850;
}

.profile-stat span {
  color: #666666;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-stat-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(0, 0, 0, 0.15);
}

.profile-section-title {
  margin-bottom: 12px;
  color: #666666;
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.profile-collection-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.profile-collection-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #1a1a1a;
  font-size: 0.72rem;
  font-weight: 900;
}

.profile-collection-info {
  flex: 1;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.profile-collection-label-row span {
  color: #1a1a1a;
  font-size: 0.78rem;
}

.profile-collection-label-row strong {
  color: #666666;
  font-size: 0.72rem;
}

.profile-collection-bar {
  height: 3px;
}

.app-preview-note {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.auth-card {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
}

.auth-card[hidden],
.auth-signout[hidden] {
  display: none;
}

.auth-card label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.auth-card input {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font: inherit;
}

.auth-card p {
  min-height: 20px;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.auth-signout {
  margin-top: 12px;
}

.feature-band,
.collections,
.store,
.partners,
.product-page,
.split-band {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 84px);
}


.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px clamp(18px, 6vw, 84px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer nav a:hover {
  color: var(--ink);
}

.prose {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(18px, 6vw, 84px);
}

.prose h2 {
  margin-top: 48px;
  margin-bottom: 12px;
  font-size: 1.3rem;
  color: var(--ink);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
}

.prose ul {
  padding-left: 1.4em;
  margin: 0 0 16px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--moss);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-band,
.store,
.split-band {
  background: #ede5cf;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

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

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

.feature-grid article,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid article {
  padding: 24px;
}

.section-action {
  margin-top: 24px;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 1fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
}

.collection-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.collection-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--ink);
  font-weight: 750;
}

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

.collection-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 94px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.collection-card img {
  width: 64px;
  height: 70px;
  object-fit: contain;
}

.collection-card strong,
.collection-card em {
  display: block;
}

.collection-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.product-open {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  min-height: 100%;
}

.product-open:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 3px;
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 218px;
  background: linear-gradient(135deg, #36322e, #2e2b28 52%, #28251f);
}

.coming-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.82);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.coming-soon-badge-left {
  left: 12px;
  right: auto;
}

.coming-soon-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 8px;
  background: rgba(26, 26, 26, 0.05);
  font-weight: 700;
  font-size: 0.9rem;
}

.product-art img {
  width: 116px;
  height: 124px;
  object-fit: contain;
}

/* Posters fill their whole canvas, so size to the artwork's own aspect ratio and
   give it an even margin on all sides (against the dark box) rather than
   letterboxing it. */
.product-art img.poster-image {
  width: auto;
  height: auto;
  max-width: 116px;
  max-height: 150px;
  padding: 10px;
  box-sizing: border-box;
}

.product-body {
  display: grid;
  gap: 12px;
  align-content: space-between;
  flex: 1;
  padding: 20px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--moss);
  font-weight: 900;
}

.price.discounted {
  display: grid;
  gap: 2px;
}

.price.discounted s {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.price.discounted strong {
  color: var(--moss);
}

.price.discounted em {
  color: var(--gold);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(43, 90, 70, 0.24);
  border-radius: 8px;
  background: rgba(43, 90, 70, 0.08);
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranger-card {
  position: relative;
}

.ranger-card .product-art {
  position: relative;
  background: linear-gradient(135deg, #36322e, #2e2b28 52%, #28251f);
}

.ranger-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gold);
  color: #11352b;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* The Ranger sticker is a wide 5:1 badge — size it to its own aspect ratio
   instead of the default near-square product image box. Its gold border reads
   cleanly straight on the dark box, so no separate backing is needed. */
.ranger-card .product-art img {
  width: min(86%, 240px);
  height: auto;
  aspect-ratio: 170 / 34;
}

.ranger-preview img {
  width: min(88%, 360px);
  height: auto;
  max-height: none;
  aspect-ratio: 170 / 34;
}

.ranger-preview.is-locked img {
  filter: grayscale(0.6) blur(1px);
  opacity: 0.7;
}

.ranger-lock-note {
  margin: 0;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 700;
}

.ranger-shop-banner {
  max-width: 640px;
  margin: 24px 0 0;
  padding: 20px 24px;
  border: 1px solid rgba(200, 164, 0, 0.3);
  border-radius: 12px;
  background: rgba(200, 164, 0, 0.06);
}

.ranger-shop-banner p {
  color: var(--gold);
  font-size: 14px;
  margin: 0 0 12px;
}

.ranger-shop-banner .auth-fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ranger-shop-banner .auth-fields input {
  flex: 1;
  min-width: 160px;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  background: rgba(0,0,0,0.05);
  color: var(--ink);
  font-size: 14px;
}

.ranger-shop-banner .auth-message {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.ranger-active-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ranger-active-banner p {
  margin: 0 !important;
  font-weight: 700;
  line-height: 1.2;
}

.ranger-shop-banner .button.secondary {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.button.small {
  padding: 6px 14px;
  font-size: 13px;
}

.ranger-store-note {
  width: fit-content;
  padding: 10px 12px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: rgba(200, 164, 0, 0.10);
  color: var(--gold);
  font-weight: 800;
}

.notify-form {
  width: min(100%, 540px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
}

.notify-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notify-fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notify-fields input {
  flex: 1;
  min-width: 210px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243, 234, 214, 0.75);
  color: var(--ink);
  font: inherit;
}

.notify-note,
.notify-message {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.notify-message {
  color: var(--leaf);
  font-weight: 800;
}

.partners {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  background: #e8dbc4;
  border-top: 1px solid var(--line);
}

.signpost-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.signpost-card {
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.signpost-card:first-child {
  border-right: 1px solid var(--line);
  background: #ede5cf;
}

.signpost-card:last-child {
  background: #e8dbc4;
}

.signpost-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.25;
}

.signpost-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
  max-width: 480px;
}

.product-page {
  min-height: calc(100svh - 72px);
  background: #f3ead6;
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(100vw, 430px);
  background: #f3ead6;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

body.cart-open .cart-panel {
  transform: translateX(0);
}

.stamp-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
}

.product-page-header {
  max-width: 820px;
  margin-bottom: 28px;
}

.product-page-header .button {
  margin-bottom: 28px;
}

.product-page-detail {
  max-width: 1120px;
}

.stamp-preview {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #36322e, #2e2b28 52%, #28251f);
}

.stamp-preview img {
  width: min(72%, 260px);
  max-height: 310px;
  object-fit: contain;
}

/* Posters fill their whole canvas, so size to the artwork's own aspect ratio and
   give it an even margin on all sides (against the dark box) rather than
   letterboxing it. */
.stamp-preview img.poster-image {
  width: auto;
  height: auto;
  max-width: min(78%, 300px);
  max-height: 340px;
  padding: 16px;
  box-sizing: border-box;
}

.stamp-options {
  display: grid;
  gap: 14px;
}

.fulfilment-note {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 0.92rem;
}

.stamp-options label {
  color: var(--ink);
  font-weight: 850;
}

.stamp-options select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font: inherit;
}

.product-page-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.qty-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-select button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.qty-select input {
  width: 52px;
  height: 34px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-select input::-webkit-outer-spin-button,
.qty-select input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(0, 0, 0, 0.52);
}

body.cart-open .scrim {
  display: block;
}

.stamp-preview img.zoomable {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}

body.lightbox-open {
  overflow: hidden;
}

body.lightbox-open .lightbox {
  display: grid;
}

.lightbox img {
  max-width: min(94vw, 920px);
  max-height: 88vh;
  object-fit: contain;
  background: transparent;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.cart-header,
.cart-footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.45rem;
}

.cart-header button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.6rem;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 18px;
}

.cart-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 58px;
  height: 58px;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
}

.cart-line h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.cart-line p {
  margin: 0 0 6px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.cart-empty {
  display: none;
  padding: 22px;
  color: var(--muted);
}

.cart-empty.is-visible {
  display: block;
}

.cart-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cart-discount-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 850;
}

.cart-discount-line[hidden] {
  display: none;
}

.cart-footer p {
  min-height: 24px;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

@media (max-width: 880px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero,
  .partners,
  .split-band,
  .signpost-band {
    grid-template-columns: 1fr;
  }

  .signpost-card:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .feature-grid.two,
  .product-grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .stamp-detail {
    grid-template-columns: 1fr;
  }

  .stamp-preview {
    min-height: 260px;
  }
}

@media (max-width: 520px) {

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .profile-card {
    border-radius: 24px;
  }
}
