/* ====== Shell ====== */
.wpncc {
  position: relative;
  padding: 20px 0;
  color: #fff;
}

.wpncc-viewport {
  overflow: hidden;
}

.wpncc-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* ====== Card (252 x 477 desktop) ====== */
.wpncc-card {
  flex: 0 0 252px;
  height: 477px;
  background: #151515;         /* dark theme */
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}

/* Image area (top ~60%) */
.wpncc-img {
  position: relative;
  height: 60%;
  overflow: hidden;
}

.wpncc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
  display: block;
}

/* Content */
.wpncc-body {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.wpncc-title {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 4px;
}

.wpncc-desc {
  flex: 1;
  font-size: 14px;
  line-height: 1.45;
  opacity: .88;
  margin: 0;
}

/* "View Menu" link color (plain link, no button) */
.wpncc-link {
  color: rgb(209, 72, 65);
  text-decoration: none;
  font-weight: 500;
}

/* ====== Hover (desktop only) ====== */
@media (hover: hover) and (pointer: fine) {
  .wpncc-card:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,.38);
    transform: translateY(-2px);
  }
  .wpncc-card:hover .wpncc-img img {
    transform: scale(1.035);
    filter: saturate(1.03);
  }
  .wpncc-title:hover {
    color: rgb(209, 72, 65);
  }
}

/* ====== Arrows ====== */
.wpncc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.55);
  color: #fff;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  padding: 6px 11px;
  border-radius: 50%;
  z-index: 10;
  transition: background .2s ease, opacity .2s ease;
}

.wpncc-arrow:hover {
  background: rgba(0,0,0,.8);
}

.wpncc-prev { left: 10px; }
.wpncc-next { right: 10px; }

.wpncc-arrow.disabled {
  opacity: .4;
  pointer-events: none;
}

/* ====== Mobile stacking (<768px) ======
   - Disable carousel UI
   - Stack cards 1-by-1 vertically
*/
@media (max-width: 767px) {
  .wpncc-viewport { overflow: visible; }
  .wpncc-track {
    display: block !important;
    transform: none !important;
  }
  .wpncc-card {
    width: 100% !important;
    max-width: 360px;
    margin: 0 auto 20px !important;
    flex: none !important;
  }
  .wpncc-arrow {
    display: none !important;
  }
}

/* Slightly more breathing room on wide screens */
@media (min-width: 1200px) {
  .wpncc { padding: 24px 0; }
}
