/* AllNaturals product carousel */

/* Force the block to span the full footer row and reset inherited flex padding */
#block-itoldu-allnaturals-carousel {
  width: 100%;
  flex-basis: 100%;
  padding: 0 !important;
  box-sizing: border-box;
}

@keyframes an-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#block-itoldu-allnaturals-carousel .block-title {
  color: #fff !important;
  font-size: 1.6em;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
  margin-bottom: 0.5em;
  position: relative;
  display: inline-block;
  width: 100%;
  animation: an-slide-in 0.7s ease both;
}

#block-itoldu-allnaturals-carousel .block-title::after {
  content: '';
  display: block;
  margin: 6px auto 0;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a78bfa, #34d399);
}

#block-itoldu-allnaturals-carousel .an-carousel-wrapper {
  animation: an-slide-in 0.9s ease 0.2s both;
}

.an-carousel-store-link {
  text-align: center;
  margin-top: 12px;
  animation: an-slide-in 0.9s ease 0.4s both;
}

.an-carousel-store-link a {
  display: inline-block;
  padding: 8px 24px;
  border: 2px solid rgba(167, 139, 250, 0.7);
  border-radius: 24px;
  color: #fff !important;
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.an-carousel-store-link a:hover {
  background: rgba(167, 139, 250, 0.15);
  border-color: #a78bfa;
  color: #a78bfa !important;
}

.an-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
}

.an-carousel-track-outer {
  overflow: hidden;
  flex: 1;
}

.an-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
  will-change: transform;
}

.an-carousel-item {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.an-carousel-item:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.an-carousel-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}

.an-carousel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.an-carousel-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.an-carousel-title {
  font-size: 0.82em;
  line-height: 1.3;
  font-weight: 600;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-carousel-price {
  font-size: 0.9em;
  font-weight: 700;
  color: #3a7d44;
}

.an-carousel-btn {
  flex: 0 0 auto;
  background: #3a7d44;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4em;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  padding: 0;
  user-select: none;
}

.an-carousel-btn:hover {
  background: #2e6337;
}

.an-carousel-btn:disabled,
.an-carousel-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 600px) {
  .an-carousel-item {
    flex: 0 0 140px;
  }
  .an-carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 1.1em;
  }
}
