:root {
  --ink: #11100e;
  --muted: #6f6a62;
  --paper: #f5f2ec;
  --panel: #fffaf1;
  --line: rgba(17, 16, 14, 0.16);
  --red: #a31f18;
  --gold: #c19449;
  --green: #26352c;
  --shadow: 0 22px 70px rgba(17, 16, 14, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(193, 148, 73, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 24%, rgba(163, 31, 24, 0.12), transparent 24rem),
    linear-gradient(180deg, #f7f4ee 0%, #ebe3d6 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.cart-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 76px;
  padding: 0.7rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 242, 236, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(13rem, 42vw);
}

.brand img {
  display: block;
  width: 100%;
  mix-blend-mode: multiply;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab,
.cart-toggle,
.admin-link,
.hero-button,
.checkout-button,
.text-link,
.admin-button,
.icon-button {
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.78);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-tab,
.admin-link,
.cart-toggle {
  min-height: 42px;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.76rem;
  font-weight: 800;
}

.nav-tab.is-active,
.nav-tab:hover,
.admin-link:hover,
.cart-toggle:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-toggle span {
  display: inline-grid;
  place-items: center;
  min-width: 1.45rem;
  min-height: 1.45rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}

.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.04);
  animation: slow-pan 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.78) 0%, rgba(17, 16, 14, 0.28) 47%, rgba(17, 16, 14, 0.06) 100%),
    linear-gradient(0deg, rgba(17, 16, 14, 0.54) 0%, transparent 48%);
}

.hero-copy {
  position: relative;
  width: min(760px, calc(100% - 2rem));
  padding: 0 0 clamp(4rem, 12vh, 7rem) clamp(1rem, 6vw, 4rem);
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: currentColor;
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.76rem;
  font-weight: 900;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 0.85rem;
  font-size: 7.4rem;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: 3.8rem;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-copy p:not(.eyebrow) {
  max-width: 35rem;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
}

.hero-button,
.checkout-button,
.admin-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.82rem 1.05rem;
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-button,
.checkout-button {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.hero-button:hover,
.checkout-button:hover,
.admin-button:hover,
.text-link:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.drop-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.72);
}

.drop-strip span {
  min-height: 56px;
  display: grid;
  place-items: center;
  padding: 0.8rem 1rem;
  border-right: 1px solid var(--line);
  text-align: center;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
}

.drop-strip span:last-child {
  border-right: 0;
}

.section {
  width: min(1500px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-heading .eyebrow,
.editorial-copy .eyebrow {
  color: var(--red);
  opacity: 1;
}

.shop-tools {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: end;
}

.search-box,
.sort-box {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
}

.search-box input,
.sort-box select {
  width: min(15rem, 40vw);
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 250, 241, 0.74);
  color: var(--ink);
  padding: 0 0.8rem;
}

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

.product-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ded4c5;
}

.product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 250ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.025);
}

.product-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 16, 14, 0.84);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.65rem;
  font-weight: 900;
}

.product-body {
  display: grid;
  gap: 0.6rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.product-price {
  white-space: nowrap;
  text-align: right;
  font-weight: 900;
}

.compare {
  display: block;
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.78rem;
  font-weight: 700;
}

.product-details {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-quantity {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-add {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  text-transform: uppercase;
  font-weight: 900;
}

.quick-add:disabled {
  cursor: not-allowed;
  border-color: var(--line);
  background: rgba(17, 16, 14, 0.12);
  color: var(--muted);
}

.sold-section {
  padding-top: 0;
}

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

.sold-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.85rem;
  min-height: 140px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.66);
}

.sold-card img {
  width: 108px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.sold-card .product-badge {
  position: static;
  width: max-content;
  margin-bottom: 0.5rem;
}

.sold-card p {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(18rem, 0.65fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.editorial-image {
  min-height: 360px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.editorial-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.editorial-copy p:not(.eyebrow) {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.mission-band {
  background:
    linear-gradient(135deg, rgba(17, 16, 14, 0.96), rgba(38, 53, 44, 0.95)),
    url("assets/editorial-one.jpg") center / cover;
  color: var(--paper);
}

.mission-inner {
  width: min(1500px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

.mission-copy p:not(.eyebrow) {
  max-width: 42rem;
  margin-bottom: 0;
  color: rgba(245, 242, 236, 0.78);
  font-size: 1.08rem;
}

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

.impact-stat {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(245, 242, 236, 0.18);
  border-radius: 8px;
  background: rgba(245, 242, 236, 0.08);
}

.impact-stat strong {
  color: #fff;
  font-size: 2.4rem;
  line-height: 0.95;
}

.impact-stat span {
  color: rgba(245, 242, 236, 0.76);
  font-size: 0.9rem;
}

.values-heading {
  align-items: start;
}

.values-heading > p {
  max-width: 28rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

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

.value-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.68);
}

.value-card span {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
}

.value-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.future-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.68fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  padding-top: 0;
}

.future-copy p:not(.eyebrow) {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.future-image {
  width: 100%;
  max-width: 100%;
  min-height: 380px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.future-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.text-link {
  margin-top: 0.5rem;
  background: transparent;
  border-color: var(--ink);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100vw);
  height: 100dvh;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform 220ms ease;
}

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

.cart-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.cart-panel-header h2 {
  font-size: 2rem;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-weight: 900;
}

.cart-items {
  overflow: auto;
  padding: 1rem 1.25rem;
}

.cart-empty {
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 74px;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.cart-item h3 {
  font-size: 0.92rem;
}

.cart-item p {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.remove-item {
  align-self: start;
  border: 0;
  background: transparent;
  color: var(--red);
  font-weight: 900;
}

.cart-summary {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border-top: 1px solid var(--line);
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.1rem;
}

.cart-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.checkout-form {
  display: grid;
  gap: 0.7rem;
}

.checkout-form label {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
}

.checkout-form input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 0.62rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr;
  gap: 0.55rem;
}

.checkout-button {
  width: 100%;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.checkout-button.is-disabled {
  opacity: 0.45;
}

.checkout-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(17, 16, 14, 0.06), transparent 24rem),
    linear-gradient(180deg, #f7f4ee 0%, #e8dfd1 100%);
}

.checkout-header {
  grid-template-columns: minmax(8rem, 13rem) 1fr auto;
}

.checkout-nav {
  justify-content: center;
}

.checkout-shell {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}

.checkout-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(17, 16, 14, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(17, 16, 14, 0.94), rgba(38, 53, 44, 0.88)),
    var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.checkout-hero h1 {
  max-width: 12ch;
  margin-bottom: 0.75rem;
  font-size: clamp(3rem, 8vw, 6.4rem);
}

.checkout-hero p:not(.eyebrow) {
  max-width: 38rem;
  margin-bottom: 0;
  color: rgba(245, 242, 236, 0.8);
  font-size: 1.02rem;
}

.checkout-trust {
  display: grid;
  gap: 0.55rem;
  min-width: min(23rem, 100%);
}

.checkout-trust span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(245, 242, 236, 0.22);
  border-radius: 6px;
  background: rgba(245, 242, 236, 0.08);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.checkout-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 14px 46px rgba(17, 16, 14, 0.08);
}

.checkout-card-header {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.checkout-card-header h2 {
  font-size: 1.7rem;
}

.checkout-form-large {
  display: grid;
  gap: 1rem;
  padding-bottom: 1rem;
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0 1rem;
}

.checkout-fields .full {
  grid-column: 1 / -1;
}

.checkout-payment-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 1rem;
  padding: 1rem;
  border: 1px dashed rgba(17, 16, 14, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.checkout-payment-slot h3 {
  margin-bottom: 0.35rem;
}

.checkout-payment-slot p {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkout-message {
  min-height: 1.4rem;
  margin: 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.checkout-message[data-tone="error"] {
  color: var(--red);
}

.checkout-manual-link {
  margin-top: -0.5rem;
}

.checkout-manual-link a {
  color: var(--red);
  font-weight: 900;
}

.checkout-submit {
  width: calc(100% - 2rem);
  margin: 0 1rem;
}

.order-review {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.checkout-summary-items {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 0.8rem;
  align-items: start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.checkout-summary-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.checkout-summary-item img {
  width: 74px;
  height: 92px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ded4c5;
}

.checkout-summary-item h3 {
  font-size: 0.92rem;
}

.checkout-summary-item p {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.checkout-summary-price {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
}

.checkout-total-box {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.muted-row {
  color: var(--muted);
  font-size: 0.9rem;
}

.checkout-grand-total {
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 1.22rem;
}

.order-review .text-link {
  width: calc(100% - 2rem);
  margin: 0 1rem 1rem;
}

.checkout-empty {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  color: var(--muted);
}

.checkout-empty h3 {
  color: var(--ink);
}

.checkout-success {
  margin-top: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(38, 53, 44, 0.26);
  border-radius: 8px;
  background: rgba(38, 53, 44, 0.1);
}

.checkout-success h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.checkout-return-card {
  margin-top: 0;
}

.checkout-return-card h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
}

.checkout-return-card p[data-tone="error"] {
  color: var(--red);
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 100;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translate(-50%, 160%);
  transition: transform 200ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.78rem;
}

.admin-body {
  min-height: 100vh;
}

.admin-auth-loading .site-header,
.admin-auth-loading .admin-shell {
  visibility: hidden;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-shell {
  width: min(520px, 100%);
  display: grid;
  gap: 1.25rem;
}

.login-brand {
  width: min(18rem, 76vw);
  justify-self: center;
}

.login-brand img {
  display: block;
  width: 100%;
  mix-blend-mode: multiply;
}

.login-card {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1rem, 4vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 3.2rem;
  line-height: 0.92;
}

.login-copy,
.small-note {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-error {
  min-height: 1.3rem;
  margin: 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 900;
}

.small-note {
  font-size: 0.86rem;
}

.admin-shell {
  width: min(1500px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-hero h1 {
  color: var(--ink);
  font-size: 5.4rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: start;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.72);
  overflow: hidden;
}

.admin-panel-header {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.admin-panel-header h2 {
  font-size: 1.5rem;
}

.admin-panel-body {
  padding: 1rem;
}

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

.field {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
}

.field.full {
  grid-column: 1 / -1;
}

.field-label-with-help {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.help-wrap {
  position: relative;
  display: inline-flex;
}

.help-dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(17, 16, 14, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.help-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 6;
  width: min(20rem, 80vw);
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  text-transform: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.35rem);
  transition: opacity 160ms ease, transform 160ms ease;
}

.help-wrap:hover .help-bubble,
.help-dot:focus + .help-bubble {
  opacity: 1;
  transform: translate(-50%, 0);
}

.field-grid > .full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  padding: 0.7rem;
}

.field textarea {
  resize: vertical;
}

.admin-button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.admin-button.secondary {
  background: transparent;
  color: var(--ink);
}

.admin-button.danger {
  border-color: rgba(163, 31, 24, 0.65);
  background: rgba(163, 31, 24, 0.1);
  color: var(--red);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.admin-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.admin-inventory-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-product-list {
  display: grid;
  gap: 0.85rem;
}

.admin-product-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.9rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.admin-product-card img {
  width: 120px;
  height: 148px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ded4c5;
}

.admin-product-main {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.order-list {
  display: grid;
  gap: 0.85rem;
}

.order-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.order-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(38, 53, 44, 0.12);
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.order-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.order-history-panel {
  overflow: visible;
}

.order-tools {
  align-items: end;
}

.order-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.order-stat {
  min-height: 88px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45);
}

.order-stat span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
}

.order-stat strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.25rem;
}

.test-delete-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(163, 31, 24, 0.42);
  border-radius: 8px;
  background: rgba(163, 31, 24, 0.08);
  color: var(--red);
}

.test-delete-zone p {
  max-width: 58rem;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
}

.order-history-list {
  gap: 1rem;
}

.order-history-card {
  position: relative;
}

.order-select {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 900;
}

.order-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.order-meta-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.build-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.build-note[data-tone="error"] {
  color: var(--red);
  font-weight: 800;
}

.build-note[data-tone="warning"] {
  color: var(--gold);
  font-weight: 800;
}

.order-panel {
  margin-top: 1rem;
}

@keyframes slow-pan {
  from {
    transform: scale(1.02) translateX(-0.8%);
  }
  to {
    transform: scale(1.06) translateX(0.8%);
  }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-tabs {
    grid-column: 1 / -1;
    justify-content: start;
    order: 3;
  }

  h1 {
    font-size: 5.35rem;
  }

  h2 {
    font-size: 3rem;
  }

  .admin-hero h1 {
    font-size: 4.4rem;
  }

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

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

  .editorial,
  .admin-layout,
  .mission-inner,
  .future-section {
    grid-template-columns: 1fr;
  }

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

  .checkout-hero,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .order-review {
    position: static;
  }

  .order-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: auto;
    gap: 0.75rem;
  }

  .brand {
    width: min(12rem, 54vw);
  }

  .header-actions {
    justify-content: end;
  }

  .admin-link {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(17, 16, 14, 0.86) 0%, rgba(17, 16, 14, 0.38) 58%, rgba(17, 16, 14, 0.16) 100%);
  }

  .hero-copy {
    width: calc(100% - 1.5rem);
    padding: 0 0 3rem 0.75rem;
  }

  h1 {
    font-size: 3.25rem;
    line-height: 0.94;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 1rem;
  }

  .admin-hero h1 {
    font-size: 3.1rem;
  }

  .login-card h1 {
    font-size: 2.6rem;
  }

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

  .drop-strip span:nth-child(2) {
    border-right: 0;
  }

  .section-heading,
  .admin-hero,
  .site-footer {
    display: grid;
  }

  .shop-tools {
    justify-content: start;
  }

  .search-box input,
  .sort-box select {
    width: min(100%, 18rem);
  }

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

  .product-details {
    font-size: 0.82rem;
  }

  .field-grid,
  .order-meta,
  .order-stats,
  .checkout-fields,
  .admin-product-card {
    grid-template-columns: 1fr;
  }

  .checkout-fields .full {
    grid-column: auto;
  }

  .checkout-summary-item {
    grid-template-columns: 64px 1fr;
  }

  .checkout-summary-price {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .checkout-payment-slot {
    align-items: start;
    flex-direction: column;
  }

  .test-delete-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .sold-rail {
    grid-template-columns: 1fr;
  }

  .impact-stats,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .impact-stat,
  .value-card {
    min-height: 170px;
  }

  .future-image {
    min-height: 220px;
  }

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

@media (max-width: 460px) {
  h1 {
    font-size: 2.85rem;
  }

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

  .cart-toggle,
  .nav-tab {
    font-size: 0.7rem;
  }

  .checkout-trust {
    min-width: 0;
  }
}
