/* Global header: use the same dark green palette as the footer. */
html.bd-menu-open,
html.bd-menu-open body {
  overflow: hidden;
}

[data-header*="type-1"] .ct-header,
[data-header*="type-1"] .ct-header [data-row],
[data-header*="type-1"] .ct-header [data-transparent-row="yes"],
[data-header*="type-1"] .ct-header [data-transparent-row="yes"][data-row] {
  background-color: #16351f !important;
  background-image: none !important;
  --theme-text-color: #e6e6e6;
  --theme-link-initial-color: #e6e6e6;
  --theme-link-hover-color: #65b32e;
  --theme-link-active-color: #65b32e;
  --theme-border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  --theme-box-shadow: none !important;
}

[data-header*="type-1"] .ct-header [data-row*="top"],
[data-header*="type-1"] .ct-header [data-row*="middle"] {
  --height: 70px !important;
}

[data-header*="type-1"] .ct-header [data-id="logo"] .site-logo-container {
  --logo-max-height: 62px !important;
}

[data-header*="type-1"] .ct-header :is(
  .ct-header-search,
  .ct-cart-item,
  .ct-account-item,
  [data-id="trigger"]
) {
  color: #e6e6e6 !important;
  --theme-icon-color: #e6e6e6 !important;
  --theme-icon-hover-color: #65b32e !important;
  --theme-link-initial-color: #e6e6e6 !important;
  --theme-link-hover-color: #65b32e !important;
  --theme-link-active-color: #65b32e !important;
}

[data-header*="type-1"] .ct-header nav > ul > li > .ct-menu-link {
  color: #e6e6e6 !important;
  --theme-link-initial-color: #e6e6e6 !important;
  --theme-link-hover-color: #65b32e !important;
  --theme-link-active-color: #65b32e !important;
}

[data-header*="type-1"] .ct-header :is(.ct-header-search, .ct-cart-item, .ct-account-item, [data-id="trigger"]):hover,
[data-header*="type-1"] .ct-header nav > ul > li > .ct-menu-link:hover {
  color: #65b32e !important;
}

/* Product category panel: one consistent, high-contrast palette. */
#home-product-menu.sb-menu-open {
  color: #ffffff;
  border: 0;
  background: #2f6b3b;
}

#home-product-menu.sb-menu-open:hover,
#home-product-menu.sb-menu-open:focus-visible {
  background: #25552f;
}

#sb-panel.sb-panel {
  color: #1f2a1f;
  border-color: #d9e2d4;
  background: #f6f8f2;
}

#sb-panel .sb-panel-header {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #16351f;
}

#sb-panel .sb-panel-header :is(h2, a) {
  margin: 0;
  color: #ffffff;
}

#sb-panel :is(.sb-cat, .sb-sub) {
  padding: 0;
  list-style: none;
}

#sb-panel .cat-head {
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 8px;
}

#sb-panel .cat-link {
  display: flex;
  min-width: 0;
  padding: 10px 12px;
  flex: 1 1 auto;
  align-items: center;
  color: #16351f;
  border: 1px solid #d9e2d4;
  border-radius: 8px;
  background: #eef4ea;
  font-weight: 650;
  text-align: left;
}

#sb-panel .cat-link:hover,
#sb-panel .cat-link:focus-visible {
  color: #25552f;
  border-color: #7aa43a;
  background: #e3eddc;
}

#sb-panel .cat-toggle {
  display: inline-flex;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  background: #2f6b3b;
  font-size: 22px;
  line-height: 1;
  transform: none;
}

#sb-panel .cat-toggle[hidden] {
  display: none;
}

#sb-panel .cat-toggle:hover,
#sb-panel .cat-toggle:focus-visible,
#sb-panel .cat-toggle[aria-expanded="true"] {
  color: #ffffff;
  background: #25552f;
  transform: none;
}

#sb-panel .sb-sub {
  margin: 8px 0 12px 12px;
  padding: 8px;
  border-left: 3px solid #7aa43a;
  border-radius: 0 8px 8px 0;
  background: #eef4ea;
}

#sb-panel .sb-sub[hidden] {
  display: none;
}

#sb-panel .sb-sub li {
  margin: 5px 0;
  padding: 0;
  border: 1px solid #d9e2d4;
  border-radius: 7px;
  background: #ffffff;
}

#sb-panel .sb-sub li a {
  display: block;
  padding: 9px 11px;
  color: #1f2a1f;
  text-align: left;
}

#sb-panel .sb-sub li a:hover,
#sb-panel .sb-sub li a:focus-visible {
  color: #16351f;
  background: #e3eddc;
}

/* Blocksy page heroes were visually separating shop/blog/product pages from the home design. */
[data-prefix] .hero-section[data-type] {
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

[data-prefix] .hero-section[data-type] .entry-header {
  padding-block: var(--bd-space-xl) var(--bd-space-lg) !important;
}

[data-prefix] .hero-section[data-type] .page-title {
  color: var(--bd-color-heading) !important;
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1.2 !important;
  text-align: center;
}

[data-prefix="single_page"] .hero-section[data-type="type-2"],
[data-prefix="woo_categories"] .hero-section[data-type="type-2"],
[data-prefix="categories"] .hero-section[data-type="type-2"],
[data-prefix="author"] .hero-section[data-type="type-2"] {
  background-color: transparent !important;
  --container-padding: 0 !important;
}

/* Preserve the original dark footer without changing Blocksy's layout. */
footer.ct-footer {
  --theme-text-color: #e6e6e6;
  --theme-link-initial-color: #e6e6e6;
  --theme-link-hover-color: #65b32e;
  color: #e6e6e6 !important;
  background: #16351f !important;
  font-family: var(--bd-font-body) !important;
}

footer.ct-footer [data-row] {
  color: #e6e6e6 !important;
  background-color: #16351f !important;
  background-image: none !important;
}

footer.ct-footer :is(.ct-widget, .ct-footer-copyright, p, li, span, strong) {
  color: #e6e6e6 !important;
}

/* Make widget titles match sans-serif body typography and look clean */
footer.ct-footer :is(.widget-title, h2, h3, h4) {
  color: #ffffff !important;
  font-family: var(--bd-font-body) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

footer.ct-footer a {
  color: #e6e6e6 !important;
  transition: color 0.15s ease;
  text-decoration: none !important;
}

footer.ct-footer a:hover,
footer.ct-footer a:focus-visible {
  color: #65b32e !important;
}

/* Force left-alignment across all columns, widgets, and lists for design consistency */
footer.ct-footer [data-column] {
  text-align: left !important;
}

footer.ct-footer [data-column] :is(.ct-widget, .widget, .ct-footer-menu, .menu, nav, ul, ol, li, p, div, span, a) {
  text-align: left !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

footer.ct-footer [data-column] :is(ul, ol) {
  padding-left: 0 !important;
  margin-left: 0 !important;
  list-style: none !important;
  text-align: left !important;
}

footer.ct-footer [data-column] li {
  text-align: left !important;
  margin-bottom: 10px !important;
}

footer.ct-footer [data-column] li:last-child {
  margin-bottom: 0 !important;
}

/* Align contact block beautifully in Column 1 */
footer.ct-footer .ct-widget > div > p {
  margin-bottom: 10px !important;
  line-height: 1.5 !important;
}

/* Styling and contrast boost for footer social icons */
footer.ct-footer :is(.ct-social-icons, [data-id="socials"]) {
  display: flex !important;
  gap: 12px !important;
}

footer.ct-footer :is(.ct-social-icons, [data-id="socials"]) a {
  color: #e6e6e6 !important;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

footer.ct-footer :is(.ct-social-icons, [data-id="socials"]) a:hover {
  color: #65b32e !important;
  opacity: 1;
  transform: translateY(-2px);
}

footer.ct-footer :is(.ct-social-icons, [data-id="socials"]) svg {
  fill: currentColor !important;
  width: 20px !important;
  height: 20px !important;
}

footer.ct-footer [data-row="top"] > :is(.ct-container, .ct-container-fluid) {
  display: grid !important;
  width: min(100% - 40px, 1240px) !important;
  max-width: 1240px !important;
  margin-inline: auto !important;
  padding-block: 40px !important;
  grid-template-columns: 1fr !important;
  gap: 32px !important;
  align-items: start !important;
}

footer.ct-footer [data-row="middle"] > :is(.ct-container, .ct-container-fluid) {
  display: grid !important;
  width: min(100% - 40px, 1240px) !important;
  max-width: 1240px !important;
  margin-inline: auto !important;
  padding-block: 18px !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  align-items: center !important;
}

footer.ct-footer [data-column] {
  width: 100% !important;
  min-width: 0 !important;
}

@media (min-width: 768px) {
  footer.ct-footer [data-row="top"] > :is(.ct-container, .ct-container-fluid) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  footer.ct-footer [data-row="top"] [data-column="widget-area-4"] {
    grid-column: 1 / -1 !important;
  }

  footer.ct-footer [data-row="middle"] > :is(.ct-container, .ct-container-fluid) {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
}

@media (min-width: 1000px) {
  footer.ct-footer [data-row="top"] > :is(.ct-container, .ct-container-fluid) {
    grid-template-columns: minmax(280px, 1.35fr) minmax(180px, .75fr) minmax(280px, 1fr) !important;
    gap: clamp(40px, 6vw, 90px) !important;
  }

  footer.ct-footer [data-row="top"] [data-column="widget-area-4"] {
    grid-column: auto !important;
  }
}

.bd-shipping-notice {
  margin-bottom: 15px;
  padding: 12px;
  color: var(--bd-color-warning-text);
  border: 1px solid #f0d47a;
  border-radius: var(--bd-radius-sm);
  background: var(--bd-color-warning-bg);
  font-size: 14px;
  line-height: 1.5;
}
