/*
 * Balance of Nature — base.css
 * Tokens, reset, typography, buttons, shell (promo bar / header / search / drawer / footer).
 * Owned by theme-home.
 */

:root {
  --green-dark: #0a2112;
  --green: #517225;
  --green-light: #f0f7e0;
  --red: #dd1d1d;
  --text: #121212;
  --text-strong: #2e2a39;
  --text-body: #2d2d2d;
  --cream: #f5f1e8;
  --gray: #f8f8f8;
  --gray-card: #f7f9fd;
  --white: #fff;
  --footer-bg: #517225;
  --page-max: 1400px;
  --page-pad: 50px;
  --promo-height: 50px;
  --header-height: 85px;
  --radius-btn: 8px;
  --font: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --promo-half-gap: 50px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: rgba(46, 42, 57, 0.9);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
}

img,
video {
  height: auto;
  vertical-align: bottom;
}

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

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: 0.78px;
}

strong,
b {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
 * Utilities
 * ------------------------------------------------------------------------ */

.page-width {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

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

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  margin: 0;
  clip: auto;
  background: var(--green);
  color: var(--white);
  z-index: 999;
}

/* --------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------ */

.button,
.bon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--green);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.button:hover,
.bon-button:hover {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
 * Promo ticker
 * ------------------------------------------------------------------------ */

.promo-bar {
  position: relative;
  z-index: 40;
  overflow: hidden;
  padding: 16px 0;
  background: var(--green);
  color: var(--white);
}

.promo-bar__track {
  display: flex;
  column-gap: 100px;
  width: max-content;
  animation: bon-promo-marquee 150s linear infinite;
  will-change: transform;
}

.promo-bar__group {
  display: flex;
  column-gap: 100px;
}

.promo-bar__item {
  margin: 0;
  color: var(--white);
  font-size: 18px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.96px;
  white-space: nowrap;
}

@keyframes bon-promo-marquee {
  to {
    transform: translateX(calc(-50% - var(--promo-half-gap)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-bar__track {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------ */

.site-header {
  position: relative;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 84px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.site-header__brand {
  display: flex;
  flex: 0 0 260px;
  width: 260px;
  align-items: center;
}

.site-header__brand-link {
  display: block;
  margin-left: -7px;
}

.site-header__logo {
  display: block;
  width: 260px;
  max-width: 260px;
  height: 30px;
  object-fit: contain;
}

.site-nav {
  margin-left: 13px;
  align-self: center;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav__link {
  display: flex;
  align-items: center;
  padding: 12px;
  color: rgba(18, 18, 18, 0.9);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.96px;
  white-space: nowrap;
}

.site-nav__pill {
  display: inline-block;
  padding: 0 9.8px;
  background: var(--green);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.header-icons {
  display: flex;
  flex: 0 0 120px;
  align-items: center;
  width: 120px;
  margin-left: auto;
}

.header-icons .header-icon {
  flex: 0 0 44px;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.header-icon__svg {
  width: 20px;
  height: 20px;
}

.header-icon__svg--cart {
  width: 22px;
  height: 22px;
}

.header-icon--menu {
  display: none;
}

.header-cart__count {
  position: absolute;
  top: 4px;
  right: 2px;
  display: none;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  letter-spacing: 0;
  text-align: center;
}

.header-cart__count:not([data-count="0"]) {
  display: block;
}

/* --------------------------------------------------------------------------
 * Search overlay
 * ------------------------------------------------------------------------ */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.search-overlay[hidden] {
  display: none;
}

.search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.search-overlay__panel {
  position: absolute;
  top: var(--promo-height);
  left: 0;
  width: 100%;
  height: 86px;
  background: var(--white);
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}

.search-overlay__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.search-form {
  position: relative;
  width: 100%;
  max-width: 742px;
  height: 47px;
}

.search-form__label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: rgba(18, 18, 18, 0.9);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.06em;
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, transform 0.15s ease;
}

.search-form:focus-within .search-form__label,
.search-form.has-value .search-form__label {
  top: 5px;
  transform: none;
  font-size: 11px;
}

.search-form__input {
  width: calc(100% - 2px);
  height: 45px;
  margin: 1px;
  padding: 15px 50px 15px 20px;
  border: 1px solid rgba(18, 18, 18, 0.55);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  outline: none;
}

.search-form__input::-webkit-search-cancel-button {
  display: none;
}

.search-form:focus-within .search-form__input {
  border-color: rgba(18, 18, 18, 0.75);
}

.search-form__submit {
  position: absolute;
  top: 1px;
  right: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text);
}

.search-form__icon {
  width: 18px;
  height: 18px;
}

.search-overlay__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 5px;
  color: var(--text);
}

.search-overlay__close-icon {
  width: 17px;
  height: 17px;
}

/* --------------------------------------------------------------------------
 * Mobile drawer
 * ------------------------------------------------------------------------ */

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 130;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.is-open .mobile-drawer__overlay {
  opacity: 1;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 350px;
  max-width: 90vw;
  height: 100%;
  background: var(--white);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5px 10px 20px;
}

.mobile-drawer__title {
  font-size: 22.1px;
  line-height: 1.23;
  color: var(--text);
}

.mobile-drawer__list {
  padding: 8px 0;
}

.mobile-drawer__link {
  display: block;
  padding: 9px 20px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.3;
}

.mobile-drawer__footer {
  padding: 12px 20px 30px;
}

.mobile-drawer__account {
  display: inline-block;
  padding: 12px;
  margin-left: -12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.23;
}

body.bon-drawer-open,
body.bon-search-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */

.footer-divider {
  position: relative;
  height: 60px;
  margin: 0;
  background: var(--white);
  overflow: hidden;
}

.footer-divider__svg {
  display: block;
  width: 100%;
  height: 60px;
  color: var(--green);
}

.footer-divider__layer use {
  fill: currentColor;
}

.footer-divider__layer--1 {
  opacity: 1;
}

.footer-divider__layer--2 {
  opacity: 0.4;
}

.footer-divider__layer--3 {
  opacity: 0.3;
}

.footer-divider__layer--4 {
  opacity: 0.2;
}

.site-footer {
  background: var(--green);
  color: rgba(255, 255, 255, 0.9);
  padding: 32px 0 16px;
  font-size: 16px;
  line-height: 1.8;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -20px 46px;
  row-gap: 30px;
}

.footer__block {
  width: 33.3333%;
  padding: 0 20px;
  margin-bottom: 30px;
}

.footer__block--logo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer__logo {
  display: block;
  width: 350px;
  max-width: 100%;
  height: 41px;
  object-fit: fill;
  border-radius: 12px;
}

.footer__heading {
  margin: 0 0 20px;
  color: var(--white);
  font-size: 23.4px;
  font-weight: 700;
  line-height: 28.8px;
  letter-spacing: 0.78px;
}

.footer__menu-item {
  margin: 0;
}

.footer__link {
  display: inline-block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.96px;
}

.footer__link:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer__newsletter-text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.newsletter-form__field {
  position: relative;
}

.newsletter-form__label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.06em;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.newsletter-form.has-value .newsletter-form__label,
.newsletter-form:focus-within .newsletter-form__label {
  opacity: 0;
}

.newsletter-form__input {
  width: calc(100% - 2px);
  height: 45px;
  margin: 1px;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  outline: none;
}

.newsletter-form:focus-within .newsletter-form__input {
  border-color: rgba(255, 255, 255, 0.9);
}

.newsletter-form__submit {
  width: 100%;
  margin-top: 10px;
  min-height: 49px;
  background: var(--white);
  color: var(--green);
}

.newsletter-form__message {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--white);
}

.newsletter-form__message:empty {
  display: none;
}

.newsletter-form__message.is-error {
  color: #ffdada;
}

.footer__block--disclaimer {
  width: 100%;
  margin-bottom: 0;
}

.footer__block--disclaimer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  text-align: center;
}

.footer__payment {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.bon-payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: -5px;
  padding: 0;
  list-style: none;
}

.bon-payment-icons__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 34px;
  padding: 5px;
}

.bon-payment-icons__item svg {
  display: block;
  width: 38px;
  height: 24px;
  border-radius: 3px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.footer__copyright {
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.7px;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.7px;
}

.footer__legal-links li {
  display: flex;
  align-items: center;
}

.footer__legal-links li::before {
  content: "·";
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.9);
}

.footer__legal-link {
  display: inline-block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.9);
}

.footer__legal-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
 * Responsive shell
 * ------------------------------------------------------------------------ */

@media screen and (max-width: 749px) {
  :root {
    --page-pad: 15px;
    --promo-height: 40px;
    --header-height: 65px;
    --promo-half-gap: 30px;
  }

  body {
    font-size: 15px;
    line-height: 1.8;
  }

  .promo-bar {
    padding: 12px 0;
  }

  .promo-bar__track,
  .promo-bar__group {
    column-gap: 60px;
  }

  .promo-bar__item {
    font-size: 16px;
    line-height: 16px;
  }

  .site-header__inner {
    height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    justify-content: space-between;
  }

  .site-header__brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    margin: 0;
  }

  .site-header__brand-link {
    margin-left: 0;
  }

  .site-header__logo {
    width: 130px;
    max-width: 130px;
    height: 15px;
  }

  .site-nav {
    display: none;
  }

  .header-icon--menu {
    display: flex;
    margin-left: -12px;
  }

  .header-icon--account {
    display: none;
  }

  .header-icons {
    flex: 0 0 76px;
    width: 76px;
    margin-left: 0;
  }

  .search-overlay__panel {
    height: 66px;
  }

  .search-overlay__inner {
    justify-content: flex-start;
    padding: 0 10px;
  }

  .search-form {
    flex: 0 0 330px;
    width: 330px;
    max-width: 330px;
    height: 47px;
  }

  .search-form__input {
    height: 45px;
    padding: 10px 46px 10px 16px;
    font-size: 15px;
  }

  .search-form__label {
    left: 16px;
    font-size: 15px;
  }

  .search-form:focus-within .search-form__label,
  .search-form.has-value .search-form__label {
    top: 3px;
    font-size: 10px;
  }

  .search-form__submit {
    right: 40px;
    height: 44px;
  }

  .search-overlay__close {
    margin-left: 5px;
  }

  .footer-divider {
    height: 30px;
  }

  .footer-divider__svg {
    height: 30px;
  }

  .site-footer {
    padding: 24px 0 11.5px;
    font-size: 15px;
    line-height: 1.8;
  }

  .footer__grid {
    margin: 0 0 30px;
    row-gap: 40px;
  }

  .footer__block {
    width: 100%;
    padding: 0;
    margin-bottom: 0;
  }

  .footer__block--logo {
    justify-content: center;
    padding-bottom: 20px;
  }

  .footer__logo {
    width: 350px;
    max-width: 100%;
    height: 41px;
  }

  .footer__heading {
    margin-bottom: 20px;
    font-size: 20.8px;
    line-height: 25.6px;
  }

  .footer__link {
    padding: 7.5px 0;
    font-size: 14px;
    line-height: 1.8;
  }

  .footer__newsletter-text {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.8;
  }

  .newsletter-form__input {
    height: 45px;
  }

  .newsletter-form__submit {
    min-height: 49px;
  }

  .footer__block--disclaimer p {
    font-size: 15px;
    line-height: 1.8;
  }

  .footer__bottom {
    padding-top: 0;
  }

  .footer__payment {
    margin-top: 15px;
  }

  .bon-payment-icons {
    max-width: 320px;
  }

  .bon-payment-icons__item {
    width: 52px;
    height: 39px;
    padding: 5px;
  }

  .bon-payment-icons__item svg {
    width: 38px;
    height: 24px;
  }

  .footer__legal {
    margin-top: 17.5px;
    flex-direction: column;
  }

  .footer__legal-links {
    margin-top: 2px;
  }

  .footer__copyright {
    font-size: 11px;
    line-height: 16px;
  }

  .footer__legal-links {
    font-size: 11px;
    line-height: 1.8;
    max-width: 360px;
  }

  .footer__legal-links li::before {
    margin: 0 8px;
  }

  .footer__legal-link {
    padding: 6px 0;
  }
}

/* --------------------------------------------------------------------------
 * Minimal checkout chrome (Shopify-style checkout: logo + cart, slim footer)
 * ------------------------------------------------------------------------ */

.checkout-header {
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.checkout-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 64px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 40px;
}

.checkout-header__logo-link {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  transform: translate(-50%, -50%);
  display: block;
}

.checkout-header__logo {
  display: block;
  width: 200px;
  height: 23px;
  object-fit: contain;
}

.checkout-header__cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  color: var(--text);
}

.checkout-header__cart-icon {
  width: 24px;
  height: 24px;
}

.checkout-footer {
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 40px;
}

.checkout-footer__inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px 40px 32px;
  color: #707070;
  font-size: 14px;
  line-height: 1.36;
  letter-spacing: 0;
}

.checkout-footer__links {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-footer__links li + li::before {
  content: "·";
  margin: 0 10px;
  color: #707070;
}

.checkout-footer__links a {
  color: #005bd1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkout-footer__copyright {
  margin: 12px 0 0;
  color: #707070;
  font-size: 12px;
}

@media screen and (max-width: 749px) {
  .checkout-header__inner {
    padding: 0 14px;
  }

  .checkout-header__logo {
    width: 200px;
    height: 23px;
  }

  .checkout-footer__inner {
    padding: 20px 14px 28px;
  }
}
