/* KS Listing - Toolbar and view switch */

/* === SZYBKIE FILTRY UPRAW === */
.ks-quick-crops {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.ks-quick-crops__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.ks-quick-crops__label svg {
    color: #16a34a;
}

.ks-quick-crops__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ks-quick-crop {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ks-quick-crop:hover {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #16a34a;
}

.ks-quick-crop.is-active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.ks-quick-crop.is-active .ks-quick-crop__icon {
    background-color: rgba(255,255,255,0.3) !important;
}

.ks-quick-crop__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    color: #fff;
}

.ks-quick-crop__name {
    font-weight: 500;
}

.ks-quick-crop--more {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.ks-quick-crop--more .ks-quick-crop__icon {
    background: #9ca3af !important;
    font-size: 10px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .ks-quick-crops {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
        margin: 0 -15px 12px;
        padding-left: 15px;
        padding-right: 15px;
        scrollbar-width: none;
    }

    .ks-quick-crops::-webkit-scrollbar {
        display: none;
    }

    .ks-quick-crops__list {
        flex-wrap: nowrap;
    }

    .ks-quick-crop__name {
        display: none;
    }

    .ks-quick-crop {
        padding: 6px 8px;
    }
}

.ks-view-toggle {
  display: inline-flex;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.ks-view-btn {
  background: #fff;
  border: 0;
  padding: 8px 10px;
  cursor: pointer;
  color: #333;
}

.ks-view-btn.is-active {
  background: #1e8e3e;
  color: #fff;
}

.ks-view-btn svg {
  display: block;
}

.ks-products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (max-width: 991px) {
  .ks-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .ks-products-grid {
    grid-template-columns: 1fr;
  }
}

.ks-products-grid.ks-view-list {
  grid-template-columns: 1fr;
}

.ks-products-grid.ks-view-list > * {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width: 767px) {
  .ks-products-grid.ks-view-list > * {
    flex-direction: column;
  }
}
