/* v5.1.56 — mobile energy overlay cleanup, lighter category backdrops,
   and cleaner single-row pagination on phones. */

/* 1) Do not show energy labels on top of product images.
   The badge already appears in the content area, so image overlays are duplicate. */
body.vlg-theme .vlg-mobile-featured-image .vlg-energy-overlay,
body.vlg-theme .vlg-product-gallery .vlg-energy-overlay,
body.vlg-theme .woocommerce-product-gallery .vlg-energy-overlay,
body.vlg-theme .valgusallikad-energiasildid-thumb-wrap .valgusallikad-energiasildid-label-wrap {
  display: none !important;
}

/* If Core wrapped the image just for the overlay, keep layout clean. */
body.vlg-theme .valgusallikad-energiasildid-thumb-wrap {
  display: inline-block;
}

/* 2) Category / filter / sheet backdrop should not turn the whole page too dark. */
body.vlg-theme .vlg-mobile-backdrop:not([hidden]),
body.vlg-theme .vlg-filter-backdrop:not([hidden]),
body.vlg-theme .vlg-sales-os-sheet__backdrop {
  background: rgba(7, 18, 36, 0.16) !important;
  backdrop-filter: blur(2px) saturate(108%) !important;
  -webkit-backdrop-filter: blur(2px) saturate(108%) !important;
}

/* 3) Mobile pagination — one clean row, good spacing, horizontal scroll if needed. */
@media (max-width: 767px) {
  body.vlg-theme nav.woocommerce-pagination,
  body.vlg-theme .woocommerce nav.woocommerce-pagination,
  body.vlg-theme .vlg-pagination,
  body.vlg-theme .pagination {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  body.vlg-theme nav.woocommerce-pagination ul.page-numbers,
  body.vlg-theme .woocommerce nav.woocommerce-pagination ul.page-numbers,
  body.vlg-theme .vlg-pagination .page-numbers,
  body.vlg-theme .pagination .page-numbers,
  body.vlg-theme ul.page-numbers {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: max-content !important;
    min-width: 100%;
    margin: 0 auto !important;
    padding: 0 8px 6px !important;
    white-space: nowrap !important;
  }

  body.vlg-theme nav.woocommerce-pagination ul.page-numbers li,
  body.vlg-theme .woocommerce nav.woocommerce-pagination ul.page-numbers li,
  body.vlg-theme ul.page-numbers li {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  body.vlg-theme nav.woocommerce-pagination .page-numbers li > a,
  body.vlg-theme nav.woocommerce-pagination .page-numbers li > span,
  body.vlg-theme .woocommerce nav.woocommerce-pagination .page-numbers li > a,
  body.vlg-theme .woocommerce nav.woocommerce-pagination .page-numbers li > span,
  body.vlg-theme a.page-numbers,
  body.vlg-theme span.page-numbers,
  body.vlg-theme .page-numbers.current,
  body.vlg-theme .nav-links .page-numbers {
    min-width: 52px !important;
    height: 52px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
  }

  body.vlg-theme span.page-numbers.dots,
  body.vlg-theme nav.woocommerce-pagination .page-numbers li > span.dots,
  body.vlg-theme .woocommerce nav.woocommerce-pagination .page-numbers li > span.dots {
    min-width: 40px !important;
    padding-inline: 8px !important;
    letter-spacing: 0.06em;
  }
}
