/* --- Wrapper --- */
/* Horizontal padding is set dynamically by JS (syncPadding) */
.cards-carousel {
  
}

/* --- Header --- */
.cards-carousel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  max-width: 1360px;
}

.cards-carousel__title {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 400;
  font-style: italic;
  color: #232426;
  line-height: 101%;
  letter-spacing: -0.01em;
}

/* --- Nav Arrows --- */
.cards-carousel__nav {
  display: flex;
  gap: 10px;
}

.cards-carousel__nav-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid #c1b8b8;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, color 0.25s, opacity 0.25s;
  color: #6b665e;
  outline: none;
}

.cards-carousel__nav-btn:hover:not(.cards-carousel__nav-btn--disabled),
.cards-carousel__nav-btn:focus-visible:not(.cards-carousel__nav-btn--disabled) {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.cards-carousel__nav-btn--disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.cards-carousel__nav-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Track --- */
.cards-carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.cards-carousel__track::-webkit-scrollbar {
  display: none;
}

/* --- Card --- */
.cards-carousel__card {
  flex: 0 0 calc((100% - 9px * 4) / 5);
  min-width: 0;
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* --- Card Image --- */
.cards-carousel__card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #e5e1da;
  min-width: 280px;
  height: 395px;
}

.cards-carousel__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.cards-carousel__card:hover .cards-carousel__card-img {
  transform: scale(1.1);
}

/* --- Card Text --- */
.cards-carousel__card-category {
  font-size: 12px;
  color: #53565A;
  font-weight: 400;
  font-family: Archivo;
  margin-bottom: 2px;
  line-height: 140%;
}

.cards-carousel__card-link {
  font-size: 16px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  display: inline-flex;
  font-family: Archivo;
  align-items: center;
  gap: 4px;
  line-height: 140%;
  transition: color 0.2s;
}

.cards-carousel__card-link:hover {
  color: #444;
}

.cards-carousel__card-arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transform: translateY(-1px);
}

/* ========================================
       Responsive
       ======================================== */

/* Tablet — 3 cards */
@media (max-width: 1024px) {
  .cards-carousel {
    padding: 40px 0 48px 10px;
  }

  .cards-carousel__card {
    flex: 0 0 calc((100% - 20px * 2) / 3);
  }
}

/* Mobile — 2 cards (JS clears inline padding on ≤767px so CSS takes over) */
@media (max-width: 767px) {
  .cards-carousel {
    padding: 28px 0 36px;
    padding-left: 8px !important;
  }

  .cards-carousel__title {
    font-size: 26px;
  }

  .cards-carousel__nav {
    display: none;
  }

  .cards-carousel__track {
    gap: 14px;
    scroll-padding-left: 0;

  }

  .cards-carousel__card {
    flex: 0 0 calc((100% - 14px) / 1.5);
    max-width: 210px;
  }

  .cards-carousel__card-img-wrap {
    border-radius: 8px;
    margin-bottom: 8px;
    max-width: 210px;
    min-width: unset;
    max-height: 296px;
  }

  .cards-carousel__card-category {
  font-size: 10px;
    line-height: 130%;
  }

  .cards-carousel__card-link {
    font-size: 14px;
    line-height: 130%;
  }

  .cards-carousel__card-price {
    font-size: 10px;
    line-height: 130%;
  }
  .cards-carousel__card-arrow{
    display: none;
  }
}