/* ============================================================
   ManaraCare – Stylesheet
   Fixed header + fixed top bar · no horizontal/vertical drift
   ============================================================ */

:root {
  --green: #064b35;
  --green-dark: #033a2a;
  --green-mid: #0a6b4c;
  --green-soft: #eaf0e5;
  --cream: #f8f8f0;
  --ink: #18231c;
  --muted: #6f786f;
  --line: #e8eae3;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;

  /* fixed-chrome measurements */
  --topbar-h: 34px;
  --header-h: 88px;
  --chrome-h: calc(var(--topbar-h) + var(--header-h));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* offset for the fixed chrome so anchors don't hide under it */
  scroll-padding-top: calc(var(--chrome-h) + 12px);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  background: #fff;
  padding-top: var(--chrome-h); /* push content below fixed chrome */
  overflow-x: hidden;
  max-width: 100vw;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--green-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- Fixed top bar ---------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 60;
  background: linear-gradient(90deg, var(--green-dark), #05553c);
  color: #fff;
  font-size: 11px;
  letter-spacing: .2px;
}

.topbar-inner {
  max-width: 1280px;
  margin: auto;
  height: 100%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.topbar p {
  margin: 0;
}

.topbar p span {
  opacity: .5;
  padding: 0 5px;
}

.topbar-right {
  display: flex;
  gap: 20px;
}

/* ---------------- Fixed header ---------------- */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 50;
  padding: 0 5%;
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  box-shadow: 0 2px 22px rgba(3, 58, 42, .07);
  /* no max-width / margin auto so it spans the viewport */
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: #4c8a43;
  stroke: #4c8a43;
  stroke-width: 2;
  stroke-linecap: round;
}

.brand-mark svg path:last-child {
  fill: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .3px;
  line-height: 1.1;
  color: var(--green-dark);
}

.brand-copy small {
  font-size: 6.5px;
  letter-spacing: 1.2px;
  color: #788174;
}

/* ---- MAIN NAVIGATION – larger, bolder, attractive pills ---- */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
  color: #2b3a2f;
  padding: 10px 15px;
  border-radius: 30px;
  transition: color .22s ease, background .22s ease, box-shadow .22s ease,
              transform .22s ease;
}

.main-nav a:hover {
  color: var(--green);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.main-nav a.active,
.main-nav .active {
  color: #fff;
  background: linear-gradient(135deg, var(--green-mid), var(--green));
  box-shadow: 0 6px 16px rgba(6, 75, 53, .28);
}

.main-nav a.active:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--green-mid), var(--green));
  box-shadow: 0 8px 20px rgba(6, 75, 53, .34);
}

/* ---------------- Header actions ---------------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fafbf8;
  border-radius: 22px;
  padding: 0 8px 0 14px;
  height: 38px;
  transition: border-color .2s, box-shadow .2s;
}

.search-box:focus-within {
  border-color: #b9cbb6;
  box-shadow: 0 0 0 3px rgba(6, 75, 53, .08);
}

.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 115px;
  font-size: 11px;
}

.search-box button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 19px;
  padding: 4px;
  transition: color .2s, transform .2s;
}

.search-box button:hover,
.icon-button:hover {
  color: var(--green-mid);
  transform: scale(1.08);
}

.cart-button {
  position: relative;
}

.cart-count {
  position: absolute;
  right: -5px;
  top: -5px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 8px;
  min-width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.menu-toggle {
  display: none;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: #e9eddd;
  display: flex;
  align-items: center;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(246, 247, 235, .97) 0%,
      rgba(246, 247, 235, .9) 34%,
      rgba(246, 247, 235, .16) 59%,
      rgba(246, 247, 235, 0) 100%
    ),
    url('/public/images/hero.png');
  background-size: cover;
  background-position: center 52%;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  margin: auto;
  padding: 60px 5% 50px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 3.5px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #2c4630;
}

.eyebrow i {
  font-style: normal;
  color: #7a9672;
  padding: 0 4px;
}

.hero h1 {
  font: 600 clamp(36px, 4.2vw, 60px)/1.03 var(--serif);
  letter-spacing: -1.5px;
  margin: 0 0 18px;
  max-width: 540px;
}

.hero h1 em {
  font-style: normal;
  color: #164d35;
}

.hero-description {
  max-width: 350px;
  line-height: 1.65;
  font-size: 13.5px;
  margin: 0 0 24px;
  color: #3b473c;
}

/* ---------------- Buttons ---------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  border-radius: 30px;
  padding: 13px 24px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .3px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--green-mid), var(--green));
  color: #fff;
  box-shadow: 0 10px 24px rgba(6, 75, 53, .24);
}

.button-primary:hover,
.add-cart:hover {
  background: linear-gradient(135deg, #0d7c58, #0a5e43);
  box-shadow: 0 14px 30px rgba(6, 75, 53, .3);
}

.hero-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  font-size: 10px;
  color: #394d3d;
}

.hero-promises span {
  white-space: nowrap;
}

/* ---------------- Shared layout ---------------- */
.section-wrap {
  width: min(1240px, 92%);
  margin-inline: auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2,
.section-title-row h2 {
  font: 600 clamp(25px, 2.4vw, 34px)/1.15 var(--serif);
  margin: 0 0 8px;
  color: var(--green-dark);
}

.section-heading p,
.section-title-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* ---------------- Categories ---------------- */
.categories {
  padding-top: 34px;
  padding-bottom: 34px;
}

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

.category-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  min-width: 0;
}

.category-item img {
  width: min(148px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f0f1e9;
  margin-bottom: 11px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.category-item:hover img {
  transform: scale(1.06);
  border-color: #dbe6d6;
  box-shadow: 0 14px 30px rgba(6, 75, 53, .15);
}

.category-item strong {
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 3px;
  transition: color .2s;
}

.category-item:hover strong {
  color: var(--green);
}

.category-item small {
  font-size: 9.5px;
  color: var(--muted);
}

.round-arrow {
  margin-top: 9px;
  width: 25px;
  height: 25px;
  border: 1px solid #cbd4c8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--green);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}

.category-item:hover .round-arrow {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  transform: translate(2px, -2px);
}

/* ---------------- Promo cards ---------------- */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.promo-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(20, 58, 30, .16);
}

.promo-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(246, 246, 232, .95),
    rgba(246, 246, 232, .78) 40%,
    rgba(246, 246, 232, 0) 75%
  );
}

.promo-face {
  background-image: url('https://images.unsplash.com/photo-1616394584738-fc6e612e71b9?auto=format&fit=crop&w=1000&q=85');
}

.promo-hair {
  background-image: url('https://images.unsplash.com/photo-1608248543803-ba4f8c70ae0b?auto=format&fit=crop&w=1000&q=85');
}

.promo-hair:before {
  background: linear-gradient(
    90deg,
    rgba(20, 58, 30, .95),
    rgba(20, 58, 30, .72) 44%,
    rgba(20, 58, 30, .08) 100%
  );
}

.promo-copy {
  position: relative;
  padding: 28px 7%;
  max-width: 62%;
}

.promo-copy h2 {
  font: 500 clamp(24px, 2.4vw, 34px)/1.08 var(--serif);
  margin: 0 0 9px;
}

.promo-copy p {
  font-size: 11.5px;
  line-height: 1.55;
  margin: 0 0 17px;
}

.promo-hair .promo-copy {
  color: #fff;
}

.button-light {
  background: #fff;
  color: var(--green);
  padding: 10px 18px;
  font-size: 10.5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.button-light:hover {
  background: var(--green);
  color: #fff;
}

/* ---------------- Products ---------------- */
.products-section {
  padding: 0 0 44px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}

.section-title-row h2 {
  font-size: 29px;
}

.text-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  transition: color .2s;
}

.text-link:hover {
  color: var(--green-mid);
}

.text-link span {
  margin-left: 7px;
  transition: transform .2s;
  display: inline-block;
}

.text-link:hover span {
  transform: translateX(4px);
}

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

.product-card {
  position: relative;
  border: 1px solid #eeefe9;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #dfe7da;
  box-shadow: 0 16px 34px rgba(21, 59, 32, .12);
}

.wishlist {
  position: absolute;
  z-index: 2;
  right: 11px;
  top: 11px;
  background: #fff;
  border: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 21px;
  line-height: 1;
  color: #5b665c;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
  transition: transform .2s, color .2s;
}

.wishlist:hover {
  transform: scale(1.12);
}

.wishlist.is-saved {
  color: #b64a45;
}

.product-image {
  display: block;
  background: #f7f7f3;
  height: 205px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform .4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.06);
}

.product-info {
  padding: 14px 15px 15px;
}

.product-info h3 {
  font-size: 13px;
  margin: 0 0 4px;
  color: var(--green-dark);
}

.rating {
  font-size: 10.5px;
  color: #f0b52d;
  letter-spacing: 1px;
}

.rating small {
  color: #858a82;
  letter-spacing: 0;
}

.product-info p {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.5;
  min-height: 31px;
  margin: 8px 0;
}

.price {
  font-weight: 700;
  font-size: 15px;
  margin: 6px 0 12px;
  color: var(--green-dark);
}

.add-cart {
  display: flex;
  width: 100%;
  background: linear-gradient(135deg, var(--green-mid), var(--green));
  color: #fff;
  padding: 11px 13px;
  font-size: 10.5px;
  justify-content: space-between;
  border-radius: 24px;
  box-shadow: 0 6px 14px rgba(6, 75, 53, .18);
}

/* ---------------- Benefits ---------------- */
.benefits {
  background: #f0f4e9
    url('https://images.unsplash.com/photo-1497250681960-ef046c08a56e?auto=format&fit=crop&w=1800&q=80')
    center/cover;
  padding: 38px 0 42px;
  position: relative;
}

.benefits:before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(243, 247, 236, .86);
}

.benefits > .section-wrap {
  position: relative;
}

.benefits .section-heading {
  margin-bottom: 26px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}

.benefit-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  width: 58px;
  height: 58px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  font-size: 28px;
  color: var(--green);
  background: #fff;
  box-shadow: 0 6px 16px rgba(6, 75, 53, .08);
  transition: background .25s, color .25s, transform .25s;
}

.benefit-grid article:hover .benefit-icon {
  background: var(--green);
  color: #fff;
  transform: translateY(-3px);
}

.benefit-grid h3 {
  font: 600 15px var(--serif);
  margin: 0 0 6px;
  color: var(--green-dark);
}

.benefit-grid p {
  max-width: 200px;
  margin: auto;
  color: #677267;
  font-size: 10.5px;
  line-height: 1.55;
}

/* ---------------- Story banner ---------------- */
.story-banner {
  position: relative;
  min-height: 310px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #e4eddf;
}

.story-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(246, 247, 234, .95),
      rgba(246, 247, 234, .78) 35%,
      rgba(246, 247, 234, 0) 70%
    ),
    url('/public/images/Nature.png')
      center 48% / cover;
}

.story-copy {
  position: relative;
  padding: 34px 9%;
  max-width: 480px;
}

.story-copy h2 {
  font: 500 clamp(30px, 3vw, 42px)/1.02 var(--serif);
  margin: 0 0 12px;
  color: var(--green-dark);
}

.story-copy p {
  font-size: 11.5px;
  line-height: 1.6;
  max-width: 270px;
  margin: 0 0 16px;
}

.story-copy .button {
  padding: 11px 19px;
}

/* ---------------- Testimonials ---------------- */
.testimonials {
  padding-top: 36px;
  padding-bottom: 44px;
}

.testimonials .section-heading {
  margin-bottom: 26px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 22px 24px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(32, 53, 26, .05);
  transition: transform .25s, box-shadow .25s;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(32, 53, 26, .1);
}

.review-card > p {
  font-size: 11.5px;
  line-height: 1.65;
  color: #5f675e;
  min-height: 56px;
  margin: 0 0 9px;
}

.review-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.review-person img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.review-person div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.review-person strong {
  font-size: 10.5px;
  color: var(--green-dark);
}

.review-person small {
  font-size: 9.5px;
  color: var(--muted);
}

/* ---------------- Newsletter ---------------- */
.newsletter {
  background: #eef3e9
    url('https://images.unsplash.com/photo-1497250681960-ef046c08a56e?auto=format&fit=crop&w=1800&q=80')
    center/cover;
  padding: 28px 5%;
}

.newsletter-inner {
  max-width: 920px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.newsletter h2 {
  font: 600 24px var(--serif);
  margin: 0 0 4px;
  text-align: center;
  color: var(--green-dark);
}

.newsletter p {
  font-size: 10.5px;
  color: #657064;
  margin: 0;
}

.newsletter-form {
  display: flex;
  width: min(490px, 55%);
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid #e3e8dc;
  box-shadow: 0 8px 22px rgba(6, 75, 53, .08);
}

.newsletter-form input {
  border: 0;
  outline: 0;
  padding: 13px 19px;
  flex: 1;
  min-width: 0;
  font-size: 10.5px;
}

.newsletter-form button {
  border: 0;
  background: linear-gradient(135deg, var(--green-mid), var(--green));
  color: #fff;
  padding: 0 26px;
  font-weight: 700;
  font-size: 10.5px;
  transition: filter .2s;
}

.newsletter-form button:hover {
  filter: brightness(1.08);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: #003c2b;
  color: #f5f8f1;
  padding: 38px 0 0;
  background-image: linear-gradient(#003c2bf0, #003c2bf5),
    url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1600&q=80');
  background-position: center;
  background-size: cover;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.brand-footer .brand-copy strong {
  color: #fff;
}

.brand-footer .brand-copy small {
  color: #c1d1c2;
}

.brand-footer .brand-mark svg {
  fill: #dce8d5;
  stroke: #dce8d5;
}

.footer-brand > p {
  font-size: 10.5px;
  line-height: 1.7;
  color: #d0dfd2;
  max-width: 260px;
  margin: 15px 0;
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #a7c2ae;
  border-radius: 50%;
  font-size: 11px;
  transition: background .2s, color .2s, border-color .2s;
}

.socials a:hover {
  background: #dce8d5;
  color: #003c2b;
  border-color: #dce8d5;
}

.footer-grid h3 {
  font-size: 12px;
  margin: 5px 0 14px;
  letter-spacing: .3px;
}

.footer-grid > div:not(:first-child) > a,
.footer-contact p {
  display: block;
  font-size: 10.5px;
  color: #d3dfd5;
  margin: 0 0 9px;
  transition: color .2s, transform .2s;
}

.footer-grid > div:not(:first-child) > a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-contact p {
  white-space: nowrap;
}

.footer-bottom {
  border-top: 1px solid #ffffff2b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
  gap: 15px;
}

.footer-bottom p {
  font-size: 9.5px;
  color: #c5d5c9;
  margin: 0;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-methods span {
  background: #fff;
  color: #123e30;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 8px;
  font-weight: 700;
}

.payment-methods small {
  font-size: 9px;
  color: #d0ded3;
  margin-left: 5px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (min-width: 1400px) {
  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding-top: 70px;
    padding-bottom: 58px;
  }

  .product-image {
    height: 235px;
  }
}

/* tighter header so the enlarged tabs always fit */
@media (max-width: 1320px) {
  .site-header {
    gap: 20px;
  }

  .main-nav a {
    font-size: 13px;
    padding: 9px 12px;
  }

  .search-box input {
    width: 95px;
  }
}

/* collapse search to an icon to free space for the tabs */
@media (max-width: 1200px) {
  .search-box {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .search-box input {
    display: none;
  }

  .search-box button {
    font-size: 20px;
    padding: 6px;
  }

  .main-nav a {
    font-size: 13px;
    padding: 9px 11px;
  }
}

@media (max-width: 1050px) {
  :root {
    --header-h: 82px;
  }

  .site-header {
    gap: 15px;
    padding-inline: 3%;
  }

  .brand-copy strong {
    font-size: 18px;
  }

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

  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    font-size: 12px;
    padding: 8px 9px;
    font-weight: 700;
  }

  .header-actions {
    gap: 7px;
  }

  .hero {
    min-height: 400px;
  }

  .hero-content {
    padding-left: 5%;
  }

  .hero-promises {
    gap: 11px;
  }

  .category-grid {
    gap: 14px;
  }

  .category-item img {
    width: min(128px, 100%);
  }

  .product-grid {
    gap: 14px;
  }

  .product-image {
    height: 175px;
  }

  .footer-grid {
    gap: 24px;
  }
}

/* Mobile / tablet layout – starts at 900px so enlarged tabs never overflow */
@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  html {
    scroll-padding-top: calc(var(--chrome-h) + 8px);
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
    padding: 0 4%;
  }

  .topbar-inner > p {
    display: none;
  }

  .topbar-right {
    gap: 12px;
    font-size: 9px;
  }

  .site-header {
    padding: 0 4%;
    gap: 12px;
    justify-content: space-between;
  }

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

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 5px;
  }

  .menu-toggle {
    display: block;
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 24px;
    order: 3;
    padding: 4px;
  }

  /* Mobile dropdown nav — positioned relative to the fixed header */
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 14px 26px rgba(0, 0, 0, .1);
    padding: 12px 5% 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #eff0e9;
  }

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

  .main-nav a {
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
  }

  .main-nav a.active,
  .main-nav .active {
    background: var(--green-soft);
    color: var(--green);
    box-shadow: none;
  }

  .main-nav a.active:hover {
    background: var(--green-soft);
    color: var(--green);
  }

  .header-actions {
    margin-left: auto;
    gap: 7px;
  }

  .search-box {
    height: 34px;
    width: 34px;
  }

  .header-actions .icon-button {
    font-size: 17px;
  }

  .hero {
    min-height: 440px;
    align-items: flex-start;
  }

  .hero-image {
    background-image: linear-gradient(
        90deg,
        rgba(246, 247, 235, .97) 0%,
        rgba(246, 247, 235, .84) 54%,
        rgba(246, 247, 235, .23) 100%
      ),
      url('/public/images/hero.png');
    background-position: 60% center;
  }

  .hero-content {
    padding: 46px 6% 28px;
  }

  .hero h1 {
    font-size: clamp(36px, 8vw, 50px);
    max-width: 420px;
  }

  .hero-description {
    max-width: 300px;
    font-size: 12.5px;
  }

  .hero-promises {
    max-width: 340px;
    gap: 12px 16px;
    margin-top: 25px;
  }

  .hero-promises span {
    font-size: 9.5px;
  }

  .section-wrap {
    width: 90%;
  }

  .categories {
    padding-top: 28px;
    padding-bottom: 26px;
  }

  .section-heading h2,
  .section-title-row h2 {
    font-size: 26px;
  }

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

  .category-item img {
    width: min(125px, 100%);
    border-width: 3px;
  }

  .category-item strong {
    font-size: 15px;
  }

  .category-item small {
    font-size: 9px;
  }

  .promo-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }

  .promo-card {
    min-height: 215px;
  }

  .promo-copy {
    padding: 24px 6%;
    max-width: 65%;
  }

  .promo-copy h2 {
    font-size: 28px;
  }

  .products-section {
    padding-bottom: 30px;
  }

  .section-title-row {
    align-items: end;
  }

  .section-title-row h2 {
    font-size: 24px;
  }

  .section-title-row p {
    font-size: 10px;
  }

  .text-link {
    font-size: 9.5px;
  }

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

  .product-image {
    height: clamp(150px, 45vw, 230px);
  }

  .product-info {
    padding: 11px;
  }

  .product-info h3 {
    font-size: 12.5px;
  }

  .product-info p {
    font-size: 10px;
    min-height: 31px;
  }

  .benefits {
    padding: 28px 0;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 15px;
  }

  .benefit-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .story-banner {
    min-height: 270px;
  }

  .story-image {
    background-position: 58% center;
    background-image: linear-gradient(
        90deg,
        rgba(246, 247, 234, .97),
        rgba(246, 247, 234, .8) 45%,
        rgba(246, 247, 234, .12) 100%
      ),
      url('/public/images/Nature.png');
  }

  .story-copy {
    padding: 26px 6%;
    max-width: 62%;
  }

  .story-copy h2 {
    font-size: 33px;
  }

  .testimonials {
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .review-card {
    padding: 16px;
  }

  .review-card > p {
    min-height: 0;
  }

  .newsletter-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .newsletter-form {
    width: 100%;
    max-width: 480px;
  }

  .newsletter-form button {
    padding-inline: 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand > p {
    max-width: 340px;
  }

  .footer-grid h3 {
    font-size: 12px;
  }

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

  .payment-methods {
    flex-wrap: wrap;
  }
}

@media (max-width: 390px) {
  :root {
    --header-h: 68px;
  }

  .topbar-right {
    gap: 8px;
    font-size: 8px;
  }

  .brand {
    gap: 5px;
  }

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

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 4.5px;
    letter-spacing: .7px;
  }

  .site-header {
    gap: 6px;
  }

  .main-nav a {
    font-size: 14px;
    padding: 12px 14px;
  }

  .search-box {
    width: 32px;
    height: 32px;
  }

  .header-actions {
    gap: 4px;
  }

  .hero {
    min-height: 430px;
  }

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

  .hero-promises {
    gap: 10px;
  }

  .category-grid {
    gap: 20px 8px;
  }

  .category-item img {
    width: 100%;
    max-width: 100px;
  }

  .category-item strong {
    font-size: 13px;
  }

  .category-item small {
    font-size: 8px;
  }

  .promo-copy {
    max-width: 72%;
  }

  .promo-copy h2 {
    font-size: 25px;
  }

  .product-image {
    height: 150px;
  }

  .product-info h3 {
    font-size: 11.5px;
  }

  .add-cart {
    font-size: 9.5px;
    padding: 10px;
  }

  .story-copy {
    max-width: 70%;
  }

  .story-copy h2 {
    font-size: 30px;
  }
}