/* Frontend styling voor datum en tijd weergave */
.product-datetime-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 15px;
  margin: 20px 0;
}

.product-datetime-info h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.product-datetime-info p {
  margin: 5px 0;
  color: #555;
  font-size: 14px;
}

.product-datetime-info strong {
  color: #333;
}

.product-date {
  display: flex;
  align-items: center;
}

.product-date:before {
  content: "📅";
  margin-right: 8px;
  font-size: 16px;
}

.product-time {
  display: flex;
  align-items: center;
}

.product-time:before {
  content: "🕐";
  margin-right: 8px;
  font-size: 16px;
}

/* Winkelmandje en checkout styling */
.woocommerce-cart-form .cart_item .product-datetime,
.woocommerce-checkout .order_details .product-datetime {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* Bestelling details styling */
.order-item-datetime {
  margin-top: 8px;
  padding: 8px;
  background: #f9f9f9;
  border-radius: 4px;
  font-size: 13px;
  color: #555;
}

.order-item-datetime strong {
  color: #333;
}

/* Shortcode styling */
.product-datetime-shortcode,
.product-deelnemers-shortcode {
  display: inline-block;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-size: 14px;
  color: #555;
  margin: 5px 0;
}

.product-datetime-shortcode .datetime-date,
.product-datetime-shortcode .datetime-time {
  margin-right: 10px;
}

.product-datetime-shortcode .datetime-date:last-child,
.product-datetime-shortcode .datetime-time:last-child {
  margin-right: 0;
}

/* Nieuwe grid layout voor screenshot design met maximaal 4 kolommen */
.category-products-datetime {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 1400px;
  gap: 24px;
  margin: 30px auto;
  padding: 0;
}

/* Specifieke breakpoints voor maximaal 4 kolommen */
@media (min-width: 1400px) {
  .category-products-datetime {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1000px) and (max-width: 1399px) {
  .category-products-datetime {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 700px) and (max-width: 999px) {
  .category-products-datetime {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 699px) {
  .category-products-datetime {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 10px;
  }
}

/* Nieuwe product card styling volgens screenshot design */
.product-datetime-card {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.product-datetime-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Header sectie met datum badge en titel */
.product-datetime-card .card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.product-datetime-card .date-badge {
  background: #a53e3e;
  color: white;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  min-width: 80px;
  flex-shrink: 0;
}

.product-datetime-card .date-day {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.product-datetime-card .date-month {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.product-datetime-card .date-full {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.3;
  flex: 1;
}

/* Tijd sectie met icoon */
.product-datetime-card .time-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 16px;
  color: #4a5568;
}

.product-datetime-card .time-icon {
  font-size: 18px;
}

.product-datetime-card .time-text {
  font-weight: 500;
}

/* Beschikbaarheid sectie met progress bar */
.product-datetime-card .availability-section {
  margin-bottom: 20px;
}

.product-datetime-card .availability-text {
  color: #48bb78;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-datetime-card .availability-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.product-datetime-card .availability-progress {
  height: 100%;
  background: #48bb78;
  transition: width 0.3s ease;
}

/* Prijs sectie styling */
.product-datetime-card .price-section {
  margin-bottom: 20px;
}

.product-datetime-card .price-label {
  color: #718096;
  font-size: 14px;
  margin-bottom: 4px;
}

.product-datetime-card .price-amount {
  color: #a53e3e;
  font-size: 24px;
  font-weight: 700;
}

/* Quantity dropdown sectie */
.product-datetime-card .quantity-section {
  margin-bottom: 20px;
}

.product-datetime-card .quantity-section label {
  display: block;
  color: #4a5568;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-datetime-card .quantity-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  color: #374151;
}

.product-datetime-card .quantity-select:focus {
  outline: none;
  border-color: #a53e3e;
  box-shadow: 0 0 0 3px rgba(165, 62, 62, 0.1);
}

/* Reserveren knop styling */
.product-datetime-card .booking-section {
  margin-top: auto;
}

.product-datetime-card .booking-button {
  width: 100%;
  background: #a53e3e;
  color: white;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.product-datetime-card .booking-button:hover {
  background: #822d2d;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(165, 62, 62, 0.3);
}

.product-datetime-card .booking-icon {
  font-size: 18px;
}

/* Verwijder oude styling die niet meer nodig is */
/* Oude product-datetime-item styling wordt vervangen door product-datetime-card */

/* Responsive design */
@media (max-width: 768px) {
  .product-datetime-info {
    padding: 12px;
    margin: 15px 0;
  }

  .product-datetime-info h4 {
    font-size: 14px;
  }

  .product-datetime-info p {
    font-size: 13px;
  }

  .product-datetime-card {
    padding: 20px;
    min-height: auto;
  }

  .product-datetime-card .card-header {
    flex-direction: column;
    gap: 12px;
  }

  .product-datetime-card .date-badge {
    align-self: flex-start;
  }

  .product-datetime-card .date-full {
    font-size: 16px;
  }

  .product-datetime-card .price-amount {
    font-size: 20px;
  }
}

/* Dark mode ondersteuning */
@media (prefers-color-scheme: dark) {
  .product-datetime-info {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .product-datetime-info h4,
  .product-datetime-info strong {
    color: #f7fafc;
  }

  .product-datetime-info p {
    color: #cbd5e0;
  }

  .order-item-datetime {
    background: #4a5568;
    color: #e2e8f0;
  }

  .product-datetime-shortcode,
  .product-deelnemers-shortcode {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .product-datetime-card {
    background: #2d3748;
    border-color: #4a5568;
  }

  .product-datetime-card .date-full,
  .product-datetime-card .time-text,
  .product-datetime-card .quantity-section label {
    color: #e2e8f0;
  }

  .product-datetime-card .price-label {
    color: #a0aec0;
  }

  .product-datetime-card .quantity-select {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
  }

  .product-datetime-card .quantity-select:focus {
    border-color: #a53e3e;
  }
}
