/* =========================
   MOBILE
========================= */

body {
  overflow-x: hidden;
}

@media (max-width: 768px) {

  /* Fondo */
  html,
  body,
  .site,
  .hfeed {
    background-color: #fff !important;
  }

  .site-content {
    background-color: #fff5fa !important;
    padding-top: 18px !important;
  }

  /* Header */
  .ast-header-break-point .main-header-bar,
  .ast-header-break-point .ast-mobile-header-wrap,
  .ast-header-break-point .site-header {
    background: #fff !important;
    position: relative !important;
    z-index: 9999 !important;
  }

  /* Contenedor WooCommerce */
  .woocommerce-page .site-content .ast-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .woocommerce-page #primary {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* T赤tulos */
  .woocommerce-products-header__title,
  .woocommerce .page-title,
  h1.entry-title {
    font-size: 28px !important;
    line-height: 1.05 !important;
    margin-top: 18px !important;
    margin-bottom: 24px !important;
  }

  /* Ordenaci車n */
  .woocommerce .woocommerce-result-count {
    margin-bottom: 14px !important;
  }

  .woocommerce .woocommerce-ordering {
    margin-bottom: 24px !important;
  }

  /* Productos: 2 columnas en m車vil */
  .woocommerce ul.products,
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .woocommerce ul.products li.product {
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .woocommerce ul.products li.product img,
  .woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
    height: 150px !important;
    max-height: 150px !important;
    object-fit: contain;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    line-height: 1.25 !important;
    min-height: auto !important;
  }

  .woocommerce ul.products li.product .price {
    font-size: 17px !important;
  }

  .woocommerce ul.products li.product .ast-woo-product-category {
    font-size: 13px !important;
  }
  
    /* =========================
     MENÚ MÓVIL FUERA DEL LIENZO
  ========================= */

  /* Fondo oscuro de detrás del menú */
  .ast-mobile-popup-drawer.active .ast-mobile-popup-overlay {
    background: rgba(25, 18, 22, 0.55) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  /* Panel lateral */
  .ast-mobile-popup-drawer .ast-mobile-popup-inner {
    width: 88% !important;
    max-width: 370px !important;
    background: #fff5fa !important;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18) !important;
  }

  /* Espaciado interior */
  .ast-mobile-popup-drawer .ast-mobile-popup-content {
    padding: 18px 24px 32px !important;
  }

  /* Cabecera donde aparece la X */
  .ast-mobile-popup-drawer .ast-mobile-popup-header {
    min-height: 72px !important;
    padding: 14px 18px !important;
    background: #fff !important;
    border-bottom: 1px solid #f1d9e4 !important;
  }

  /* Botón de cerrar */
  .ast-mobile-popup-drawer .menu-toggle-close {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #d4144b !important;
    background: #fff0f5 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
  }

  .ast-mobile-popup-drawer .menu-toggle-close:hover,
  .ast-mobile-popup-drawer .menu-toggle-close:focus {
    color: #fff !important;
    background: #d4144b !important;
  }

  /* Buscador */
  .ast-mobile-popup-drawer .search-form {
    position: relative !important;
    margin: 6px 0 22px !important;
  }

  .ast-mobile-popup-drawer .search-form input[type="search"] {
    width: 100% !important;
    height: 50px !important;
    padding: 0 50px 0 18px !important;
    font-size: 16px !important;
    color: #272127 !important;
    background: #fff !important;
    border: 1px solid #ead5df !important;
    border-radius: 14px !important;
    box-shadow: none !important;
  }

  .ast-mobile-popup-drawer .search-form input[type="search"]:focus {
    border-color: #e91e63 !important;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.12) !important;
    outline: none !important;
  }

  .ast-mobile-popup-drawer .search-form button,
  .ast-mobile-popup-drawer .search-form .search-submit {
    color: #d4144b !important;
  }

  /* Lista del menú */
  .ast-header-break-point
  .ast-builder-menu-mobile
  .main-navigation
  .main-header-menu {
    margin: 0 !important;
  }

  /* Cada enlace */
  .ast-header-break-point
  .ast-builder-menu-mobile
  .main-navigation
  .main-header-menu
  .menu-item
  > .menu-link {
    min-height: auto !important;
    padding: 15px 16px !important;
    margin-bottom: 7px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #342830 !important;
    background: #fff !important;
    border: 1px solid #f0dce5 !important;
    border-radius: 13px !important;
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease !important;
  }

  /* Al pulsar o pasar por encima */
  .ast-header-break-point
  .ast-builder-menu-mobile
  .main-navigation
  .main-header-menu
  .menu-item
  > .menu-link:hover,
  .ast-header-break-point
  .ast-builder-menu-mobile
  .main-navigation
  .main-header-menu
  .menu-item
  > .menu-link:focus {
    color: #d4144b !important;
    background: #ffe8f1 !important;
    transform: translateX(3px);
  }

  /* Página actual */
  .ast-header-break-point
  .ast-builder-menu-mobile
  .main-navigation
  .main-header-menu
  .current-menu-item
  > .menu-link,
  .ast-header-break-point
  .ast-builder-menu-mobile
  .main-navigation
  .main-header-menu
  .current_page_item
  > .menu-link {
    color: #fff !important;
    background: #d4144b !important;
    border-color: #d4144b !important;
  }
}