/**
 * Kategorie Produktów - Style
 * 
 * Implementacja dopasowana do obrazka referencyjnego z:
 * - Białymi kartami
 * - Dużymi obrazkami po lewej
 * - Niebieskimi kropkami w liście produktów
 * 
 * @version 1.0.0
 */

/* Reset i podstawowe style */
.products-grid-container,
.products-grid-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Kontener główny */
.products-grid-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  background-color: #ffffff;
  font-family: Arial, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Karta kategorii */
.category-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background-color: #ffffff;
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid #eaeaea;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-card:hover,
.category-card.touch-active {
  background-color: #f8f9fa;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
}

/* Kontener obrazu */
.category-image-container {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
}

/* Obrazek kategorii */
.category-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Zawartość karty */
.category-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}

/* Nagłówek kategorii */
.category-header {
  margin: 0 0 12px 0 !important;
  padding: 0;
}

.category-header a {
  color: #1a4b91;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-header a:hover {
  color: #2563EB;
}

/* Lista produktów */
.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 7px;
  line-height: 1.3;
}

.product-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -2px;
  color: #2563EB;
  font-size: 16px;
  line-height: 1.4;
  font-weight: normal;
}

.product-list a {
  color: #666666;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  transition: color 0.2s ease;
  text-transform: lowercase;
}

.product-list a:first-letter {
  text-transform: uppercase;
}

.product-list a:hover {
  color: #2563EB;
}

/* Media queries dla responsywności */
@media (min-width: 768px) {
  .products-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
  
  .category-card {
    border-right: 1px solid #eaeaea;
    height: 100%;
  }
  
  .category-card:nth-child(2n) {
    border-right: none;
  }
  
  .category-image-container {
    width: 90px;
    height: 90px;
  }
}

@media (min-width: 992px) {
  .products-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .category-card {
    border-right: 1px solid #eaeaea;
  }
  
  .category-card:nth-child(2n) {
    border-right: 1px solid #eaeaea;
  }
  
  .category-card:nth-child(3n) {
    border-right: none;
  }
  
  .category-image-container {
    width: 80px;
    height: 80px;
  }
  
  .category-header a {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  .products-grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .category-card {
    border-right: 1px solid #eaeaea;
  }
  
  .category-card:nth-child(2n),
  .category-card:nth-child(3n) {
    border-right: 1px solid #eaeaea;
  }
  
  .category-card:nth-child(4n) {
    border-right: none;
  }
}