/* ============================================================
   New Arrivals Carousel v3.0
   Dunia-exact tokens + skeleton + overlay + pagination
   ============================================================ */

@import url('https://fonts.cdnfonts.com/css/satoshi');

/* ── Section ─────────────────────────────────────────────── */
.nac-section {
  background-color: #F5F2ED;
  padding: 48px 40px 56px;
  font-family: 'satoshi', sans-serif;
  color: #000000;
  box-sizing: border-box;
}


.nac-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Header ──────────────────────────────────────────────── */
.nac-header {
  padding-top: 6px;
  padding-left: 35px;
}

.nac-title {
  font-family: 'satoshi', serif;
  font-size: 2.75rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #000000;
  margin: 0 0 14px;
  font-weight: 400;
}

.nac-subtitle {
  font-size: 0.8rem;
  font-weight: 300;
  color: #5a5a54;
  line-height: 1.65;
  margin: 0 0 26px;
  max-width: 185px;
}

.nac-view-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  transition: gap 0.25s ease, color 0.2s;
}

.nac-view-all:hover {
  gap: 13px;
  color: #555550;
}

.nac-view-all svg {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.nac-view-all:hover svg {
  transform: translateX(4px);
}

/* ── Carousel ────────────────────────────────────────────── */
.nac-carousel-wrap {
  position: relative;
  min-width: 0;
}

.nac-swiper {
  overflow: hidden;
  min-width: 0;
}

.nac-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.nac-swiper .swiper-slide {
  flex-shrink: 0;
  width: auto;
  height: auto;
}

/* ── Nav arrows ──────────────────────────────────────────── */
.nac-btn-prev,
.nac-btn-next {
  display: none;
  position: absolute;
  top: -44px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0dbd4;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #000000;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  user-select: none;
}

.nac-btn-next {
  right: 0;
}

.nac-btn-prev {
  right: 44px;
}

.nac-btn-prev:hover,
.nac-btn-next:hover {
  background: #000000;
  color: #fff;
  transform: scale(1.08);
}

.nac-btn-prev.swiper-button-disabled,
.nac-btn-next.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

@media (min-width: 769px) {

  .nac-btn-prev,
  .nac-btn-next {
    display: flex;
  }
}

/* ── Pagination dots (mobile) ────────────────────────────── */
.nac-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}

.nac-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8c4be;
  opacity: 1;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.nac-pagination .swiper-pagination-bullet-active {
  background: #000000;
  transform: scale(1.3);
}

@media (min-width: 769px) {
  .nac-pagination {
    display: none;
  }
}

/* ── Card ────────────────────────────────────────────────── */
.nac-card {
  cursor: pointer;
}

.nac-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #e8e3dc;
}

.nac-card__image-wrap>a {
  display: block;
  width: 100%;
  height: 100%;
}

.nac-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nac-card:hover .nac-card__image-wrap img {
  transform: scale(1.04);
}

/* ── Skeleton loading ────────────────────────────────────── */
.nac-card__image-wrap.nac-skeleton {
  background: linear-gradient(90deg, #e8e3dc 25%, #f0ece6 50%, #e8e3dc 75%);
  background-size: 200% 100%;
  animation: nac-shimmer 1.5s infinite;
}

.nac-card__image-wrap.nac-skeleton img {
  opacity: 1;
}

@keyframes nac-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Remove skeleton once image loads */
.nac-card__image-wrap.loaded {
  animation: none;
  background: #e8e3dc;
}

.nac-card__image-wrap img.loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ── Hover overlay (optional, activated by JS class) ─────── */
.nac-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.nac-card:hover .nac-card__overlay {
  background: rgba(0, 0, 0, 0.12);
}

/* ── No-image placeholder ────────────────────────────────── */
.nac-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Badge — Figma: pill #7A9B7E ─────────────────────────── */
.nac-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  height: 22px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  z-index: 3;
  pointer-events: none;
  white-space: nowrap;
}

.nac-badge--new {
  background: #7A9B7E;
}

.nac-badge--sale {
  background: #C0614B;
}

.nac-badge--popular {
  background: #7A8A5A;
}

.nac-badge--stock {
  background: #888;
}

/* ── Card body ───────────────────────────────────────────── */
.nac-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 2px 0;
  gap: 14px;
  min-height: 58px;
}

.nac-card__meta {
  flex: 1;
  min-width: 0;
}

.nac-card__name {
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  line-height: 1.35;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
  margin-bottom: 4px;
}

.nac-card__name:hover {
  color: #555550;
  text-decoration: underline;
}

.nac-card__price {
  display: block;
  margin-top: 0;
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
}

.nac-card__price,
.nac-card__price .woocommerce-Price-amount,
.nac-card__price .woocommerce-Price-amount.amount {
  color: #000000 !important;
  font-weight: 400 !important;
}

.nac-card__price ins,
.nac-card__price ins .woocommerce-Price-amount,
.nac-card__price ins .woocommerce-Price-amount.amount {
  color: #000000 !important;
  font-weight: 400 !important;
  text-decoration: none;
}

.nac-card__price del,
.nac-card__price del .woocommerce-Price-amount,
.nac-card__price del .woocommerce-Price-amount.amount {
  color: #9b9b9b !important;
  font-weight: 400 !important;
}

.nac-card__price .woocommerce-Price-currencySymbol {
  margin-left: 0;
  margin-right: 1px;
}

.nac-card__price del {
  color: #aaa;
  font-weight: 300;
  margin-right: 3px;
  text-decoration: line-through;
}

.nac-card__price ins {
  text-decoration: none;
  color: #C0614B;
}

.nac-card__price .woocommerce-Price-amount {
  font-size: inherit;
}

/* ── Buttons (wishlist + cart) ───────────────────────────── */
.nac-card__btns {
  display: flex;
  align-items: center;
  gap: 16px!important;
  flex-shrink: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding-top: 2px;
}

.nac-card--actions-hover .nac-card__btns {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.nac-card--actions-hover:hover .nac-card__btns {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nac-card--actions-always .nac-card__btns {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* shared base */
.nac-inline-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.nac-inline-btn svg {
  width: 18px;
  height: 18px;
}

.nac-inline-btn:hover {
  transform: scale(1.1);
}

/* wishlist */
.nac-btn-wish {
  background: #F5F5F5;
  color: #375134;
}

.nac-btn-wish:hover {
  background: #fff;
  color: #C0614B;
}

/* cart */
.nac-btn-cart {
  background: #F5F5F5;
  color: #375134;
}

.nac-btn-cart:hover {
  background: #fff;
  color: #000000;
}

/* out-of-stock dimmed */
.nac-card--outofstock .nac-btn-cart {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nac-section {
    padding: 36px 28px 44px;
  }
}

@media (max-width: 768px) {
  .nac-section {
    padding: 28px 18px 36px;
  }

  .nac-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .nac-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 20px;
    row-gap: 8px;
  }

  .nac-title {
    font-size: 2rem;
    margin-bottom: 0;
  }

  .nac-subtitle {
    display: none;
  }

  .nac-pagination {
    display: flex;
  }
}

@media (max-width: 480px) {
  .nac-section {
    padding: 20px 14px 28px;
  }
}