/*
 * Relevant Mobile Experience
 * Mobile-only layout fixes (<= 768px)
 */

@media (max-width: 768px) {

  /* Safety: never allow horizontal scroll from layout */
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* === 1 product per row on mobile === */
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: block !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* Make inner card stretch nicely */
  .woocommerce ul.products li.product .product-inner,
  .woocommerce-page ul.products li.product .product-inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* WOOF filters: full-width, no weird fixed widths */
  .relevant-shop-filters,
  .woof,
  .woof_redraw_zone,
  .woof_products_top_panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Hide grid/list toggle buttons if present */
  .woof_products_top_panel .woof_grid_list_view,
  .woof_products_top_panel .woof_grid,
  .woof_products_top_panel .woof_list,
  .woocommerce .relevant-grid-toggle,
  .woocommerce .gridlist-toggle {
    display: none !important;
  }
}
