:root {
  --ocean: #063b4a;
  --ocean-2: #0a5366;
  --teal: #0e8f95;
  --mint: #bfede8;
  --coral: #f36b4f;
  --amber: #f4b63f;
  --ink: #102027;
  --slate: #49616b;
  --line: #d7e5e7;
  --ice: #f4fafb;
  --sand: #fff7ea;
  --white: #ffffff;
  --green: #2e9e63;
  --shadow: 0 18px 40px rgba(7, 52, 63, 0.13);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

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

[hidden] {
  display: none !important;
}

body.checkout-mode {
  background: var(--ice);
}

body.checkout-mode .hero,
body.checkout-mode .category-section,
body.checkout-mode .products-section,
body.checkout-mode .bundle {
  display: none;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 280px) auto auto auto;
  gap: 22px;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 80px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 150px;
}

.brand > span:last-child {
  min-width: 0;
}

.brand strong {
  display: block;
  overflow: hidden;
  color: var(--ocean);
  font-size: 25px;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  display: block;
  overflow: hidden;
  color: var(--teal);
  font-size: 11px;
  font-weight: 750;
  margin-top: 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: block;
  width: 42px;
  height: 30px;
}

.brand-mark::before {
  position: absolute;
  inset: 4px 9px 3px 0;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}

.brand-tail {
  position: absolute;
  right: 0;
  top: 5px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid var(--coral);
}

.brand-eye {
  position: absolute;
  top: 13px;
  left: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
}

.desktop-nav {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  justify-content: center;
  color: var(--slate);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.desktop-nav a:first-child,
.desktop-nav a:hover {
  color: var(--ocean);
}

.header-search {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ice);
  color: var(--teal);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ocean);
  cursor: pointer;
}

.auth-button {
  display: inline-flex;
  width: auto;
  min-width: 82px;
  max-width: 160px;
  gap: 8px;
  padding: 0 13px;
  border-radius: 999px;
  white-space: nowrap;
}

#authLabel {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
}

.member-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
}

.member-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.auth-button.is-authenticated .member-icon svg {
  stroke-width: 2.6;
}

.auth-button.is-authenticated {
  border-color: rgba(14, 143, 149, 0.38);
  background: rgba(14, 143, 149, 0.1);
  color: var(--ocean);
}

.cart-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.icon-button b {
  position: absolute;
  top: -6px;
  right: -5px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-size: 11px;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.header-cta,
.button.secondary {
  background: var(--ocean);
  color: var(--white);
}

.button.primary {
  background: var(--coral);
  color: var(--white);
}

.button.ghost {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ocean);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
  gap: 48px;
  min-height: 620px;
  padding: 76px clamp(20px, 5vw, 80px) 72px;
  background: linear-gradient(90deg, var(--sand) 0 62%, var(--ocean) 62% 100%);
}

.hero-copy {
  align-self: center;
  container-type: inline-size;
}

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

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

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--ocean);
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 900;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: none;
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(24px, 8.3vw, 62px);
  font-size: clamp(24px, 8.5cqi, 62px);
}

.hero-lede {
  max-width: 600px;
  color: var(--slate);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 44px;
}

.hero-actions .button {
  min-width: 150px;
  min-height: 52px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 16px;
  max-width: 720px;
}

.proof-grid article {
  min-height: 88px;
  padding: 18px;
  border: 1px solid rgba(10, 83, 102, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.proof-grid span {
  display: block;
  width: 32px;
  height: 8px;
  margin-bottom: 12px;
  border-radius: 99px;
  background: var(--coral);
}

.proof-grid article:nth-child(2) span {
  background: var(--amber);
}

.proof-grid article:nth-child(3) span {
  background: var(--teal);
}

.proof-grid strong {
  display: block;
  color: var(--ocean);
  font-size: 16px;
}

.proof-grid p {
  margin: 3px 0 0;
  color: var(--slate);
  font-size: 12px;
}

.hero-media {
  position: relative;
  align-self: center;
  min-height: 460px;
}

.hero-media img {
  width: 100%;
  height: 440px;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.delivery-card {
  position: absolute;
  right: 32px;
  bottom: 18px;
  max-width: 390px;
  padding: 22px 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.delivery-card strong,
.delivery-card span {
  display: block;
}

.delivery-card strong {
  color: var(--ocean);
  font-size: 17px;
}

.delivery-card span {
  margin-top: 5px;
  color: var(--slate);
  font-size: 14px;
}

.section {
  scroll-margin-top: 104px;
  padding: 82px clamp(20px, 5vw, 80px);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-heading.row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

h2 {
  margin-bottom: 14px;
  color: var(--ocean);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.08;
}

.section-heading p:not(.eyebrow) {
  color: var(--slate);
  font-size: 16px;
}

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

.category-card,
.product-card,
.cart-panel,
.summary-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(7, 52, 63, 0.08);
}

.category-card {
  display: block;
  overflow: hidden;
  padding: 16px;
}

.category-card img {
  width: 100%;
  aspect-ratio: 1.8;
  border-radius: 8px;
  object-fit: cover;
}

.category-card strong {
  display: block;
  margin-top: 18px;
  color: var(--ocean);
  font-size: 21px;
}

.category-card span {
  display: block;
  margin-top: 4px;
  color: var(--slate);
  font-size: 14px;
}

.products-section {
  background: var(--ice);
}

.sort-pill {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate);
  font-weight: 700;
}

.heading-pills {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.data-source {
  color: var(--teal);
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 104px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(7, 52, 63, 0.08);
}

.filters h3 {
  color: var(--ocean);
  font-size: 22px;
}

.filters label {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  color: var(--slate);
  font-weight: 650;
}

.filters input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.filter-note {
  margin-top: 28px;
  padding: 16px;
  border-radius: 8px;
  background: var(--ice);
  color: var(--slate);
  font-size: 13px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  min-width: 76px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--slate);
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  border-color: var(--ocean);
  background: var(--ocean);
  color: var(--white);
}

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

.product-card {
  overflow: hidden;
}

.product-media {
  position: relative;
  overflow: hidden;
  background: var(--mint);
}

.product-media img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  transition: transform 180ms ease;
}

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

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ocean);
  color: var(--white);
  font-size: 11px;
  font-weight: 850;
}

.product-body {
  padding: 18px;
}

.product-body h3 {
  margin-bottom: 5px;
  color: var(--ocean);
  font-size: 20px;
}

.spec,
.rating {
  margin-bottom: 10px;
  color: var(--slate);
  font-size: 13px;
}

.rating {
  color: var(--teal);
  font-weight: 750;
}

.stock-note {
  margin: -2px 0 10px;
  color: var(--slate);
  font-size: 12px;
  font-weight: 750;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0;
}

.price-row strong {
  color: var(--coral);
  font-size: 25px;
  font-weight: 900;
}

.price-row del {
  color: var(--slate);
  font-size: 13px;
}

.product-body .button {
  width: 100%;
}

.product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-detail-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: min(88vh, 920px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.product-detail-dialog::backdrop {
  background: rgba(6, 59, 74, 0.42);
}

.product-detail-shell {
  position: relative;
  overflow: auto;
  max-height: min(88vh, 920px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.dialog-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ocean);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.product-detail-content {
  display: grid;
  gap: 24px;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.product-detail-hero img {
  width: 100%;
  aspect-ratio: 1.2;
  border-radius: 8px;
  object-fit: cover;
}

.static-badge {
  position: static;
  display: inline-flex;
  width: max-content;
  margin-bottom: 12px;
}

.product-detail-hero h2 {
  margin: 0 42px 8px 0;
  color: var(--ocean);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.product-detail-hero p {
  margin: 0 0 10px;
  color: var(--slate);
}

.detail-rating {
  color: var(--teal) !important;
  font-weight: 850;
}

.product-detail-section {
  display: grid;
  gap: 12px;
}

.product-detail-section h3 {
  margin: 0;
  color: var(--ocean);
  font-size: 22px;
}

.inventory-batch-list,
.review-list {
  display: grid;
  gap: 10px;
}

.inventory-batch-row,
.review-row {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
}

.inventory-batch-row > div:first-child,
.review-row-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
}

.inventory-batch-row strong,
.review-row strong {
  color: var(--ocean);
}

.inventory-batch-row span,
.review-row time {
  color: var(--slate);
  font-size: 12px;
  font-weight: 650;
}

.inventory-batch-row dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.inventory-batch-row dl div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.inventory-batch-row dt,
.inventory-batch-row dd {
  margin: 0;
}

.inventory-batch-row dt {
  color: var(--slate);
  font-size: 11px;
  font-weight: 750;
}

.inventory-batch-row dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.review-row-heading span {
  color: var(--amber);
  font-weight: 900;
}

.review-row p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.review-form,
.review-login-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
}

.review-login-panel p {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
  font-weight: 650;
}

.review-eligibility-note {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.star-rating-field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.star-rating-field legend {
  width: 100%;
  color: var(--slate);
  font-size: 12px;
  font-weight: 850;
}

.star-rating-field label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ocean);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.star-rating-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
}

.detail-empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 650;
}

.bundle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  scroll-margin-top: 104px;
  margin: 84px clamp(20px, 5vw, 80px);
  padding: 36px 42px;
  border-radius: 8px;
  background: var(--ocean);
  color: var(--white);
}

.bundle h2 {
  color: var(--white);
  font-size: clamp(27px, 3vw, 38px);
}

.bundle p:not(.eyebrow) {
  color: #d8f4f2;
}

.bundle-images {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.bundle-images img {
  flex: 1 1 0;
  width: 132px;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
}

.checkout-section {
  min-height: calc(100vh - 80px);
  padding-top: 56px;
  background: var(--ice);
}

.checkout-flow-heading {
  max-width: none;
}

.checkout-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 820px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.checkout-progress li {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--slate);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.checkout-progress-button {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.checkout-progress li.active {
  border-color: var(--teal);
  background: rgba(14, 143, 149, 0.12);
  color: var(--ocean);
}

.checkout-flow-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.checkout-step {
  display: block;
}

.checkout-step[hidden] {
  display: none;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 40px;
}

.cart-panel,
.summary-panel {
  padding: 28px;
}

.cart-panel h3,
.summary-panel h3 {
  margin-bottom: 0;
  color: var(--ocean);
  font-size: 25px;
}

.panel-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-title-row span {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.cart-items.empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--slate);
}

.cart-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-row img {
  width: 92px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-row h4 {
  margin: 0 0 4px;
  color: var(--ocean);
  font-size: 17px;
}

.cart-row p {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.qty-control button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
  color: var(--ocean);
  cursor: pointer;
}

.cart-line-total {
  min-width: 86px;
  text-align: right;
}

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

.cart-line-total small {
  color: var(--slate);
  font-size: 12px;
}

.cart-line-total strong {
  color: var(--ocean);
  font-size: 17px;
}

.remove-item {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
}

.remove-item:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.summary-panel {
  position: sticky;
  top: 104px;
}

.checkout-form {
  display: grid;
  gap: 22px;
}

.checkout-details-panel,
.order-payment-panel,
.transfer-report-form,
.transfer-lookup-panel {
  width: min(820px, 100%);
  margin-right: auto;
  margin-left: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(7, 52, 63, 0.08);
}

.checkout-block {
  display: grid;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.checkout-block:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.summary-panel dl {
  margin: 0;
}

.summary-panel dl div,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.summary-panel dt,
.summary-panel dd {
  margin: 0;
}

.summary-panel dt {
  color: var(--slate);
}

.summary-panel dd {
  color: var(--ink);
  font-weight: 750;
}

.total-row {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 850;
}

.total-row strong {
  color: var(--coral);
  font-size: 30px;
}

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

.field {
  position: relative;
  display: block;
  color: var(--slate);
  font-size: 13px;
  font-weight: 750;
}

.field > span {
  position: absolute;
  top: 7px;
  right: 13px;
  left: 13px;
  z-index: 1;
  overflow: hidden;
  color: var(--slate);
  font-size: 11px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.field:has(input:required, select:required, textarea:required) > span::after {
  content: " *";
  color: var(--coral);
  font-weight: 900;
}

.field.wide,
.checkbox-line.wide,
.admin-image-preview.wide {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 24px 12px 8px;
  outline: 0;
}

.field textarea {
  padding-top: 26px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 143, 149, 0.12);
}

.payment-note,
.selected-store {
  color: var(--slate);
  font-size: 12px;
  font-weight: 500;
}

.field small {
  display: none;
}

.checkbox-line {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--slate);
  font-size: 13px;
  font-weight: 750;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.conditional-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
}

.conditional-fields[hidden] {
  display: none;
}

.select-store-button {
  width: 100%;
}

.selected-store,
.payment-note {
  margin: 0;
}

.payment-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 650;
}

.order-payment-panel,
.transfer-lookup-panel {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.checkout-step .order-payment-panel {
  margin-top: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.checkout-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 2px;
}

.checkout-step-actions .button {
  flex: 1 1 180px;
}

.order-info-list,
.bank-info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.order-info-list div,
.bank-info-list div {
  display: grid;
  grid-template-columns: minmax(72px, 0.44fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  justify-content: stretch;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
}

.order-info-list dt,
.order-info-list dd,
.bank-info-list dt,
.bank-info-list dd {
  margin: 0;
}

.order-info-list dt,
.bank-info-list dt {
  color: var(--slate);
  font-size: 12px;
  font-weight: 750;
}

.order-info-list dd,
.bank-info-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ocean);
  font-weight: 850;
  line-height: 1.45;
}

.transfer-report-form,
.transfer-lookup-form {
  display: grid;
  gap: 12px;
}

.member-orders-panel {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.standalone-orders-panel {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(7, 52, 63, 0.08);
}

.member-order-list {
  display: grid;
  gap: 10px;
}

.member-order-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.member-order-topline,
.member-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.member-order-topline strong {
  color: var(--ocean);
  font-size: 17px;
}

.member-order-status {
  border-radius: 999px;
  background: rgba(14, 143, 149, 0.1);
  color: var(--teal);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.member-order-meta {
  color: var(--slate);
  font-size: 12px;
  font-weight: 650;
}

.member-order-meta b {
  color: var(--ink);
  font-size: 13px;
}

.checkout-button {
  width: 100%;
  min-height: 54px;
}

.safe-note {
  margin: 18px 0 0;
  color: var(--slate);
  font-size: 12px;
}

.mobile-tabbar {
  display: none;
}

.admin-body {
  min-height: 100vh;
  background: var(--ice);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-main {
  display: grid;
  gap: 22px;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 52px) 64px;
}

.admin-title-row {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
}

.admin-title-row h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(36px, 4vw, 54px);
}

.admin-title-row p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--slate);
}

.admin-status {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--slate);
  font-weight: 750;
}

.admin-status[data-tone="success"] {
  border-color: rgba(46, 158, 99, 0.35);
  background: rgba(46, 158, 99, 0.08);
  color: var(--green);
}

.admin-status[data-tone="warning"] {
  border-color: rgba(244, 182, 63, 0.55);
  background: rgba(244, 182, 63, 0.13);
  color: #7a4d00;
}

.admin-status[data-tone="error"] {
  border-color: rgba(243, 107, 79, 0.45);
  background: rgba(243, 107, 79, 0.1);
  color: #96301d;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(7, 52, 63, 0.08);
}

.product-management-panel,
.product-editor-panel,
.inventory-management-panel,
.inventory-editor-panel {
  display: grid;
  gap: 20px;
  padding: 26px;
}

.product-editor-panel,
.inventory-editor-panel {
  position: sticky;
  top: 98px;
}

.admin-panel-heading {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  min-width: 0;
}

.admin-panel-heading h2 {
  margin: 0 0 4px;
  color: var(--ocean);
  font-size: 24px;
  line-height: 1.1;
}

.admin-panel-heading p {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.5;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, 0.75fr));
  gap: 12px;
}

.admin-groups {
  display: grid;
  gap: 18px;
}

.admin-product-group {
  display: grid;
  gap: 10px;
}

.admin-product-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.admin-product-group-heading h3 {
  margin: 0;
  color: var(--ocean);
  font-size: 16px;
}

.admin-product-list {
  display: grid;
  gap: 10px;
}

.inventory-list {
  display: grid;
  gap: 10px;
}

.admin-product-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-product-card.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 143, 149, 0.1);
}

.admin-product-card.is-inactive {
  background: var(--ice);
}

.admin-product-card.is-sample {
  border-style: dashed;
  border-color: rgba(244, 182, 63, 0.65);
  background: var(--sand);
}

.admin-product-card img {
  width: 88px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-image-missing {
  display: grid;
  place-items: center;
  width: 88px;
  height: 78px;
  border-radius: 8px;
  background: var(--ice);
  color: var(--slate);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.admin-product-card-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.admin-product-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.admin-product-card p {
  margin: 4px 0 8px;
  color: var(--slate);
  font-size: 13px;
}

.status-pill,
.admin-tag-row span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.active {
  background: rgba(46, 158, 99, 0.12);
  color: var(--green);
}

.status-pill.inactive {
  background: rgba(73, 97, 107, 0.12);
  color: var(--slate);
}

.status-pill.low {
  background: rgba(244, 182, 63, 0.16);
  color: #7a4d00;
}

.status-pill.sample {
  background: rgba(244, 182, 63, 0.2);
  color: #7a4d00;
}

.status-pill.empty,
.status-pill.expired {
  background: rgba(243, 107, 79, 0.12);
  color: #96301d;
}

.admin-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-tag-row span {
  background: var(--ice);
  color: var(--ocean-2);
}

.admin-row-actions,
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.inventory-admin-layout {
  margin-top: 6px;
}

.inventory-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.inventory-card.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 143, 149, 0.1);
}

.inventory-card-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.inventory-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.inventory-card p {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
}

.inventory-metric-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.inventory-metric-row span {
  display: grid;
  gap: 2px;
  min-height: 52px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
  padding: 10px 12px;
  color: var(--ocean);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.inventory-metric-row b {
  color: var(--slate);
  font-size: 11px;
  font-weight: 750;
}

.button.compact {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 13px;
}

.button.danger {
  border: 1px solid rgba(243, 107, 79, 0.45);
  background: rgba(243, 107, 79, 0.1);
  color: #96301d;
}

.button.danger:hover {
  background: var(--coral);
  color: var(--white);
}

.admin-product-form {
  display: grid;
  gap: 16px;
}

.admin-image-preview {
  min-height: 170px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
}

.admin-image-preview img,
.admin-image-preview .admin-image-missing {
  width: 100%;
  height: 170px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-image-preview.is-empty {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.tag-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tag-fieldset legend {
  padding: 0 6px;
  color: var(--ocean);
  font-size: 13px;
  font-weight: 850;
}

.tag-fieldset label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--slate);
  font-size: 13px;
  font-weight: 750;
}

.tag-fieldset input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.empty-admin-state {
  display: grid;
  min-height: 140px;
  place-items: center;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--slate);
  text-align: center;
}

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

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    background: var(--sand);
  }

  .hero-copy h1 {
    white-space: normal;
  }

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

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

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

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

  .inventory-batch-row dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters,
  .summary-panel {
    position: static;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .product-editor-panel,
  .inventory-editor-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  body {
    padding-bottom: 76px;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 14px 16px;
  }

  .admin-header,
  .admin-title-row,
  .admin-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-header {
    position: static;
    padding: 14px 16px;
  }

  .admin-main {
    padding: 24px 16px 88px;
  }

  .admin-panel-heading {
    display: grid;
  }

  .admin-title-row h1 {
    font-size: 36px;
  }

  .admin-filters,
  .tag-fieldset {
    grid-template-columns: 1fr;
  }

  .product-actions,
  .inventory-batch-row dl {
    grid-template-columns: 1fr;
  }

  .product-detail-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 24px);
  }

  .product-detail-shell {
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .product-detail-hero h2 {
    margin-right: 42px;
  }

  .admin-product-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .admin-product-card img {
    width: 72px;
    height: 68px;
  }

  .admin-image-missing {
    width: 72px;
    height: 68px;
  }

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

  .brand {
    min-width: 0;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 4;
  }

  .heading-pills {
    justify-content: flex-start;
    margin-top: 16px;
  }

  .hero,
  .section {
    padding: 32px 16px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 39px;
  }

  .hero-copy h1 {
    font-size: clamp(24px, 8.1vw, 39px);
  }

  .proof-grid,
  .category-grid,
  .product-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-media img {
    height: 280px;
  }

  .delivery-card {
    position: static;
    margin-top: 14px;
  }

  .section-heading.row {
    display: block;
  }

  .shop-layout {
    gap: 24px;
  }

  .filters {
    padding: 18px;
  }

  .bundle {
    grid-template-columns: 1fr;
    margin: 40px 16px;
    padding: 28px 22px;
  }

  .bundle-images {
    width: 100%;
  }

  .bundle-images img {
    width: auto;
    min-width: 0;
  }

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

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 48px;
    padding: 25px 12px 9px;
  }

  .field textarea {
    line-height: 1.45;
  }

  .panel-title-row {
    display: grid;
    gap: 4px;
  }

  .cart-row {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .cart-row img {
    grid-row: span 3;
    width: 76px;
    height: 68px;
  }

  .qty-control {
    grid-column: 2;
    justify-content: flex-start;
  }

  .cart-line-total {
    grid-column: 2;
    text-align: left;
  }

  .remove-item {
    grid-column: 3;
    grid-row: 1;
  }

  .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    background: var(--white);
  }

  .mobile-tabbar a {
    display: grid;
    min-height: 64px;
    place-items: center;
    color: var(--slate);
    font-size: 12px;
    font-weight: 750;
  }

  .mobile-tabbar a.active {
    color: var(--ocean);
  }
}

@media (max-width: 430px) {
  body {
    padding-bottom: 68px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding-inline: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 36px;
    height: 28px;
  }

  .brand strong {
    font-size: 22px;
  }

  .auth-button {
    min-width: 42px;
    max-width: 42px;
    padding: 0;
  }

  .auth-button.is-authenticated {
    width: auto;
    min-width: 118px;
    max-width: 148px;
    padding: 0 12px;
    border-color: rgba(14, 143, 149, 0.38);
    background: rgba(14, 143, 149, 0.1);
    color: var(--ocean);
  }

  .auth-button.is-authenticated::after {
    display: none;
  }

  #authLabel {
    display: none;
  }

  .auth-button.is-authenticated #authLabel {
    display: block;
  }

  .hero,
  .section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-copy h1 {
    font-size: 33px;
    line-height: 1.04;
  }

  .hero-actions .button,
  .admin-form-actions .button,
  .admin-header-actions .button,
  .admin-title-row .button {
    width: 100%;
  }

  .proof-grid article,
  .cart-panel,
  .summary-panel,
  .checkout-details-panel,
  .order-payment-panel,
  .transfer-report-form,
  .transfer-lookup-panel,
  .product-management-panel,
  .product-editor-panel,
  .inventory-management-panel,
  .inventory-editor-panel {
    padding: 18px;
  }

  .cart-row {
    grid-template-columns: 64px minmax(0, 1fr) 32px;
    gap: 12px;
  }

  .cart-row img {
    width: 64px;
    height: 60px;
  }

  .inventory-metric-row {
    grid-template-columns: 1fr;
  }

  .mobile-tabbar a {
    min-height: 58px;
  }
}
