/* ============================================================
   Product Geo Pattern — CSS
   Deterministic Bauhaus-style pattern for product/service cards.
   Reuses shape primitives from geo-pattern.css.
   ============================================================ */

/* --- Container --- */
.product-geo-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--pgeo-bg, var(--cds-field, #f4f4f4));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Concentric rings use palette accent color */
.product-geo-container .pgeo-ring {
  border-color: var(--pgeo-c2, var(--cds-text-primary));
}

/* ============================================================
   Product Session Cards — Card layout with geo-pattern header
   ============================================================ */

.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5, 20px);
}

.product-card {
  border-radius: var(--radius-md, 6px);
  overflow: hidden;
  background: var(--cds-layer-01, #fff);
  box-shadow: var(--shadow-card, 0 1px 3px rgba(0, 0, 0, 0.08));
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
  padding: 20px;
}

.product-card:hover {
  box-shadow: var(--shadow-hover, 0 4px 12px rgba(0, 0, 0, 0.08));
}

/* Row 1: Date & time */
.product-card__datetime {
  display: flex;
  align-items: baseline;
  gap: var(--space-2, 8px);
}

.product-card__date {
  font-size: var(--cds-label-01-font-size, 0.75rem);
  font-weight: 600;
  color: var(--cds-text-primary, #161616);
}

.product-card__time {
  font-size: var(--cds-label-01-font-size, 0.75rem);
  color: var(--app-text-secondary, #525252);
}

/* Row 2: Title (course name) — max 3 lines */
.product-card__title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cds-text-primary, #161616);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  min-width: 0;
}

/* Row 3: Trainer • Location • Group — bullet-separated */
.product-card__details {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  font-size: var(--cds-label-01-font-size, 0.75rem);
  color: var(--app-text-secondary, #525252);
  min-height: 18px;
}

.product-card__details > span + span::before,
.product-card__details > template + span::before {
  content: "•";
  margin: 0 6px;
  color: var(--app-text-muted, #a8a8a8);
}

.product-card__details > span:first-of-type::before {
  content: none;
}

/* Pattern area */
.product-card__pattern {
  position: relative;
  overflow: hidden;
}

.product-card__pattern--square {
  height: auto;
  aspect-ratio: 4/3;
  margin-top: auto;
  border-radius: var(--radius-sm, 4px);
}


/* Overlay for product name on top of pattern */
.product-card__pattern-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.product-card__pattern-title {
  color: #fff;
  font-size: var(--cds-heading-compact-01-font-size, 0.875rem);
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Card body */
.product-card__body {
  padding: var(--space-4, 16px);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
}

.product-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  flex-wrap: wrap;
}

.product-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm, 4px);
  font-size: var(--cds-label-01-font-size, 0.75rem);
  line-height: 1.4;
  background: var(--cds-layer-accent-01, #e0e0e0);
  color: var(--cds-text-primary, #161616);
}

.product-card__price {
  font-size: var(--cds-heading-compact-02-font-size, 1rem);
  font-weight: 600;
  color: var(--cds-text-primary, #161616);
  margin-top: auto;
}

.product-card__price-currency {
  font-size: var(--cds-label-01-font-size, 0.75rem);
  font-weight: 400;
  color: var(--app-text-secondary, #525252);
}

/* Card footer */
.product-card__footer {
  padding-top: var(--space-3, 12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--cds-label-01-font-size, 0.75rem);
  color: var(--app-text-muted, #a8a8a8);
}

/* Status indicator */
.product-card__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-card__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cds-support-success, #198038);
}

.product-card__status-dot--inactive {
  background: var(--app-text-muted, #a8a8a8);
}

/* Dark mode refinements */
html.cds--g100 .product-card {
  background: var(--cds-layer-01, #262626);
}
