/* ── MFC Product Carousel Module ───────────────────────────────────────── */

.mfc-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
  color: #000;
  box-sizing: border-box;
  padding: 40px 0;
  overflow: hidden;
}
.mfc-container * {
  box-sizing: border-box;
}

/* ── Carousel ───────────────────────────────────────────────────────────── */

.mfc-carousel-container {
  position: relative;
  width: 100%;
}

.mfc-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 16px;
}
.mfc-carousel-track::-webkit-scrollbar {
  display: none;
}


/* ── Product card ───────────────────────────────────────────────────────── */

.mfc-product-card {
  flex: 0 0 280px;
  background-color: #f6f6f6;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: background-color 0.3s ease;
  padding-bottom: 24px;
}
.mfc-product-card:hover {
  background-color: #eeeeee;
}

.mfc-card-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 16px;
}
.mfc-card-img-wrapper img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Placeholder shown when no image is set */
.mfc-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: #999;
  font-size: 12px;
  font-family: inherit;
}
.mfc-img-placeholder svg {
  width: 80px;
  height: 80px;
}

/* ── Card content ───────────────────────────────────────────────────────── */

.mfc-card-content {
  padding: 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mfc-card-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.2;
}

.mfc-card-subtitle {
  font-size: 13px;
  color: #666;
  margin: 0 0 16px;
  line-height: 1.4;
  font-weight: 600;
  flex-grow: 1;
}

/* ── Color swatches ─────────────────────────────────────────────────────── */

.mfc-color-swatches {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  min-height: 16px; /* keeps spacing consistent when no swatches */
}
.mfc-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #d1d1d1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

/* ── Learn More button ──────────────────────────────────────────────────── */

.mfc-card-btn {
  display: block;
  margin: 0 20px;
  padding: 12px;
  text-align: center;
  border: 1px solid #d1d1d1;
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: border-color 0.2s ease;
}
.mfc-product-card:hover .mfc-card-btn {
  border-color: #000;
}

/* ── Nav controls ───────────────────────────────────────────────────────── */

.mfc-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.mfc-ctrl-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #000;
}
.mfc-ctrl-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.mfc-ctrl-btn:hover:not(:disabled) {
  border-color: #000;
  background: #f5f5f5;
}
.mfc-ctrl-btn:disabled {
  border-color: #e5e5e5;
  color: #ccc;
  cursor: not-allowed;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .mfc-product-card { flex: 0 0 250px; }
  .mfc-carousel-track { gap: 16px; }
}
