:root {
  --ink: #1e3d30;
  --muted: #6b746c;
  --brand: #1e3d30;
  --brand-dark: #10271e;
  --leaf: #1e3d30;
  --cream: #f5ede1;
  --gold: #c9a76a;
  --paper: #fffaf2;
  --line: #d9cdbb;
}

body {
  color: var(--ink);
  background: var(--cream);
  font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.page-band {
  width: 100%;
  padding: 3rem 1rem;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border-radius: .5rem;
  padding: .65rem 1rem;
  font-weight: 700;
  line-height: 1;
}

.btn-primary {
  background: var(--brand);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: .65rem .75rem;
  background: var(--paper);
  font-size: 1rem;
}

.label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.header-icon-button {
  position: relative;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--paper);
  color: var(--brand);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.header-icon-button:hover {
  background: #efe2cf;
  color: var(--brand-dark);
}

.header-icon-button:active {
  transform: scale(.96);
}

.header-icon-button--cart {
  background: var(--brand);
  color: var(--cream);
}

.header-icon-button--cart:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.cart-count-badge {
  position: absolute;
  top: -.45rem;
  right: -.45rem;
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
  border-radius: 9999px;
  background: var(--gold);
  color: var(--brand-dark);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
}

.cart-quantity-control {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #ffffff;
}

.cart-quantity-button {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.cart-quantity-button:hover {
  background: #efe2cf;
  color: var(--brand-dark);
}

.cart-quantity-button:active {
  transform: scale(.94);
}

.cart-quantity-input {
  width: 3.25rem;
  height: 2.5rem;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.cart-quantity-input:focus {
  box-shadow: inset 0 0 0 2px rgba(201, 167, 106, .32);
  outline: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  background: white;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .9rem;
}

.admin-table th,
.admin-table td {
  padding: .75rem;
  border-bottom: 1px solid #edf0ee;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f8faf9;
  font-size: .75rem;
  text-transform: uppercase;
  color: var(--muted);
}

.flash {
  border-radius: .5rem;
  padding: .75rem 1rem;
  margin: 1rem 0;
}

.flash-notice {
  background: #dcfce7;
  color: #166534;
}

.flash-alert {
  background: #fee2e2;
  color: #991b1b;
}

.material-symbols-outlined.filled-icon {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--brand);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: .02em;
}

.brand-logo__mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 9999px;
  background: var(--brand);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: 1;
  box-shadow: inset 0 0 0 3px rgba(245, 237, 225, .08);
}

.brand-logo__text {
  font-size: 1.05rem;
}

.brand-logo--compact .brand-logo__mark {
  width: 2rem;
  height: 2rem;
  font-size: .9rem;
}

.brand-logo--compact .brand-logo__text {
  font-size: .95rem;
}

.brand-monogram {
  display: inline-flex;
  width: 4.5rem;
  height: 4.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 167, 106, .75);
  border-radius: 9999px;
  background: var(--brand);
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  letter-spacing: -.1em;
}

.site-footer {
  border-top: 1px solid rgba(201, 167, 106, .35);
  background: var(--brand-dark);
  color: rgba(245, 237, 225, .82);
  padding: 1.5rem 0;
}

.site-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__brand {
  display: grid;
  gap: .65rem;
  max-width: 24rem;
}

.site-footer__brand .brand-logo {
  color: var(--cream);
}

.site-footer__brand p,
.site-footer__info {
  font-size: .9rem;
  line-height: 1.6;
}

.site-footer__info {
  display: grid;
  gap: .45rem;
  max-width: 34rem;
  text-align: right;
}

.site-footer strong {
  color: var(--cream);
  font-weight: 800;
}

.product-image-placeholder {
  background: linear-gradient(135deg, var(--cream), #efe2cf);
}

/* Brand palette bridge for existing Tailwind utility classes. */
body.bg-\[\#fdf8f6\],
.bg-\[\#fdf8f6\],
.bg-\[\#fffdf8\] {
  background-color: var(--cream) !important;
}

.bg-white,
.bg-white\/80,
.bg-white\/85,
.bg-white\/90 {
  background-color: var(--paper) !important;
}

.bg-\[\#f7f3f0\] {
  background-color: #efe2cf !important;
}

.text-slate-950,
.text-slate-900,
.text-slate-800 {
  color: var(--brand-dark) !important;
}

.text-slate-700,
.text-slate-600 {
  color: #4f5e55 !important;
}

.text-rose-600,
.text-rose-700,
.text-rose-800,
.text-rose-900,
.hover\:text-rose-700:hover,
.hover\:text-rose-800:hover {
  color: var(--brand) !important;
}

.text-emerald-700,
.text-emerald-800,
.text-emerald-900,
.hover\:text-emerald-800:hover {
  color: var(--brand) !important;
}

.bg-rose-50,
.hover\:bg-rose-50:hover,
.bg-emerald-50,
.hover\:bg-emerald-50:hover {
  background-color: #f1e7d8 !important;
}

.bg-rose-100,
.hover\:bg-rose-100:hover,
.bg-emerald-100,
.hover\:bg-emerald-100:hover {
  background-color: #e8dcc8 !important;
}

.bg-rose-600,
.bg-rose-700,
.bg-emerald-700,
.bg-emerald-800,
.hover\:bg-rose-700:hover,
.hover\:bg-emerald-800:hover {
  background-color: var(--brand) !important;
  color: var(--cream) !important;
}

.border-rose-50,
.border-rose-100,
.border-rose-200,
.border-emerald-100,
.border-emerald-200 {
  border-color: var(--line) !important;
}

.ring-rose-200,
.focus\:ring-rose-200:focus {
  --tw-ring-color: rgba(201, 167, 106, .35) !important;
}

.text-amber-700,
.text-amber-800,
.text-amber-900 {
  color: #8a6b2f !important;
}

.bg-amber-50,
.bg-amber-100 {
  background-color: #f4ead7 !important;
}

.border-amber-100 {
  border-color: #ddc799 !important;
}

.home-shell {
  background: var(--cream);
}

.admin-login-shell {
  background: radial-gradient(circle at top, #fffaf2 0, var(--cream) 42%, #eadcc7 100%);
}

.admin-login-field {
  min-height: 3rem;
  background: #ffffff;
}

.admin-login-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 167, 106, .22);
  outline: none;
}

.checkout-shell {
  background: var(--cream);
}

.checkout-card,
.checkout-summary {
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: rgba(255, 250, 242, .92);
  padding: 1.5rem;
  box-shadow: 0 18px 40px -34px rgba(30, 61, 48, .44);
}

.checkout-field {
  min-height: 3rem;
  background: var(--paper);
}

.checkout-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 167, 106, .22);
  outline: none;
}

.checkout-choice,
.checkout-payment {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 2px solid var(--line);
  border-radius: .75rem;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.checkout-choice {
  min-height: 6rem;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.checkout-payment {
  min-height: 4rem;
  padding: 1rem;
}

.checkout-payment-card {
  position: relative;
  min-height: 4.5rem;
  align-items: center;
  border-width: 1px;
  background: var(--paper);
}

.checkout-payment-card__radio {
  width: .75rem;
  height: .75rem;
  border: 1px solid #94a3b8;
  border-radius: 9999px;
  background: transparent;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.checkout-payment-card__icon {
  color: var(--leaf);
  font-size: 1.25rem;
}

.checkout-payment-card small {
  position: absolute;
  top: .65rem;
  right: .75rem;
  color: var(--leaf);
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-choice:hover,
.checkout-payment:hover {
  border-color: var(--gold);
  background: #f4ead7;
}

.checkout-choice:active,
.checkout-payment:active {
  transform: scale(.98);
}

.checkout-choice input,
.checkout-payment input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-choice:has(input:checked),
.checkout-payment:has(input:checked) {
  border-color: var(--gold);
  background: #f4ead7;
  color: var(--brand-dark);
}

.checkout-payment-card:has(input:checked) .checkout-payment-card__radio {
  border-color: var(--brand);
  background: var(--brand);
}

.checkout-submit {
  min-height: 3.5rem;
  width: 100%;
  border-radius: 9999px;
  font-size: 1rem;
}

.home-title,
.home-section-title {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.home-shell .btn-primary,
.home-shell .btn-secondary {
  min-height: 3rem;
  padding: .9rem 1.35rem;
}

.home-hero {
  background: linear-gradient(135deg, rgba(245, 237, 225, .96), rgba(255, 250, 242, .72));
}

.home-hero-media {
  aspect-ratio: 1 / 1;
}

.home-product-card:hover {
  box-shadow: 0 14px 28px -18px rgba(65, 0, 8, .28);
  transform: translateY(-2px);
}

.home-product-image {
  aspect-ratio: 4 / 5;
}

.about-shell {
  background: var(--cream);
}

.about-heading {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.about-hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.about-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 9999px;
  background: rgba(201, 167, 106, .2);
  color: var(--brand-dark);
  padding: .35rem 1rem;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.about-minimal {
  display: grid;
  align-items: center;
  gap: 2rem;
}

.about-minimal__intro {
  display: grid;
  gap: 1.25rem;
  max-width: 42rem;
}

.about-minimal__panel {
  display: grid;
  min-height: 18rem;
  align-content: center;
  justify-items: center;
  gap: 1.25rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--paper);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 18px 38px -30px rgba(16, 39, 30, .34);
}

.about-minimal__panel p {
  max-width: 18rem;
  color: var(--brand-dark);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.35;
}

.about-minimal__mark {
  width: 7rem;
  height: 7rem;
  font-size: 2.65rem;
}

.about-values {
  background: var(--paper);
}

.about-value-card {
  display: grid;
  gap: .7rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--cream);
  padding: 1.25rem;
}

.about-value-card .material-symbols-outlined {
  color: var(--gold);
  font-size: 1.75rem;
}

.about-value-card h2 {
  color: var(--brand-dark);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
}

.about-value-card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
}

.about-value-card:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 30px -24px rgba(30, 61, 48, .34);
  transform: translateY(-3px);
}

.about-list-icon {
  color: var(--leaf);
  flex: 0 0 auto;
  margin-top: .15rem;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.product-shell {
  background: var(--cream);
}

.product-media {
  aspect-ratio: 1 / 1;
}

.product-thumb {
  width: 6rem;
  height: 6rem;
}

.product-related-card:hover {
  box-shadow: 0 14px 28px -18px rgba(65, 0, 8, .24);
  transform: translateY(-2px);
}

.product-related-image {
  aspect-ratio: 4 / 5;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 39, 30, .42);
  opacity: 0;
  transition: opacity .2s ease;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(100vw, 420px);
  height: 100dvh;
  max-width: 100vw;
  flex-direction: column;
  background: var(--cream);
  box-shadow: -24px 0 48px -32px rgba(16, 39, 30, .55);
  transform: translateX(100%);
  transition: transform .24s ease;
}

.cart-drawer__content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.cart-drawer--open {
  pointer-events: auto;
}

.cart-drawer--open .cart-drawer__backdrop {
  opacity: 1;
}

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

body.cart-drawer-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .about-minimal {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr);
  }

  .product-media {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .page-band {
    padding: 2rem 1rem;
  }

  .flash {
    margin: .75rem 0;
  }

  .site-footer__inner {
    display: grid;
    gap: 1rem;
  }

  .site-footer__info {
    max-width: none;
    text-align: left;
  }

  .about-hero {
    padding-top: 2.5rem;
  }

  .about-minimal__panel {
    min-height: 14rem;
    padding: 1.5rem;
  }

  .about-minimal__mark {
    width: 5.5rem;
    height: 5.5rem;
    font-size: 2.1rem;
  }

  .checkout-card,
  .checkout-summary {
    padding: 1rem;
    border-radius: .5rem;
  }

  .checkout-choice {
    min-height: 5rem;
    gap: .35rem;
  }

  .checkout-payment {
    min-height: 3.5rem;
    padding: .85rem;
  }

  .checkout-submit {
    border-radius: .75rem;
  }

  .product-thumb {
    width: 4.75rem;
    height: 4.75rem;
  }

  .cart-drawer__content {
    padding: 1rem;
  }

  .cart-quantity-control {
    width: 100%;
    justify-content: space-between;
  }

  .cart-quantity-button {
    flex: 1 1 2.75rem;
  }

  .cart-quantity-input {
    flex: 0 0 3.5rem;
  }

  .admin-table {
    min-width: 680px;
  }
}
