:root {
  --ink: #171c1a;
  --muted: #5c6460;
  --green: #1f3e37;
  --green-soft: #dfe9e5;
  --gold: #d3a15a;
  --sand: #f3efe9;
  --cream: #faf7f3;
  --line: #e7e2db;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(23, 28, 26, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  background: #18322d;
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.topbar-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  color: white;
  opacity: 0.9;
}

.header {
  max-width: 1260px;
  margin: 0 auto;
  padding: 20px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 40;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.brand > span,
.footer-brand > span {
  display: flex;
  flex-direction: column;
  color: var(--green);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 0.95;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  max-width: 300px;
  min-width: 220px;
}

.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
}

.search button {
  border: 0;
  background: var(--green);
  color: white;
  padding: 11px 18px;
  font-weight: 700;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  color: var(--ink);
}

#cartCount {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 12px;
}

main {
  max-width: 1260px;
  margin: 0 auto;
  padding: 24px 20px 50px;
}

.hero {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 38px;
  background: linear-gradient(135deg, #f7f3ee 0%, #efe8de 100%);
  border-radius: 8px 80px 8px 8px;
  padding: 50px 34px 42px 54px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 340px;
  height: 340px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: translate(-20%, 20%);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.story-copy h2,
.promo-banner h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 5vw, 6.2rem);
  max-width: 530px;
  margin-bottom: 18px;
}

.hero-copy p {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 26px;
  font-weight: 800;
  font-size: 14px;
  transition: 0.2s ease;
}

.primary-button {
  background: var(--green);
  color: white;
  box-shadow: 0 12px 26px rgba(31, 62, 55, 0.18);
}

.primary-button:hover,
.secondary-button:hover,
.search button:hover,
.cart-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid rgba(31, 62, 55, 0.25);
  background: rgba(255,255,255,0.7);
  color: var(--green);
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-top: 30px;
}

.hero-metrics div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-metrics strong {
  font-size: 1.2rem;
  color: var(--green);
}

.hero-metrics span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px 64px 4px 4px;
  box-shadow: var(--shadow);
}

.badge-pill {
  position: absolute;
  left: 26px;
  bottom: 22px;
  background: rgba(255,255,255,0.9);
  color: var(--green);
  border: 1px solid rgba(31, 62, 55, 0.12);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.benefits {
  max-width: 1260px;
  margin: 28px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.benefits > div {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 18px;
}

.benefits > div span {
  font-size: 12px;
  font-weight: 800;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  letter-spacing: 0.04em;
}

.benefits strong {
  display: block;
  margin-bottom: 3px;
}

.benefits small {
  color: var(--muted);
}

.section {
  max-width: 1260px;
  margin: 82px auto 0;
  padding: 0 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
}

.section-heading h2,
.story-copy h2,
.promo-banner h2 {
  font-size: clamp(2.2rem, 3vw, 4rem);
}

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

.category-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px 38px 4px 4px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  box-shadow: 0 18px 32px rgba(17, 21, 19, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(17, 28, 24, 0.68));
  pointer-events: none;
}

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

.category-card span {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 18px;
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 800;
}

.products-header {
  margin-bottom: 22px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.filter,
.text-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.filter.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(16, 21, 17, 0.04);
}

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

.product-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.sale-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(31, 62, 55, 0.9);
  color: white;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-card > div:not(.product-image) {
  padding: 16px 18px 0;
}

.product-category {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 800;
}

.product-card h3 {
  margin-top: 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-weight: 800;
  color: var(--ink);
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 600;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px !important;
}

.add-button,
.buy-button {
  border: 0;
  border-radius: 12px;
  padding: 12px 10px;
  font-weight: 800;
  transition: 0.2s ease;
}

.add-button {
  background: var(--green-soft);
  color: var(--green);
}

.buy-button {
  background: var(--green);
  color: white;
}

.empty-message {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 600;
}

.story-section {
  max-width: 1260px;
  margin: 86px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.story-image-wrap img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.story-copy {
  padding-right: 10px;
}

.story-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.story-copy ul {
  margin: 20px 0 28px;
  padding-left: 20px;
  color: var(--ink);
  list-style: disc;
  display: grid;
  gap: 10px;
}

.promo-banner {
  max-width: 1260px;
  margin: 82px auto 0;
  padding: 32px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #173630 0%, #1d462f 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.promo-banner .eyebrow {
  color: rgba(255,255,255,0.8);
}

.promo-banner h2 {
  color: white;
}

.footer {
  max-width: 1260px;
  margin: 82px auto 0;
  padding: 0 20px 30px;
}

.footer-top,
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.footer-brand > span {
  font-size: 1.35rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-weight: 700;
}

.footer-contact {
  padding-top: 18px;
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-contact strong {
  color: var(--ink);
}

.copyright {
  margin-top: 18px;
  color: var(--muted);
}

.cart-panel {
  position: fixed;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  width: min(420px, calc(100vw - 30px));
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  z-index: 100;
  padding: 22px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

#closeCart {
  border: 0;
  background: #f3efe9;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

#cartItems {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.cart-item button,
.clear-cart {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 700;
}

.cart-total {
  margin: 10px 0 18px;
  font-size: 1.1rem;
}

.checkout-button {
  width: 100%;
  margin-bottom: 10px;
}

.clear-cart {
  width: 100%;
  border-radius: 12px;
  background: #f3efe9;
  padding: 12px 10px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 90;
}

@media (max-width: 980px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    order: 3;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 22px 28px;
    border-radius: 8px 48px 8px 8px;
  }

  .hero-copy p,
  .hero-copy h1 {
    max-width: none;
  }

  .hero-actions,
  .hero-metrics {
    justify-content: center;
  }

  .hero-visual img {
    height: 400px;
  }

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

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

  .promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .header,
  .section,
  .benefits,
  .story-section,
  .footer,
  main {
    padding-left: 15px;
    padding-right: 15px;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
  }

  .brand {
    justify-content: center;
  }

  .search {
    width: 100%;
    max-width: none;
  }

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

  .hero-metrics {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .hero-visual img {
    height: 300px;
  }

  .footer-top,
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
  }
}
