/* ========================================================================
   Producenci (Producers) page styles
   ======================================================================== */

/* Breadcrumb */
.producers-breadcrumb {
  padding: 24px 0 8px;
  font-size: 13px;
  color: #999;
}
.producers-breadcrumb a {
  color: #999;
  text-decoration: none;
}
.producers-breadcrumb a:hover {
  text-decoration: underline;
}
.producers-breadcrumb__current {
  color: var(--color-dark, #1C2D1C);
  font-weight: 500;
}

/* Banner */
.producers-banner {
  margin-bottom: 40px;
  border-radius: 24px;
  overflow: hidden;
}
.producers-banner img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Section heading */
.producers-heading {
  margin-bottom: 24px;
}
.producers-heading__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark, #1C2D1C);
  margin: 0 0 4px;
}
.producers-heading__count {
  font-size: 14px;
  color: #999;
  margin: 0;
}

/* Grid */
.producers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 60px;
}

/* Loading / empty states */
.producers-loading,
.producers-empty,
.producers-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  font-size: 15px;
  color: #999;
}
.producers-error {
  color: #d32f2f;
}

/* -----------------------------------------------------------------------
   Producer card (mirrors mobile Manufacturers.jsx card)
   ----------------------------------------------------------------------- */
.producer-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.06);
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.producer-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Clickable link area (header + green bar) */
.producer-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Header: gray area with producer name */
.producer-card__header {
  background: var(--color-gray-100, #F2F5F2);
  border-radius: 24px 24px 0 0;
  padding: 16px 20px 24px;
}
.producer-card__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark, #1C2D1C);
  margin: 0;
  line-height: 1.3;
}

/* Green bar with product count + arrow */
.producer-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-green, #45C951);
  border-radius: 34px;
  padding: 2px 2px 2px 20px;
  margin-top: -16px;
}
.producer-card__count-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
}
.producer-card__count {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.producer-card__count-label {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
}
.producer-card__arrow {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.producer-card__arrow svg {
  width: 18px;
  height: 18px;
}

/* Categories text below the card (inside the white zone) */
.producer-card__categories {
  padding: 8px 20px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-dark, #1C2D1C);
}
.producer-card__cat-label {
  font-weight: 400;
}
.producer-card__cat-link {
  color: #45A0C9;
  text-decoration: underline;
  cursor: pointer;
}
.producer-card__cat-link:hover {
  text-decoration: none;
}
.producer-card__cat-more {
  color: #5D5D5D;
  font-size: 12px;
}

/* -----------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .producers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .producers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .producers-heading__title {
    font-size: 24px;
  }
}
@media (max-width: 700px) {
  .producers-grid {
    grid-template-columns: 1fr;
  }
  .producers-heading__title {
    font-size: 22px;
  }
  .producers-banner {
    margin-bottom: 28px;
  }
}
