.valis-grid-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}
.valis-filters {
  background: #fff;
  border-radius: 18px;
  padding: 24px 18px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: 120px;
}
.valis-filters h3 {
  font-size: 1rem;
  line-height: 1;
  margin: 0 0 18px 0;
  font-weight: 700;
  color: #1a1a1a;
}
.valis-filters h4 {
  font-size: 1.2rem;
  line-height: 1;
  margin: 0 0 12px 0;
  font-weight: 700;
  color: #6b6b6b;
}
.valis-found {
  margin-bottom: 18px;
  color: #333;
}
.valis-filter-group {
  margin: 18px 0;
}
.valis-filter-group label {
  display: block;
  margin: 8px 10px;
  color: #1a1a1a;
  cursor: pointer;
}
.valis-filter-group .count {
  opacity: 0.5;
}

.valis-results {
}
.valis-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.valis-grid-wrap[data-columns="3"] .valis-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.valis-grid-wrap[data-columns="4"] .valis-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.valis-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}
.valis-card__image-wrap {
  display: block;
  background: #eee;
}
.valis-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.valis-card__body {
  padding: 14px 14px 16px;
}
.valis-card__brand {
  font-size: 12px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: #4a5f77;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.valis-card__title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}
.valis-card__title a {
  color: #0e1a2b;
  text-decoration: none;
}
.valis-card__price {
  font-size: 32px;
  color: #3e4c61;
  margin-bottom: 10px;
}
.valis-card__availability {
  display: inline-flex;
  justify-content: start;
  align-items: center;
  gap: 8px;
  background: #e8f5ef;
  color: #1a8b60;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  margin-bottom: 14px;
  width: 50%;
}

/* Availability mobile */
@media screen and (max-width: 780px) {
  .valis-card__availability {
    width: 100%;
    font-size: 12px;
  }
}

.valis-card__availability .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a8b60;
  display: inline-block;
}
.valis-card__footer {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.valis-card__base {
  font-size: 14px;
  color: #4a5f77;
  max-width: 50%;
}
.valis-card__cta {
  background: #d91523;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  padding: 10px 14px;
  white-space: nowrap;
}

/* mobile card cta */
@media screen and (max-width: 780px) {
  .valis-card__cta {
    font-size: 14px;
  }
}
.valis-card__cta {
}

.valis-card__cta:hover {
  background: rgba(217, 21, 35, 0.5);
  color: #fff !important;
}
.valis-end {
  text-align: center;
  padding: 16px;
  color: #444;
}

@media (max-width: 1024px) {
  .valis-grid-wrap {
    grid-template-columns: 1fr;
  }
  .valis-filters {
    position: relative;
    top: auto;
  }
}
@media (max-width: 767px) {
  .valis-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* top bar sort+product count */
.valis-topbar {
  display: flex;
  justify-content: space-between;
}

.valis-topbar__sort {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.valis-topbar__count {
  display: flex;
  align-items: center;
}

/* topbar - mobile */
@media screen and (max-width: 780px) {
  .valis-topbar {
    flex-direction: column;
    gap: 20px;
  }
}

/* Make all cards same height in each row */
.valis-cards {
  align-items: stretch;
}
.valis-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.valis-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Description block with fixed visual height */
.valis-card__desc {
  margin: 0 0 12px;
  color: #4a5f77;
  font-size: 15px;
  line-height: 1.5;
  min-height: 68px; /* keeps rows aligned */
}

/* mobile  desc */
@media screen and (max-width: 780px) {
  .valis-card__desc {
    min-height: auto;
  }
}
.valis-card__desc .homeprtext-toggle {
  color: #0e1a2b;
  font-weight: 600;
  text-decoration: none;
}

/* Push footer to bottom so button aligns across cards */
.valis-card__availability {
  margin-bottom: 12px;
}

/* mobile availability */
.valis-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* valis card footer mobile */
@media screen and (max-width: 780px) {
  .valis-card__footer {
    flex-direction: column;
  }
}

/* Price at left of red button */
.valis-card__price-left {
  font-size: 16px;
  line-height: 1.1;
  color: #3e4c61;
  font-weight: 500;
}
.valis-card__price-left .amount {
  font-weight: 700;
  font-size: 18px;
}

/* Keep button stable */
.valis-card__cta {
  flex: 0 0 auto;
}

/* Sidebar * */

.filters-short-info-txt {
  border-top: 1px solid #edebe8;
  padding-top: 16px;
}

/*prosfora badge */

.valis-onsale-badge {
  position: absolute;
  display: flex;
  z-index: 0;
  color: #fff;
  right: 0;
  background: #d91523;
  padding: 5px;
  border-radius: 999px;
}

/* loader */
.valis-grid-wrap {
  position: relative;
}

/* Overlay container */
.valis-overlay-loader {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  border-radius: 18px;
  overflow: hidden;
}

/* hidden attribute compatibility */
.valis-overlay-loader[hidden] {
  display: none !important;
}

/* Blur layer over cards */
.valis-overlay-loader__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

/* Glass card in center */
.valis-overlay-loader__content {
  position: relative;
  z-index: 1;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Fancy gradient ring spinner */
.valis-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #7c3aed,
    #06b6d4,
    #22c55e,
    #f59e0b,
    #ef4444,
    #7c3aed
  );
  animation: valis-spin 0.8s linear infinite;
  position: relative;
}

.valis-spinner::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.valis-overlay-loader__text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.2px;
}

@keyframes valis-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Optional: subtle blur on cards themselves while loading */
.valis-grid-wrap.is-loading .js-cards {
  filter: blur(2px);
  transition: filter 160ms ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .valis-spinner {
    animation: none;
  }
}

/* pagination */

.valis-pagination {
  margin-top: 20px;
}

.valis-pagination:not(:first-child) button {
  margin-left: 10px;
}
