/* Checkdedeals — kaarten
   Stijl volgt de bevestigde structuur uit het projectplan: witte kaart,
   ronde hoeken, zachte schaduw, sleepbare rij, lichte zoom bij hover op de
   productfoto. Kleuren zijn een neutraal startpunt — pas gerust aan in
   Elementor's eigen "Extra CSS-klassen" of via een child-theme stylesheet,
   dit is bewust geen hardcoded 1-op-1 kopie van je Elementor-styling. */

.cdd-cards-container {
  position: relative;
}

.cdd-cards-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cdd-cards-row::-webkit-scrollbar {
  display: none;
}

.cdd-cards-row.cdd-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.cdd-cards-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: #444;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.cdd-cards-nav:hover {
  background: #f5f6f8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cdd-cards-nav:active {
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.cdd-cards-nav svg {
  width: 18px;
  height: 18px;
}

.cdd-cards-nav--prev {
  left: -8px;
}

.cdd-cards-nav--next {
  right: -8px;
}

.cdd-cards-nav--hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .cdd-cards-nav {
    display: none;
  }
}

.cdd-card {
  flex: 0 0 auto;
  width: 260px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none; /* voorkomt native sleep-conflict met onze eigen sleep-scroll */
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cdd-cards-row.cdd-dragging .cdd-card {
  cursor: grabbing;
}

.cdd-card--pressed {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22), 0 4px 12px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(37, 99, 235, 0.25);
  z-index: 2;
}

.cdd-card__image-wrap {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f5f6f8;
}

.cdd-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
  pointer-events: none; /* voorkomt native image-drag tijdens het slepen */
}

.cdd-card:hover .cdd-card__image {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.cdd-card__title {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 8px;
  min-height: 38px;
}

.cdd-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #888;
  margin-bottom: 4px;
}

.cdd-card__price-block {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.cdd-card__price-col {
  flex: 1;
  min-width: 0;
}

.cdd-card__price-mini-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #999;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cdd-card__price-was {
  text-decoration: line-through;
  color: #999;
  font-size: 15px;
  font-weight: 600;
}

.cdd-card__price-now {
  font-size: 22px;
  font-weight: 700;
  color: #16a34a;
}

.cdd-card__divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 10px 0;
}

.cdd-card__price-compare-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.cdd-card__price-compare {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.cdd-card__shipping {
  font-size: 11px;
  color: #999;
}

.cdd-card__offers {
  margin-bottom: 10px;
}

.cdd-card__offers summary {
  cursor: pointer;
  font-size: 12px;
  color: #2563eb;
  font-weight: 600;
  list-style: none;
}

.cdd-card__offers summary::-webkit-details-marker {
  display: none;
}

.cdd-card__offers summary::after {
  content: ' \25BE';
}

.cdd-card__offers[open] summary::after {
  content: ' \25B4';
}

.cdd-card__offers-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  font-size: 12px;
}

.cdd-card__offers-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
}

.cdd-card__offers-shop {
  font-weight: 600;
  flex: 1 1 auto;
}

.cdd-card__offers-price {
  font-weight: 600;
  color: #16a34a;
}

.cdd-card__offers-shipping {
  color: #999;
  font-size: 11px;
}

.cdd-card__offers-list a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.cdd-card__badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.cdd-card__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.cdd-card__badge-info {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #eef2ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.cdd-card__badge-info:hover,
.cdd-card__badge-info:focus-visible {
  background: #dbeafe;
  outline: none;
}

.cdd-card__badge-info.cdd-tooltip-open {
  background: #dbeafe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.cdd-card__tooltip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 200px;
  max-width: 60vw;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.cdd-card__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
}

.cdd-card__badge-info.cdd-tooltip-open .cdd-card__tooltip,
.cdd-card__badge-info:hover .cdd-card__tooltip,
.cdd-card__badge-info:focus-visible .cdd-card__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cdd-card__badge--topdeal {
  background: #ff6b57; /* koraalrood */
  color: #fff;
}

.cdd-card__badge--nettedeal {
  background: #14b8a6; /* teal */
  color: #fff;
}

.cdd-card__button {
  margin-top: auto;
  display: block;
  text-align: center;
  background: #2563eb;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  border: none;
}

.cdd-card__button:hover,
.cdd-card__button:focus,
.cdd-card__button:visited {
  background: #1d4ed8;
  color: #fff;
  text-decoration: none !important;
}

.cdd-cards-empty {
  padding: 24px;
  color: #888;
}
