/**
 * SB Infinite Scroll
 *
 * @author    Sotiris Betsos
 * @copyright Sotiris Betsos
 * @license   Proprietary - All rights reserved
 */
:root {
  --sbis-loader-color: #24b9d7;
  --sbis-btn-bg: #24b9d7;
  --sbis-btn-color: #fff;
  --sbis-btn-border: #24b9d7;
  --sbis-btn-radius: 4px;
  --sbis-end-bg: #f6f6f6;
  --sbis-end-color: #555;
  --sbis-totop-bg: #333;
  --sbis-totop-color: #fff;
}

/* The pagination stays in the HTML for search engines, it is only hidden for visitors */
.sbis-pagination-hidden {
  display: none !important;
}

.sbis-box {
  clear: both;
  width: 100%;
  flex: 0 0 100%;
  text-align: center;
}
.sbis-box-bottom {
  margin: 20px 0 30px;
}
.sbis-box-top {
  margin: 0 0 20px;
}
.sbis-box [hidden] {
  display: none !important;
}

/* Buttons */
.sbis-btn {
  cursor: pointer;
}
.sbis-btn-custom {
  display: inline-block;
  min-width: 220px;
  max-width: 100%;
  padding: 12px 28px;
  border: 1px solid var(--sbis-btn-border);
  border-radius: var(--sbis-btn-radius);
  background: var(--sbis-btn-bg);
  color: var(--sbis-btn-color);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
  transition: opacity .2s, transform .2s;
}
.sbis-btn-custom:hover,
.sbis-btn-custom:focus {
  opacity: .88;
  color: var(--sbis-btn-color);
}
.sbis-btn-custom:active {
  transform: scale(.98);
}
.sbis-btn:focus-visible {
  outline: 2px solid var(--sbis-btn-border);
  outline-offset: 2px;
}

/* Loader */
.sbis-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  color: var(--sbis-end-color);
}
.sbis-loader-img {
  max-width: 120px;
  height: auto;
}
.sbis-loader-text {
  font-size: .9em;
}
.sbis-spinner {
  display: block;
  width: 38px;
  height: 38px;
  border: 4px solid rgba(0, 0, 0, .1);
  border-top-color: var(--sbis-loader-color);
  border-radius: 50%;
  animation: sbis-spin .8s linear infinite;
}
.sbis-dots {
  display: flex;
  gap: 7px;
}
.sbis-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sbis-loader-color);
  animation: sbis-bounce 1.2s infinite ease-in-out both;
}
.sbis-dots span:nth-child(1) { animation-delay: -.32s; }
.sbis-dots span:nth-child(2) { animation-delay: -.16s; }
.sbis-bar {
  position: relative;
  display: block;
  overflow: hidden;
  width: 220px;
  max-width: 80%;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .08);
}
.sbis-bar span {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--sbis-loader-color);
  animation: sbis-bar 1.1s infinite ease-in-out;
}

/* Messages */
.sbis-end,
.sbis-error {
  padding: 14px 20px;
  border-radius: var(--sbis-btn-radius);
  background: var(--sbis-end-bg);
  color: var(--sbis-end-color);
}
.sbis-error .sbis-retry {
  min-width: 0;
  margin-left: 8px;
  padding: 6px 16px;
}

/* New products animation */
.sbis-fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease;
}
.sbis-fade.sbis-fade-in {
  opacity: 1;
  transform: none;
}

/* Back to top */
.sbis-totop {
  position: fixed;
  z-index: 999;
  bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sbis-totop-bg);
  color: var(--sbis-totop-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.sbis-totop-right { right: 25px; }
.sbis-totop-left { left: 25px; }
.sbis-totop.sbis-visible {
  opacity: .9;
  visibility: visible;
  transform: none;
}
.sbis-totop:hover { opacity: 1; }

@keyframes sbis-spin { to { transform: rotate(360deg); } }
@keyframes sbis-bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
@keyframes sbis-bar { 0% { left: -40%; } 100% { left: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .sbis-fade, .sbis-totop { transition: none; }
  .sbis-spinner, .sbis-dots span, .sbis-bar span { animation-duration: 2.5s; }
}
@media (max-width: 575px) {
  .sbis-btn-custom { width: 100%; }
  .sbis-totop { bottom: 15px; }
  .sbis-totop-right { right: 15px; }
  .sbis-totop-left { left: 15px; }
}
