/* ================================
   KONTAINER WYNIKÓW
================================ */

.container-results {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.results-title {
    font-size: 28px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* ================================
   LIMIT WYNIKÓW – PRAWA STRONA
================================ */

.results-limit {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-bottom: 25px;
    font-size: 15px;
}

.results-limit span {
    font-weight: 600;
    margin-right: 5px;
}

/* Małe, szare przyciski */
.results-limit a {
    padding: 4px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;

    background: linear-gradient(180deg, #f0f0f0 0%, #d9d9d9 100%);
    border: 1px solid #bfbfbf;
    color: #333;

    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    transition: .2s ease;
}

.results-limit a:hover {
    background: linear-gradient(180deg, #ffffff 0%, #e3e3e3 100%);
    transform: translateY(-1px);
}

/* aktywny przycisk */
.results-limit a.active {
    background: linear-gradient(180deg, #d0d0d0 0%, #b8b8b8 100%);
    border-color: #9e9e9e;
    box-shadow: 0 3px 6px rgba(0,0,0,0.18);
}

/* ================================
   POJEDYNCZY WIERSZ OFERTY
================================ */

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: 0.2s ease;
}

.result-row:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* ================================
   KOLUMNY
================================ */

.result-col {
    flex: 1;
}

.thumb-col {
    max-width: 180px;
}

.thumb-col img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ================================
   OPIS
================================ */

.info-col {
    padding: 0 20px;
}

.offer-title {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.offer-code {
    font-size: 14px;
    color: #666;
}

.offer-number {
    font-size: 11px;
    color: #666;
    margin-top: 10px;
    font-family: "Courier New", monospace;
    letter-spacing: 0.5px;
}

/* ================================
   CENA + PRZYCISK
================================ */

.price-col {
    text-align: right;
}

.offer-price {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #0a7a00;
}

.offer-btn {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(180deg, #F2AB0F 0%, #D89200 100%);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: 0.2s ease;
}

.offer-btn:hover {
    background: linear-gradient(180deg, #FFC53A 0%, #E6A300 100%);
    transform: translateY(-1px);
}

/* ================================
   PAGINACJA
================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.page-btn {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: 0.2s ease;
}

.page-btn:hover {
    background: #eaeaea;
}

.page-btn.active {
    background: linear-gradient(180deg, #F2AB0F 0%, #D89200 100%);
    color: #fff;
    border-color: #b07800;
}

/* ================================
   RESPONSYWNOŚĆ
================================ */

@media (max-width: 768px) {
    .result-row {
        flex-direction: column;
        text-align: center;
    }

    .info-col {
        padding: 10px 0;
    }

    .price-col {
        text-align: center;
        margin-top: 10px;
    }

    .thumb-col img {
        width: 200px;
    }

    .results-limit {
        justify-content: center;
    }
}

/* PANEL FILTRÓW */
.filters-panel {
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: flex-end;
}

/* POJEDYNCZY FILTR */
.filter-item {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

.filter-item label {
    font-size: 13px;
    color: #444;
    margin-bottom: 4px;
    font-weight: 500;
}

/* SELECTY */
.filter-item select {
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-item select:disabled {
    background: #eee;
    cursor: not-allowed;
    color: #777;
}

.filter-item select:hover:not(:disabled) {
    border-color: #888;
}

/* PRZYCISK RESET */
.filter-reset {
    padding: 7px 14px;
    background: #999;
    color: white;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.filter-reset:hover {
    background: #777;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item {
        width: 100%;
    }

    .filter-reset {
        width: 100%;
        text-align: center;
    }
}

