/* ================================================================
   OMMO v2 — Flatsome bridge
   UX Builder resets + Flatsome header/menu overrides
   ================================================================ */

/* Core UX Builder section bridge */

.ommo-hero .section-content,
.ommo-shop .section-content,
.ommo-manifest .section-content,
.ommo-steps-section .section-content,
.ommo-page-hero .section-content,
.ommo-contact-section .section-content,
.ommo-split-section .section-content,
.ommo-principles-section .section-content,
.ommo-gallery-section .section-content,
.ommo-ingredients-section .section-content,
.ommo-inci-section .section-content,
.ommo-section .section-content {
  position: relative;
  z-index: 2;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ommo-hero .row,
.ommo-shop .row,
.ommo-manifest .row,
.ommo-steps-section .row,
.ommo-page-hero .row,
.ommo-contact-section .row,
.ommo-split-section .row,
.ommo-principles-section .row,
.ommo-gallery-section .row,
.ommo-ingredients-section .row,
.ommo-inci-section .row,
.ommo-section .row {
  width: 100% !important;
  max-width: var(--ommo-container-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--ommo-container-pad) !important;
  padding-right: var(--ommo-container-pad) !important;
}

.ommo-hero .row::before,
.ommo-hero .row::after,
.ommo-shop .row::before,
.ommo-shop .row::after,
.ommo-manifest .row::before,
.ommo-manifest .row::after,
.ommo-steps-section .row::before,
.ommo-steps-section .row::after,
.ommo-page-hero .row::before,
.ommo-page-hero .row::after,
.ommo-contact-section .row::before,
.ommo-contact-section .row::after,
.ommo-split-section .row::before,
.ommo-split-section .row::after,
.ommo-principles-section .row::before,
.ommo-principles-section .row::after,
.ommo-gallery-section .row::before,
.ommo-gallery-section .row::after,
.ommo-ingredients-section .row::before,
.ommo-ingredients-section .row::after,
.ommo-inci-section .row::before,
.ommo-inci-section .row::after,
.ommo-section .row::before,
.ommo-section .row::after {
  display: none !important;
}

.ommo-hero .col,
.ommo-shop .col,
.ommo-manifest .col,
.ommo-steps-section .col,
.ommo-page-hero .col,
.ommo-contact-section .col,
.ommo-split-section .col,
.ommo-principles-section .col,
.ommo-gallery-section .col,
.ommo-ingredients-section .col,
.ommo-inci-section .col,
.ommo-section .col {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
}

.ommo-hero .col-inner,
.ommo-shop .col-inner,
.ommo-manifest .col-inner,
.ommo-steps-section .col-inner,
.ommo-page-hero .col-inner,
.ommo-contact-section .col-inner,
.ommo-split-section .col-inner,
.ommo-principles-section .col-inner,
.ommo-gallery-section .col-inner,
.ommo-ingredients-section .col-inner,
.ommo-inci-section .col-inner,
.ommo-section .col-inner {
  margin: 0 !important;
  padding: 0 !important;
}

/* Header / menu bridge */

#header,
#masthead,
.header-wrapper,
.header-main {
  background: var(--ommo-cream, #e8e2d3);
  color: var(--ommo-ink, #0b0a08);
}

#masthead {
  border-bottom: 1px solid rgba(11, 10, 8, 0.08);
}

#masthead .header-inner {
  min-height: 64px;
}

#masthead .header-nav-main {
  align-items: center;
  gap: 20px;
}

#masthead .header-nav-main > li {
  margin: 0;
}

#masthead .header-nav-main > li > a.nav-top-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 6px 0;
  font-family: var(--ommo-font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ommo-ink, #0b0a08);
  opacity: 1;
}

#masthead .header-nav-main > li > a.nav-top-link::before {
  display: none;
}

#masthead .header-nav-main > li > a.nav-top-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transition: right 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

#masthead .header-nav-main > li > a.nav-top-link:hover::after,
#masthead .header-nav-main > li.active > a.nav-top-link::after,
#masthead .header-nav-main > li.current-menu-item > a.nav-top-link::after,
#masthead .header-nav-main > li.current_page_item > a.nav-top-link::after {
  right: 0;
}

#masthead .cart-item > a,
#masthead .header-cart-link,
#masthead .cart-icon {
  color: var(--ommo-ink, #0b0a08);
}

@media (max-width: 849px) {
  #masthead .header-inner {
    min-height: 56px;
  }
}

.off-canvas .nav-vertical > li > a,
.mobile-sidebar .nav-vertical > li > a,
.off-canvas-center .nav-vertical > li > a {
  font-family: var(--ommo-font-display, "Bricolage Grotesque", system-ui, sans-serif);
  font-size: clamp(34px, 10vw, 52px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: var(--ommo-ink, #0b0a08);
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 10, 8, 0.14);
}

/* Footer UX Block bridge */

.ommo-footer .section-content {
  width: 100%;
  max-width: var(--ommo-container-max);
  margin-inline: auto;
  padding-inline: var(--ommo-container-pad);
}

.ommo-footer .row {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.ommo-footer .col {
  padding-bottom: 0 !important;
}

.ommo-footer .col-inner {
  margin: 0 !important;
  padding: 0 !important;
}

.ommo-footer p {
  margin-top: 0;
}

.ommo-footer .button,
.ommo-footer button,
.ommo-footer input,
.ommo-footer textarea {
  font: inherit;
}

/* Product grid */

.ommo-product-grid.row {
  display: grid !important;
}

.ommo-product-grid.row::after,
.ommo-product-grid.row::before {
  display: none;
}

/* Manifest / steps grid */

.ommo-manifest-grid.row,
.ommo-steps-grid.row {
  display: grid !important;
  width: 100% !important;
  max-width: var(--ommo-container-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--ommo-container-pad) !important;
  padding-right: var(--ommo-container-pad) !important;
}

.ommo-manifest-grid.row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.ommo-steps-grid.row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.ommo-manifest-grid.row::before,
.ommo-manifest-grid.row::after,
.ommo-steps-grid.row::before,
.ommo-steps-grid.row::after {
  display: none !important;
}

.ommo-manifest-grid.row > .col,
.ommo-steps-grid.row > .col {
  width: auto !important;
  max-width: none !important;
  flex-basis: auto !important;
  padding: 0 !important;
}

.ommo-manifest-grid.row > .col > .col-inner,
.ommo-steps-grid.row > .col > .col-inner {
  height: 100%;
  margin: 0 !important;
}

.ommo-manifest-grid.row .ommo-manifest-card,
.ommo-steps-grid.row .ommo-step {
  height: 100%;
}

@media (max-width: 900px) {
  .ommo-manifest-grid.row,
  .ommo-steps-grid.row {
    grid-template-columns: 1fr;
  }

  .ommo-steps-grid.row .ommo-step {
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  }

  .ommo-steps-grid.row > .col:last-child .ommo-step {
    border-bottom: 0;
  }
}
@media (max-width: 640px) {
  .ommo-manifest-grid.row,
  .ommo-steps-grid.row {
    padding-left: var(--ommo-container-pad-mobile) !important;
    padding-right: var(--ommo-container-pad-mobile) !important;
  }
}
