﻿:root {
  --paper: #f7f2ea;
  --sand: #e8dccb;
  --ink: #0f0f0d;
  --charcoal: #1f1b16;
  --accent: #e2442a;
  --accent-soft: #f2a03c;
  --cream: #fff9f2;
  --olive: #5b5347;
  --shadow: 0 24px 45px rgba(15, 15, 13, 0.16);
  --radius: 22px;
  --font-display: "Bebas Neue", "Segoe UI", sans-serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: linear-gradient(180deg, #ffffff 0%, #f7f2ea 100%);
  color: var(--ink);
  line-height: 1.6;
}

.page {
  position: relative;
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 68, 42, 0.12) 0%, rgba(226, 68, 42, 0) 60%);
  filter: blur(10px);
}

.glow.one {
  top: -20vw;
  left: -10vw;
}

.glow.two {
  bottom: -25vw;
  right: -15vw;
  background: radial-gradient(circle, rgba(242, 160, 60, 0.12) 0%, rgba(242, 160, 60, 0) 60%);
}

.grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at center, rgba(255, 236, 210, 0.22) 0 6px, rgba(255, 236, 210, 0) 7px),
    radial-gradient(ellipse at center, rgba(255, 236, 210, 0.14) 0 5px, rgba(255, 236, 210, 0) 6px),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.18) 0 4px, rgba(0, 0, 0, 0) 5px);
  background-size: 120px 120px, 140px 140px, 160px 160px;
  background-position: 10px 20px, 60px 80px, 30px 100px;
  opacity: 0.16;
}

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

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

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(247, 242, 234, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 27, 22, 0.12);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 18px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  height: 48px;
  margin-right: 0;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 30px;
}

.logo img {
  height: 120px;
  width: auto;
  display: block;
}

.logo small {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--olive);
}

.main-nav {
  display: none;
  gap: 28px;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  flex-direction: column;
  background: rgba(247, 242, 234, 0.95);
  position: absolute;
  top: 80px;
  right: 18px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 27, 22, 0.16);
  box-shadow: 0 16px 28px rgba(15, 15, 13, 0.2);
  z-index: 10;
}

.main-nav.open {
  display: flex;
}

@media (min-width: 768px) {
  .header-actions {
    position: static;
    margin-left: auto;
  }

  .logo {
    margin-right: 0;
  }

  .header-inner {
    justify-content: flex-start;
  }

  .main-nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    gap: 28px;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-dropdown-menu {
    top: calc(100% + 14px);
    left: 0;
  }
}

@media (max-width: 767px) {
  .site-header {
    background: rgba(255, 255, 255, 0.94);
  }

  .header-inner {
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0 12px;
  }

  .logo {
    height: 40px;
  }

  .logo img {
    height: 88px;
  }

  .main-nav {
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    gap: 16px;
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    transform: none;
  }

  .main-nav a,
  .nav-dropdown-toggle {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 10px;
    padding: 12px 14px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    display: none;
  }

  .nav-dropdown[open] .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
  }

  .header-actions {
    position: static;
    margin-left: auto;
    width: auto;
    gap: 8px;
  }

  .menu-toggle,
  .cart-button {
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .header-actions .btn {
    display: none;
  }

  .container {
    width: min(100% - 28px, 1200px);
    margin: 0 auto;
  }

  .hero {
    padding: 92px 0 56px;
  }

  .hero-grid,
  .story-grid,
  .subscription-grid,
  .wholesale-grid {
    gap: 24px;
  }

  .hero-copy {
    gap: 18px;
  }

  .brand-mark {
    width: 96px;
    height: 96px;
  }

  .hero h1 {
    font-size: clamp(30px, 12vw, 44px);
    line-height: 0.98;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .product-body .btn,
  .coffee-card .btn,
  .location-card .btn,
  .subscription-box .btn,
  .wholesale-card .btn {
    width: 100%;
  }

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

  .panel-card,
  .coffee-card,
  .location-card,
  .wholesale-card {
    padding: 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    gap: 14px;
    margin-bottom: 28px;
  }

  .section-head h2 {
    font-size: clamp(26px, 9vw, 36px);
  }

  .product-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .product-filter::-webkit-scrollbar {
    display: none;
  }

  .product-grid,
  .grid.three,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 18px;
  }

  .product-body {
    padding: 18px 18px 20px;
  }

  .marquee .track {
    gap: 24px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .subscription-box,
  .wholesale-card {
    align-items: stretch;
  }

  .site-footer {
    padding: 48px 0 56px;
  }

  .cart-modal {
    align-items: flex-end;
  }

  .cart-modal-content {
    width: 100%;
    max-width: none;
    max-height: min(86vh, 760px);
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    padding: 20px 16px 28px;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cart-item > div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  #checkout-form {
    gap: 10px;
  }
}


.nav-dropdown {
  position: relative;
}

.product-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.product-filter button {
  border: 1px solid rgba(31, 27, 22, 0.2);
  background: rgba(255, 249, 242, 0.9);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
}

.product-filter button.active,
.product-filter button:hover {
  background: var(--accent);
  color: var(--cream);
  border-color: transparent;
}


.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown-toggle::-webkit-details-marker {
  display: none;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  gap: 10px;
  min-width: 170px;
  padding: 16px 18px;
  border: 1px solid rgba(31, 27, 22, 0.12);
  border-radius: 18px;
  background: rgba(255, 249, 242, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown[open] .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown[open] .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after {
  transform: rotate(225deg) translateY(-1px);
}

.nav-dropdown-menu a {
  color: var(--charcoal);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--accent);
}

.header-actions {
  position: absolute;
  right: 0;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-button {
  position: relative;
  border: 1px solid rgba(15, 15, 13, 0.3);
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-button .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.menu-toggle {
  border: 1px solid rgba(15, 15, 13, 0.3);
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.cart-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 50;
  overflow-y: auto;
  padding: 20px 0;
}

.cart-modal.open {
  display: flex;
}

.cart-modal-content {
  background: #fff;
  border-radius: var(--radius);
  max-width: 760px;
  width: min(95vw, 760px);
  max-height: min(90vh, 920px);
  overflow-y: auto;
  overflow-x: hidden;
  margin: auto;
  padding: 24px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.cart-modal-content h3 {
  margin-top: 0;
}

.site-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(31, 27, 22, 0.94);
  color: var(--cream);
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.site-toast[data-tone="success"] {
  background: rgba(29, 122, 67, 0.96);
}

.site-toast[data-tone="error"] {
  background: rgba(179, 49, 34, 0.96);
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid rgba(31, 27, 22, 0.1);
  padding: 12px 0;
}

.cart-item > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-main {
  display: grid;
  gap: 8px;
}

.cart-item-title {
  font-weight: 600;
}

.cart-item-grind {
  display: grid;
  gap: 6px;
}

.cart-item-grind label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
}

.cart-item-grind select {
  width: 100%;
  border: 1px solid rgba(31, 27, 22, 0.2);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  font: inherit;
}

.cart-item-grind select.is-invalid {
  border-color: #b33122;
  box-shadow: 0 0 0 3px rgba(179, 49, 34, 0.12);
}

.cart-item-controls {
  display: grid;
  justify-items: end;
  gap: 8px;
}

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

.cart-item-subtotal {
  font-weight: 600;
}

.cart-item button.item-decrease,
.cart-item button.item-increase,
.cart-item button.item-remove {
  border: 1px solid rgba(15, 15, 13, 0.2);
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.cart-item button.item-remove {
  background: rgba(226, 68, 42, 0.12);
  border-color: rgba(226, 68, 42, 0.3);
}

.cart-close {
  margin-top: 16px;
  border: 1px solid rgba(31, 27, 22, 0.2);
  background: var(--cream);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.cart-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

#checkout-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.checkout-grid {
  display: grid;
  gap: 14px;
}

.checkout-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(31, 27, 22, 0.12);
  border-radius: 18px;
  background: rgba(247, 242, 234, 0.55);
}

.checkout-section.summary {
  background: rgba(255, 249, 242, 0.95);
}

.checkout-section-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
}

#checkout-form label {
  font-size: 13px;
  color: var(--ink);
  display: block;
  position: relative;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--olive);
}

.city-autocomplete-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(31, 27, 22, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 28px rgba(15, 15, 13, 0.12);
}

.city-autocomplete-menu[hidden] {
  display: none;
}

.city-autocomplete-option {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 9px 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.city-autocomplete-option:hover,
.city-autocomplete-option:focus-visible {
  background: rgba(232, 220, 203, 0.55);
  outline: none;
}

.delivery-autocomplete-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(31, 27, 22, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 28px rgba(15, 15, 13, 0.12);
}

.delivery-autocomplete-menu[hidden] {
  display: none;
}

.delivery-autocomplete-option {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 9px 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.delivery-autocomplete-option:hover,
.delivery-autocomplete-option:focus-visible {
  background: rgba(232, 220, 203, 0.55);
  outline: none;
}

#checkout-form input,
#checkout-form textarea,
#checkout-form select {
  width: 100%;
  border: 1px solid rgba(31, 27, 22, 0.2);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  background: #fff;
}

#checkout-form input.is-invalid,
#checkout-form textarea.is-invalid,
#checkout-form select.is-invalid {
  border-color: #b33122;
  box-shadow: 0 0 0 3px rgba(179, 49, 34, 0.12);
}

#checkout-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

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

.checkout-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.checkout-summary-row strong {
  font-weight: 600;
}

.checkout-summary small {
  color: var(--olive);
}

.checkout-summary-items {
  display: grid;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(31, 27, 22, 0.1);
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.checkout-summary-item-copy {
  display: grid;
  gap: 2px;
}

.checkout-summary-item-title {
  font-weight: 600;
}

.checkout-summary-item-grind {
  font-size: 12px;
  color: var(--olive);
}

.checkout-summary-note {
  font-size: 13px;
  color: var(--olive);
}

.form-status {
  min-height: 24px;
  font-size: 13px;
  color: var(--olive);
}

.form-status[data-tone="success"] {
  color: #1d7a43;
}

.form-status[data-tone="error"] {
  color: #b33122;
}

@media (min-width: 768px) {
  .checkout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



.hero {
  padding: 120px 0 80px;
}


.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 22px;
  animation: fadeUp 0.8s ease forwards;
}

.brand-mark {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 249, 242, 0.75);
  border: 1px solid rgba(31, 27, 22, 0.12);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}


.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  font-weight: 600;
  color: var(--olive);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.lead {
  font-size: 18px;
  color: var(--olive);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}


.btn {
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--cream);
  box-shadow: 0 12px 25px rgba(226, 68, 42, 0.28);
}

.btn.ghost {
  border-color: rgba(15, 15, 13, 0.2);
}

.btn.light {
  background: var(--cream);
  color: var(--ink);
  border-color: rgba(15, 15, 13, 0.1);
}

.btn.outline {
  border-color: rgba(15, 15, 13, 0.2);
  background: transparent;
  color: var(--ink);
  margin-top: auto;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.hero-list span {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.1em;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.panel-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 249, 242, 0.7);
  border: 1px solid rgba(31, 27, 22, 0.12);
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.panel-card.accent {
  background: var(--accent);
  color: var(--cream);
}

.panel-card .label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  opacity: 0.7;
}


.marquee {
  border-top: 1px solid rgba(31, 27, 22, 0.12);
  border-bottom: 1px solid rgba(31, 27, 22, 0.12);
  background: var(--sand);
  overflow: hidden;
}

.track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 16s linear infinite;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 12px;
  padding: 14px 0;
}

.section {
  padding: 90px 0;
}

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: 0.06em;
}

.grid.three {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

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

.product-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
}


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

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-body {
  padding: 22px 24px 26px;
  display: grid;
  gap: 14px;
}

.product-body h3 a {
  text-decoration: none;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--olive);
}

.product-body .btn {
  margin-top: auto;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.product-price {
  font-weight: 700;
  margin-right: auto;
}


.product-buy {
  position: relative;
  overflow: hidden;
}

.product-buy::after {
  content: "🛒";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  font-size: 16px;
  transition: opacity 0.2s ease;
}

.product-buy:hover {
  color: transparent;
}

.product-buy:hover::after {
  opacity: 1;
}

.coffee-card,
.location-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  min-height: 280px;
}

.empty-state {
  min-height: auto;
  grid-column: 1 / -1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--olive);
}

.story {
  background: linear-gradient(120deg, #f3e6d6, #efe5d4);
}

.product-detail-grid,
.product-info-grid {
  display: grid;
  gap: 28px;
}

.product-detail-media {
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  padding: 20px 20px 20px 12px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.product-detail-media img {
  width: min(100%, 420px);
  display: block;
  object-fit: contain;
}

.product-detail-copy {
  gap: 18px;
}

.product-detail-meta {
  margin-top: 4px;
}

.product-detail-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.product-detail-price {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: 0.05em;
}

.story-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.stats span {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.1em;
}

.bars {
  background: transparent;
}

.subscription {
  background: var(--charcoal);
  color: var(--cream);
}

.subscription-grid {
  display: grid;
  gap: 30px;
  align-items: center;
}

.subscription-box {
  background: rgba(255, 249, 242, 0.08);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.subscription-box span {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.08em;
}

.wholesale {
  padding-bottom: 120px;
}

.wholesale-grid {
  display: grid;
  gap: 30px;
  align-items: center;
}

.wholesale-card {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 60px 0 80px;
  background: #e2d4c1;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-grid h3 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .product-detail-grid {
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    align-items: start;
  }

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

  .main-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .product-card-actions {
    align-items: stretch;
  }

  .product-price {
    width: 100%;
  }

  .product-detail-price-row {
    align-items: stretch;
  }

  .product-detail-price {
    width: 100%;
  }

  .section-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .story-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .subscription-grid,
  .wholesale-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .site-toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 20px, 1200px);
  }

  .logo img {
    height: 78px;
  }

  .menu-toggle,
  .cart-button {
    padding: 8px 10px;
    font-size: 10px;
  }

  .hero {
    padding-top: 84px;
  }

  .btn {
    padding: 11px 16px;
    letter-spacing: 0.14em;
  }

  .panel-card,
  .coffee-card,
  .location-card,
  .product-body,
  .wholesale-card,
  .subscription-box {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 140px 0 100px;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
