:root {
  --bg: #f6f8f3;
  --paper: #ffffff;
  --ink: #151815;
  --muted: #657062;
  --line: rgba(21, 24, 21, 0.14);
  --black: #151815;
  --white: #ffffff;
  --accent: #227b43;
  --accent-soft: #edf9ef;
  --mint: #d9f7e3;
  --shadow: 0 18px 50px rgba(24, 58, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
}

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

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

button {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(246, 248, 243, 0.9);
  border-bottom: 1px solid rgba(35, 98, 33, 0.14);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px clamp(18px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.shop-header {
  align-items: center;
  min-height: 88px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  font-weight: 900;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 20px;
}

.site-nav a {
  border-radius: 18px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  padding: 10px 4px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: transparent;
  color: var(--ink);
}

.account-button,
.cart-menu-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 900;
  gap: 12px;
  justify-content: center;
  min-height: 54px;
  padding: 10px 22px;
}

.cart-menu-button span {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
}

.nav-toggle {
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  display: none;
  font-weight: 850;
  min-height: 42px;
  padding: 9px 14px;
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  min-height: calc(100vh - 78px);
  padding: clamp(44px, 7vw, 90px) clamp(18px, 5vw, 64px);
}

.hero-copy {
  align-self: center;
  max-width: 830px;
}

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

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

h1 {
  font-size: clamp(2.8rem, 8vw, 7rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 22px;
}

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

h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

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

.hero-copy p:not(.eyebrow),
.page-hero p {
  font-size: 1.12rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  background: #0a2f66;
}

.button-light {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.button-full {
  width: 100%;
}

.hero-media {
  align-self: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.hero-media img {
  height: 100%;
  min-height: 560px;
  width: 100%;
}

.sale-card {
  background: var(--ink);
  border-radius: 8px;
  bottom: 22px;
  color: var(--white);
  left: 22px;
  max-width: 280px;
  padding: 18px;
  position: absolute;
}

.sale-card span,
.sale-card small {
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

.sale-card strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.05;
  margin: 6px 0;
}

.section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 64px);
}

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

.featured-section,
.page-hero {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

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

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

.mini-product-grid article,
.product-card,
.note-panel,
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(6, 28, 61, 0.08);
}

.featured-section .mini-product-grid article {
  background: #f7faff;
}

.mini-product-grid article,
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mini-product-grid img {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.product-card img {
  aspect-ratio: 5 / 4;
  width: 100%;
}

.mini-product-grid article > span,
.product-tag {
  color: var(--accent);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.mini-product-grid article h3,
.mini-product-grid article > span {
  margin-left: 20px;
  margin-right: 20px;
}

.mini-product-grid article > span {
  margin-top: 18px;
}

.mini-product-grid article h3 {
  margin-bottom: 20px;
}

.story-section {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 58px);
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
}

.story-section > div {
  max-width: 640px;
}

.story-section img {
  aspect-ratio: 5 / 4;
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
}

.benefits {
  background: var(--ink);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefits article {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  padding: 28px clamp(18px, 4vw, 44px);
}

.benefits article:last-child {
  border-right: 0;
}

.benefits span {
  color: var(--white);
  display: block;
  font-size: 1.2rem;
  font-weight: 950;
  margin-bottom: 8px;
}

.benefits p {
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 0;
}

.page-hero {
  padding: clamp(52px, 8vw, 98px) clamp(18px, 5vw, 64px);
}

.shop-layout {
  display: block;
}

.note-panel,
.contact-card {
  padding: 24px;
}

.products-message {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
}

.product-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.product-card h2 {
  font-size: clamp(1.28rem, 2.4vw, 2rem);
  line-height: 1.04;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.product-card strong {
  color: var(--ink);
  display: block;
  font-size: 1rem;
  margin: 14px 0 16px;
}

.product-card .button {
  margin-top: auto;
  min-height: 42px;
  padding: 9px 12px;
  width: 100%;
}

.cart-dropdown {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  padding: 26px;
  pointer-events: none;
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  top: calc(100% - 16px);
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
  width: min(560px, calc(100vw - 36px));
  z-index: 25;
}

.cart-dropdown.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

.cart-dropdown-head strong {
  color: var(--ink);
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

.cart-dropdown-head span {
  color: var(--muted);
  display: block;
  font-size: 0.92rem;
  font-weight: 950;
}

.cart-items {
  display: grid;
  gap: 10px;
  overflow-y: auto;
}

.empty-cart {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 0;
  padding: 18px;
}

.cart-item {
  align-items: center;
  background: #f8fbf6;
  border: 1px solid var(--line);
  border-radius: 20px;
  display: grid;
  gap: 10px;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  padding: 10px;
}

.cart-item img {
  aspect-ratio: 1;
  border-radius: 16px;
  height: 58px;
  width: 58px;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item strong {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.15;
}

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

.cart-item small {
  background: var(--ink);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
}

.remove-cart-item {
  align-items: center;
  background: var(--accent-soft);
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.remove-cart-item:hover,
.remove-cart-item:focus {
  background: var(--ink);
  color: var(--white);
  outline: none;
}

.note-panel {
  margin: 0 clamp(18px, 5vw, 64px) clamp(48px, 7vw, 88px);
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(6, 28, 61, 0.88), rgba(6, 28, 61, 0.38)),
    url("https://images.unsplash.com/photo-1653704841996-c2ed854aedd8?auto=format&fit=crop&w=1600&q=85") center/cover;
  color: var(--white);
}

.contact-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card h2 {
  font-size: 1.5rem;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 64px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 6px 0 0;
}

.footer-credit {
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 750;
  margin: 0;
}

.footer-credit a {
  border-bottom: 1px solid currentColor;
  color: var(--white);
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero,
  .story-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: 420px;
  }

  .mini-product-grid,
  .product-grid,
  .contact-grid,
  .benefits {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    align-items: stretch;
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 12px;
  }

  .account-button,
  .cart-menu-button {
    width: 100%;
  }

  .cart-dropdown {
    right: 18px;
    top: calc(100% + 8px);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .mini-product-grid,
  .product-grid,
  .contact-grid,
  .benefits {
    grid-template-columns: 1fr;
  }

  .benefits article {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-right: 0;
  }

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