:root {
  --cream: #f4eee4; --cream-deep: #ebe3d4; --gold: #b8860b; --brown: #5c4033;
  --border: #d9ccb6; --card-line: #e7dcc8; --white: #fff;
}
* { box-sizing: border-box; }
html { background: var(--cream); overflow-x: hidden; }
body {
  margin: 0; font-family: Inter, system-ui, sans-serif; color: #2c241c;
  background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-size: 1rem; }
.heading-serif, h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 80rem; margin: 0 auto; padding: 0.5rem 0.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  min-height: 3.5rem; position: relative;
}
@media (min-width: 640px) { .header-inner { padding: 0.5rem 1.5rem; min-height: 4.5rem; } }
.brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 2.25rem; width: auto; flex-shrink: 0; }
@media (min-width: 640px) { .brand-logo { height: 3rem; } }
@media (min-width: 960px) { .brand-logo { height: 3.75rem; } }
.brand-name {
  font-size: clamp(1.05rem, 3.6vw, 1.75rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gold { color: var(--gold); } .brown { color: var(--brown); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 0.75rem; background: var(--white);
  cursor: pointer; padding: 0;
}
.nav-toggle-bar {
  display: block; width: 1.1rem; height: 2px; background: var(--brown); border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem;
  box-shadow: 0 12px 28px rgba(44, 36, 28, 0.08);
  z-index: 60;
}
.site-header.nav-open .site-nav { display: flex; }
.nav-btn {
  border: 1px solid var(--border); border-radius: 1rem; padding: 0.75rem 1rem;
  font-size: 0.9375rem; font-weight: 500; color: var(--brown); background: var(--white);
  text-decoration: none; min-height: 2.75rem; display: flex; align-items: center;
}
.nav-btn:hover { background: var(--cream); text-decoration: none; }
.nav-text-sm { display: none; }
.nav-text-lg { display: inline; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; flex-direction: row; align-items: center; position: static;
    border: 0; box-shadow: none; padding: 0; gap: 0.75rem; background: transparent;
  }
  .nav-btn { padding: 0.5rem 1.15rem; font-size: 0.875rem; min-height: 2.5rem; }
}

.hero {
  min-height: min(70vh, 40rem);
  display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
  background: linear-gradient(rgba(45,45,45,0.4), rgba(45,45,45,0.28)), url("images/hero-kitchen.jpg") center/cover no-repeat;
  padding: 3rem 1rem;
}
@media (min-width: 640px) { .hero { min-height: min(80vh, 48rem); padding: 4rem 1.5rem; } }
.hero > div { width: 100%; max-width: 56rem; }
.hero h1 { font-size: clamp(2.15rem, 8vw, 4.5rem); margin: 0 0 1rem; }
.season {
  display: inline-block; background: rgba(255,255,255,0.9); color: var(--brown);
  border-radius: 9999px; padding: 0.25rem 1rem; font-size: 0.8125rem; margin-bottom: 1.5rem;
}
.hero p { font-size: clamp(1rem, 2.6vw, 1.25rem); font-weight: 300; margin: 0 auto 2rem; max-width: 36rem; padding: 0 0.5rem; }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; padding: 0; max-width: 22rem; margin: 0 auto; }
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; justify-content: center; align-items: center; gap: 1rem; max-width: none; }
}
.hero-btn {
  background: #fff; color: var(--brown); border-radius: 1.5rem; padding: 0.85rem 1.5rem;
  font-weight: 600; text-decoration: none; text-align: center; min-height: 2.75rem;
}
@media (min-width: 640px) { .hero-btn { padding: 1rem 2.25rem; font-size: 1.125rem; } }
.hero-btn:hover { background: var(--cream); text-decoration: none; }
.story { background: var(--brown); color: #fff; text-align: center; padding: 2.5rem 1.25rem; }
@media (min-width: 640px) { .story { padding: 4rem 1.5rem; } }
.story h2 { font-size: clamp(1.35rem, 4vw, 2rem); margin: 0; }
.story p { max-width: 48rem; margin: 1rem auto 0; opacity: 0.9; }
.story a { color: var(--gold); }
.wrap { max-width: 80rem; margin: 0 auto; padding: 2rem 1rem 3.5rem; }
@media (min-width: 640px) { .wrap { padding: 3.5rem 1.5rem 4rem; } }
.page-kicker { text-align: center; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0; }
.page-title { text-align: center; font-size: clamp(1.6rem, 5vw, 3rem); margin: 0.75rem 0 0; padding: 0 0.25rem; }
.page-lead { text-align: center; max-width: 52rem; margin: 1rem auto 0; color: rgba(92,64,51,0.8); padding: 0 0.25rem; }
.filters { display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0; }
@media (min-width: 720px) { .filters { flex-direction: row; align-items: center; justify-content: space-between; } }
.search {
  width: 100%; min-height: 2.75rem; border: 1px solid var(--border); border-radius: 1rem;
  padding: 0.75rem 1rem; font-size: 1rem; background: #fff;
}
@media (min-width: 720px) { .search { max-width: 20rem; font-size: 0.875rem; } }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  min-height: 2.5rem; border-radius: 1rem; border: 1px solid var(--border);
  padding: 0.375rem 0.9rem; font-size: 0.8125rem; background: #fff; color: var(--brown); cursor: pointer;
}
.filter-btn.active { background: var(--brown); color: #fff; border-color: var(--brown); }
.grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; } }
@media (min-width: 1100px) { .grid { grid-template-columns: 1fr 1fr 1fr; gap: 2rem; } }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.card { background: #fff; border: 1px solid var(--card-line); border-radius: 1.5rem; overflow: hidden; min-width: 0; }
.card .cover {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream-deep);
}
.card-body { padding: 1.15rem; }
@media (min-width: 640px) { .card-body { padding: 1.5rem; } }
.card h2, .card h3 { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); overflow-wrap: anywhere; }
.meta { margin: 0.25rem 0 0; font-size: 0.875rem; color: rgba(92,64,51,0.7); }
.family { margin: 0.15rem 0 0; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(92,64,51,0.5); }
.body { margin: 0.75rem 0 0; font-size: 0.875rem; color: rgba(92,64,51,0.8); }
.flavor-pill {
  display: inline-flex; align-items: center; border-radius: 9999px; border: 1px solid var(--border);
  background: var(--cream); padding: 0.15rem 0.75rem; font-size: 0.75rem; color: var(--brown);
}
.badge {
  position: absolute; top: 0.85rem; right: 0.85rem; background: var(--gold); color: #fff;
  border-radius: 9999px; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600;
}
.rel { position: relative; }
.shopify-buy-host { display: block; width: 100%; margin-top: 1rem; clear: both; overflow: hidden; }
.shopify-buy-host iframe { float: none !important; display: block !important; max-width: 100% !important; }
.note { margin-top: 1rem; text-align: center; font-size: 0.75rem; color: rgba(92,64,51,0.5); }
.sold { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; font-weight: 500; color: rgba(92,64,51,0.5); }
.site-footer {
  border-top: 1px solid var(--border); background: #fff; text-align: center;
  padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom)); font-size: 0.875rem; color: rgba(92,64,51,0.7);
}
.section-label { text-align: center; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 3rem 0 1.5rem; }
@media (min-width: 640px) { .section-label { margin: 4rem 0 2rem; } }
.coming { opacity: 0.9; position: relative; }
.faq-img { width: 100%; max-width: 42rem; margin: 2rem auto; border-radius: 1.5rem; object-fit: cover; }
.faq-body { max-width: 42rem; margin: 0 auto; color: rgba(92,64,51,0.85); }
.faq-body h2 { font-size: clamp(1.1rem, 3vw, 1.25rem); margin: 2rem 0 0.5rem; }
.hidden { display: none !important; }

.qty-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.qty-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brown);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.qty-btn:hover:not(:disabled) {
  background: var(--cream);
  border-color: var(--brown);
}
.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.qty-value {
  width: 3.25rem;
  height: 2.75rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  background: #fff;
  -moz-appearance: textfield;
}
.qty-value::-webkit-outer-spin-button,
.qty-value::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.inventory-msg {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #b91c1c;
  font-weight: 500;
}
.inventory-msg.visible {
  display: block;
}
.qty-label {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(92,64,51,0.55);
  margin-right: 0.15rem;
}
.qty-control.is-checking {
  opacity: 0.65;
  pointer-events: none;
}
.gic-add-btn {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 16px;
  background: #5c4033;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.gic-add-btn:hover:not(:disabled) {
  background: #3f2c23;
}
.gic-add-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Shopify cart toggle only after items are in the cart */
body:not(.gic-has-cart) .shopify-buy-frame--toggle,
body:not(.gic-has-cart) iframe.shopify-buy-frame--toggle {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 1.5rem;
  padding: 1.5rem 1.15rem;
  margin: 1.75rem auto 0;
  max-width: 36rem;
}
@media (min-width: 640px) {
  .contact-card { padding: 2.5rem 2rem; }
}
.contact-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.contact-card p {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: rgba(92,64,51,0.85);
  line-height: 1.6;
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-email {
  display: inline-block;
  font-size: clamp(1rem, 3.4vw, 1.125rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
  margin: 0.25rem 0 1.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.contact-email:hover { text-decoration: underline; }
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.contact-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: rgba(92,64,51,0.85);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list strong {
  display: block;
  color: var(--brown);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Dynamic sold-out state (applied by cart.js after live inventory check on each page load) */
.card.is-sold-out {
  position: relative;
}
.card.is-sold-out .qty-control,
.card.is-sold-out .shopify-buy-host,
.card.is-sold-out .inventory-msg {
  display: none !important;
}
.card.is-sold-out .sold {
  display: block;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(92, 64, 51, 0.55);
  letter-spacing: 0.01em;
}

