:root{
  --bg: #f6f1e6;
  --paper: #fffdf8;
  --ink: #2b3f34;
  --heading: #254536;
  --muted: #5b6b61;
  --brand: #2f5b43;
  --brand-2: #c9b58a;
  --line: #e6dece;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --radius: 18px;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: var(--ink);
  background: var(--bg);
}

a{
  color: inherit;
  text-decoration: none;
}

img{
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

h1, h2, h3{
  color: var(--heading);
}

.container{
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.meta{
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* --- Top announcement / social bar --- */
.top-announcement{
  background: #2f5b43;
  color: #f6f1e6;
  font-size: 13px;
}

.top-announcement-inner{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 34px;
}

.top-social{
  display: flex;
  gap: 14px;
  align-items: center;
}

.top-social a{
  color: #f6f1e6;
  opacity: .85;
  transition: opacity .2s ease;
}

.top-social a:hover{
  opacity: 1;
}

.top-message{
  text-align: center;
  font-weight: 500;
  letter-spacing: .2px;
}

.top-message span{
  display: inline-block;
  transition: opacity .35s ease;
}

.top-message span.is-fading{
  opacity: 0;
}

.top-right{
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 700px){
  .top-announcement-inner{
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  .top-right{
    display: none;
  }

  .top-message{
    text-align: right;
    font-size: 12px;
  }
}

/* --- Navigation --- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251,250,246,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230,222,206,.8);
  overflow: visible;
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: .2px;
}

.brand-badge{
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  z-index: 30;
  transform: translateY(2px);
  outline: 6px solid rgba(246,241,230,.85);
  outline-offset: -2px;
}

.brand-badge .img-protect{
  width: 94%;
  height: 94%;
}

.brand-badge img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title strong{
  font-size: 14px;
}

.brand-title span{
  font-size: 12px;
  color: var(--muted);
}

.menu{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.menu a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
}

.menu a:hover{
  background: rgba(47,91,67,.08);
  color: var(--ink);
}

.cart-pill{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  font-size: 13px;
}

/* --- Mobile hamburger --- */
.nav-toggle{
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-lines{
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.nav-toggle-lines::before{ top: -6px; }
.nav-toggle-lines::after{ top: 6px; }

@media (max-width: 860px){
  .nav{
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .nav-toggle{
    display: inline-flex;
    margin-left: auto;
  }

  .menu{
    display: none;
    width: 100%;
    margin-top: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav.is-open .menu{
    display: flex;
  }

  .menu a,
  .menu .dropbtn{
    padding: 10px 12px;
    border-radius: 12px;
  }

  .dropdown-content{
    position: static;
    display: none;
    box-shadow: none;
    border: 1px solid var(--line);
    margin-top: 8px;
  }

  .dropdown.is-open .dropdown-content{
    display: block !important;
  }

  .dropbtn:hover + .dropdown-content,
  .dropdown-content:hover{
    display: block;
  }

  .cart-pill{
    white-space: nowrap;
  }
}

/* --- Dropdown Menu --- */
.dropdown{
  position: relative;
  display: inline-block;
}

.dropbtn{
  cursor: pointer;
}

.dropdown-content{
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  padding: 8px 0;
  display: none;
  z-index: 1000;
}

.dropdown-content a{
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
}

.dropdown-content a:hover{
  background: #f5f7f5;
}

.dropdown-content hr{
  border: none;
  border-top: 1px solid var(--line);
  margin: 6px 0;
}

.dropdown:hover .dropdown-content{
  display: block;
}

/* --- Hero --- */
.hero{
  padding: 30px 0 18px;
  padding-top: 38px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card{
  position: relative;
  overflow: hidden;
}

.hero-card::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(47,91,67,.10) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 22%, rgba(47,91,67,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 78%, rgba(201,181,138,.18) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 76%, rgba(201,181,138,.12) 0 2px, transparent 3px),
    linear-gradient(135deg, rgba(47,91,67,.05), rgba(201,181,138,.06));
  opacity: .35;
  pointer-events: none;
}

.hero-card::after{
  content: "";
  position: absolute;
  inset: -40px;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(47,91,67,.06) 0px,
      rgba(47,91,67,.06) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: .10;
  transform: rotate(-2deg);
  pointer-events: none;
}

.hero-logo-wrap{
  display: block;
  width: 100%;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,253,248,.72);
  border: 1px solid rgba(230,222,206,.85);
  backdrop-filter: blur(6px);
  margin: 0 0 16px;
}

.hero-logo-wrap .img-protect{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 220px;
  height: auto;
}

.hero-logo-wrap .img-protect img{
  width: min(200px, 42vw);
  height: auto;
  object-fit: contain;
}

.hero-logo{
  width: min(200px, 42vw);
  height: auto;
  margin: 0 auto;
}

.hero-divider{
  width: 72px;
  height: 1px;
  background: var(--brand-2);
  margin: 10px auto 14px;
  opacity: 0.6;
}

.hero-centered{
  text-align: center;
  padding: 28px 30px 32px;
}

.hero-centered .h2,
.hero-centered h1{
  margin-top: 6px;
  margin-bottom: 10px;
  line-height: 1.08;
}

.hero-centered .lead{
  max-width: 620px;
  margin: 0 auto 16px;
}

.hero-side{
  padding: 22px;
}

.mini{
  padding: 18px;
}

.mini h3{
  margin: 0 0 8px;
  font-size: 16px;
}

.mini p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 500px){
  .split{ grid-template-columns: 1fr; }
}

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--brand);
  letter-spacing: .4px;
  background: rgba(47,91,67,.08);
  border: 1px solid rgba(47,91,67,.14);
  padding: 7px 12px;
  border-radius: 999px;
}

.h1{
  margin: 14px 0 10px;
  font-size: clamp(28px, 3.8vw, 44px);
  letter-spacing: -.6px;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn{
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .05s ease;
}

.btn:active{
  transform: translateY(1px);
}

.btn-primary{
  background: var(--brand);
  color: white;
  box-shadow: 0 10px 26px rgba(47,91,67,.22);
}

.btn-ghost{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover{
  background: rgba(0,0,0,.02);
}

/* --- Homepage sections --- */
.differentiation{
  padding: 60px 20px;
  background-color: #f9f7f2;
  text-align: center;
}

.diff-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.diff-item h3{
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.diff-item p{
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

.featured-categories{
  padding: 80px 20px;
  background: #fff;
}

.section-head{
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.eyebrow{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.featured-categories h2{
  margin: 0 0 12px;
}

.section-intro{
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.category-grid{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-card{
  display: block;
  min-height: 220px;
  padding: 28px;
  border: 1px solid rgba(32, 48, 38, 0.1);
  border-radius: 22px;
  background: #f8f5ee;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
  border-color: rgba(32, 48, 38, 0.18);
}

.category-card__content{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.category-card h3{
  margin: 0 0 10px;
}

.category-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px){
  .category-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .featured-categories{
    padding: 64px 20px;
  }

  .category-grid{
    grid-template-columns: 1fr;
  }

  .category-card{
    min-height: 180px;
  }
}

.ingredient-story{
  padding: 84px 20px;
  background: #f8f5ee;
}

.ingredient-story__inner{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.ingredient-story__text h2{
  margin: 0 0 14px;
}

.ingredient-story__lead{
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.ingredient-story__body{
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 58ch;
}

.ingredient-story__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ingredient-tile{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(32, 48, 38, 0.1);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ingredient-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
  border-color: rgba(32, 48, 38, 0.18);
}

.ingredient-tile__name{
  font-weight: 700;
  margin-bottom: 6px;
}

.ingredient-tile__note{
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

@media (max-width: 900px){
  .ingredient-story__inner{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .ingredient-story{
    padding: 68px 20px;
  }

  .ingredient-story__grid{
    grid-template-columns: 1fr;
  }
}

/* --- Featured products on homepage --- */
.featured-products [data-featured-products-grid]{
  max-width: 1100px;
  margin: 0 auto;
}

.featured-products [data-featured-products-grid].products-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.featured-products [data-featured-products-grid] .card.product{
  height: 100%;
}

.featured-products [data-featured-products-grid] .thumb{
  aspect-ratio: 4 / 4.2;
  max-height: 260px;
  overflow: hidden;
}

.featured-products [data-featured-products-grid] .product-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-products [data-featured-products-grid] .thumb-strip{
  display: none;
}

.featured-products__footer{
  max-width: 1100px;
  margin: 24px auto 0;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 980px){
  .featured-products [data-featured-products-grid].products-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- General sections --- */
.section{
  padding: 22px 0 44px;
}

.section h2{
  margin: 0 0 12px;
  font-size: 22px;
}

.section p{
  color: var(--muted);
  line-height: 1.6;
}

.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px){
  .grid{ grid-template-columns: 1fr; }
}

/* --- Category page header --- */
.category-hero{
  padding: 26px 0 10px;
  background: transparent;
}

.category-hero__inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.category-hero__eyebrow{
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.category-hero h1,
#products-title{
  margin: 0 0 10px;
  max-width: 760px;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.category-hero__intro,
#products-intro{
  max-width: 760px;
  margin: 0;
  color: #3f473f;
  font-size: 0.98rem;
  line-height: 1.72;
}

.category-hero__intro p{
  margin: 0 0 12px;
}

.category-hero__intro p:last-child{
  margin-bottom: 0;
}

.category-hero__sub,
#products-sub{
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.category-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.category-actions .btn{
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 999px;
}

.category-divider{
  width: 64px;
  height: 1px;
  margin: 22px 0 0;
  background: rgba(47, 91, 67, 0.22);
  opacity: 1;
}

.products-section,
.products-grid,
[data-products-grid]{
  margin-top: 0;
}

@media (max-width: 640px){
  .category-hero{
    padding: 22px 0 8px;
  }

  .category-hero__inner{
    padding: 0 20px;
  }

  .category-hero__intro,
  #products-intro{
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .category-actions{
    gap: 8px;
    margin-top: 20px;
  }

  .category-actions .btn{
    width: 100%;
    justify-content: center;
  }

  .featured-products [data-featured-products-grid].products-grid{
    grid-template-columns: 1fr;
  }

  .featured-products [data-featured-products-grid] .thumb{
    max-height: 220px;
  }

  .hero-logo{
    width: 150px;
    max-width: 48vw;
  }
}

/* --- Product cards --- */
.product{
  padding: 16px;
}

.product .thumb{
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(47,91,67,.06), rgba(201,181,138,.06));
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product .thumb > .img-protect{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  flex: 0 0 auto;
}

.product .meta{
  padding-top: 12px;
}

.product h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.product .desc{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.product-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  background: #fff;
}

.product-divider{
  height: 1px;
  background: var(--line);
  margin: 14px 0 12px;
  opacity: 0.7;
}

.skin-type-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.skin-type-pill{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(47,91,67,.06);
  color:var(--ink);
  font-size:12px;
}

.card.product{
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card.product:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,0,0,.08);
}

.card.product.is-focus{
  outline: 2px solid rgba(32,48,38,.22);
  box-shadow: 0 18px 36px rgba(0,0,0,.10);
  scroll-margin-top: 140px;
}


/* --- Ingredient card refinement --- */
.ingredient-section{
  margin-top: 14px;
}

.ingredient-section-title{
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.ingredient-list{
  margin: 0;
  padding-left: 16px;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.55;
}

.ingredient-list li{
  margin-bottom: 4px;
}

.ingredient-divider{
  height: 1px;
  background: var(--line);
  margin: 12px 0;
  opacity: 0.6;
}

.ingredient-hero-badge{
  display:inline-block;
  margin-top:6px;
  font-size:10.5px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:3px 8px;
  border-radius:999px;
  background:#eef5ef;
  color:#2f5a3a;
  border:1px solid #dfe8e2;
}

[id^="ing-"]{
  scroll-margin-top: 140px;
}

.ing-link{
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.ing-link:hover{
  text-decoration: underline;
}

/* --- Product tabs --- */
.card-tabs{
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.tab-row{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tab-btn{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}

.tab-btn.is-active{
  background: rgba(32,48,38,.08);
  border-color: rgba(32,48,38,.22);
  font-weight: 700;
}

.tab-panel{
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

.mini-list{
  margin: 0;
  padding-left: 18px;
}

.mini-list li{
  margin: 4px 0;
}

/* --- Price row --- */
.price-row{
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.price{
  font-weight: 700;
  color: var(--ink);
}

.badge{
  font-size: 12px;
  color: var(--brand);
  background: rgba(47,91,67,.08);
  border: 1px solid rgba(47,91,67,.14);
  padding: 5px 10px;
  border-radius: 999px;
}

/* --- Thumbnail gallery --- */
.thumb{
  display: flex;
  flex-direction: column;
}

.thumb-strip{
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  min-height: 56px;
  scrollbar-width: none;
}

.thumb-strip::-webkit-scrollbar{
  display: none;
}

.thumb-strip.is-empty{
  overflow: hidden;
}

.thumb-mini{
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: all .18s ease;
  display: block;
}

.thumb-mini .img-protect{
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
}

.thumb-mini .img-protect img{
  width: 52px;
  height: 52px;
  object-fit: cover;
  display: block;
}

.thumb-mini:hover{
  transform: translateY(-1px);
}

.thumb-mini.is-active{
  border-color: var(--brand);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}

/* --- Blog / Instagram --- */
.blog-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 900px){
  .blog-grid{ grid-template-columns: 1fr; }
}

.blog-card{
  padding: 18px;
}

.blog-meta{
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  align-items: center;
}

.ig-scroll{
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.ig-scroll > *{
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.ig-scroll .instagram-media{
  min-width: 320px;
  margin: 0 !important;
}

/* --- Forms --- */
.form{
  padding: 18px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

label{
  font-size: 13px;
  color: var(--muted);
}

input, textarea, select{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
  outline: none;
  font-size: 14px;
}

textarea{
  min-height: 120px;
  resize: vertical;
}

.notice{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  background: rgba(201,181,138,.15);
  border: 1px solid rgba(201,181,138,.35);
  padding: 12px 14px;
  border-radius: 14px;
}

/* --- Tables --- */
.table{
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.table th,
.table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.table th{
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.table tr:last-child td{
  border-bottom: 0;
}

/* --- Checkout --- */
.checkout-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}

@media (max-width: 940px){
  .checkout-grid{ grid-template-columns: 1fr; }
}

.summary{
  padding: 18px;
}

.summary h3{
  margin: 0 0 10px;
}

.summary .row{
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  color: var(--muted);
}

.summary .row strong{
  color: var(--ink);
}

hr.sep{
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}

.gpay-btn{
  width: 100%;
  justify-content: center;
  background: #000;
  color: #fff;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 700;
  letter-spacing: .2px;
}

.gpay-btn span{
  font-weight: 800;
  margin-left: 6px;
}

/* --- Footer --- */
.footer{
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr; }
}

.small-link a{
  color: var(--brand);
}

/* --- Image protection --- */
.img-protect{
  position: relative;
  display: block;
  width: 100%;
}

.img-protect img{
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.img-protect-overlay{
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: default;
  z-index: 5;
}

.brand-badge .img-protect{
  width: 94%;
  height: 94%;
}

.brand-badge .img-protect img{
  object-fit: contain;
}

.product .img-protect img,
.featured-products [data-featured-products-grid] .img-protect img{
  object-fit: cover;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-search input {
  width: 160px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.site-search button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: white;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-search {
    width: 100%;
  }

  .site-search input {
    width: 100%;
  }
}

.blog-page {
  max-width: 850px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: #7b7b7b;
}

.blog-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.blog-subtitle {
  font-size: 1.2rem;
  color: #666;
}

.blog-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.blog-content p,
.blog-content li {
  line-height: 1.9;
  color: #444;
}

.blog-content ul {
  padding-left: 1.5rem;
}

.blog-disclaimer {
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.guide-hero{
  padding: 30px;
  max-width: 860px;
  margin: 0 auto 24px;
  text-align: center;
}

.guide-hero h1{
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.guide-hero p{
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.75;
}

.guide-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.guide-card{
  min-height: 230px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255,253,248,.98), rgba(246,241,230,.78));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform .18s ease, box-shadow .18s ease;
}

.guide-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,0,0,.08);
}

.guide-card span{
  color: var(--brand);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 700;
}

.guide-card h2{
  margin: 10px 0 8px;
  font-size: 20px;
}

.guide-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.guide-note{
  padding: 24px;
  margin-top: 24px;
}

.guide-note h2{
  margin-top: 0;
}

.guide-note p{
  max-width: 800px;
}

@media (max-width: 900px){
  .guide-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px){
  .guide-grid{
    grid-template-columns: 1fr;
  }
}

.guide-products{
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.guide-products h2{
  margin-bottom: 10px;
}

.guide-products-intro{
  color: var(--muted);
  max-width: 760px;
  line-height: 1.8;
}

.guide-product-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.guide-product-links a{
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.guide-product-links a:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.95);
  border-color: rgba(88,110,88,.28);
}

/* =========================
   GUIDE / BLOG PAGE
========================= */

.blog-page{
  max-width: 920px;
  margin: 0 auto;
  padding:
    clamp(48px, 7vw, 90px)
    clamp(20px, 4vw, 34px)
    90px;
}

.blog-header{
  position: relative;
  padding:
    clamp(34px, 5vw, 52px)
    clamp(24px, 4vw, 42px);
  border-radius: 30px;
  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(255,252,246,.98),
      rgba(244,238,226,.88)
    );

  border: 1px solid rgba(120,120,100,.10);

  box-shadow:
    0 18px 44px rgba(0,0,0,.05);
}

.blog-header::before{
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top right,
      rgba(126,145,114,.10),
      transparent 42%
    );

  pointer-events: none;
}

.blog-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 14px;
  border-radius: 999px;

  background:
    rgba(104,122,92,.10);

  color: var(--brand);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.blog-header h1{
  margin:
    18px 0 14px;

  font-size:
    clamp(2.5rem, 5vw, 4.2rem);

  line-height: .95;
  letter-spacing: -.03em;
}

.blog-subtitle{
  max-width: 720px;

  font-size: 1.08rem;
  line-height: 1.9;

  color: var(--muted);
}

.blog-content{
  margin-top: 40px;

  padding:
    clamp(26px, 4vw, 40px);

  border-radius: 28px;

  background:
    rgba(255,255,255,.78);

  border:
    1px solid rgba(120,120,100,.10);

  box-shadow:
    0 14px 36px rgba(0,0,0,.04);
}

.blog-content h2{
  margin-top: 42px;
  margin-bottom: 12px;

  font-size:
    clamp(1.45rem, 2vw, 1.9rem);

  line-height: 1.2;
}

.blog-content h2:first-child{
  margin-top: 0;
}

.blog-content p{
  margin: 0 0 18px;

  line-height: 1.95;

  color: var(--ink-soft);

  font-size: 1.02rem;
}

.blog-content ul{
  margin:
    18px 0 26px 22px;

  padding: 0;
}

.blog-content li{
  margin-bottom: 12px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.blog-disclaimer{
  margin-top: 30px;

  padding: 18px 22px;

  border-radius: 18px;

  background:
    rgba(110,120,110,.06);

  border:
    1px solid rgba(120,120,100,.08);

  color: var(--muted);

  font-size: .92rem;
  line-height: 1.7;
}

/* =========================
   PRODUCT LINKS
========================= */

.guide-products{
  margin-top: 52px;
  padding-top: 30px;

  border-top:
    1px solid rgba(120,120,100,.10);
}

.guide-products h2{
  margin-bottom: 10px;
}

.guide-products-intro{
  max-width: 720px;

  color: var(--muted);

  line-height: 1.85;
}

.guide-product-links{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 24px;
}

.guide-product-links a{
  display: inline-flex;
  align-items: center;

  padding:
    12px 18px;

  border-radius: 999px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.96),
      rgba(245,241,232,.92)
    );

  border:
    1px solid rgba(120,120,100,.12);

  text-decoration: none;

  color: var(--ink);

  font-weight: 600;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.guide-product-links a:hover{
  transform: translateY(-2px);

  border-color:
    rgba(88,110,88,.22);

  box-shadow:
    0 10px 24px rgba(0,0,0,.05);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 720px){

  .blog-page{
    padding-top: 34px;
  }

  .blog-header{
    border-radius: 24px;
  }

  .blog-content{
    border-radius: 22px;
  }

}

.category-guide-link{
  margin-top: 26px;
  padding: 20px 22px;

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.88),
      rgba(246,241,230,.78)
    );

  border:
    1px solid rgba(120,120,100,.10);

  max-width: 720px;
}

.category-guide-link strong{
  display: block;
  margin-bottom: 8px;

  font-size: 1rem;
}

.category-guide-link p{
  margin: 0 0 14px;

  color: var(--muted);
  line-height: 1.8;
}

.category-guide-link a{
  display: inline-flex;
  align-items: center;

  text-decoration: none;

  color: var(--brand);

  font-weight: 700;
}

.category-guide-link a:hover{
  opacity: .82;
}

/* =========================================================
   CONSOLIDATED PRODUCT + INGREDIENT STYLES
   Stable replacement for previous bottom-of-file overrides.
   Keep this section near the bottom of style.css.
========================================================= */

/* --- Page background consistency --- */
html,
body,
body.products-page,
body.ingredients-page,
body:has([data-ingredients-grid]){
  background: var(--bg) !important;
}

body.products-page .category-hero,
body.products-page .section,
body.ingredients-page .section,
body:has([data-ingredients-grid]) .section{
  background: var(--bg) !important;
}

/* --- Product grid and stacked product cards --- */
.products-grid,
[data-products-grid]{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  margin-top: 18px !important;
}

.card.product,
.products-grid .card.product,
[data-products-grid] .card.product{
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 26px !important;
  border: 1px solid rgba(125,107,76,.22) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(103,114,82,.06), transparent 32%),
    linear-gradient(145deg, rgba(255,253,248,.98), rgba(250,246,238,.96)) !important;
  box-shadow: 0 18px 48px rgba(42,48,38,.09) !important;
}

.card.product:hover{
  transform: translateY(-3px) !important;
  box-shadow: 0 24px 60px rgba(42,48,38,.13) !important;
}

.card.product::before,
.card.product::after{
  display: none !important;
}

/* --- Product image/gallery area --- */
.card.product .thumb,
.product .thumb{
  width: 100% !important;
  padding: 18px !important;
  border: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid rgba(125,107,76,.16) !important;
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, rgba(255,253,248,.9), rgba(246,241,230,.55)) !important;
  display: flex !important;
  flex-direction: column !important;
}

.card.product .thumb > .img-protect,
.product .thumb > .img-protect{
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  max-height: none !important;
  height: auto !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(125,107,76,.18) !important;
  background: #fffdf8 !important;
  box-shadow: 0 12px 26px rgba(42,48,38,.08) !important;
}

.card.product .product-img,
.product-img,
.card.product .thumb > .img-protect img,
.product .thumb > .img-protect img{
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center !important;
}

.thumb-strip{
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: 14px !important;
  min-height: 58px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

.thumb-strip::-webkit-scrollbar{
  display: none !important;
}

.card.product .thumb-mini,
.card.product .thumb-mini .img-protect,
.card.product .thumb-mini .img-protect img,
.thumb-mini,
.thumb-mini .img-protect,
.thumb-mini .img-protect img{
  width: 58px !important;
  height: 58px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

.thumb-mini{
  flex: 0 0 auto !important;
  border-radius: 13px !important;
  border: 1px solid rgba(125,107,76,.22) !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: 0 8px 16px rgba(42,48,38,.05) !important;
}

.thumb-mini.is-active{
  border-color: rgba(102,114,82,.72) !important;
  box-shadow: 0 10px 20px rgba(42,48,38,.12) !important;
}

/* --- Product text area --- */
.card.product .meta,
.product .meta{
  padding: 22px 22px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  color: #2d392f !important;
}

.card.product h3,
.product h3{
  margin: 0 0 8px !important;
  color: #3b2b22 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: clamp(20px, 1.5vw, 24px) !important;
  line-height: 1.04 !important;
  font-weight: 500 !important;
  letter-spacing: -.015em !important;
}

.card.product h3::after,
.product h3::after{
  content: "" !important;
  display: block !important;
  width: 78px !important;
  height: 1px !important;
  margin: 10px 0 15px !important;
  background: linear-gradient(90deg, rgba(185,160,111,.72), rgba(185,160,111,.12), transparent) !important;
}

.card.product .desc,
.product .desc{
  margin: 0 0 12px !important;
  max-width: 58ch !important;
  color: #2d392f !important;
  font-size: 13px !important;
  line-height: 1.68 !important;
}

/* --- Product purchase and variants --- */
.card.product .product-divider,
.product-divider{
  display: block !important;
  height: 1px !important;
  margin: 16px 0 14px !important;
  background: linear-gradient(90deg, rgba(185,160,111,.40), rgba(230,222,206,.72), transparent) !important;
  opacity: 1 !important;
}

.card.product .price-row,
.card.product .gallery-purchase,
.price-row,
.gallery-purchase{
  display: flex !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-top: auto !important;
}

.card.product .gallery-purchase,
.gallery-purchase{
  padding-top: 18px !important;
  border-top: 1px solid rgba(185,160,111,.25) !important;
}

.card.product .variant-select{
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 9px 38px 9px 13px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(125,107,76,.24) !important;
  background: rgba(255,255,255,.86) !important;
  color: var(--ink) !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
  text-overflow: unset !important;
  font-size: 13px !important;
}

.card.product .price,
.card.product .gallery-purchase .price,
.gallery-purchase .price,
.price{
  flex: 1 1 auto !important;
  min-width: 86px !important;
  display: block !important;
  color: #33261d !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: clamp(22px, 2vw, 30px) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.product-size-note{
  margin-top: 4px !important;
  color: #7b6e5e !important;
  font-size: 12.5px !important;
}

.card.product .price-row .btn-primary,
.card.product .gallery-purchase .btn-primary,
.card.product [data-add],
.btn-primary[data-add]{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-height: 40px !important;
  min-width: 118px !important;
  max-width: 100% !important;
  padding: 10px 16px !important;
  border-radius: 14px !important;
  background: #2f5b43 !important;
  border: 1px solid rgba(47,91,67,.75) !important;
  color: #fffdf8 !important;
  box-shadow: 0 8px 20px rgba(47,91,67,.16) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  white-space: nowrap !important;
}

.card.product .price-row .btn-primary:hover,
.card.product .gallery-purchase .btn-primary:hover,
.card.product [data-add]:hover{
  background: #284f3a !important;
}

/* --- Product sketch badges --- */
.product-sketch-badges{
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(185,160,111,.25) !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0 !important;
}

.product-sketch-badge{
  min-height: 74px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  color: #25382e !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  text-align: center !important;
}

.product-sketch-badge + .product-sketch-badge{
  border-left: 1px solid rgba(185,160,111,.24) !important;
}

.sketch-icon{
  position: relative !important;
  width: 30px !important;
  height: 30px !important;
  display: inline-block !important;
  opacity: .9 !important;
}

/* preserve existing sketch drawings from earlier rules */

/* --- Product accordions / tabs --- */
.card-tabs,
.product-education-tabs{
  margin-top: 18px !important;
  padding-top: 0 !important;
  border-top: 1px solid rgba(185,160,111,.28) !important;
}

.tab-row{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

.card.product .tab-btn,
.tab-btn{
  flex: 1 1 100% !important;
  min-height: 38px !important;
  padding: 9px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(185,160,111,.22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #4b5b46 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: clamp(14px, .95vw, 18px) !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.card.product .tab-btn::after,
.tab-btn::after{
  content: "⌄" !important;
  color: rgba(70,85,60,.72) !important;
  font-size: 14px !important;
}

.card.product .tab-btn.is-active::after,
.tab-btn.is-active::after{
  transform: rotate(180deg) !important;
}

.card.product .tab-panel,
.tab-panel{
  display: none !important;
  color: #4a544c !important;
  font-size: 12.5px !important;
  line-height: 1.68 !important;
  padding: 10px 0 16px !important;
}

.card.product .tab-panel.is-open,
.tab-panel.is-open{
  display: block !important;
}

.mini-list{
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.mini-list li{
  position: relative !important;
  margin: 0 0 9px !important;
  padding-left: 24px !important;
  color: #4e5d53 !important;
  line-height: 1.65 !important;
}

.mini-list li::before{
  content: "🌿" !important;
  position: absolute !important;
  left: 0 !important;
  top: .03em !important;
  font-size: 13px !important;
  opacity: .82 !important;
}

.card.product .ingredient-links{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.card.product .ing-link,
.product .ing-link{
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(185,160,111,.28) !important;
  background: linear-gradient(145deg, rgba(255,253,248,.96), rgba(246,241,230,.72)) !important;
  color: #46533f !important;
  font-family: "Inter", "Avenir Next", "Segoe UI", system-ui, sans-serif !important;
  font-size: 11.5px !important;
  line-height: 1.1 !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(42,48,38,.035) !important;
}

.card.product .ing-link:hover,
.product .ing-link:hover{
  border-color: rgba(47,91,67,.30) !important;
  color: #2f5b43 !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

/* --- Featured homepage product cards stay compact --- */
.featured-products [data-featured-products-grid].products-grid,
.featured-products [data-featured-products-grid]{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1100px !important;
}

.featured-products [data-featured-products-grid] .gallery-purchase,
.featured-products [data-featured-products-grid] .product-sketch-badges,
.featured-products [data-featured-products-grid] .card-tabs{
  display: none !important;
}

.featured-products [data-featured-products-grid] .card.product{
  padding: 16px !important;
  border-radius: 22px !important;
}

.featured-products [data-featured-products-grid] .product .thumb{
  padding: 0 !important;
  border-bottom: 0 !important;
}

.featured-products [data-featured-products-grid] .product .thumb > .img-protect{
  aspect-ratio: 1 / 1 !important;
  max-height: none !important;
}

.featured-products [data-featured-products-grid] .product .meta{
  padding: 14px 0 0 !important;
}

.featured-products [data-featured-products-grid] .product h3{
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--heading) !important;
}

.featured-products [data-featured-products-grid] .product h3::after{
  display: none !important;
}

/* --- Product card responsiveness --- */
@media (min-width: 1181px){
  .products-grid,
  [data-products-grid]{
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important;
  }

  .card.product h3,
  .product h3{
    font-size: clamp(18px, 1.5vw, 24px) !important;
  }
}

@media (max-width: 1180px){
  .card.product .price-row,
  .card.product .gallery-purchase,
  .price-row,
  .gallery-purchase{
    flex-direction: column !important;
  }

  .card.product .price,
  .card.product .price-row .btn-primary,
  .card.product .gallery-purchase .btn-primary,
  .card.product [data-add]{
    width: 100% !important;
  }

  .card.product .price{
    text-align: left !important;
  }
}

@media (max-width: 980px){
  .featured-products [data-featured-products-grid].products-grid,
  .featured-products [data-featured-products-grid]{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px){
  .products-grid,
  [data-products-grid],
  .featured-products [data-featured-products-grid].products-grid,
  .featured-products [data-featured-products-grid]{
    grid-template-columns: 1fr !important;
  }

  .card.product h3,
  .product h3{
    font-size: 26px !important;
  }

  .product .thumb{
    padding: 16px !important;
  }

  .product .meta{
    padding: 20px 18px 18px !important;
  }

  .product-sketch-badges{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .product-sketch-badge{
    min-height: auto !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 0 4px !important;
  }

  .product-sketch-badge + .product-sketch-badge{
    border-left: 0 !important;
    border-top: 1px solid rgba(185,160,111,.22) !important;
    padding-top: 12px !important;
  }
}

/* --- Ingredient cards --- */
[data-ingredients-grid]{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
  margin-top: 18px !important;
}

[data-ingredients-grid] .card.product{
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 28px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(190,170,125,.22) !important;
  background: linear-gradient(145deg, rgba(255,252,246,.96), rgba(247,243,234,.96)) !important;
  box-shadow: 0 12px 32px rgba(42,48,38,.07) !important;
  transform: none !important;
  overflow: hidden !important;
}

[data-ingredients-grid] .card.product:hover{
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 42px rgba(42,48,38,.10) !important;
}

[data-ingredients-grid] .card.product .meta{
  display: block !important;
  padding: 0 !important;
  flex: initial !important;
}

[data-ingredients-grid] .card.product h3,
[data-ingredients-grid] .product h3,
[data-ingredients-grid] h3{
  color: #2f5b43 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: clamp(19px, 1.4vw, 24px) !important;
  line-height: 1.06 !important;
  font-weight: 500 !important;
  letter-spacing: -.012em !important;
  margin: 0 0 14px !important;
}

[data-ingredients-grid] h3::after{
  content: "" !important;
  display: block !important;
  width: 46px !important;
  height: 1px !important;
  margin: 9px 0 0 !important;
  background: linear-gradient(90deg, rgba(185,160,111,.65), transparent) !important;
}

[data-ingredients-grid] .card.product .badge{
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 220px !important;
  padding: 6px 12px !important;
  margin: 0 8px 10px 0 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(155,135,92,.24) !important;
  background: linear-gradient(145deg, rgba(248,245,236,.98), rgba(232,228,214,.92)) !important;
  color: #4b5b4f !important;
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: .03em !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 1px 2px rgba(0,0,0,.03) !important;
}

[data-ingredients-grid] .card.product .ingredient-hero-badge{
  display: inline-flex !important;
  width: fit-content !important;
  padding: 6px 12px !important;
  margin: 0 8px 10px 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, rgba(240,248,241,.98), rgba(224,237,226,.92)) !important;
  border: 1px solid rgba(47,91,67,.18) !important;
  color: #2f5b43 !important;
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
}

[data-ingredients-grid] .ingredient-usedin{
  margin: 8px 0 6px !important;
  padding: 0 !important;
  text-align: left !important;
  font-size: 12.8px !important;
  line-height: 1.4 !important;
  color: #5a665d !important;
}

[data-ingredients-grid] .card.product .desc,
[data-ingredients-grid] .product .desc,
[data-ingredients-grid] .desc{
  margin-top: 6px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(185,160,111,.12) !important;
  color: #35443a !important;
  font-size: 13px !important;
  line-height: 1.72 !important;
}

[data-ingredients-grid] .ingredient-section{
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(185,160,111,.18) !important;
}

[data-ingredients-grid] .ingredient-section-title{
  margin: 0 0 8px !important;
  color: #647160 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
}

[data-ingredients-grid] .ingredient-list{
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  color: #4e5d53 !important;
  font-size: 12.8px !important;
  line-height: 1.68 !important;
}

[data-ingredients-grid] .ingredient-list li{
  position: relative !important;
  margin: 0 0 7px !important;
  padding-left: 22px !important;
}

[data-ingredients-grid] .ingredient-list li::before{
  content: "•" !important;
  position: absolute !important;
  left: 4px !important;
  color: #2f5b43 !important;
}

[data-ingredients-grid] .ingredient-usedin + .ingredient-divider,
[data-ingredients-grid] .ingredient-usedin + hr,
[data-ingredients-grid] .price-row,
[data-ingredients-grid] .gallery-purchase,
[data-ingredients-grid] .product-divider,
[data-ingredients-grid] .product-sketch-badges,
[data-ingredients-grid] .thumb{
  display: none !important;
}

@media (max-width: 640px){
  [data-ingredients-grid]{
    grid-template-columns: 1fr !important;
  }

  [data-ingredients-grid] .card.product{
    padding: 24px 22px 22px !important;
    border-radius: 22px !important;
  }
}

/* --- Product values strip --- */
.product-values-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 28px 0 8px;
  padding: 22px 0;
  border-top: 1px solid rgba(185,160,111,.28);
  border-bottom: 1px solid rgba(185,160,111,.18);
  color: #2f3e34;
}

.product-values-strip--hero{
  max-width: 920px;
}

.product-value-item{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 22px;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: clamp(17px, 1.2vw, 22px);
  line-height: 1.2;
  text-align: left;
  color: #334136;
}

.product-value-item + .product-value-item{
  border-left: 1px solid rgba(185,160,111,.28);
}

.value-icon{
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  opacity: .9;
}

.product-value-item img.value-icon{
  filter: brightness(0) saturate(100%) invert(39%) sepia(12%) saturate(537%) hue-rotate(51deg) brightness(95%) contrast(87%);
}

@media (max-width: 760px){
  .product-values-strip{
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }

  .product-value-item:nth-child(odd){
    border-left: 0;
  }
}

@media (max-width: 520px){
  .product-values-strip{
    grid-template-columns: 1fr;
  }

  .product-value-item{
    justify-content: flex-start;
    border-left: 0 !important;
    border-top: 1px solid rgba(185,160,111,.18);
    padding: 16px 4px 0;
  }

  .product-value-item:first-child{
    border-top: 0;
  }
}

/* =========================================================
   FINAL STABLE OVERRIDES
   Purpose:
   - keep product card header/title/pill alignment stable
   - support current product tabs using data-show/data-panel
   - support ingredient card pull-down tabs
   - normalize product/ingredient page typography
   Keep this as the final section of style.css.
========================================================= */

/* --- Header/menu typography consistency --- */
body.products-page .top-announcement,
body.ingredients-page .top-announcement{
  font-size: 13px !important;
}

body.products-page .brand-title strong,
body.ingredients-page .brand-title strong{
  font-size: 14px !important;
  line-height: 1.1 !important;
}

body.products-page .brand-title span,
body.ingredients-page .brand-title span{
  font-size: 12px !important;
  line-height: 1.1 !important;
}

body.products-page .menu a,
body.products-page .menu .dropbtn,
body.products-page .dropdown-content a,
body.ingredients-page .menu a,
body.ingredients-page .menu .dropbtn,
body.ingredients-page .dropdown-content a{
  font-size: 14px !important;
  line-height: 1.25 !important;
}

body.products-page .site-search input,
body.products-page .site-search button,
body.products-page .cart-pill,
body.ingredients-page .site-search input,
body.ingredients-page .site-search button,
body.ingredients-page .cart-pill{
  font-size: 13px !important;
  line-height: 1.25 !important;
}

/* --- Product card title + category pill alignment --- */
.card.product .meta > div:first-child{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 14px !important;
}

.card.product h3,
.product h3{
  color: var(--brand) !important;
}

.card.product .meta > div:first-child h3,
.product .meta > div:first-child h3{
  margin: 0 !important;
}

.card.product .meta > div:first-child h3::after,
.product .meta > div:first-child h3::after{
  margin: 10px 0 0 !important;
}

.card.product .meta > div:first-child .badge,
.product .meta > div:first-child .badge{
  justify-self: end !important;
  align-self: start !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
  border-radius: 999px !important;
  padding: 7px 13px !important;
  color: var(--brand) !important;
  background: rgba(47,91,67,.06) !important;
  border: 1px solid rgba(47,91,67,.16) !important;
  font-family: "Inter", "Avenir Next", "Segoe UI", system-ui, sans-serif !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
}

@media (max-width: 520px){
  .card.product .meta > div:first-child{
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .card.product .meta > div:first-child .badge,
  .product .meta > div:first-child .badge{
    justify-self: start !important;
  }
}

/* --- Product tabs: current app.js uses data-show/data-panel --- */
.card.product .tab-row{
  display: block !important;
  margin-bottom: 0 !important;
}

.card.product .tab-btn[data-show]{
  width: 100% !important;
  min-height: 42px !important;
  padding: 10px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(185,160,111,.22) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #4b5b46 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: left !important;
}

.card.product .tab-btn[data-show]::after{
  content: "⌄" !important;
  color: rgba(70,85,60,.72) !important;
  font-size: 14px !important;
}

.card.product .tab-btn[data-show].is-active::after{
  transform: rotate(180deg) !important;
}

.card.product .tab-panel[data-panel]{
  display: none !important;
  padding: 10px 0 16px !important;
  border-bottom: 1px solid rgba(185,160,111,.18) !important;
  color: #4a544c !important;
  font-size: 12.5px !important;
  line-height: 1.68 !important;
}

.card.product .tab-panel[data-panel].is-open{
  display: block !important;
}

.card.product .tab-body{
  display: block !important;
}

/* --- Ingredient page/card typography --- */
body.ingredients-page .section{
  background: var(--bg) !important;
}

body.ingredients-page .section > .container > .card:first-child h2{
  color: var(--heading) !important;
  font-size: 22px !important;
  line-height: 1.2 !important;
  margin: 0 0 12px !important;
}

body.ingredients-page .section > .container > .card:first-child p{
  font-size: 14px !important;
  line-height: 1.6 !important;
}

body.ingredients-page [data-ingredients-grid] .card.product h3{
  color: var(--brand) !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: clamp(20px, 1.45vw, 25px) !important;
  line-height: 1.06 !important;
  font-weight: 500 !important;
  letter-spacing: -.015em !important;
}

body.ingredients-page [data-ingredients-grid] .card.product .desc{
  font-size: 13px !important;
  line-height: 1.68 !important;
  color: #2d392f !important;
}

/* --- Ingredient card tabs --- */
[data-ingredients-grid] .ingredient-card-tabs{
  margin-top: 14px !important;
  border-top: 1px solid rgba(185,160,111,.18) !important;
}

[data-ingredients-grid] .ingredient-card-tab-item{
  border-bottom: 1px solid rgba(185,160,111,.18) !important;
}

[data-ingredients-grid] .ingredient-card-tab-btn{
  width: 100% !important;
  min-height: 42px !important;
  padding: 10px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  color: #4b5b46 !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif !important;
  font-size: clamp(15px, 1vw, 18px) !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  text-align: left !important;
  cursor: pointer !important;
}

[data-ingredients-grid] .ingredient-card-tab-btn::after{
  content: "⌄" !important;
  color: rgba(70,85,60,.72) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  transition: transform .18s ease !important;
}

[data-ingredients-grid] .ingredient-card-tab-btn.is-active::after{
  transform: rotate(180deg) !important;
}

[data-ingredients-grid] .ingredient-card-tab-panel{
  display: none !important;
  padding: 2px 0 16px !important;
  color: #4a544c !important;
  font-size: 12.8px !important;
  line-height: 1.68 !important;
}

[data-ingredients-grid] .ingredient-card-tab-panel.is-open{
  display: block !important;
}

[data-ingredients-grid] .ingredient-card-tab-panel .ingredient-list{
  margin-top: 4px !important;
}

[data-ingredients-grid] .ingredient-card-tab-panel .ingredient-usedin{
  margin: 4px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: left !important;
  color: #526158 !important;
  font-size: 12.8px !important;
  line-height: 1.55 !important;
}

[data-ingredients-grid] .ingredient-card-tab-panel,
[data-ingredients-grid] .ingredient-list,
[data-ingredients-grid] .ingredient-usedin{
  font-size: 12.8px !important;
  line-height: 1.65 !important;
}

[data-ingredients-grid] .badge,
[data-ingredients-grid] .ingredient-hero-badge{
  font-size: 10.5px !important;
  line-height: 1.2 !important;
}

[data-ingredients-grid] .ingredient-divider{
  display: none !important;
}

[data-ingredients-grid] .ingredient-actions{
  margin-top: 16px !important;
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
