:root {
  color-scheme: light;
  --ink: #090909;
  --muted: #5d5d5d;
  --line: #dedbd4;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --field: #f2eee6;
  --field-2: #f8f5ed;
  --honey: #c98b1e;
  --honey-dark: #8e6219;
  --leaf: #3e5940;
  --blue: #315c70;
  --danger: #9c3f30;
  --shadow: 0 16px 40px rgba(9, 9, 9, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 115px, rgba(201, 139, 30, 0.1), transparent 260px),
    linear-gradient(180deg, #ffffff 0, #fffdf8 360px, var(--paper) 720px),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1380px;
  margin: 0 auto;
  min-width: 0;
}

.brand {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-copy {
  display: block;
  border-left: 4px solid var(--honey);
  padding-left: 12px;
}

.brand-name,
.brand-legal {
  display: block;
  white-space: nowrap;
}

.brand-name {
  color: #2d2820;
  font-family: "Snell Roundhand", "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(1rem, 1.8vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-legal {
  color: #746b5f;
  font-size: clamp(0.64rem, 1.05vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-top: 1px;
}

.quote-button,
.cart-button,
.primary-link,
.text-button,
.card-button,
.icon-close {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 800;
  border-radius: 6px;
}

.quote-button span {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--honey);
  color: var(--ink);
  font-size: 0.78rem;
}

.cart-button {
  min-width: 104px;
}

.cart-button strong {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--honey);
  color: var(--ink);
  font-size: 0.78rem;
}

main {
  padding: 26px clamp(16px, 4vw, 48px) 54px;
}

.brand-hero {
  max-width: 1380px;
  min-height: clamp(320px, 46vh, 500px);
  margin: 0 auto 34px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(24px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}

.brand-hero::after {
  content: none;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.comb {
  position: absolute;
  display: block;
  width: min(390px, 34vw);
  aspect-ratio: 1;
  opacity: 0.22;
  background:
    linear-gradient(30deg, transparent 41%, var(--honey) 42%, var(--honey) 45%, transparent 46%),
    linear-gradient(150deg, transparent 41%, var(--honey) 42%, var(--honey) 45%, transparent 46%),
    linear-gradient(90deg, transparent 41%, var(--honey) 42%, var(--honey) 45%, transparent 46%);
  background-size: 50px 43px;
  mask-image: radial-gradient(circle, #000 52%, transparent 72%);
}

.comb-a {
  right: 8%;
  top: 12%;
}

.comb-b {
  left: 4%;
  bottom: 2%;
  width: min(300px, 25vw);
  opacity: 0.1;
}

.bee-silhouette {
  position: absolute;
  right: clamp(80px, 12vw, 190px);
  top: clamp(52px, 9vw, 112px);
  width: 110px;
  height: 82px;
  transform: rotate(-12deg);
  opacity: 0.72;
}

.bee-body {
  position: absolute;
  left: 28px;
  top: 34px;
  width: 62px;
  height: 25px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #181510 0 18%, var(--honey) 18% 36%, #181510 36% 51%, var(--honey) 51% 70%, #181510 70% 100%);
  box-shadow: 0 9px 18px rgba(62, 41, 12, 0.12);
}

.bee-head {
  position: absolute;
  left: 15px;
  top: 38px;
  width: 22px;
  height: 20px;
  border-radius: 50%;
  background: #181510;
}

.bee-wing {
  position: absolute;
  top: 12px;
  width: 42px;
  height: 34px;
  border: 2px solid rgba(49, 92, 112, 0.28);
  border-radius: 72% 72% 52% 52%;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 18px rgba(49, 92, 112, 0.08);
}

.bee-wing-left {
  left: 31px;
  transform: rotate(-24deg);
}

.bee-wing-right {
  left: 53px;
  transform: rotate(28deg);
}

.hero-logo {
  width: min(100%, 700px);
  justify-self: center;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.04);
  position: relative;
  z-index: 2;
}

.catalog-shell {
  max-width: 1380px;
  margin: 0 auto;
}

.catalog-heading {
  display: block;
  margin-bottom: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  color: var(--honey-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 0.95;
  margin: 0;
  letter-spacing: 0;
}

h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

.catalog-heading h1 {
  font-size: clamp(2.15rem, 4.7vw, 5rem);
  line-height: 0.98;
  max-width: 920px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 260px);
  gap: 12px;
  margin-bottom: 14px;
}

.search-field,
.select-field {
  display: grid;
  gap: 6px;
}

.search-field span,
.select-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 6px;
  padding: 0 14px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.category-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  border-radius: 999px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.category-tab[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.category-tab:hover {
  border-color: var(--honey);
  transform: translateY(-1px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--honey);
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 1px 0 rgba(50, 35, 10, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(50, 35, 10, 0.1);
  border-color: #d5c9b5;
}

.product-media {
  position: relative;
  height: clamp(190px, 18vw, 238px);
  background:
    linear-gradient(180deg, #fff 0%, var(--field-2) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  padding: 14px;
}

.product-id {
  display: inline-flex;
  width: fit-content;
  color: #8b8172;
  border: 1px solid rgba(139, 129, 114, 0.22);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.product-meta {
  color: var(--muted);
  font-size: 0.74rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-meta span:first-child {
  color: var(--leaf);
}

.product-meta span:last-child {
  color: var(--honey-dark);
  text-align: right;
}

.product-title {
  font-size: 1.08rem;
  line-height: 1.18;
}

.product-description {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
  margin: 0;
}

.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  font-size: 1.45rem;
  font-weight: 950;
  color: var(--ink);
}

.price-note {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.card-button.secondary,
.text-button,
.icon-close {
  background: transparent;
  color: var(--ink);
}

.card-button:hover,
.cart-button:hover,
.quote-button:hover,
.primary-link:hover {
  background: #26211a;
}

.card-button.secondary:hover,
.text-button:hover,
.icon-close:hover {
  border-color: var(--honey);
  background: #fff8e8;
}

.category-apparel {
  border-top-color: #315c70;
}

.category-live-bees {
  border-top-color: #c98b1e;
}

.category-kits,
.category-hive-components {
  border-top-color: #3e5940;
}

.category-honey-processing {
  border-top-color: #8e6219;
}

.category-feeding-and-medication {
  border-top-color: #9c3f30;
}

.empty-state {
  border: 1px dashed var(--line);
  background: var(--panel);
  padding: 28px;
  text-align: center;
  border-radius: 8px;
  color: var(--muted);
}

.product-dialog {
  width: min(980px, calc(100vw - 28px));
  border: 0;
  padding: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(29, 26, 22, 0.42);
}

.icon-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  background: var(--panel);
}

.dialog-product {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 22px;
  padding: 24px;
}

.dialog-main-image {
  aspect-ratio: 1 / 1;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.dialog-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.thumbs img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
}

.detail-stack {
  display: grid;
  align-content: start;
  gap: 14px;
}

.detail-stack h2 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1;
  max-width: 14ch;
}

.detail-description {
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-line;
}

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

.detail-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fcfaf5;
}

.detail-box span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.option-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  background: var(--field);
  font-size: 0.82rem;
}

.source-link {
  color: var(--blue);
  font-weight: 800;
}

.quote-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(430px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--line);
  z-index: 50;
  transform: translateX(105%);
  transition: transform 180ms ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: var(--shadow);
}

.quote-drawer.open {
  transform: translateX(0);
}

.drawer-header,
.quote-footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quote-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  align-items: stretch;
  flex-direction: column;
}

.quote-footer span {
  color: var(--muted);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
}

.quote-footer strong {
  font-size: 1.6rem;
}

.quote-items {
  overflow: auto;
  padding: 12px;
}

.quote-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}

.quote-item img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: var(--field);
  border-radius: 6px;
}

.quote-item h3 {
  font-size: 0.96rem;
}

.quote-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.qty-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 5px;
  cursor: pointer;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(29, 26, 22, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 40;
}

.scrim.open {
  opacity: 1;
  pointer-events: auto;
}

.site-footer {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 38px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

.cart-toast {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: 22px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 12px 14px;
  font-weight: 800;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.checkout-page,
.confirmation-page {
  max-width: 1380px;
  margin: 0 auto;
}

.checkout-hero,
.confirmation-panel {
  padding: clamp(26px, 5vw, 58px) 0 24px;
}

.checkout-hero h1,
.confirmation-panel h1 {
  text-transform: uppercase;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 18px;
  align-items: start;
}

.checkout-panel,
.order-summary,
.confirmation-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 24px);
}

.checkout-panel {
  grid-column: 1;
  display: grid;
  gap: 16px;
}

.checkout-panel + .checkout-panel {
  margin-top: 18px;
}

.checkout-panel h2,
.order-summary h2 {
  font-size: 1.35rem;
}

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

.form-grid label,
.checkout-panel label {
  display: grid;
  gap: 6px;
}

.form-grid span,
.checkout-ack span,
.checkout-panel label > span:first-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.span-2 {
  grid-column: 1 / -1;
}

.payment-option,
.checkout-ack {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfaf5;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
}

.payment-option input,
.checkout-ack input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.payment-option small {
  color: var(--muted);
  display: block;
  line-height: 1.4;
  margin-top: 2px;
}

.checkout-submit {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  min-height: 50px;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}

.checkout-submit:disabled {
  cursor: progress;
  opacity: 0.74;
}

.form-status {
  color: var(--danger);
  font-weight: 800;
  margin: 0;
}

.order-summary {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 92px;
}

.summary-heading,
.summary-totals div,
.summary-item,
.confirmation-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-heading {
  align-items: center;
  margin-bottom: 14px;
}

.summary-heading a {
  color: var(--ink);
  font-weight: 800;
}

.summary-items {
  display: grid;
  gap: 10px;
}

.summary-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.summary-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: var(--field);
  border-radius: 6px;
  flex: 0 0 auto;
}

.summary-item > div {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 5px;
}

.summary-item span,
.summary-totals span,
.confirmation-grid span,
.muted-copy {
  color: var(--muted);
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.quantity-row button {
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  border-radius: 5px;
  min-height: 30px;
  padding: 0 9px;
  cursor: pointer;
  font-weight: 800;
}

.summary-totals {
  display: grid;
  gap: 10px;
  border-top: 2px solid var(--ink);
  margin-top: 16px;
  padding-top: 16px;
}

.summary-totals div:last-child strong {
  font-size: 1.45rem;
}

.confirmation-page {
  min-height: 58vh;
  display: grid;
  align-items: center;
}

.confirmation-panel {
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
}

.confirmation-message {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

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

.confirmation-grid div {
  background: #fcfaf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.confirmation-grid span {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.confirmation-items {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.confirmation-item {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.confirmation-item span {
  font-weight: 900;
  color: var(--honey-dark);
}

.confirmation-item em {
  color: var(--muted);
  font-style: normal;
}

.confirmation-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.policy-page {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px);
}

.policy-page h1 {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.95;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.policy-page h2 {
  font-size: 1.15rem;
  margin-top: 26px;
}

.policy-page p,
.policy-page li {
  color: var(--muted);
  line-height: 1.6;
}

.policy-page ul {
  padding-left: 1.25rem;
}

@media (max-width: 780px) {
  .site-header,
  .catalog-heading,
  .header-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    justify-content: center;
  }

  .brand-logo {
    width: 92px;
  }

  .quote-button,
  .cart-button {
    width: 100%;
  }

  .brand-hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 0;
  }

  .hero-logo {
    width: min(100%, 390px);
  }

  .comb {
    width: min(310px, 70vw);
  }

  .comb-a {
    right: -80px;
    top: 24px;
  }

  .comb-b {
    left: -90px;
    bottom: 10px;
  }

  .bee-silhouette {
    right: 32px;
    top: 52px;
    transform: scale(0.74) rotate(-12deg);
  }

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

  .dialog-product {
    grid-template-columns: 1fr;
    padding: 18px;
  }

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

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

  .checkout-panel,
  .order-summary {
    grid-column: auto;
    grid-row: auto;
  }

  .order-summary {
    position: static;
  }

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

  .summary-item,
  .confirmation-item {
    align-items: start;
  }
}
