/*
Theme Name: Claue Child
Template: claue
*/

/* =============================================
   PAAMI - Mobile únicamente
   ============================================= */
@media (max-width: 991px) {

  .widget_product_categories ul.product-categories {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 10px 16px 14px;
    margin: 0;
    list-style: none;
    scrollbar-width: none;
  }

  .widget_product_categories ul.product-categories::-webkit-scrollbar {
    display: none;
  }

  .widget_product_categories ul.product-categories > li {
    flex: 0 0 auto;
  }

  .widget_product_categories ul.product-categories > li > a {
    display: inline-block;
    background: #ffffff;
    border: 1.5px solid #7F79B6;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    white-space: nowrap;
    color: #7F79B6;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s;
  }

  .widget_product_categories ul.product-categories > li.current-cat > a,
  .widget_product_categories ul.product-categories > li > a:hover {
    background: #7F79B6;
    color: #fff !important;
    border-color: #6b3fa0;
  }

  .widget_product_categories ul.product-categories > li.cat-parent > a::after {
    content: " ▾";
    font-size: 11px;
    opacity: 0.7;
  }

  /* Panel inferior subcategorías */
  .paami-subcats-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 99999;
    padding: 24px 20px 36px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -6px 30px rgba(0,0,0,0.18);
    max-height: 75vh;
    display: none;
    flex-direction: column;
  }

  .paami-subcats-panel.active {
    display: flex !important;
    animation: slideUp 0.25s ease;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .paami-subcats-panel h4 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F9E7DE;
    flex-shrink: 0;
  }

  .paami-subcats-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }

  .paami-subcats-panel ul li a {
    display: block;
    padding: 13px 16px;
    background: #faf7ff;
    border-radius: 12px;
    border: 1px solid #ede4f8;
    color: #7F79B6;
    font-size: 14px;
    text-decoration: none !important;
    transition: background 0.15s;
  }

  .paami-subcats-panel ul li a:hover,
  .paami-subcats-panel ul li a:active {
    background: #7F79B6;
    color: #fff !important;
  }

  .paami-subcats-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    padding: 0;
  }

  .paami-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99998;
    pointer-events: none;
  }

  .paami-overlay.active {
    display: block;
    pointer-events: auto;
  }

  body.menu-opened .paami-overlay,
  body.menu-opened #paamiOverlay {
    display: none !important;
    pointer-events: none !important;
  }

  .jas-pushmenu-push-toright,
  .jas-pushmenu-overlay {
    z-index: 100000 !important;
  }

  #paami-menu-fab {
    bottom: 20px !important;
    box-shadow: none !important;
  }
}

@media (min-width: 992px) {
  #paami-menu-fab { display: none !important; }
  #paamiPanel, #paamiOverlay { display: none !important; }
}
/* ===== Carrito de compras: Ajuste final de espaciado ===== */

/* Etiqueta clara y separada */
.woocommerce-cart .cart_totals .form-row label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Espaciado general entre campos */
.woocommerce-cart .cart_totals .form-row {
    margin-bottom: 30px !important;
    display: block !important;
    width: 100% !important;
}

/* Espaciado extra debajo del campo de localidad */
.woocommerce-cart .cart_totals #calc_shipping_state_field {
    margin-bottom: 50px !important; /* fuerza aire antes del botón */
}

/* Dropdowns ocupando todo el ancho */
.woocommerce-cart .cart_totals .select2-container {
    width: 100% !important;
}

/* Botón Actualizar con aire extra */
.woocommerce-cart .cart_totals button {
    background-color: #000;
    color: #fff;
    padding: 14px 22px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px !important; /* separación adicional sobre el botón */
}

.woocommerce-cart .cart_totals button:hover {
    background-color: #333;
}