/* ABI-FEATUREDCAROUSEL-CSS-LOADED */

:root {
  --abi-fc-brand: #942328;
  --abi-fc-text: #3e3d40;
  --abi-fc-muted: #9c9e9f;
}

.abi-fc-section {
  margin: 32px 0;
}

.abi-fc-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--abi-fc-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--abi-fc-brand);
  display: inline-block;
}

.abi-fc-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.abi-fc-track {
  display: flex;
  width: max-content;
  animation: abi-fc-scroll 40s linear infinite;
}

.abi-fc-carousel:hover .abi-fc-track {
  animation-play-state: paused;
}

.abi-fc-copy {
  display: flex;
  flex: 0 0 auto;
}

.abi-fc-card {
  flex: 0 0 auto;
  width: 200px;
  margin: 0 10px;
  padding: 14px;
  border: 1px solid #ececec;
  border-radius: 4px;
  background: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.abi-fc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.abi-fc-card-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
}

.abi-fc-card-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--abi-fc-text);
  margin-bottom: 8px;
  line-height: 1.3;
  /* przycinamy do 2 linii, żeby karty miały równą wysokość */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.abi-fc-card-price {
  margin-top: auto;
  font-size: 12px;
}

.abi-fc-price-regular {
  display: block;
  color: var(--abi-fc-muted);
  text-decoration: line-through;
  font-size: 11px;
}

.abi-fc-price-current {
  display: block;
  color: var(--abi-fc-brand);
  font-weight: 700;
}

@keyframes abi-fc-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .abi-fc-track {
    animation: none;
  }
  .abi-fc-copy-duplicate {
    display: none;
  }
  .abi-fc-copy {
    flex-wrap: wrap;
    width: 100%;
  }
}
