/* =========================================================
   BIOFOLKI — theme layer (on top of Origins)
   ========================================================= */
:root {
  --bf-olive: #56662a;
  --bf-olive-dark: #3b4719;
  --bf-olive-soft: #eef0e2;
  --bf-honey: #c7872c;
  --bf-honey-dark: #ad7322;
  --bf-honey-soft: #f8ecd8;
  --bf-cream: #faf6ef;
  --bf-sand: #f1e8da;
  --bf-ink: #2a2017;
  --bf-muted: #7b6f62;
  --bf-line: #e8dfd1;
  --bf-sale: #b5482b;
  --bf-wa: #1fa855;
  --bf-shadow: 0 14px 34px -14px rgba(60, 45, 25, .28);
  --bf-shadow-sm: 0 4px 14px -6px rgba(60, 45, 25, .18);
  --bf-head: "El Messiri", var(--font-family);
}

body { background: var(--bf-cream); color: var(--bf-ink); }
body yc-section { --section-bg-color: var(--bf-cream); }
h1, h2, h3, .bf-title, yc-section-head .title, .product-title, .single-product h1 { font-family: var(--bf-head) !important; }

/* ---------- buttons ---------- */
.bf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--bf-olive); color: #fff !important; font-weight: 700; font-size: 16px;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  box-shadow: 0 10px 22px -12px rgba(86, 102, 42, .9);
  transition: background .2s, transform .15s;
}
.bf-btn:hover { background: var(--bf-olive-dark); transform: translateY(-1px); }
.bf-btn .bf-icon { width: 20px; height: 20px; }
.bf-btn--wa { background: var(--bf-wa); box-shadow: 0 10px 22px -12px rgba(31, 168, 85, .9); }
.bf-btn--wa:hover { background: #178c46; }
.bf-btn--block { width: 100%; }
.bf-icon { width: 1em; height: 1em; flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* ---------- shared heads ---------- */
.bf-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.bf-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--bf-olive); font-weight: 700; font-size: 15px; margin: 0 0 8px; }
.bf-eyebrow .bf-icon { width: 18px; height: 18px; }
.bf-title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; color: var(--bf-olive-dark); margin: 0 0 10px; font-weight: 700; }
.bf-text { color: #5b5045; font-size: 17px; line-height: 1.8; margin: 0; }
yc-section-head .title { color: var(--bf-olive-dark) !important; font-size: clamp(26px, 3.2vw, 36px) !important; font-weight: 700 !important; }
yc-section-head .description { color: var(--bf-muted) !important; font-size: 16px !important; }

/* ---------- hero ---------- */
.bf-hero { position: relative; overflow: hidden; background: #ece4d8; }
.bf-hero__slides { position: relative; }
.bf-hero__slide { display: block; position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.bf-hero__slide.is-active { position: relative; opacity: 1; pointer-events: auto; }
.bf-hero__slide img { width: 100%; height: auto; aspect-ratio: 2659 / 1250; object-fit: cover; display: block; }
.bf-hero__cta { position: absolute; z-index: 2; left: 14%; bottom: 20%; }
.bf-hero__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.bf-hero__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(59, 71, 25, .3); cursor: pointer; transition: width .3s, background .3s; }
.bf-hero__dots button.is-active { width: 28px; background: var(--bf-olive); }

/* ---------- trust bar ---------- */
.bf-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bf-trust__item { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--bf-line); border-radius: 16px; }
.bf-trust__icon { width: 50px; height: 50px; border-radius: 50%; background: var(--bf-olive-soft); color: var(--bf-olive); display: grid; place-items: center; flex-shrink: 0; }
.bf-trust__icon .bf-icon { width: 24px; height: 24px; }
.bf-trust__item strong { display: block; font-size: 16px; color: var(--bf-ink); }
.bf-trust__item span { display: block; color: var(--bf-muted); font-size: 14px; }

/* ---------- story ---------- */
.bf-story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1180px; margin: 0 auto; }
.bf-story__media { position: relative; }
.bf-story__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 26px; box-shadow: var(--bf-shadow); display: block; }
.bf-story__badge { position: absolute; bottom: -22px; left: -18px; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--bf-shadow); display: flex; align-items: center; gap: 12px; max-width: 240px; }
.bf-story__badge strong { font-family: var(--bf-head); font-size: 30px; color: var(--bf-olive); line-height: 1; }
.bf-story__badge span { font-size: 13px; color: var(--bf-muted); line-height: 1.4; }
.bf-story__content .bf-text { margin-bottom: 18px; }
.bf-checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.bf-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; }
.bf-checks .bf-icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--bf-olive-soft); color: var(--bf-olive); }

/* ---------- promo ---------- */
.bf-promo { display: block; border-radius: 26px; overflow: hidden; box-shadow: var(--bf-shadow); max-width: 1180px; margin: 0 auto; }
.bf-promo img { width: 100%; height: auto; display: block; }

/* ---------- features ---------- */
.bf-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1180px; margin: 0 auto; }
.bf-feature { background: #fff; border-radius: 18px; padding: 30px 22px; text-align: center; box-shadow: var(--bf-shadow-sm); transition: transform .25s, box-shadow .25s; }
.bf-feature:hover { transform: translateY(-4px); box-shadow: var(--bf-shadow); }
.bf-feature__icon { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%; background: var(--bf-honey-soft); color: var(--bf-honey); display: grid; place-items: center; }
.bf-feature__icon .bf-icon { width: 30px; height: 30px; }
.bf-feature h3 { font-size: 19px; margin: 0 0 6px; color: var(--bf-ink); }
.bf-feature p { color: var(--bf-muted); font-size: 15px; margin: 0; line-height: 1.7; }

/* ---------- FAQ ---------- */
.bf-faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.bf-faq details { background: #fff; border: 1px solid var(--bf-line); border-radius: 14px; overflow: hidden; }
.bf-faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bf-faq summary::-webkit-details-marker { display: none; }
.bf-faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--bf-olive); transition: transform .2s; }
.bf-faq details[open] summary::after { transform: rotate(45deg); }
.bf-faq details p { padding: 0 22px 18px; margin: 0; color: #5b5045; font-size: 15px; line-height: 1.8; }

/* ---------- CTA ---------- */
.bf-cta {
  max-width: 1180px; margin: 0 auto; border-radius: 28px; padding: 48px;
  background: linear-gradient(120deg, var(--bf-olive-dark), var(--bf-olive)); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; overflow: hidden;
}
.bf-cta::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .06); left: -90px; top: -130px; }
.bf-cta > * { position: relative; }
.bf-cta h2 { color: #fff; font-size: clamp(22px, 3vw, 32px); margin: 0 0 6px; }
.bf-cta p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 16px; }

/* ---------- product cards ---------- */
body .product-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--bf-shadow-sm); transition: transform .25s, box-shadow .25s; }
body .product-card:hover { transform: translateY(-5px); box-shadow: var(--bf-shadow); }
body .product-card .img-link img { transition: transform .5s; }
body .product-card:hover .img-link img { transform: scale(1.04); }
body .product-card .info { padding: 14px 16px 18px; }
body .product-card .info .title { font-family: var(--bf-head); font-weight: 700; font-size: 17px; color: var(--bf-ink); }
body .product-card .price .current { color: var(--bf-olive-dark); font-weight: 800; font-size: 18px; }
body .product-card .price .compare-at { color: #a2978b; }
body .product-card .badge span, body .bf-sale-badge span { background: var(--bf-sale) !important; color: #fff !important; border-radius: 999px !important; font-weight: 800; }
body .product-card .yc-btn { border-radius: 999px; }
body .product-card .yc-btn.secondary {
  background: var(--bf-olive) !important; color: #fff !important; border-color: var(--bf-olive) !important; font-weight: 700;
}
body .product-card .yc-btn.secondary:hover { background: var(--bf-olive-dark) !important; }

/* product grids: 3 / 3 / 2 columns (Origins defaults to 2 / 1) */
body .items-grid { grid-template-columns: repeat(var(--items-columns, 3), minmax(0, 1fr)) !important; gap: 24px; }
@media (max-width: 1024px) { body .items-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 16px; } }
@media (max-width: 768px) {
  body .items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  body .product-card .info { padding: 10px 10px 12px; }
  body .product-card .info .title { font-size: 14px; line-height: 1.5; }
  body .product-card .price .current { font-size: 15px; }
  body .product-card .price .compare-at { font-size: 12px; }
  body .product-card .yc-btn { font-size: 13px; padding: 8px 6px; min-height: 38px; }
}

/* variants (weight chips) */
body yc-variant { --variant-text-color: var(--bf-olive) !important; }

/* ---------- product page ---------- */
.single-product .product-title, .single-product h1 { color: var(--bf-ink); }
.single-product .price .current, .single-product .product-price .current { color: var(--bf-olive-dark) !important; font-weight: 800; }
.bf-product-wa { margin-top: 12px; }
.bf-product-trust { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bf-product-trust li { display: flex; align-items: center; gap: 8px; background: var(--bf-olive-soft); color: var(--bf-olive-dark); border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.bf-product-trust .bf-icon { width: 20px; height: 20px; }

/* ---------- announcement / header / footer ---------- */
#youcan-section--announcement-bar { --announcement-bar-background-color: 59, 71, 25 !important; --announcement-bar-foreground-color: 242, 239, 226 !important; }
#youcan-section--header { box-shadow: 0 1px 0 var(--bf-line); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .bf-trust { grid-template-columns: repeat(2, 1fr); }
  .bf-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .bf-hero__slide img { aspect-ratio: 3 / 4; }
  .bf-hero__cta { left: 50%; transform: translateX(-50%); bottom: 48px; }
  .bf-trust { gap: 10px; }
  .bf-trust__item { flex-direction: column; text-align: center; gap: 8px; padding: 14px 8px; }
  .bf-trust__icon { width: 42px; height: 42px; }
  .bf-trust__item strong { font-size: 14px; }
  .bf-trust__item span { font-size: 12px; }
  .bf-story { grid-template-columns: 1fr; gap: 40px; }
  .bf-story__badge { left: 10px; bottom: -16px; }
  .bf-features { gap: 12px; }
  .bf-feature { padding: 20px 12px; }
  .bf-feature h3 { font-size: 16px; }
  .bf-feature p { font-size: 13px; }
  .bf-feature__icon { width: 54px; height: 54px; }
  .bf-promo { border-radius: 18px; }
  .bf-cta { flex-direction: column; text-align: center; padding: 34px 22px; }
  .bf-product-trust { grid-template-columns: 1fr 1fr; }
  .bf-product-trust li { font-size: 13px; }
}
