/* =============================================================================
   components.css
   VENET tech – Dry Hire Shop
   Buttons, Badges, Kategorie-Karten, Produkt-Karten
   Modal-/Formular-/Warenkorb-Stile → modals.css
   ============================================================================= */

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-accent-text);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-border-accent);
}

.btn-secondary:hover {
  background: rgba(219,239,18,0.08);
  border-color: var(--color-accent);
}

.btn-ghost {
  background: var(--color-bg-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-sm   { padding: 6px var(--space-md); font-size: var(--font-xs); }
.btn-lg   { padding: var(--space-sm) var(--space-xl); font-size: var(--font-base); }
.btn-full { width: 100%; }

.btn-danger       { background: var(--color-error); color: #fff; border-color: var(--color-error); }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; box-shadow: 0 0 0 3px rgba(239,68,68,.2); }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* --- Badge ----------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: var(--font-xs);
  font-weight: 600;
}

.badge-accent  { background: rgba(219,239,18,0.15); color: var(--color-accent); }
.badge-success { background: rgba(219,239,18,0.15); color: var(--color-accent); }
.badge-muted   { background: rgba(255,255,255,0.05); color: var(--color-text-secondary); }

/* --- Kategorie-Karte ------------------------------------------------------- */
.category-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 250ms ease;
}

.category-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

.category-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-secondary);
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.category-card:hover .category-card__image img { transform: scale(1.06); }

.category-card__content { padding: var(--space-md) var(--space-lg); }

.category-card__title {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  transition: color var(--transition);
}

.category-card:hover .category-card__title { color: var(--color-accent); }

.category-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-xs);
  color: var(--color-text-muted);
}

/* --- Produkt-Karte --------------------------------------------------------- */
.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 250ms ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-secondary);
  flex-shrink: 0;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.product-card:hover .product-card__image img { transform: scale(1.06); }

.product-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.product-card__name {
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.product-card__code   { font-size: var(--font-xs); color: var(--color-text-muted); }

.product-card__desc {
  font-size: var(--font-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.product-card__price {
  font-size: var(--font-lg);
  font-weight: 800;
  color: var(--color-accent);
}

.product-card__price span {
  font-size: var(--font-xs);
  font-weight: 400;
  color: var(--color-text-muted);
}

.product-card__stock { font-size: var(--font-xs); color: var(--color-text-secondary); }
