/* Kataloog v2 (archive-v2.php) — tulemuste rida: [tulemuste arv] … [omadused] [Hinnaklass] [Lamelli tüüp] [Järjesta]
   Kaardid: css/product-card-v2.css (bloki stiil). */

.hr-archive-v2 .hr-results-row {
    flex-wrap: wrap !important;
    align-items: center;
    gap: 12px 24px;
    margin-block: 20px 16px;
}
.hr-archive-v2 .hr-results-row .woocommerce-result-count {
    margin: 0;
    font-size: 15px;
    color: #555;
}

.hr-rf-bar--v2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 16px;
    margin-left: auto;
}
.hr-rf-bar--v2 .wc-block-catalog-sorting { margin: 0; font-size: 15px; }
.hr-rf-bar--v2 form { margin: 0; }

.hr-rf-field {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hr-rf-label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}
.hr-rf-bar--v2 select {
    height: 40px;
    min-width: 150px;
    padding: 0 32px 0 12px;
    border: 1px solid #D5D5D2;
    border-radius: 8px;
    background-color: #fff;
    color: #1A1A1A;
    font-size: 15px;
}
.hr-rf-bar--v2 select:focus-visible { outline: 2px solid #1F3A5F; outline-offset: 1px; }

/* Omaduste pillid */
.hr-rf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hr-rf-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #D5D5D2;
    border-radius: 999px;
    background: #fff;
    color: #1A1A1A;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.hr-rf-chip:hover { border-color: #1F3A5F; color: #1A1A1A; }
.hr-rf-chip:focus-visible { outline: 2px solid #1F3A5F; outline-offset: 2px; }
.hr-rf-chip.is-on { background: #1F3A5F; border-color: #1F3A5F; color: #fff; }
.hr-rf-chip.is-on:hover { background: #16304F; color: #fff; }
.hr-rf-chip-x { margin-left: 2px; font-size: 16px; font-weight: 400; }

/* Mobiil: [pillid] / [Hinnaklass | Lamelli tüüp] / [tulemuste arv | Järjesta] */
@media (max-width: 600px) {
    .hr-archive-v2 .hr-results-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-items: end;
    }
    .hr-archive-v2 .hr-results-row .hr-rf-bar--v2 { display: contents; }
    .hr-archive-v2 .hr-results-row .hr-rf-chips { grid-column: 1 / -1; order: 1; }
    .hr-archive-v2 .hr-results-row .hr-rf-field { flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; }
    .hr-archive-v2 .hr-results-row .hr-rf-field--hinnaklass { order: 2; }
    .hr-archive-v2 .hr-results-row .hr-rf-field--lamell { order: 3; }
    .hr-archive-v2 .hr-results-row:not(:has(.hr-rf-field--lamell)) .hr-rf-field--hinnaklass { grid-column: 1 / -1; }
    .hr-archive-v2 .hr-results-row > .wp-block-woocommerce-product-results-count { order: 4; align-self: center; }
    .hr-archive-v2 .hr-results-row .hr-rf-field--sort { order: 5; }
    .hr-archive-v2 .hr-results-row .woocommerce-result-count { font-size: 13px; }
    .hr-rf-label { font-size: 13px; }
    .hr-rf-bar--v2 select { width: 100%; min-width: 0; font-size: 16px; } /* 16px: iOS ei suumi */
    .hr-rf-chip { height: 34px; padding: 0 10px; font-size: 13px; }
}

/* Lehekülgede numbrid: brändi punane (teema style.css: oranž gradient) */
.hr-archive-v2 .hnd-padination .page-numbers {
    border-color: #dcd9d3;
    background: #fff;
    color: #1a1a1a;
}
.hr-archive-v2 .hnd-padination .page-numbers:hover {
    border-color: #1a1a1a;
    background: #fff;
    box-shadow: none;
}
.hr-archive-v2 .hnd-padination .page-numbers.current {
    border-color: #C8102E;
    background: #C8102E;
    color: #fff;
    box-shadow: none;
}
.hr-archive-v2 .hnd-padination .wp-block-query-pagination-next,
.hr-archive-v2 .hnd-padination .wp-block-query-pagination-previous {
    border: 1px solid #dcd9d3;
    background: #fff;
    color: #1a1a1a;
}
.hr-archive-v2 .hnd-padination .wp-block-query-pagination-next:hover,
.hr-archive-v2 .hnd-padination .wp-block-query-pagination-previous:hover {
    border-color: #C8102E;
    color: #C8102E;
    box-shadow: none;
}
