/* ===== WRAP ===== */
.gumi-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
}

/* ===== TABOK ===== */
.gumi-tabs {
    display: flex;
    border-bottom: 3px solid #d10000;
    margin-bottom: 0;
    gap: 4px;
}
.gumi-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #eee;
    border: none;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    transition: background .18s, color .18s;
}
.gumi-tab:hover    { background: #ddd; }
.gumi-tab.is-active { background: #d10000; color: #fff; }

/* ===== PANEL ===== */
.gumi-panel {
    display: none;
    background: #f7f7f7;
    border: 1px solid #e2e2e2;
    border-top: none;
    border-radius: 0 6px 6px 6px;
    padding: 22px 20px 18px;
    margin-bottom: 30px;
}
.gumi-panel.is-active { display: block; }

/* ===== FIELDS ===== */
.gumi-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}
.gumi-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 120px;
    min-width: 110px;
}
.gumi-field--auto { flex: 0 1 280px; }
.gumi-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #666;
}

/* ===== LABEL + SÚGÓ (i) GOMB ===== */
.gumi-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    position: relative;
}
.gumi-label-row label { margin-bottom: 0; }
.gumi-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 1px solid #bbb;
    border-radius: 50%;
    background: #fff;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.gumi-info-btn:hover,
.gumi-info-btn:focus-visible {
    background: #d10000;
    border-color: #d10000;
    color: #fff;
    outline: none;
}
.gumi-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    width: 260px;
    max-width: 80vw;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: #444;
    line-height: 1.5;
    white-space: normal;
}
.gumi-tooltip.is-open { display: block; }
.gumi-tooltip strong { color: #222; }
.gumi-tooltip p { margin: 6px 0 0; }
.gumi-tooltip p:first-child { margin-top: 0; }
.gumi-help-table {
    border-collapse: collapse;
    margin-top: 6px;
    font-size: 11px;
}
.gumi-help-table td {
    padding: 2px 6px;
    border-bottom: 1px solid #eee;
}
.gumi-help-table td:nth-child(odd) { font-weight: 700; color: #222; }

/* ===== SELECT2 ===== */
.gumi-wrap .select2-container { width: 100% !important; }
.gumi-wrap .select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
}
.gumi-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 10px;
    color: #333;
    font-size: 14px;
}
.gumi-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 6px;
}
.gumi-wrap .select2-container--default.select2-container--focus .select2-selection--single,
.gumi-wrap .select2-container--default.select2-container--open  .select2-selection--single {
    border-color: #d10000;
    box-shadow: 0 0 0 2px rgba(209,0,0,.15);
    outline: none;
}
.select2-dropdown {
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 9px;
    font-size: 13px;
}
.select2-results__option--highlighted { background: #d10000 !important; }

/* ===== GOMBOK ===== */
.gumi-actions { display: flex; align-items: center; gap: 14px; }
.gumi-btn-search {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #d10000;
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s;
}
.gumi-btn-search:hover { background: #aa0000; }
.gumi-btn-reset {
    font-size: 13px;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
}
.gumi-btn-reset:hover { color: #d10000; }

/* ===== TALÁLATOK ===== */
.gumi-count { font-size: 14px; color: #666; margin-bottom: 18px; }
.gumi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

/* ===== KÁRTYA ===== */
.gumi-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    background: #fff;
}
.gumi-card a:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
    transform: translateY(-2px);
}
.gumi-card__img {
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    overflow: hidden;
}
.gumi-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.gumi-card__no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.gumi-card__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.gumi-card__title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
    color: #222;
}
.gumi-card__meta {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    font-size: 12px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.gumi-card__meta li span {
    font-weight: 700;
    color: #444;
    margin-right: 3px;
}
.gumi-card__price {
    font-size: 17px;
    font-weight: 800;
    color: #d10000;
    margin-bottom: 12px;
    margin-top: auto;
}
.gumi-card__btn {
    display: inline-block;
    background: #d10000;
    color: #fff;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    align-self: flex-start;
}

/* ===== LAPOZÓ ===== */
.gumi-pager { margin-top: 32px; text-align: center; }
.gumi-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s;
}
.gumi-pager .page-numbers:hover    { background: #f0f0f0; }
.gumi-pager .page-numbers.current  { background: #d10000; color: #fff; border-color: #d10000; }

/* ===== ÜRES ===== */
.gumi-empty { text-align: center; padding: 50px 20px; color: #aaa; }
.gumi-empty p { margin-top: 12px; font-size: 15px; }

/* ===== RESZPONZÍV ===== */
@media (max-width: 640px) {
    .gumi-fields { flex-direction: column; }
    .gumi-field, .gumi-field--auto { flex: 1 1 100%; }
    .gumi-grid  { grid-template-columns: 1fr 1fr; }
    .gumi-tab   { padding: 9px 14px; font-size: 13px; }
}
