/**
 * 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: 1352px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

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

/* Fixed header offset — single source for page content below the menu */
.main {
  padding-top: 10rem;
}

.main--home,
.main--landing:has(.mx-hero-revslider),
.main:has(> .mx-hero-revslider),
.main--product {
  padding-top: 190px;
}

.main--page .mx-page-content {
  padding-bottom: 3rem;
}

/* Safety net: hide stray auto titles on pages and WC system pages */
.main--page .page-header,
.main--page .wp-block-post-title,
.main--cart .wp-block-post-title,
.main--checkout .wp-block-post-title,
.main--account .wp-block-post-title,
.main--cart .woocommerce-products-header,
.main--account .woocommerce-products-header {
  display: none !important;
}

/* 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 {
  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%;
    flex-direction: column;
    align-items: flex-start;
  }

  .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 a.header__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--color-white);
}

.header a.header__account svg path {
  stroke: currentColor;
}

body.logged-in .header a.header__account,
.header a.header__account--logged-in {
  color: var(--color-primary);
}

body.logged-in .header a.header__account svg path,
.header a.header__account--logged-in svg path {
  stroke: var(--color-primary);
}

.header__menu-toggle {
  cursor: pointer;
}

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

.header__search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  line-height: 0;
}

.header__search-panel {
  position: fixed;
  inset: 0;
  z-index: 10070;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 1rem 2rem;
  background-color: rgba(33, 33, 33, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.header__search-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header__search-panel__inner {
  position: relative;
  width: 100%;
  max-width: 720px;
}

.header__search-panel__title {
  margin: 0 0 1.25rem;
  font-family: 'engravers_gothicregular', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-white);
}

.header__search-panel__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.header__search-panel__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  background-color: var(--color-white);
  color: var(--color-black);
  font-family: 'avenir_regular', sans-serif;
  font-size: 1rem;
}

.header__search-panel__input::placeholder {
  color: var(--color-gray);
}

.header__search-panel__input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.header__search-panel__submit {
  min-width: 7rem;
  white-space: nowrap;
}

.header__search-panel__close {
  position: absolute;
  top: -3rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
}

body.is-header-search-open {
  overflow: hidden;
}

.mx-search-empty {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: 'avenir_regular', sans-serif;
  color: var(--color-gray);
}

.header__logo-link img,
.header__menu__logo .header__logo-link img,
.header__menu__logo img,
.header__menu__logo .custom-logo {
  display: block;
  max-height: 80px;
  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 --- */
figure.hero-mx img{
  border-radius: 12px !important;
}

/* .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 / search product grid (4 cols desktop) --- */
.main--shop .mx-shop-loop .products-grid {
  width: 100%;
  padding: 0;
}

.main--shop .mx-shop-loop .products-grid__container {
  width: 100%;
  max-width: none;
  margin: 0;
}

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

.main--shop ul.products::before,
.main--shop ul.products::after {
  display: none !important;
  content: none !important;
}

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

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

.main--search .mx-search-header {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.main--search .mx-search-header__title {
  padding-top: 0.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: 0.5rem;
}

.search-results .page-title {
  text-align: center;
  padding: 1.5rem 0 2rem;
  font-family: 'avenir_regular', sans-serif;
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.5rem;
}

.main--search .mx-search-header__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.search .woocommerce-result-count,
.search .woocommerce-ordering {
  font-family: 'avenir_regular', sans-serif;
  margin: 0;
  float: none;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.search .woocommerce-ordering {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.search .woocommerce-ordering select {
  padding: 0.75rem 1rem !important;
  border: 1px solid #9f9f9f;
  border-radius: 8px;
  text-align: center;
  border-radius: 0.25rem;
  appearance: none;
  background-image: url('../img/icons/arrow__select.svg');
  background-repeat: no-repeat;
  background-position: 95% center;
  background-size: 18px auto;
}

.main--search .mx-search-empty {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
}

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

@media screen and (min-width: 992px) {
  .main--shop 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%;
}
@media screen and (max-width: 1024px) {
    .header__utilities__list{
        gap: 1.75rem;
    }
    .header__utilities__list .header__utilities__item svg{
        max-width: 20px;
        max-height: 20px;
    }
    .header__logo-link img, .header__menu__logo .header__logo-link img, .header__menu__logo img, .header__menu__logo .custom-logo{
        max-height: 70px;
    }
}

/* --- 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;
  }

  .main {
    padding-top: 7rem;
  }

  .main--home,
  .main--landing:has(.mx-hero-revslider),
  .main:has(> .mx-hero-revslider),
  .main--product {
    padding-top: 120px;
  }

  .main--product .interior__producto {
    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;
    background-color: var(--color-white);
  }

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

  .header__search-panel {
    padding-top: 5rem;
    align-items: stretch;
  }

  .header__search-panel__form {
    grid-template-columns: 1fr;
  }

  .header__search-panel__submit {
    width: 100%;
    min-height: 3rem;
  }

  .header__search-panel__close {
    top: -2.5rem;
  }

  .main--page .mx-page-content {
    padding-bottom: 2rem;
  }
  .main--landing{
    margin-top: 2.5rem;
  }
}
