:root {
  --cream: #f7f1e7;
  --paper: #fffaf1;
  --white: #fffdf8;
  --butter: #e8c878;
  --cocoa: #3a2922;
  --ink: #15110d;
  --muted: #75685f;
  --sage: #708863;
  --fig: #7b3144;
  --border: rgba(58, 41, 34, 0.16);
  --shadow: 0 24px 70px rgba(58, 41, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Quicksand, Cairo, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(247, 241, 231, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cocoa);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 50%;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cart-pill {
  background: var(--cocoa);
  color: #fff;
  border-radius: 999px;
}

.home-hero,
.page-hero {
  width: min(1240px, calc(100% - 36px));
  margin: 24px auto 0;
}

.home-hero {
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 0;
  overflow: hidden;
  background: var(--cocoa);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.home-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 70px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: var(--butter);
}

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

h1 {
  margin-bottom: 18px;
  color: inherit;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--cocoa);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--cocoa);
  font-size: 1.1rem;
  line-height: 1.15;
}

p {
  color: var(--muted);
}

.home-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.fulfillment-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.fulfillment-card button {
  border: 0;
  padding: 12px;
  color: #fff;
  background: transparent;
  border-radius: 7px;
  cursor: pointer;
}

.fulfillment-card button.active {
  background: var(--paper);
  color: var(--cocoa);
  font-weight: 700;
}

.fulfillment-card span {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.hero-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.product-actions button,
.wide-action,
.ghost-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 0;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.product-actions button,
.wide-action {
  background: var(--cocoa);
  color: #fff;
}

.home-hero .button.primary {
  background: var(--butter);
  color: var(--ink);
}

.button.secondary,
.ghost-action {
  background: rgba(58, 41, 34, 0.08);
  color: var(--cocoa);
}

.home-hero .button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.moment-strip {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 18px auto 0;
}

.moment-strip a,
.chip,
.reference-note,
.empty-state,
.cart-summary,
.cart-item,
.notice {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.moment-strip a {
  padding: 18px;
  color: var(--cocoa);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.section,
.page-hero {
  padding: clamp(54px, 8vw, 96px) 0;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
}

.page-hero p {
  max-width: 660px;
  font-size: 1.1rem;
}

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

.section-heading.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.text-link {
  color: var(--cocoa);
  font-weight: 700;
}

.toolbar {
  margin-bottom: 18px;
}

.toolbar input,
.toolbar select {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  padding: 0 14px;
}

.toolbar input {
  flex: 1 1 280px;
}

.category-rail {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.chip {
  color: var(--cocoa);
  padding: 10px 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.chip.active {
  background: var(--cocoa);
  color: #fff;
}

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

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

.product-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.product-image img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
}

.product-body {
  padding: 16px;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

.product-card p {
  min-height: 4.6em;
  margin-bottom: 14px;
  font-size: 0.94rem;
}

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

.gathering-band,
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: center;
}

.gathering-band {
  padding: clamp(32px, 6vw, 62px);
  background: var(--cocoa);
  border-radius: 10px;
}

.gathering-band h2,
.gathering-band p {
  color: #fff;
}

.mini-card-stack {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--paper);
  border-radius: 8px;
  text-decoration: none;
}

.mini-card img {
  width: 84px;
  height: 70px;
  object-fit: cover;
  border-radius: 7px;
}

.product-detail {
  width: min(1180px, calc(100% - 36px));
  margin: 32px auto 0;
  align-items: stretch;
}

.detail-image,
.detail-info {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.detail-image img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.detail-info {
  padding: clamp(24px, 5vw, 56px);
}

.detail-info h1 {
  color: var(--cocoa);
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.detail-price {
  display: block;
  margin: 18px 0;
  color: var(--cocoa);
  font-size: 1.6rem;
}

.notice {
  padding: 12px;
  color: var(--fig);
}

.field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--cocoa);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 12px;
  background: var(--white);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.wide-action {
  width: 100%;
  margin-top: 10px;
}

.cart-layout {
  width: min(1040px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin: 28px auto 80px;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.cart-item img {
  width: 92px;
  height: 82px;
  object-fit: cover;
  border-radius: 7px;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-controls button {
  min-height: 36px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 7px;
  cursor: pointer;
}

.cart-summary,
.empty-state,
.reference-note {
  padding: 22px;
}

.cart-summary {
  position: sticky;
  top: 88px;
  align-self: start;
}

.total-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  color: var(--cocoa);
  font-size: 1.3rem;
  font-weight: 700;
}

.sticky-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  padding: 12px 16px;
  background: var(--cocoa);
  color: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 700;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 52px);
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.toast {
  position: fixed;
  left: 18px;
  bottom: 18px;
  padding: 12px 16px;
  background: var(--fig);
  color: #fff;
  border-radius: 7px;
}

@media (max-width: 980px) {
  .home-hero,
  .page-hero,
  .gathering-band,
  .product-detail,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .home-hero__image {
    min-height: 360px;
  }

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

  .cart-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
  }

  .home-hero,
  .page-hero,
  .section {
    width: min(100% - 28px, 1180px);
  }

  .home-hero__content {
    padding: 26px;
  }

  .moment-strip,
  .product-grid,
  .product-grid.compact {
    grid-template-columns: 1fr;
  }

  .moment-strip {
    display: flex;
    overflow-x: auto;
  }

  .moment-strip a {
    min-width: 138px;
  }

  .section-heading.split,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .cart-controls {
    grid-column: 1 / -1;
  }

  .detail-image img {
    min-height: 320px;
  }
}
