:root {
  --forest: #174b36;
  --forest-dark: #0e2d22;
  --leaf: #2f7d55;
  --coffee: #6f4528;
  --caramel: #b7793f;
  --cream: #f7f1e7;
  --sand: #ead8bd;
  --white: #ffffff;
  --ink: #1f2722;
  --muted: #68716b;
  --line: #e7ded0;
  --shadow: 0 18px 45px rgba(35, 28, 17, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body.cart-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header,
.section,
.quick-order,
.site-footer,
.app-section {
  padding-left: max(18px, calc((100vw - 1180px) / 2));
  padding-right: max(18px, calc((100vw - 1180px) / 2));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid rgba(231, 222, 208, .86);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest-dark);
  font-weight: 900;
  letter-spacing: .04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--cream);
  background: var(--forest);
  font-size: 13px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #34423a;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--leaf);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions,
.hero-actions,
.app-buttons,
.store-actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-btn,
.cart-trigger,
.primary-btn,
.secondary-btn,
.search-box button,
.add-cart,
.checkout-btn,
.store-actions a,
.store-actions button,
.app-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 800;
}

.ghost-btn {
  color: var(--forest);
  border-color: var(--line);
  background: var(--white);
}

.cart-trigger {
  position: relative;
  color: var(--white);
  background: var(--forest);
}

.cart-trigger strong {
  position: absolute;
  top: -8px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--forest);
  background: var(--sand);
  font-size: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--forest);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(740px, calc(100vh - 38px));
  overflow: hidden;
  background: #143326;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 37, 27, .88), rgba(12, 37, 27, .45) 48%, rgba(12, 37, 27, .08));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 118px max(18px, calc((100vw - 1180px) / 2)) 128px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--sand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero h1 {
  margin: 18px 0 16px;
  max-width: 660px;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: .96;
  letter-spacing: 0;
}

.hero p {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.primary-btn {
  color: var(--forest-dark);
  background: var(--sand);
}

.secondary-btn {
  color: var(--white);
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .08);
}

.quick-order {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.quick-order article {
  min-height: 116px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.quick-order strong,
.quick-order span {
  display: block;
}

.quick-order strong {
  color: var(--forest-dark);
  font-size: 18px;
}

.quick-order span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding-top: 78px;
  padding-bottom: 78px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.app-section h2,
.about-copy h2 {
  margin: 12px 0 10px;
  color: var(--forest-dark);
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.app-section p,
.about-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.menu-heading,
.outlet-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(180px, 320px) auto;
  min-width: min(100%, 460px);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.search-box input,
.store-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 14px;
  color: var(--ink);
}

.search-box button {
  color: var(--white);
  background: var(--forest);
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 16px;
  scrollbar-width: thin;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--forest);
  background: var(--white);
  font-weight: 800;
}

.category-tabs button.active {
  color: var(--white);
  border-color: var(--forest);
  background: var(--forest);
}

.menu-categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 4px 0 24px;
  padding-bottom: 6px;
  color: var(--coffee);
  font-size: 13px;
  font-weight: 800;
}

.menu-categories span {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(234, 216, 189, .54);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(35, 28, 17, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 125, 85, .4);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f4eadc;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.visual-left img { object-position: 18% 30%; }
.visual-center img { object-position: 50% 46%; }
.visual-right img { object-position: 82% 32%; }
.visual-bottom-left img { object-position: 18% 88%; }
.visual-bottom-center img { object-position: 52% 78%; }
.visual-bottom-right img { object-position: 82% 82%; }

.badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--forest-dark);
  background: rgba(255, 255, 255, .9);
  font-size: 11px;
  font-weight: 900;
}

.badge.best {
  color: var(--white);
  background: var(--forest);
}

.favorite {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--forest);
  background: rgba(255, 255, 255, .94);
  font-size: 0;
}

.favorite::before {
  content: "\2661";
  font-size: 20px;
  line-height: 1;
}

.favorite.active::before {
  content: "\2665";
  color: #b85135;
}

.product-info {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-info h3 {
  min-height: 46px;
  margin: 0;
  color: var(--forest-dark);
  font-size: 17px;
  line-height: 1.35;
}

.product-info p {
  min-height: 66px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-line strong {
  color: var(--coffee);
  font-size: 18px;
}

.temp-badge {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.add-cart {
  width: 100%;
  color: var(--white);
  background: var(--forest);
}

.empty-state {
  display: none;
  margin: 22px 0 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  background: var(--white);
}

.promo-section {
  background: var(--white);
}

.promo-grid,
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.promo-grid article,
.store-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  padding: 24px;
}

.promo-grid span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--caramel);
  font-size: 12px;
  font-weight: 900;
}

.promo-grid h3,
.store-card h3 {
  margin: 16px 0 8px;
  color: var(--forest-dark);
  font-size: 22px;
}

.promo-grid p,
.store-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.store-search {
  min-width: min(100%, 340px);
  height: 48px;
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.store-card {
  display: grid;
  gap: 12px;
  background: var(--white);
}

.store-card h3 {
  margin-top: 0;
}

.store-actions a,
.store-actions button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--forest);
  border-color: var(--line);
  background: var(--white);
  font-size: 13px;
}

.store-actions button {
  color: var(--white);
  border-color: var(--forest);
  background: var(--forest);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: 38px;
  align-items: center;
  background: var(--white);
}

.about-card {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
  color: var(--white);
  background: var(--forest-dark);
}

.app-section h2,
.app-section p {
  color: var(--white);
}

.app-section p {
  color: rgba(255, 255, 255, .82);
}

.app-buttons {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-buttons a {
  color: var(--forest-dark);
  background: var(--sand);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  justify-items: end;
  background: rgba(14, 45, 34, .38);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

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

.cart-panel {
  width: min(100%, 420px);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  transform: translateX(24px);
  transition: transform .2s ease;
}

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

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.cart-head h2 {
  margin: 10px 0 0;
}

.cart-head button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
}

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

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.cart-item span {
  color: var(--muted);
  font-size: 13px;
}

.cart-item button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--coffee);
}

.cart-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.checkout-btn {
  width: 100%;
  color: var(--white);
  background: var(--forest);
}

.site-footer {
  padding-top: 54px;
  padding-bottom: 26px;
  color: rgba(255, 255, 255, .78);
  background: #111c17;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand .brand-mark {
  color: var(--forest-dark);
  background: var(--sand);
}

.site-footer h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, .72);
  line-height: 1.7;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  padding: 13px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--forest-dark);
  box-shadow: var(--shadow);
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    grid-column: 1 / -1;
  }

  .main-nav {
    display: none;
    justify-content: start;
    flex-wrap: wrap;
  }

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

  .header-actions {
    justify-content: space-between;
  }

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

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

  .about-section,
  .app-section {
    grid-template-columns: 1fr;
  }

  .app-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(12, 37, 27, .88), rgba(12, 37, 27, .42));
  }

  .hero-content {
    padding-top: 96px;
    padding-bottom: 120px;
  }

  .quick-order,
  .product-grid,
  .promo-grid,
  .store-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .menu-heading,
  .outlet-heading,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .search-box input {
    min-height: 42px;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 68px;
    gap: 12px;
  }

  .brand {
    font-size: 14px;
  }

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

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }
}
