/* GH Reviews — minimalistyczny styl pod sekcje "Opinie klientow" */

.ghr-wrap {
    max-width: 1200px;
    margin: 2em auto;
    font-family: inherit;
}

.ghr-summary {
    padding: 1em 1.2em;
    background: linear-gradient(135deg, #f7f7f9 0%, #eef4f8 100%);
    border-radius: 8px;
    margin-bottom: 1.2em;
    font-size: 1.05em;
    border-left: 4px solid #2a8a3e; /* zielony - "verified/positive" */
}
.ghr-summary-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7em;
    margin-bottom: 0.4em;
}
.ghr-summary-stats {
    font-size: 0.95em;
    color: #444;
    line-height: 1.6;
}
.ghr-summary-stats strong { color: #2a8a3e; font-size: 1.1em; font-weight: 700; }
.ghr-summary-note {
    font-size: 0.82em;
    color: #777;
    margin-top: 0.4em;
    line-height: 1.5;
}
.ghr-summary-note a { color: #0064d2; text-decoration: none; }
.ghr-summary-note a:hover { text-decoration: underline; }
.ghr-summary .ghr-stars-big {
    color: #f5a623;
    font-size: 1.4em;
    letter-spacing: 1px;
}
.ghr-summary .ghr-avg { font-weight: 700; font-size: 1.1em; }
.ghr-summary .ghr-pos { color: #2a8a3e; }
.ghr-summary .ghr-neu { color: #b08a00; }
.ghr-summary .ghr-neg { color: #c62828; }
.ghr-summary .ghr-stats-sep { color: #aaa; margin: 0 0.1em; }

.ghr-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    background: #fff;
    color: #444;
    padding: 0.35em 0.8em;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid #d0d8e0;
}
.ghr-verified .ghr-check { color: #2a8a3e; }

.ghr-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    color: #2a8a3e;
    font-weight: 600;
    font-size: 0.95em;
}
.ghr-ebay-link {
    color: #0064d2;
    text-decoration: none;
    font-size: 0.92em;
}
.ghr-ebay-link:hover { text-decoration: underline; }

.ghr-search {
    margin-bottom: 1.2em;
}
.ghr-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7em 1em;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.ghr-search-input:focus {
    border-color: #0073aa;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.ghr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2em;
}

.ghr-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 1em 1.1em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    transition: box-shadow 0.15s ease;
}
.ghr-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.ghr-head {
    font-size: 0.92em;
    color: #444;
    line-height: 1.4;
}
.ghr-head .ghr-sku {
    display: block;
    font-weight: 600;
}
.ghr-head .ghr-desc {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-top: 0.15em;
}
.ghr-sku-type { color: #222; font-weight: 700; }
.ghr-sku-code {
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.1s ease;
}
.ghr-sku-code:hover {
    color: #005a87;
    border-bottom-color: currentColor;
}
.ghr-sku-qty  { color: #888; font-weight: 500; font-size: 0.92em; }
.ghr-sku-plus { color: #aaa; font-weight: 400; margin: 0 0.15em; }

.ghr-rating {
    color: #f5a623;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.ghr-text {
    margin: 0;
    padding: 0.4em 0;
    border-left: 3px solid #f5a623;
    padding-left: 0.8em;
    color: #222;
    font-style: italic;
    line-height: 1.4;
}

.ghr-orig {
    font-size: 0.78em;
    color: #999;
    cursor: help;
}

.ghr-pics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}
.ghr-thumb {
    display: block;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.ghr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}
.ghr-thumb:hover img { transform: scale(1.08); }

.ghr-foot {
    margin-top: auto;
    padding-top: 0.4em;
    border-top: 1px dashed #eee;
    font-size: 0.8em;
    color: #777;
}
.ghr-foot .ghr-author { font-weight: 600; }
.ghr-foot .ghr-author[data-full] {
    cursor: pointer;
    border-bottom: 1px dotted #aaa;
    transition: color 0.12s ease, border-color 0.12s ease;
}
.ghr-foot .ghr-author[data-full]:hover,
.ghr-foot .ghr-author[data-full]:focus {
    color: #0064d2;
    border-bottom-color: #0064d2;
    outline: none;
}
.ghr-foot .ghr-author-revealed { color: #444; }

.ghr-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2em;
    color: #999;
    font-style: italic;
}

.ghr-paginator {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3em;
    justify-content: center;
    margin: 1.8em 0 0.5em;
}
.ghr-pg, .ghr-pg-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4em;
    padding: 0.5em 0.7em;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1;
}
a.ghr-pg {
    background: #f3f3f7;
    color: #0073aa;
    text-decoration: none;
    transition: background 0.12s ease;
}
a.ghr-pg:hover { background: #e1e7f0; }
.ghr-pg-current {
    background: #0073aa;
    color: #fff;
    font-weight: 700;
}
.ghr-pg-gap {
    color: #999;
    background: transparent;
    min-width: auto;
    padding: 0.5em 0.2em;
}
.ghr-pg-prev, .ghr-pg-next {
    font-size: 1.1em;
    font-weight: 700;
}

@media (max-width: 480px) {
    .ghr-grid { grid-template-columns: 1fr; }
    .ghr-thumb { width: 60px; height: 60px; }
}

/* ============================================================
   LIGHTBOX MODAL — pelno-ekranowy podglad zdjec opinii
   ============================================================ */
.ghr-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 2vh 2vw;
    user-select: none;
}
.ghr-lightbox.ghr-lb-open { display: flex; }

.ghr-lb-img {
    max-width: 96vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.18s ease;
    cursor: zoom-out;
}

.ghr-lb-close, .ghr-lb-prev, .ghr-lb-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 1.6em;
    line-height: 1;
    padding: 0;
    border-radius: 50%;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ghr-lb-close:hover, .ghr-lb-prev:hover, .ghr-lb-next:hover {
    background: rgba(255, 255, 255, 0.28);
}
.ghr-lb-close {
    top: 1.5vh; right: 2vw;
    width: 44px; height: 44px;
    font-size: 1.8em;
}
.ghr-lb-prev, .ghr-lb-next {
    top: 50%;
    transform: translateY(-50%);
    width: 56px; height: 56px;
    font-size: 2.4em;
}
.ghr-lb-prev { left: 2vw; }
.ghr-lb-next { right: 2vw; }

.ghr-lb-counter {
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.35em 0.8em;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 500;
}

.ghr-lb-spinner {
    display: none;
    position: absolute;
    width: 48px; height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ghr-lb-spin 0.8s linear infinite;
}
.ghr-lightbox.ghr-lb-loading .ghr-lb-spinner { display: block; }
@keyframes ghr-lb-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .ghr-lb-prev, .ghr-lb-next { width: 44px; height: 44px; font-size: 1.8em; }
    .ghr-lb-close { width: 38px; height: 38px; font-size: 1.5em; }
}
