/**
 * WordPress / WooCommerce / Slider Revolution integration styles.
 */

/* --- Global layout shell (header, slider, content, product grids) --- */
.mx-layout-shell,
.mx-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.main .mx-page-content {
  width: 100%;
}

/* Gutenberg blocks inside constrained content */
.mx-page-content.mx-layout-shell > .wp-block-group:not(.alignfull),
.mx-page-content.mx-layout-shell > .wp-block-columns:not(.alignfull),
.mx-page-content.mx-layout-shell > .wp-block-image:not(.alignfull),
.mx-page-content.mx-layout-shell > .notices__alert,
.mx-page-content.mx-layout-shell > .slide__products,
.mx-page-content.mx-layout-shell > .home-lines,
.mx-page-content.mx-layout-shell > .home-info-grid,
.mx-page-content.mx-layout-shell > .title__divider,
.mx-page-content.mx-layout-shell > .mx-products-shortcode {
  width: 100%;
}

/* --- Header layout --- */
.header {
  overflow: visible;
  z-index: 10050;
}

.inner__header {
  gap: 1rem;
  overflow: visible;
}

.header__navigation {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  overflow: visible;
}

.header__menu {
  overflow: visible;
}

.header__menu__item {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}

.header__menu__item.menu-item-has-children > a.open__submenu {
  cursor: pointer;
}

.header__menu__item.menu-item-has-parent-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.header__menu__item.menu-item-has-parent-link > .header__menu__link {
  flex: 1 1 auto;
  min-width: 0;
}

.header__menu__submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.header__menu__submenu-toggle__icon {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15rem;
}

.header__menu__submenu-toggle.open .header__menu__submenu-toggle__icon {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

/* Desktop submenus */
@media screen and (min-width: 961px) {
  .header__menu__item.menu-item-has-parent-link > .header__menu__submenu-toggle {
    display: none;
  }

  .header__menu__item.menu-item-has-parent-link > .header__menu__link {
    cursor: pointer;
  }
  .header__menu__item > .header__menu__submenu {
    width: auto;
    min-width: 240px;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }

  .header__menu__item:hover > .header__menu__submenu,
  .header__menu__item:focus-within > .header__menu__submenu,
  .header__menu__submenu.active {
    opacity: 1;
    visibility: visible;
    z-index: 1200;
  }
}

@media screen and (max-width: 960px) {
  .header__menu__item.menu-item-has-parent-link {
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
  }

  .header__menu__item.menu-item-has-parent-link > .header__menu__link {
    flex: 1 1 auto;
    text-align: left;
  }

  .header__menu__item.menu-item-has-parent-link > .header__menu__submenu-toggle {
    margin-right: 2rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
}

.header__utilities {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1100;
}

.header__utilities__list {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.header__utilities__item {
  display: inline-flex;
  align-items: center;
}

.header__utilities__item--menu {
  display: none;
}

.header__menu-toggle {
  cursor: pointer;
}

.header__menu-toggle svg path {
  stroke: #f9fafa;
}

.header__logo-link img,
.header__menu__logo .header__logo-link img,
.header__menu__logo img,
.header__menu__logo .custom-logo {
  display: block;
  max-height: 48px;
  width: auto;
  height: auto;
  min-width: 5rem;
  max-width: 100%;
  opacity: 1;
  visibility: visible;
  object-fit: contain;
}

.user__navigation {
  display: none !important;
}

body.is-mobile-nav-open {
  overflow: hidden;
}

/* --- Hero / RevSlider --- */
.hero__slideshow__container.mx-hero-revslider,
.main--home .mx-hero-revslider,
.main--landing .mx-hero-revslider {
  margin-top: 10rem;
  width: 100%;
}

.mx-hero-revslider .rev_slider_wrapper,
.mx-hero-revslider rs-module-wrap {
  width: 100% !important;
  max-width: 100% !important;
}

/* --- Shop grid --- */
.main--shop .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0 0 3rem;
  margin: 0;
}

.main--shop .woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 0;
}

.main--shop .mx-shop-loop {
  padding-bottom: 3rem;
}

@media screen and (min-width: 576px) {
  .main--shop .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 992px) {
  .main--shop .woocommerce ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-card .button.product-card__button,
.product-card a.product-card__button {
  display: inline-block;
  margin-top: 0.75rem;
}

/* --- WooCommerce pages --- */
.woocommerce-page .woocommerce {
  width: 100%;
}

/* --- Admin bar --- */
@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }

  .hero__slideshow__container.mx-hero-revslider,
  .main--home .mx-hero-revslider,
  .main--landing .mx-hero-revslider {
    margin-top: 6rem;
  }
}

@media (min-width: 783px) {
  .admin-bar .header {
    top: 32px;
  }
}

/* --- Mobile header --- */
@media screen and (max-width: 960px) {
  .header__utilities__item--menu {
    display: inline-flex;
  }

  .header__navigation {
    width: 100%;
    z-index: 1050;
  }

  .header__menu__item > .header__menu__submenu {
    position: static;
    transform: none;
    width: 100%;
    min-width: 0;
    box-shadow: none;
  }
}
