:root {
  --background: #ffffff;
  --surface: #ffffff;
  --cream: #fbf7ef;
  --sand: #ead49b;
  --sand-soft: #f3eadc;
  --text: #26312d;
  --muted: #65736d;
  --green: #123b34;
  --accent: #b7633f;
  --accent-dark: #8d472e;
  --accent-soft: #f2d6c4;
  --blue-soft: #d9eef2;
  --border: #e5dacb;
  --shadow: 0 14px 32px rgba(70, 50, 33, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.delivery-strip {
  display: grid;
  min-height: 30px;
  place-items: center;
  background: var(--blue-soft);
  color: var(--text);
  font-size: 0.9rem;
}

.delivery-strip strong {
  font-weight: 900;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid rgba(229, 218, 203, 0.86);
}

.navbar {
  display: grid;
  grid-template-columns: 145px minmax(170px, 240px) minmax(0, 1fr) 70px;
  gap: 26px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 88px;
  margin: 0 auto;
}

.logo,
.footer-logo {
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  width: 124px;
}

.logo img,
.footer-logo img {
  width: 100%;
  height: auto;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 13px;
  box-shadow: 0 1px 5px rgba(70, 50, 33, 0.08);
}

.search-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 0.84rem;
}

.nav-links,
.nav-icons {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-content: center;
  gap: clamp(30px, 3.6vw, 58px);
  color: #39443f;
  font-size: 1.22rem;
  font-weight: 900;
}

.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  line-height: 1.15;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

.nav-icons {
  justify-content: flex-end;
  gap: 22px;
  color: var(--text);
}

.icon-link {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  font-weight: 900;
}

.icon-link svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.45;
}

.cart-link b {
  position: absolute;
  top: -3px;
  right: -4px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 0.68rem;
  line-height: 1;
}

.section {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 25px 0 52px;
}

.section-heading {
  margin: 0 0 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.card-grid {
  display: grid;
  gap: 32px;
}

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

.product-card {
  min-width: 0;
  background: #ffffff;
}

.product-image {
  display: block;
  overflow: hidden;
  background: #f4f4f4;
}

.product-image img {
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}

.card-body {
  padding-top: 14px;
  text-align: center;
}

.card-body h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.price {
  margin: 6px 0 0;
  color: var(--accent-dark);
  font-weight: 900;
}

.categories-section {
  padding-top: 10px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.category-grid a,
.category-tab {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--green);
  padding: 10px;
  text-align: center;
  font-weight: 900;
}

.category-tab {
  cursor: pointer;
  font-size: 1rem;
}

.category-tab:hover,
.category-tab.active {
  border-color: var(--accent-soft);
  background: var(--sand-soft);
}

.merchandise-section {
  width: min(1120px, calc(100% - 40px));
  padding-top: 0;
}

.merchandise-section[hidden] {
  display: none;
}

.listing-toolbar {
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.listing-toolbar span {
  color: var(--green);
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1.15;
}

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

.merchandise-card {
  min-width: 0;
}

.merchandise-image {
  display: block;
  overflow: hidden;
  background: #f4f4f4;
}

.merchandise-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-description,
.merchandise-card h3,
.merchandise-card .price {
  margin: 0;
}

.merchandise-card h3 {
  margin-top: 12px;
  color: #111918;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.25;
}

.product-description {
  min-height: 40px;
  margin-top: 12px;
  color: #39443f;
  font-size: 0.9rem;
  line-height: 1.2;
}

.merchandise-card .price {
  margin-top: 7px;
  color: #111918;
  font-size: 0.92rem;
}

.add-to-cart {
  display: grid;
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #6f8d9b;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 950;
}

.add-to-cart:hover {
  background: var(--green);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(11, 55, 47, 0.42);
}

.cart-overlay[hidden] {
  display: none;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(420px, 100%);
  max-width: 100vw;
  height: 100dvh;
  background: #ffffff;
  box-shadow: -18px 0 34px rgba(15, 70, 61, 0.2);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.cart-drawer[aria-hidden="false"],
.cart-is-open .cart-drawer {
  transform: translateX(0);
}

.cart-is-open {
  overflow: hidden;
}

.cart-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding: 22px 22px 18px;
}

.cart-kicker {
  margin: 0 0 3px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.cart-drawer h2 {
  margin: 0;
  color: var(--green);
  font-size: 1.5rem;
  line-height: 1.15;
}

.cart-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.cart-items {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding: 0 0 16px;
}

.cart-item + .cart-item {
  padding-top: 16px;
}

.cart-item img {
  width: 84px;
  height: 84px;
  border-radius: var(--radius);
  background: var(--cream);
  object-fit: cover;
}

.cart-item-main {
  min-width: 0;
}

.cart-item h3,
.cart-item p {
  margin: 0;
}

.cart-item h3 {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.25;
}

.cart-item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-item strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 0.9rem;
}

.cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 10px;
}

.cart-quantity {
  display: inline-grid;
  grid-template-columns: 28px 34px 28px;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  text-align: center;
}

.cart-quantity button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.cart-remove {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.cart-empty {
  border-top: 1px solid var(--border);
  padding: 18px 22px;
}

.cart-empty[hidden] {
  display: none;
}

.cart-empty p {
  margin: 0 0 12px;
  color: var(--muted);
}

.cart-empty button {
  display: grid;
  width: 100%;
  min-height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 950;
}

.cart-empty button:hover {
  background: var(--green);
}

.cart-summary {
  border-top: 1px solid var(--border);
  padding: 18px 22px 22px;
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  font-size: 0.98rem;
}

.cart-summary p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.cart-error {
  min-height: 18px;
  color: var(--accent-dark) !important;
  font-weight: 800;
}

.story-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding-top: 44px;
}

main > .story-section:first-child {
  padding-top: 24px;
}

.story-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-image img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.story-copy {
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid rgba(18, 59, 52, 0.12);
  border-left: 8px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-soft), #fff9ef 72%);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-copy h2,
.newsletter-section h2 {
  margin: 0;
  color: var(--green);
  line-height: 1.12;
  letter-spacing: 0;
}

.story-copy h2 {
  max-width: 820px;
  font-size: clamp(1.75rem, 3.4vw, 2.8rem);
}

.story-copy p:not(.eyebrow) {
  max-width: 840px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.12rem;
}

.story-details {
  max-width: 900px;
  margin: 22px 0 28px;
}

.story-copy .story-details p {
  margin: 0 0 14px;
  color: #516863;
  font-size: 1rem;
  line-height: 1.65;
}

.button-link,
.newsletter-form button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 20px;
  font-weight: 900;
}

.button-link:hover,
.newsletter-form button:hover {
  background: var(--accent-dark);
}

.newsletter-section {
  display: grid;
  gap: 18px;
  place-items: center;
  background: var(--sand-soft);
  padding: 48px 20px;
  text-align: center;
}

.newsletter-section h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.newsletter-form {
  display: flex;
  width: min(520px, 100%);
  gap: 10px;
}

.newsletter-form input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  padding: 0 16px;
  outline: 0;
}

.footer {
  background: var(--blue-soft);
  color: var(--green);
  padding: 44px 20px 28px;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.footer-logo {
  display: inline-flex;
  color: var(--green);
  width: 148px;
}

.footer-content p,
.copyright {
  color: var(--muted);
}

.footer-contact {
  justify-self: end;
  text-align: left;
}

.footer-contact h2 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 1.05rem;
  line-height: 1.25;
}

.footer-contact p {
  margin: 5px 0;
}

.footer-contact a {
  display: inline-block;
  margin-top: 8px;
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
}

.copyright {
  width: min(1040px, 100%);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(18, 59, 52, 0.14);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .navbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  .search-form {
    width: min(420px, 100%);
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-icons {
    justify-content: flex-start;
  }

  .four-column,
  .category-grid,
  .merchandise-grid,
  .story-section,
  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-section,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-self: start;
  }

}

@media (max-width: 640px) {
  .navbar,
  .section {
    width: min(100% - 28px, 1040px);
  }

  .delivery-strip {
    padding: 7px 14px;
    text-align: center;
  }

  .nav-links {
    gap: 22px;
    font-size: 1.08rem;
  }

  .four-column,
  .category-grid,
  .merchandise-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

}
