/**
 * widgets-cards.css - AI-Summary, Produktkarten (V2-Vorlage index_v17)
 */

.base-card {
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-table-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.base-card-body {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.base-section-card {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-table-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.base-ai-summary {
  background: var(--color-white);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.base-ai-summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.base-ai-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-gradient-end));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.base-ai-icon-graphic {
  width: 22px;
  height: 22px;
}

.base-ai-summary-text {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-anthracite);
  padding-left: 52px;
}

.base-ai-summary-highlight {
  color: var(--color-orange);
  font-weight: 600;
}

.base-ai-summary-segment {
  font-weight: 400;
}

/* AI-Overview-Absaetze: eine Klasse pro p (011-ui-html Regel 021); Typografie erbt von .base-ai-summary-text */
.base-content-text-search-ai-overview-paragraph {
  margin: 0 0 12px 0;
}

.base-content-text-search-ai-overview-paragraph:last-child {
  margin-bottom: 0;
}

.base-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-gray-10);
}

/* Home-Showcase (Vorlage harley-james): Bild zuerst, H3 in .base-product-info */
.base-product-card > .base-product-image:first-child + .base-product-info > .base-headline-h3:first-child {
  margin-bottom: 8px;
}

/* 011-ui-css-tiles Regel 018: Headline vor Bild; ein Klassenname pro Element */
.base-product-card-headline {
  padding: 24px 24px 12px;
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
}

.base-product-card-headline + .base-product-info {
  padding-top: 16px;
}

.base-product-card:hover {
  will-change: transform;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(70, 70, 75, 0.12), 0 4px 8px rgba(70, 70, 75, 0.08);
}

.base-product-image {
  height: 160px;
  background: linear-gradient(135deg, var(--color-product-image-gradient-start) 0%, var(--color-product-image-gradient-end) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.base-product-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.base-hexagon-product-image {
  --hexagon-size: 80px;
  opacity: 0.8;
}

.base-hexagon-svg-product-image {
  width: 40px;
  height: 40px;
  color: var(--color-white);
}

.base-product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.base-product-info {
  flex: 1;
  min-height: 0;
  padding: 24px;
}

.base-product-desc {
  font-family: var(--font-secondary);
  font-size: 14px;
  color: var(--color-gray-50);
  margin-bottom: 16px;
  line-height: 1.5;
}

.base-product-link {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.base-product-link:hover {
  gap: 10px;
}

/* Kompakte Such-Ergebnis-Karte: Zeile mit 80px-Thumbnail links, Text rechts (wie fruehere search-product-item) */
.base-product-card-search {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-background);
  border: 1px solid var(--color-table-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(70, 70, 75, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.base-product-card-search:hover {
  border-left-color: var(--color-accent-hover);
  box-shadow: 0 2px 8px rgba(70, 70, 75, 0.08);
}

.base-product-image-search {
  width: 80px;
  height: 80px;
  min-width: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-table-border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-10);
}

.base-product-image-img-search {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.base-product-info-search {
  flex: 1;
  min-width: 0;
  padding: 0;
}

@media (max-width: 575px) {
  /* 011-ui-mobile Regel 003: horizontaler Innenabstand Kachel/Karten-Text max. 20px */
  .base-ai-summary {
    padding: 24px 20px;
  }
  .base-ai-summary-text {
    padding-left: 0;
    margin-top: 16px;
  }
  .base-section-card {
    padding: 20px;
  }
  .base-product-card-headline {
    padding: 20px 20px 12px;
  }
  .base-product-info {
    padding: 20px;
  }
  .base-card {
    padding: 20px;
  }
}
