
/* ======================================================================
   Header dropdowns: light cards, mega menus, mini-cart
   ====================================================================== */
#header [data-id='menu'] {
  --dropdown-background-color: #ffffff;
  --dropdown-background-hover-color: #fff3ea;
  --dropdown-divider: none;
  --dropdown-items-spacing: 10px;
  --dropdown-top-offset: 0px;
}
#header [data-id='menu'] .sub-menu {
  min-width: 230px;
  padding: 10px !important;
  border: 1px solid var(--bf-line);
  border-radius: 14px;
  background: #fff !important;
  box-shadow: 0 24px 60px rgb(21 23 28 / 0.14);
}
#header [data-id='menu'] > ul > li > .sub-menu::before {
  content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--bf-fire);
}
#header [data-id='menu'] .sub-menu .ct-menu-link {
  padding: 9px 12px !important;
  border-radius: 8px;
  color: var(--bf-ink) !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.15s, color 0.15s, padding 0.15s;
}
#header [data-id='menu'] .sub-menu .ct-menu-link:hover,
#header [data-id='menu'] .sub-menu li.current-menu-item > .ct-menu-link {
  background: #fff3ea; color: #e8530b !important; padding-left: 16px !important;
}

/* Mega menus: level 2 = column headings, level 3 = always-visible lists */
#header [data-id='menu'] > ul > li.bf-mega > .sub-menu {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 6px 18px;
  width: 640px;
  padding: 22px !important;
}
#header [data-id='menu'] > ul > li.bf-mega > .sub-menu > li > .ct-menu-link {
  font-family: var(--bf-heading); font-size: 0.95rem; font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: 0.03em;
}
#header [data-id='menu'] > ul > li.bf-mega > .sub-menu > li > .ct-menu-link .ct-toggle-dropdown-desktop,
#header [data-id='menu'] > ul > li.bf-mega > .sub-menu > li > .ct-toggle-dropdown-desktop-ghost { display: none !important; }
#header [data-id='menu'] > ul > li.bf-mega .sub-menu .sub-menu {
  position: static !important; inset: auto !important;
  opacity: 1 !important; visibility: visible !important; transform: none !important; pointer-events: auto !important;
  display: block !important; min-width: 0; width: auto; margin: 0 0 6px !important; padding: 0 !important;
  border: 0; border-radius: 0; box-shadow: none; background: transparent !important;
}
#header [data-id='menu'] > ul > li.bf-mega .sub-menu .sub-menu .ct-menu-link {
  padding: 5px 12px !important; font-size: 0.84rem; font-weight: 500; color: #4a4f59 !important;
}
#header [data-id='menu'] > ul > li.bf-mega .sub-menu .sub-menu .ct-menu-link:hover { color: #e8530b !important; }


#header [data-id='menu'] > ul > li.bf-mega > .sub-menu { align-items: start; }
#header [data-id='menu'] > ul > li.bf-mega > .sub-menu > li {
  display: flex !important; flex-direction: column !important; align-items: stretch !important; flex-wrap: nowrap !important;
}
#header [data-id='menu'] > ul > li.bf-mega > .sub-menu > li > .ct-menu-link { border-bottom: 1px solid #f0f0f2; border-radius: 8px 8px 0 0; margin-bottom: 4px; }

/* Mini-cart dropdown */
#header .ct-cart-content {
  width: 370px !important;
  padding: 20px !important;
  border: 1px solid var(--bf-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--bf-ink) !important;
  box-shadow: 0 28px 70px rgb(21 23 28 / 0.18) !important;
  overflow: hidden;
}
.bf-mini-head {
  display: flex; justify-content: space-between; align-items: baseline; margin: -2px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--bf-line);
}
.bf-mini-head strong { font-family: var(--bf-heading); font-size: 1.05rem; font-weight: 700; font-style: italic; text-transform: uppercase; color: var(--bf-ink); }
.bf-mini-head span { font-size: 0.75rem; font-weight: 600; color: #6b717b; }
#header .ct-cart-content::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: var(--bf-fire); }
#header .ct-cart-content .woocommerce-mini-cart { margin: 0 !important; padding: 0 !important; max-height: 320px; overflow-y: auto; }
#header .ct-cart-content .woocommerce-mini-cart-item {
  position: relative; display: grid !important; grid-template-columns: 64px 1fr; gap: 14px; align-items: start;
  margin: 0 0 12px !important; padding: 0 28px 12px 0 !important; border-bottom: 1px dashed var(--bf-line);
}
#header .ct-cart-content .ct-media-container { width: 64px !important; height: 64px; border-radius: 10px; overflow: hidden; background: #f6f6f7; }
#header .ct-cart-content .product-title {
  display: block; color: var(--bf-ink) !important; font-size: 0.9rem !important; font-weight: 700; line-height: 1.35; text-decoration: none;
}
#header .ct-cart-content .product-title:hover { color: #e8530b !important; }
#header .ct-cart-content .wc-gzd-cart-info {
  display: block; margin: 3px 0 0 !important; color: #6b717b !important; font-size: 0.74rem !important; font-weight: 500; line-height: 1.4;
}
#header .ct-cart-content .quantity { display: block; margin-top: 6px; color: var(--bf-ink) !important; font-size: 0.85rem; font-weight: 700; }
#header .ct-cart-content .quantity .unit-price { display: block; margin-top: 2px; font-weight: 500; }
#header .ct-cart-content .remove {
  position: absolute !important; right: 0; top: 0; display: grid !important; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: #f6f6f7; color: #6b717b !important; transition: background 0.15s, color 0.15s;
}
#header .ct-cart-content .remove:hover { background: #fdecec; color: #e0161b !important; }
#header .ct-cart-content .woocommerce-mini-cart__total {
  display: flex !important; justify-content: space-between; align-items: baseline; margin: 4px 0 2px !important; padding: 0 !important; border: 0 !important;
  color: var(--bf-ink) !important; font-size: 1rem;
}
#header .ct-cart-content .woocommerce-mini-cart__total strong { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
#header .ct-cart-content .woocommerce-mini-cart__total .amount { font-weight: 800; font-size: 1.1rem; }
#header .ct-cart-content .wc-gzd-total-mini-cart {
  display: block; margin: 0 !important; padding: 0 !important; border: 0 !important; color: #6b717b !important; font-size: 0.76rem !important; text-align: right;
}
#header .ct-cart-content .wc-gzd-total-mini-cart a { color: #e8530b !important; }
#header .ct-cart-content .woocommerce-mini-cart__buttons {
  display: grid !important; grid-template-columns: 1fr 1.3fr; gap: 10px; margin: 16px 0 0 !important; padding: 0 !important; border: 0 !important;
}
#header .ct-cart-content .woocommerce-mini-cart__buttons .button {
  min-height: 46px; margin: 0 !important; justify-content: center; font-size: 0.8rem !important; border-radius: 10px !important;
}
#header .ct-cart-content .woocommerce-mini-cart__buttons .button:not(.checkout) {
  background-image: none !important; background-color: #fff !important; color: var(--bf-ink) !important; box-shadow: inset 0 0 0 1.5px var(--bf-ink) !important;
}
#header .ct-cart-content .woocommerce-mini-cart__buttons .button:not(.checkout):hover { background-color: var(--bf-ink) !important; color: #fff !important; }
#header .ct-cart-content .woocommerce-mini-cart__empty-message { margin: 0; padding: 12px 0; color: #6b717b; text-align: center; }

/* ======================================================================
   Shop + category pages
   ====================================================================== */
.tax-product_cat .hero-section, .post-type-archive-product .hero-section {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 120% at 100% 0%, rgb(255 138 0 / 0.16), transparent 60%), linear-gradient(180deg, #fbfbfc, #f2f2f4);
  border-bottom: 1px solid #ececee;
}
.tax-product_cat .hero-section .page-description, .post-type-archive-product .hero-section .page-description { max-width: 60ch; color: var(--bf-muted); }
.bf-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.bf-subcats a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #dcdde1; border-radius: 999px; background: #fff;
  color: var(--bf-ink) !important; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none !important;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.bf-subcats a:hover, .bf-subcats a.is-active { border-color: #ff5a00; background: #fff3ea; color: #e8530b !important; }
.bf-subcats small { font-weight: 600; color: #8a9099; }
.bf-empty {
  display: grid; justify-items: center; gap: 10px; margin: 10px 0 40px; padding: clamp(32px, 6vw, 64px) 24px;
  border: 1px dashed #dcdde1; border-radius: 16px; background: #fafafb; text-align: center;
}
.bf-empty__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bf-fire); }
.bf-empty__icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bf-empty h2 { margin: 6px 0 0; font-size: 1.5rem !important; }
.bf-empty p { margin: 0; max-width: 46ch; color: var(--bf-muted); }

/* Product cards */
ul.products li.product {
  padding: 12px !important; border: 1px solid var(--bf-line); border-radius: 14px; background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
ul.products li.product:hover { border-color: #ffc29e; box-shadow: 0 14px 34px rgb(21 23 28 / 0.08); }
ul.products li.product .woocommerce-loop-product__title { font-size: 1rem !important; font-style: italic; line-height: 1.2; }
ul.products li.product .price { font-size: 1.05rem; font-weight: 800; color: var(--bf-ink); }
ul.products li.product .wc-gzd-additional-info { font-size: 0.72rem; color: #6b717b; }
ul.products li.product .button { width: 100%; justify-content: center; border-radius: 10px !important; }

/* ======================================================================
   Homepage additions: category icons + shop by goal
   ====================================================================== */
.bf-cat__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: auto; border-radius: 14px;
  background: var(--bf-fire); box-shadow: 0 10px 24px rgb(255 90 0 / 0.25); transition: transform 0.25s ease;
}
.bf-cat__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bf-cat:hover .bf-cat__icon { transform: rotate(-6deg) scale(1.06); }
.bf-cat { justify-content: space-between !important; }
.bf-goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.bf-goal {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; min-height: 210px; padding: 24px;
  border-radius: 16px; background: var(--bf-ink); color: #fff !important; text-decoration: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bf-goal::after {
  content: ''; position: absolute; right: -30px; bottom: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 90 0 / 0.55), transparent 65%);
}
.bf-goal:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgb(21 23 28 / 0.25); }
.bf-goal__tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #ffb100; }
.bf-goal__title { font-family: var(--bf-heading); font-size: 1.6rem; font-weight: 700; font-style: italic; line-height: 1; text-transform: uppercase; }
.bf-goal__text { position: relative; z-index: 1; font-size: 0.88rem; line-height: 1.5; color: rgb(255 255 255 / 0.78); }
.bf-goal__cta { position: relative; z-index: 1; margin-top: auto; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.bf-section--soft { background: #f6f6f7; }

@media (max-width: 989px) {
  .bf-goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #header .ct-cart-content { width: min(370px, 92vw) !important; }
}
@media (max-width: 479px) {
  .bf-goals { grid-template-columns: 1fr; }
  .bf-goal { min-height: 0; }
  .bf-cat__icon { width: 42px; height: 42px; border-radius: 12px; }
  .bf-cat__icon svg { width: 22px; height: 22px; }
}
