:root {
  --ink: #1c2623;
  --nile: #0f4c45;
  --nile-deep: #0a332e;
  --gold: #a67c3d;
  --paper: #FBFAF6;
  --header: #0f4c45;
  --header-ink: #FBFAF6;
  --card: #ffffff;
  --line: #e6e1d6;
  --rose: #8d3a48;
  --muted: #5e675f;
  --shadow: 0 16px 40px rgba(28, 38, 35, 0.06);
}

html {
  font-size: 16px;
}


.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--nile);
  color: white;
  padding: 0.5rem 0.75rem;
  z-index: 2000;
}

.skip-link:focus {
  top: 0.5rem;
}

.logout-form {
  margin: 0;
}

.logout-button {
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.25rem 0 1.5rem;
}

.site-footer a {
  color: var(--nile);
}

.page-heading h1, .form-panel h1, .listing-toolbar h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}
]
.lede, .form-panel p, .empty-state {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
}

.btn-brand {
  --bs-btn-bg: var(--nile);
  --bs-btn-border-color: var(--nile);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--nile-deep);
  --bs-btn-hover-border-color: var(--nile-deep);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--nile-deep);
  --bs-btn-active-border-color: var(--nile-deep);
  --bs-btn-disabled-bg: var(--nile);
  --bs-btn-disabled-border-color: var(--nile);
}

.btn-outline-brand {
  --bs-btn-color: var(--nile);
  --bs-btn-border-color: var(--nile);
  --bs-btn-hover-bg: var(--nile);
  --bs-btn-hover-border-color: var(--nile);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--nile-deep);
  --bs-btn-active-border-color: var(--nile-deep);
}

.btn:focus-visible, .form-control:focus, .form-check-input:focus, .nav-link:focus-visible, .report-thumb:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(166, 124, 61, 0.35);
  border-color: var(--gold);
}

.form-panel, .listing-table, .report-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
}

.form-panel {
  width: 100%;
  margin-inline: auto;
  padding: 1.75rem;
  margin:3rem auto;
}

@media (min-width: 992px) {
  .form-panel {
    width: min(62.5vw, 100%);
  }
}

.listing-toolbar {
  max-width: none;
  margin-bottom: 1.25rem;
}

.listing-toolbar .eyebrow {
  margin-bottom: 0.35rem;
}

.listing-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.listing-toolbar-row h1 {
  margin: 0;
}

.form-panel .listing-toolbar-row {
  margin-bottom: 1.25rem;
}

.auth-secondary {
  margin-left: 1rem;
  color: var(--nile);
}

.validation-summary-valid {
  display: none;
}

.field-error {
  display: block;
  color: var(--rose);
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

.field-error:empty {
  display: none;
}

.field-hint, .report-date, .request-id {
  color: var(--muted);
  font-size: 0.95rem;
}

#listing-form .form-label {
  font-size: 1rem;
  font-weight: 700;
}

#listing-form p.field-hint {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

#lab-report-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.report-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 1rem;
}

.report-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #efe6d6;
  cursor: zoom-in;
}

.report-thumb img, .admin-thumb, .current-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.report-title {
  font-size: 1.45rem;
  margin: 0 0 0.2rem;
}

.report-title a {
  color: inherit;
  text-decoration: none;
}

.report-title a:hover {
  color: var(--nile);
}

.report-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (min-width: 768px) {
  #lab-report-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  #lab-report-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-thumb, .current-thumb {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 0.65rem;
  object-fit: cover;
  background: #efe6d6;
}

.current-thumb {
  display: block;
  margin-bottom: 0.75rem;
}

.listing-table {
  overflow: hidden;
}

.listing-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.listing-name {
  font-weight: 600;
  min-width: 10rem;
}

.inquiry-search {
  margin-bottom: 1.25rem;
}

.inquiry-search .form-label {
  font-size: 1rem;
  font-weight: 700;
}

.inquiry-count {
  margin-bottom: 0.75rem;
}

.inquiry-table td {
  vertical-align: top;
}

.inquiry-address {
  min-width: 12rem;
  max-width: 18rem;
  white-space: normal;
}

.inquiry-description {
  min-width: 14rem;
  max-width: 24rem;
  white-space: pre-wrap;
}

.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-list dd {
  margin: 0.15rem 0 0;
}

.upload-progress {
  margin: 1rem 0 1.25rem;
}

.upload-progress .progress {
  height: 0.8rem;
  background: #efe6d6;
}

.upload-progress .progress-bar {
  background: linear-gradient(90deg, var(--nile), var(--gold));
  transition: width 80ms linear;
}

.upload-progress-label {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.load-more-wrap {
  margin-top: 1.25rem;
}

.load-more-status {
  min-height: 1.5rem;
  margin-top: 0.6rem;
  color: var(--muted);
}

.load-more-status.is-error {
  color: var(--rose);
}


body.admin-nav-lock {
  overflow: hidden;
}

.admin-shell {
  position: relative;
  min-height: calc(100dvh - var(--header-offset, 4.75rem));
}

.admin-toolbar {
  padding: 0.85rem 1rem 0.25rem;
}

.admin-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
  color: var(--nile);
  cursor: pointer;
}

.admin-nav-toggle-bars,
.admin-nav-toggle-bars::before,
.admin-nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.admin-nav-toggle-bars {
  position: relative;
}

.admin-nav-toggle-bars::before,
.admin-nav-toggle-bars::after {
  position: absolute;
  left: 0;
}

.admin-nav-toggle-bars::before {
  top: -0.38rem;
}

.admin-nav-toggle-bars::after {
  top: 0.38rem;
}

.admin-nav {
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 1rem 0.75rem;
}

.admin-nav-link {
  display: block;
  width: 100%;
  margin: 0 0 0.35rem;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: var(--nile);
  color: var(--header-ink);
}

.admin-nav form {
  margin: 0;
}

.admin-nav-backdrop {
  display: none;
}

@media (min-width: 992px) {
  .admin-shell {
    display: flex;
    align-items: stretch;
  }

  .admin-nav {
    position: sticky;
    top: var(--header-offset, 4.75rem);
    flex: 0 0 16rem;
    width: 16rem;
    height: calc(100dvh - var(--header-offset, 4.75rem));
    overflow: auto;
  }

  .admin-shell.is-collapsed .admin-nav {
    display: none;
  }

  .admin-content {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 991.98px) {
  .admin-nav {
    position: fixed;
    top: var(--header-offset, 4.75rem);
    left: 0;
    z-index: 30;
    width: min(18rem, 86vw);
    height: calc(100dvh - var(--header-offset, 4.75rem));
    overflow: auto;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow);
  }

  .admin-shell.is-open .admin-nav {
    transform: translateX(0);
  }

  .admin-nav-backdrop {
    position: fixed;
    top: var(--header-offset, 4.75rem);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    background: rgba(28, 38, 35, 0.45);
  }

  .admin-shell.is-open .admin-nav-backdrop {
    display: block;
  }
}

html:not(.age-ok) body {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 1.5rem;
  overflow: auto;
  background: rgba(17, 17, 17, 0.55);
  color: #1b1b1b;
}

html.age-ok .age-gate {
  display: none;
}

.age-gate-panel {
  width: min(100%, 34rem);
  margin: 0 auto;
  padding: 2.4rem 2rem 2rem;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.age-gate-title {
  margin: 0;
  color: #1a1a1a;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.age-gate-note,
.age-gate-copy {
  max-width: 28rem;
  margin: 1rem auto 0;
  color: #4a4a4a;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.age-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.age-gate-btn {
  min-width: 10.5rem;
  margin: 0;
  padding: 0.62rem 1.15rem;
  border-radius: 4px;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
}

.age-gate-btn-yes {
  border: 1px solid #5b67e6;
  background: #5b67e6;
  color: #ffffff;
}

.age-gate-btn-yes:hover {
  background: #4a56d6;
  border-color: #4a56d6;
}

.age-gate-btn-no {
  border: 1px solid #5b67e6;
  background: #ffffff;
  color: #5b67e6;
}

.age-gate-btn-no:hover {
  background: #f4f6ff;
}

.age-gate-btn:focus-visible {
  outline: 3px solid #5b67e6;
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .auth-secondary {
    display: inline-block;
    margin: 0.8rem 0 0;
  }

  .listing-toolbar-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .listing-toolbar-row .btn {
    width: 100%;
  }

  .logout-button {
    text-align: left;
    padding-left: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .upload-progress .progress-bar {
    transition: none;
  }
}

.suggest-anchor {
  position: relative;
}

.suggest-anchor.is-open {
  z-index: 40;
}

.suggest-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
  max-height: 14rem;
  overflow: auto;
}

.suggest-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-radius: 0.45rem;
  color: var(--ink);
}

.suggest-option:hover,
.suggest-option.is-active {
  background: #f3ead7;
}

#listing-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.image-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.image-picker-grid:empty {
  display: none;
}

.image-picker-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
}

.image-picker-card.is-default {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.image-picker-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #efe6d6;
}

.image-default {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.92rem;
}


.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

.product-stage {
  position: relative;
  background: #f6f1e6;
  border-radius: 1.25rem;
  overflow: hidden;
}

.product-stage-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-stage-open img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-arrow,
.product-zoom {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(28, 38, 35, 0.12);
}

.product-arrow span {
  font-size: 1.7rem;
  line-height: 1;
  margin-top: -0.15rem;
}

.product-arrow-prev { left: 0.8rem; top: 50%; transform: translateY(-50%); }
.product-arrow-next { right: 0.8rem; top: 50%; transform: translateY(-50%); }

.product-zoom {
  top: 0.8rem;
  right: 0.8rem;
  width: 2.4rem;
  height: 2.4rem;
}

.product-zoom svg,
.lab-report-button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.product-gallery.is-single .product-arrow,
.product-gallery.is-single .product-thumbs-wrap {
  display: none;
}

.product-thumbs-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.8rem;
}

.product-thumb-arrow {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-thumbs::-webkit-scrollbar {
  display: none;
}

.product-thumb {
  flex: 0 0 4.6rem;
  width: 4.6rem;
  height: 4.6rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #efe6d6;
  scroll-snap-align: start;
}

.product-thumb.is-active {
  border-color: var(--gold);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-summary .eyebrow {
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
  overflow-wrap: anywhere;
}

.product-quantity {
  margin: 0 0 1.1rem;
  color: #6d6458;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-description {
  white-space: pre-wrap;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3e463f;
  margin-bottom: 1.5rem;
}

.lab-report-button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 28rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid #e6dcc8;
  border-radius: 0.9rem;
  background: #f7f1e6;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.lab-report-button span {
  flex: 1;
}

.lab-report-external {
  flex: none;
}

.flavor-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.flavor-kicker {
  margin-bottom: 0.4rem;
}

.flavor-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 1.5rem;
}

.flavor-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  text-align: left;
}

.flavor-carousel.is-static .flavor-arrow {
  visibility: hidden;
}

.flavor-arrow {
  position: static;
  transform: none;
}

.flavor-arrow:disabled {
  opacity: 0.35;
}

.flavor-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.flavor-scroller::-webkit-scrollbar {
  display: none;
}

.flavor-card {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: var(--shadow);
  min-width: 0;
}

.flavor-card-media {
  display: block;
  border-radius: 0.8rem;
  overflow: hidden;
  background: #f6f1e6;
  aspect-ratio: 1;
}

.flavor-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flavor-card h3 {
  font-family: Fraunces, Palatino, serif;
  font-size: 1.35rem;
  margin: 0.8rem 0 0.2rem;
  overflow-wrap: anywhere;
}

.flavor-card h3 a,
.flavor-more {
  color: inherit;
  text-decoration: none;
}

.flavor-card p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flavor-more {
  display: inline-flex;
  gap: 0.35rem;
  color: var(--nile);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .product-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
  }

  .flavor-scroller {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }
}

@media (min-width: 992px) {
  .flavor-scroller {
    grid-auto-columns: calc((100% - 3rem) / 4);
  }
}

@media (max-width: 767.98px) {
  .product-arrow,
  .product-zoom,
  .product-thumb-arrow,
  .flavor-arrow {
    width: 2.2rem;
    height: 2.2rem;
  }

  .lab-report-button {
    max-width: none;
  }
}
