/* EC Load More - Variant A
   The native PrestaShop/Genesis pagination stays visible for UX, direct page
   navigation and a robust no-JS/SEO fallback. Load More is inserted directly
   above it after JavaScript initializes. */

.ec-loadmore {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin: 2rem 0 0.9rem;
  text-align: center;
}

.ec-loadmore__progress {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: inherit;
  opacity: 0.78;
}

.ec-loadmore__progress--error {
  opacity: 1;
}

.ec-loadmore__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 400px;
  min-height: 46px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  cursor: pointer;
}

.ec-loadmore__button[disabled] {
  cursor: wait;
}

.ec-loadmore__spinner {
  box-sizing: border-box;
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ec-loadmore-spin 0.7s linear infinite;
}

/* The module already shows "Zobrazeno X z Y produktů" above the button, so
   hide only the duplicated native text column, never the pagination links. */
.ec-loadmore-pagination > .col-md-4 {
  display: none !important;
}

.ec-loadmore-pagination > .col-md-8 {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin-left: 0 !important;
}

.ec-loadmore-pagination .page-list {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: center !important;
}

.ec-loadmore-pagination {
  margin-top: 0.25rem;
}

.ec-loadmore-new {
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.ec-loadmore-new.ec-loadmore-new--visible {
  opacity: 1;
}

@keyframes ec-loadmore-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 575.98px) {
  .ec-loadmore {
    margin-top: 1.5rem;
  }

  .ec-loadmore__button {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-loadmore__spinner {
    animation-duration: 1.4s;
  }

  .ec-loadmore-new {
    opacity: 1;
    transition: none;
  }
}

/* Genesis 9 can keep float/flex alignment rules from its native pagination.
   Force the pagination controls to sit centered under the Load More control. */
.ec-loadmore-pagination,
.ec-loadmore-pagination > .col-md-8,
.ec-loadmore-pagination .page-list {
  float: none !important;
}

.ec-loadmore-pagination > .col-md-8 {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
}

.ec-loadmore-pagination .page-list {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 0.35rem;
  padding-left: 0;
}
