/* Kolorystyka "testowa" przeniesiona z panelu sprzedawcy (adminseller):
   głębsza czerń z lekkim czerwonym podbarwieniem, subtelne ramki,
   białe ceny i złote oceny zamiast czerwonych akcentów wszędzie. */
:root {
    --bg-main: #050202;
    --bg-card: #0e0606;
    --bg-hover: #170909;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-muted: #8a8a8a;
    --nav-height: 70px;
    --primary: #E60000;
    --accent: #FF1A1A;
    --gold: #FFD24D;
    --active-bg: #8A0000;
    --error: #FF4081;
    --text-main: #FFFFFF;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.catalog-main.full-width-mode {
    /* więcej oddechu po bokach: rośnie z ekranem, ale ma sufit */
    padding: 6vw clamp(16px, 3.4vw, 64px) 4vw;
    max-width: 1920px;
    margin: 0 auto;
    min-height: 100vh;
}

.catalog-header {
    margin-bottom: 25px;
    width: 100%;
}

.header-layout-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 10px;
}
.header-main-content {
    width: 100%;
    max-width: 900px;
}

.header-left-stats {
    grid-column: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
    border: none;
}

/* NOWE STYLE DLA TOPKI - Kompaktowy widżet w kwadratach */
.header-left-stats {
    grid-column: 1;
    padding: 0; 
    display: flex;
    height: 100%;
}

.top-stats-compact-widget {
    background: linear-gradient(160deg, #120606 0%, #0a0303 100%);
    border: 1px solid rgba(230,0,0,0.18);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-between;
    box-shadow: 0 12px 28px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.03);
    position: relative;
    overflow: hidden;
}
.top-stats-compact-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(230,0,0,0.6), transparent);
}

.top-stats-header {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.tsh-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00FF99;
    box-shadow: 0 0 10px #00FF99;
    animation: tshPulse 1.4s ease-in-out infinite;
}
@keyframes tshPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}
.top-stats-header i { color: var(--primary); font-size: 0.85rem; }
.tsh-text { flex: 1; }
.tsh-live {
    font-size: 0.55rem;
    font-weight: 800;
    color: #00FF99;
    background: rgba(0,255,153,0.1);
    border: 1px solid rgba(0,255,153,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.6px;
}

.top-rank-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.top-rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 6px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.top-rank-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, rgba(230,0,0,0.55), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.top-rank-row:hover::before { opacity: 1; }
.top-rank-row:hover {
    border-color: rgba(230,0,0,0.4);
    background: linear-gradient(90deg, rgba(230,0,0,0.08), rgba(230,0,0,0.02));
    transform: translateX(2px);
}

.trr-rank {
    flex-shrink: 0;
    width: 26px;
    text-align: center;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: -0.5px;
    line-height: 1;
}
.trr-rank.gold { color: #FFD700; text-shadow: 0 0 8px rgba(255,215,0,0.4); }
.trr-rank.silver { color: #C0C0C0; }
.trr-rank.bronze { color: #CD7F32; }

.trr-thumb {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #060000;
    border: 1px solid rgba(255,255,255,0.06);
}
.trr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.top-rank-row:hover .trr-thumb img { transform: scale(1.1); }

.trr-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trr-cat {
    font-size: 0.58rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trr-name {
    font-size: 0.74rem;
    font-weight: 600;
    color: #f0f0f0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.trr-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 1px;
}

.trr-price {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.trr-growth {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.62rem;
    font-weight: 700;
    color: #00FF99;
    background: rgba(0,255,153,0.08);
    border: 1px solid rgba(0,255,153,0.22);
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}
.trr-growth i { font-size: 0.55rem; }

.ts-view-all {
    width: 100%;
    background: linear-gradient(135deg, rgba(230,0,0,0.12), rgba(230,0,0,0.04));
    border: 1px solid rgba(230,0,0,0.4);
    color: #fff;
    padding: 9px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.ts-view-all i:first-child { color: #FFD700; }
.ts-view-all i:last-child { font-size: 0.7rem; transition: transform 0.25s ease; }
.ts-view-all:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #8A0000));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(230,0,0,0.4);
    transform: translateY(-1px);
}
.ts-view-all:hover i:first-child { color: #fff; }
.ts-view-all:hover i:last-child { transform: translateX(3px); }

.show-full-top-btn { 
    width: 100%; 
    background: linear-gradient(135deg, var(--bg-card), var(--bg-hover)); 
    border: 1px solid var(--primary); 
    color: white; 
    padding: 8px; 
    border-radius: 8px; 
    font-family: 'Poppins', sans-serif; 
    font-weight: 700; 
    font-size: 0.8rem; 
    cursor: pointer; 
    transition: 0.3s; 
    box-shadow: 0 4px 10px rgba(230,0,0,0.15); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.show-full-top-btn:hover { 
    background: var(--primary); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(230,0,0,0.3); 
    color: #fff; 
}

/* MODAL / SLIDER Z PEŁNĄ TOPKĄ */
#fullTopModal.kako-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
#fullTopModal.kako-modal-overlay.show { display: flex; animation: ftOverlayIn 0.25s ease; }
@keyframes ftOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.full-top-modal-content {
    background: linear-gradient(180deg, #0c0606 0%, #050202 100%);
    width: 92vw;
    max-width: 1400px;
    height: 86vh;
    border-radius: 18px;
    border: 1px solid rgba(230,0,0,0.25);
    padding: 26px 28px 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.85), 0 0 60px rgba(230,0,0,0.1);
    animation: ftModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes ftModalIn { from { opacity: 0; transform: scale(0.96) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.full-top-modal-content .modal-close-x {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15,15,15,0.85);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    z-index: 3;
}
.full-top-modal-content .modal-close-x:hover { background: var(--primary); transform: rotate(90deg); }

.ft-modal-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: white;
    text-align: center;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.ft-modal-title i { color: #FFD700; }
.ft-modal-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 18px;
}
.ft-modal-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 18px;
    flex: 1;
    min-height: 0;
}
.ft-sidebar {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    max-height: 100%;
}
.ft-sidebar-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 8px;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ft-sidebar-title i { color: var(--primary); }
.ft-sidebar-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #ccc;
    text-align: left;
    padding: 8px 10px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.ft-sidebar-btn:hover { background: rgba(230,0,0,0.08); color: #fff; }
.ft-sidebar-btn.active { background: rgba(230,0,0,0.16); border-color: rgba(230,0,0,0.35); color: #fff; }
.ft-sb-count {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
}
.ft-cat-sub { color: var(--text-muted); font-weight: 500; font-size: 0.85rem; text-transform: none; letter-spacing: 0; }

@media (max-width: 900px) {
    .ft-modal-body { grid-template-columns: 1fr; }
    .ft-sidebar { flex-direction: row; flex-wrap: wrap; max-height: none; overflow-x: auto; overflow-y: hidden; }
    .ft-sidebar-title { display: none; }
    .ft-sidebar-btn { flex-shrink: 0; }
    .full-top-modal-content { padding: 20px 18px; }
    .ft-modal-title { font-size: 1.3rem; }
}

#fullTopSliderContainer { 
    flex: 1; 
    overflow-y: auto; 
    overflow-x: hidden; 
    padding-right: 10px; 
}

#fullTopSliderContainer::-webkit-scrollbar { width: 8px; }
#fullTopSliderContainer::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 8px; }

.full-top-slider-wrapper { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
}

.full-top-cat-slide { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    padding: 15px; 
}

.full-top-cat-slide h3 { 
    margin: 0 0 15px 0; 
    font-size: 1.2rem; 
    color: var(--accent); 
    border-bottom: 1px solid var(--border-color); 
    padding-bottom: 10px; 
    font-weight: 800; 
    text-transform: uppercase; 
}

.full-top-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 15px; 
}

.full-top-card { 
    display: flex; 
    flex-direction: column; 
    background: var(--bg-hover); 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    padding: 10px; 
    text-decoration: none; 
    color: white; 
    transition: 0.3s; 
    position: relative; 
    overflow: hidden; 
}

.full-top-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary); 
    box-shadow: 0 8px 20px rgba(230,0,0,0.2); 
    z-index: 2; 
}

.full-top-rank { 
    position: absolute; 
    top: 0; 
    left: 0; 
    background: var(--primary); 
    font-weight: 900; 
    padding: 4px 10px; 
    border-radius: 0 0 10px 0; 
    font-size: 0.8rem; 
    z-index: 2; 
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5); 
}

.full-top-card img { 
    width: 100%; 
    height: 140px; 
    object-fit: cover; 
    border-radius: 6px; 
    margin-bottom: 10px; 
}

.full-top-info { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}

.ft-name { 
    font-size: 0.85rem; 
    font-weight: 600; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.ft-growth { 
    font-size: 0.75rem; 
    color: #2ecc71; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    background: rgba(46, 204, 113, 0.1); 
    padding: 4px 6px; 
    border-radius: 4px; 
    width: fit-content; 
}

.header-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-center-title {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.header-center-title h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-center-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0 0 12px 0;
}

/* === Szkielety kart (pierwszy render zanim przyjdą dane z API) === */
.product-skeleton {
    background: var(--bg-card, #0e0606);
    border: 1px solid var(--border-color, rgba(255,255,255,0.06));
    border-radius: 12px;
    overflow: hidden;
    padding: 0 0 12px;
    animation: psFadeIn 0.3s ease backwards;
}
@keyframes psFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.ps-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #110707;
    overflow: hidden;
}
.ps-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    animation: psShimmer 1.3s ease-in-out infinite;
}
@keyframes psShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.ps-line {
    height: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    margin: 10px 12px 0;
    position: relative;
    overflow: hidden;
}
.ps-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    animation: psShimmer 1.3s ease-in-out infinite;
}
.ps-line-cat { width: 32%; height: 8px; margin-top: 12px; opacity: 0.7; }
.ps-line-title { width: 88%; height: 12px; margin-top: 10px; }
.ps-line-title.short { width: 60%; }
.ps-line-price { width: 38%; height: 14px; margin-top: 14px; }

.header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(230,0,0,0.18), rgba(230,0,0,0.05));
    border: 1px solid rgba(230,0,0,0.35);
    color: #FF8585;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 14px;
}
.header-eyebrow i { color: var(--primary); font-size: 0.75rem; }

.header-quick-stats {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    margin: 14px auto 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.005));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 6px 10px;
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
    justify-content: center;
}
.hqs-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
}
.hqs-item i {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(230,0,0,0.1);
    border: 1px solid rgba(230,0,0,0.28);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.hqs-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}
.hqs-num {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
}
.hqs-label {
    font-size: 0.62rem;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}
.hqs-divider {
    width: 1px;
    background: rgba(255,255,255,0.08);
    margin: 6px 0;
}

@media (max-width: 768px) {
    .header-quick-stats { padding: 4px; gap: 4px; }
    .hqs-item { padding: 6px 10px; gap: 7px; }
    .hqs-divider { display: none; }
    .hqs-num { font-size: 0.82rem; }
}

.header-widgets-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* === Floating "Trending teraz" panel (otwierany przez TOP) === */
.trending-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: trendFadeIn .25s ease;
}
.trending-panel-overlay.hidden { display: none; }
@keyframes trendFadeIn { from { opacity: 0; } to { opacity: 1; } }

.trending-panel {
    position: relative;
    max-width: 460px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #0e0606 0%, #050000 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px 14px 14px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.75), 0 0 40px rgba(230,0,0,0.12);
    animation: trendPanelIn .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes trendPanelIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.trending-panel-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .2s ease;
    z-index: 2;
}
.trending-panel-close:hover { background: var(--primary, #E60000); color: #fff; transform: rotate(90deg); }
/* Wewnątrz panelu top-stats-compact-widget już ma styl - tylko poprawki */
.trending-panel .top-stats-compact-widget { margin: 0; }

/* === Floating Sheets FAB — małe zielone kółko nad kołem fortuny ===
   Koło fortuny (.kfw-fab z promo-widgets.js): 62px, bottom:22/right:18.
   Arkusz jest celowo MNIEJSZY (44px) i wycentrowany do tej samej osi. */
.sheets-fab-wrap {
    position: fixed;
    right: 27px;  /* środek FAB = środek koła fortuny (18 + 31 = 49 = 27 + 22) */
    bottom: 98px;
    z-index: 8000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #1FA968, #14633F);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(20, 99, 63, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.sheets-fab-wrap:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 16px 34px rgba(31, 169, 104, 0.55); }
.sheets-fab-wrap:active { transform: translateY(-1px) scale(.97); }
.sheets-fab-tip {
    position: absolute;
    right: 54px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    padding: 6px 11px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .22s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.sheets-fab-wrap:hover .sheets-fab-tip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

/* Glowny arkusz w mini-icons w headerze - akcent zloty */
.mini-sheet--main {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.15), rgba(255, 196, 0, 0.08)) !important;
    border-color: rgba(255, 196, 0, 0.5) !important;
}
.mini-sheet--main i { color: #FFD700 !important; }
.mini-sheet--main:hover {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.25), rgba(255, 196, 0, 0.12)) !important;
    border-color: rgba(255, 196, 0, 0.85) !important;
    box-shadow: 0 0 14px rgba(255, 196, 0, 0.2);
}

@media (max-width: 600px) {
    .trending-panel { padding: 14px 10px 10px; }
}

/* Na mobile koło fortuny ma 54px / bottom:16 - utrzymaj Arkusz nad nim, w tej samej osi */
@media (max-width: 768px) {
    .sheets-fab-wrap { width: 40px; height: 40px; right: 19px; bottom: 80px; font-size: 1rem; }
    .sheets-fab-tip { display: none; }
}

/* === Pusty stan wyników (z maskotką KakoFind) === */
.kf-empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 64px 20px; gap: 14px;
}
.kf-empty-state__mascot {
    width: 190px; max-width: 60vw; height: auto;
    filter: drop-shadow(0 14px 34px rgba(230,0,0,.28));
    margin-bottom: 4px;
}
.kf-empty-state h3 { margin: 0; font-size: 1.4rem; font-weight: 800; color: #fff; }
.kf-empty-state p { margin: 0; max-width: 420px; color: var(--text-muted, #808080); font-size: .96rem; line-height: 1.55; }
.kf-empty-state__btn {
    margin-top: 8px; display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
    background: linear-gradient(135deg, #E60000, #FF1A1A); color: #fff; border: none;
    padding: 12px 24px; border-radius: 12px; font-family: inherit; font-weight: 700; font-size: .95rem;
    box-shadow: 0 10px 26px rgba(230,0,0,.32); transition: transform .2s ease, box-shadow .2s ease;
}
.kf-empty-state__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(230,0,0,.45); }
.kf-empty-state__btn:active { transform: translateY(0); }

/* === Proponowane podobne produkty (po końcu wyników wyszukiwania) === */
.similar-divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 26px 0 10px;
    animation: sdFadeIn .4s ease both;
}
.similar-divider .sd-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230,0,0,.45), transparent);
}
.similar-divider .sd-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}
.similar-divider .sd-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    white-space: nowrap;
}
.similar-divider .sd-title i {
    color: var(--accent, #FF1A1A);
    filter: drop-shadow(0 0 8px rgba(230,0,0,.5));
}
.similar-divider .sd-sub {
    font-size: .76rem;
    color: var(--text-muted, #808080);
    max-width: 480px;
}
@keyframes sdFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .similar-divider { gap: 10px; }
    .similar-divider .sd-title { font-size: .92rem; white-space: normal; }
}

/* === Minimalistyczne ikony w topce spreadsheeta === */
.header-mini-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 18px;
    flex-wrap: wrap;
}
.mini-icon {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #d8d8d8;
    padding: 9px 14px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.mini-icon i { font-size: 0.95rem; }
.mini-icon:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.07);
    color: #fff;
}
.mini-discord:hover { border-color: #5865F2; color: #fff; box-shadow: 0 6px 18px rgba(88,101,242,0.25); }
.mini-discord i { color: #5865F2; }
.mini-sheet:hover { border-color: #1F8E5C; color: #fff; box-shadow: 0 6px 18px rgba(31,142,92,0.22); }
.mini-sheet i { color: #1F8E5C; }
.mini-top:hover { border-color: #F5C518; color: #fff; box-shadow: 0 6px 18px rgba(245,197,24,0.25); }
.mini-top i { color: #F5C518; }
.mini-top.active {
    background: linear-gradient(135deg, rgba(245,197,24,0.18), rgba(245,197,24,0.06));
    border-color: rgba(245,197,24,0.55);
    color: #fff;
}
.mini-icon-label { line-height: 1; }
@media (max-width: 520px) {
    .mini-icon { padding: 8px 12px; font-size: 0.72rem; }
    .header-mini-icons { gap: 8px; }
}

.compact-widget {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    margin: 0;
}

.kako-compare-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.compare-tabs {
    display: flex;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-color);
}

.compare-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.compare-btn i { font-size: 0.9rem; }
.compare-btn:hover { color: var(--text-main); }
.compare-btn.active { color: #fff; background: linear-gradient(135deg, rgba(230,0,0,0.15), rgba(255,26,26,0.05)); }
.compare-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: var(--primary); }

.compare-content {
    padding: 12px;
    position: relative;
    flex-grow: 1;
}

.compare-pane {
    display: none;
    animation: fadeInPane 0.4s ease forwards;
    height: 100%;
}

.compare-pane.active {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
}

.pane-icon {
    font-size: 1.2rem;
    color: var(--primary);
    background: var(--bg-main);
    padding: 8px;
    border-radius: 50%;
    border: 1px solid rgba(230,0,0,0.3);
    flex-shrink: 0;
}

.pane-text h4 { margin: 0 0 4px 0; font-size: 0.85rem; color: var(--text-main); font-weight: 700; }
.pane-text p { margin: 0; color: var(--text-muted); font-size: 0.7rem; line-height: 1.4; }
.pane-text strong { color: var(--text-main); }
.pane-link-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; background: var(--primary); color: #fff; text-decoration: none; padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; transition: all 0.3s ease; }
.pane-link-btn:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(230,0,0,0.4); }

.discord-promo-widget {
    background: linear-gradient(135deg, #121212, #161621);
    border: 1px solid #5865F2;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(88, 101, 242, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: left;
}

.discord-promo-widget:hover { transform: translateY(-3px); border-color: #7289da; }
.discord-promo-widget::before { content: ''; position: absolute; top: -30px; right: -30px; width: 90px; height: 90px; background: radial-gradient(circle, rgba(88,101,242,0.35) 0%, transparent 70%); border-radius: 50%; z-index: 1; pointer-events: none; }
.discord-promo-content { position: relative; z-index: 2; display: flex; flex-direction: column; }
.discord-promo-content .discord-icon { font-size: 1.2rem; color: #5865F2; margin-bottom: 4px; }
.discord-promo-content h4 { margin: 0 0 4px 0; font-size: 0.85rem; font-weight: 700; color: #fff; }
.discord-promo-content p { margin: 0 0 8px 0; font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; flex-grow: 1; }
.discord-join-btn { align-self: flex-start; background: #5865F2; color: white; padding: 5px 12px; border-radius: 4px; font-weight: 600; font-size: 0.7rem; display: flex; align-items: center; gap: 4px; transition: background 0.3s ease; }
.discord-promo-widget:hover .discord-join-btn { background: #4752C4; }

.mobile-widgets-btn {
    display: none;
    background: var(--bg-hover);
    color: white;
    border: 1px solid var(--border-color);
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.mobile-widgets-btn:hover { background: var(--primary); }

@keyframes fadeInPane { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.sticky-filter-bar { position: sticky; top: var(--nav-height); z-index: 900; background: rgba(18, 18, 18, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin-bottom: 2vw; transition: top 0.3s ease, background 0.3s ease, border-color 0.3s ease, height 0.3s ease; overflow: visible; }
/* Pasek filtrów jak w panelu sprzedawcy: etykietowane, kompaktowe pola w jednym rzędzie */
.filter-bar-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 10px 24px 12px; max-width: 100%; transition: all 0.3s ease; }
.kf-filter-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 135px; }
.kf-filter-field--search { flex: 2.4; min-width: 230px; }
.kf-filter-field--btn { flex: 0 0 auto; min-width: 0; }
.kf-filter-field > label {
    font-size: 0.64rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-muted); line-height: 1;
}
.kf-filter-field select,
.kf-filter-field input {
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color);
    color: #fff; border-radius: 9px; padding: 0 10px; height: 38px;
    font-size: 0.8rem; font-family: 'Poppins', sans-serif; outline: none;
    width: 100%; min-width: 0; transition: border-color 0.18s ease;
}
.kf-filter-field select:focus,
.kf-filter-field input:focus { border-color: var(--primary); }
.kf-filter-field select option { background-color: #161010; color: #fff; }
.kf-range-row { display: flex; align-items: center; gap: 6px; }
.kf-range-row span { color: var(--text-muted); font-size: 0.8rem; }
.kf-range-row input { width: 100%; text-align: center; }
.kf-range-row input[type="number"]::-webkit-outer-spin-button,
.kf-range-row input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kf-range-row input[type="number"] { -moz-appearance: textfield; }
.kf-clear-btn {
    background: rgba(230, 0, 0, 0.08); border: 1px solid rgba(230, 0, 0, 0.35);
    color: #fff; border-radius: 9px; padding: 0 14px; height: 38px;
    font-size: 0.78rem; font-weight: 700; font-family: 'Poppins', sans-serif; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    transition: all 0.2s ease;
}
.kf-clear-btn:hover { background: var(--primary); }
/* Mobile: bez etykiet, szukajka na całą szerokość, reszta po dwa w rzędzie */
@media (max-width: 768px) {
    .filter-bar-inner { gap: 8px; padding: 8px 12px 10px; }
    .kf-filter-field > label { display: none; }
    .kf-filter-field { flex: 1 1 calc(50% - 8px); min-width: calc(50% - 8px); }
    .kf-filter-field--search { flex: 1 1 100%; min-width: 100%; }
    .kf-filter-field--btn { flex: 1 1 calc(50% - 8px); }
    .kf-filter-field--btn .mega-filter-toggle,
    .kf-filter-field--btn .kf-clear-btn { width: 100%; justify-content: center; }
}
.filter-bar-visibility-toggle { position: absolute; bottom: -28px; right: 2vw; background: rgba(18, 18, 18, 0.8); backdrop-filter: blur(8px); border: 1px solid var(--border-color); border-top: none; border-radius: 0 0 8px 8px; color: var(--primary); width: 40px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 901; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.filter-bar-visibility-toggle:hover { background: var(--bg-hover); color: var(--accent); height: 32px; bottom: -32px; box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3); }
.filter-bar-visibility-toggle i { font-size: 1rem; transition: transform 0.3s ease; }
.sticky-filter-bar.is-collapsed { background: transparent; backdrop-filter: none; border-color: transparent; height: 0; pointer-events: none; margin-bottom: -1px; }
.sticky-filter-bar.is-collapsed .filter-bar-inner, .sticky-filter-bar.is-collapsed .mega-filter-panel { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.sticky-filter-bar.is-collapsed .filter-bar-visibility-toggle { pointer-events: auto; background: rgba(18, 18, 18, 0.9); border-top: 1px solid var(--border-color); margin-top: -1px; border-radius: 8px; }
.sticky-filter-bar.is-collapsed .filter-bar-visibility-toggle i { transform: rotate(180deg); }
.mega-filter-toggle { background: linear-gradient(135deg, var(--active-bg), var(--primary)); color: white; border: none; height: 38px; padding: 0 16px; border-radius: 9px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.8rem; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: transform 0.25s ease, box-shadow 0.25s ease; box-shadow: 0 6px 18px rgba(230, 0, 0, 0.22); flex-shrink: 0; }
.mega-filter-toggle:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(230, 0, 0, 0.38); }
.active-filters-count { background: rgba(0,0,0,0.28); color: #fff; font-size: 0.72rem; font-weight: 800; min-width: 18px; text-align: center; padding: 2px 7px; border-radius: 20px; }
.quick-filters { display: flex; gap: 12px; align-items: center; }
.quick-search { display: flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); border-radius: 9px; padding: 0 12px; height: 38px; width: 100%; max-width: 100%; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.quick-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.12); }
.quick-search i { color: var(--text-muted); }
.quick-search input { background: transparent; border: none; outline: none; color: var(--text-main); width: 100%; font-family: 'Poppins', sans-serif; font-size: 0.9rem; }
.quick-sort { display: flex; align-items: center; gap: 8px; }
.quick-sort > i { color: var(--text-muted); font-size: 0.95rem; }
.quick-sort select { background-color: var(--bg-main); color: var(--text-main); border: 1px solid var(--border-color); height: 44px; padding: 0 38px 0 16px; border-radius: 12px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9rem; outline: none; cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.quick-sort select:hover { border-color: var(--text-muted); }
.quick-sort select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.12); }
.mega-filter-panel { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-card); border-bottom: 2px solid var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.8); padding: 2vw; z-index: 899; }
.mega-filter-panel.active { display: block; animation: slideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.mega-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 3vw; margin-bottom: 2vw; }
.filter-section h3 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-top: 0; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-section h3.mt-2 { margin-top: 30px; }
.filter-section h3 i { color: var(--primary); }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-height: 280px; overflow-y: auto; padding-right: 10px; }
.category-grid::-webkit-scrollbar { width: 6px; }
.category-grid::-webkit-scrollbar-track { background: var(--bg-main); border-radius: 10px; }
.category-grid::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
.category-grid::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
.category-card { display: block; cursor: pointer; }
.category-card input { display: none; }
.category-card .cat-inner { background: var(--bg-main); border: 1px solid var(--border-color); padding: 10px 14px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.85rem; font-weight: 500; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.category-card:hover .cat-inner { background: var(--bg-hover); color: var(--text-main); border-color: var(--text-muted); }
.category-card input:checked + .cat-inner { background: var(--bg-hover); border-color: var(--primary); color: var(--text-main); box-shadow: inset 0 0 10px rgba(230, 0, 0, 0.15); }
.category-card .count { background: var(--bg-card); padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; transition: 0.3s; }
.category-card input:checked + .cat-inner .count { background: var(--primary); color: white; }
.season-select select { width: 100%; background: var(--bg-main); color: var(--text-main); border: 1px solid var(--border-color); padding: 12px 16px; border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 0.9rem; outline: none; cursor: pointer; transition: 0.3s; }
.season-select select:focus { border-color: var(--primary); }
.price-range-inputs { display: flex; align-items: center; gap: 10px; }
.price-range-inputs input { width: 100%; background: var(--bg-main); border: 1px solid var(--border-color); color: var(--text-main); padding: 10px; border-radius: 8px; text-align: center; font-family: 'Poppins', sans-serif; outline: none; transition: 0.3s; }
.price-range-inputs input:focus { border-color: var(--primary); }
.price-range-inputs input[type="number"]::-webkit-outer-spin-button, .price-range-inputs input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-range-inputs input[type="number"] { -moz-appearance: textfield; }
.custom-slider { -webkit-appearance: none; width: 100%; height: 6px; background: var(--bg-main); border: 1px solid var(--border-color); border-radius: 5px; outline: none; margin-bottom: 10px; }
.custom-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 0 10px rgba(230,0,0,0.5); }
.slider-labels { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
#qualityValue { color: var(--accent); font-weight: 800; font-size: 1rem; }
.sellers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seller-toggle input { display: none; }
.seller-box { background: var(--bg-main); border: 1px solid var(--border-color); padding: 12px 5px; border-radius: 8px; text-align: center; font-weight: 600; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.seller-box:hover { color: var(--text-main); border-color: var(--text-muted); }
.seller-toggle input:checked + .seller-box { background: var(--bg-hover); color: white; border-color: var(--primary); box-shadow: inset 0 0 10px rgba(230, 0, 0, 0.2); }
.mega-panel-footer { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.clear-all-btn { background: transparent; color: var(--text-muted); border: none; font-family: 'Poppins'; font-weight: 600; cursor: pointer; transition: 0.3s; }
.clear-all-btn:hover { color: var(--error); }
.apply-mega-btn { background: var(--primary); color: white; border: none; padding: 12px 30px; border-radius: 8px; font-family: 'Poppins'; font-weight: 700; cursor: pointer; transition: 0.3s; }
.apply-mega-btn:hover { background: var(--accent); box-shadow: 0 0 15px rgba(255, 26, 26, 0.4); }
.active-filters-row { display: flex; gap: 10px; margin-bottom: 2vw; flex-wrap: wrap; padding: 0 2vw; }
/* Chipy aktywnych filtrów - jak w panelu sprzedawcy */
.active-tag { background: rgba(230, 0, 0, 0.12); border: 1px solid rgba(230, 0, 0, 0.4); color: var(--text-main); font-size: 0.72rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; display: flex; align-items: center; gap: 7px; transition: background 0.18s ease; }
.active-tag:hover { background: rgba(230, 0, 0, 0.22); }
.active-tag i { cursor: pointer; color: rgba(255, 255, 255, 0.75); font-size: 0.66rem; transition: 0.3s; }
.active-tag i:hover { color: #fff; }

.catalog-content { padding: 0 2vw; }
.products-grid-6 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease; animation: cardFadeUp 0.4s ease backwards; opacity: 1 !important; visibility: visible !important; }
@keyframes cardFadeUp { from { transform: translateY(14px); } to { transform: translateY(0); } }
.product-card:hover { transform: translateY(-4px); border-color: rgba(230, 0, 0, 0.4); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6); z-index: 10; }
.card-image-wrapper { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--bg-hover); overflow: hidden; opacity: 1 !important; visibility: visible !important; }
/* Zdjęcia: shimmer podczas ładowania + miękki fade-in (klasa .img-loaded nadawana w JS).
   Shimmer animuje sam transform (kompozytor GPU, zero layoutu) i znika po załadowaniu,
   więc nie obciąża strony. Animacja imgReveal to bezpiecznik: gdyby JS nie zadziałał,
   zdjęcie i tak pokaże się po 1.8 s. */
.product-img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s ease; opacity: 0; animation: imgReveal 0.01s ease 1.8s forwards; display: block !important; min-height: 100%; }
.product-img.img-loaded { opacity: 1; animation: none; }
@keyframes imgReveal { to { opacity: 1; } }
.card-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0 -60%;
    z-index: 1;
    background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.06) 50%, transparent 68%);
    transform: translateX(-65%);
    animation: imgShimmer 1.15s linear infinite;
    pointer-events: none;
}
@keyframes imgShimmer { to { transform: translateX(65%); } }
/* zdjęcie wczytane (albo definitywnie zepsute) -> shimmer znika całkowicie */
.card-image-wrapper:has(.product-img.img-loaded)::after { content: none; }
.product-card:hover .product-img { transform: scale(1.06); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; transition: transform 0.3s ease; }
.product-card:hover .badges { transform: translateX(4px); }
.badge { padding: 3px 8px; border-radius: 6px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.6px; backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.badge.new { background: var(--accent); color: white; }
.badge.quality { background: rgba(0, 0, 0, 0.72); color: var(--gold, #FFD24D); border: 1px solid rgba(255, 210, 77, 0.22); }

/* ===== VIEWS BADGE (liczba wejść) - intensywność rośnie z liczbą ===== */
.views-badge-wrap { position: absolute; bottom: 12px; left: 12px; z-index: 3; transition: transform 0.3s ease; }
.product-card:hover .views-badge-wrap { transform: translateX(4px); }
.views-badge { display: inline-flex; align-items: center; gap: 5px; color: #fff; border: 1px solid rgba(255,255,255,0.14); }
.views-badge i { font-size: 0.82em; opacity: 0.95; }
/* t1 (>=10) najsłabszy -> t7 (>=10k) najmocniejszy, czerwony narasta + glow */
.views-badge--t1 { background: rgba(120, 30, 30, 0.72); color: #f0c9c9; }
.views-badge--t2 { background: rgba(150, 30, 30, 0.78); color: #ffdada; }
.views-badge--t3 { background: rgba(185, 25, 25, 0.82); }
.views-badge--t4 { background: rgba(210, 20, 20, 0.88); box-shadow: 0 2px 12px rgba(230,0,0,0.30); }
.views-badge--t5 { background: linear-gradient(135deg, #E60000, #ff2d2d); box-shadow: 0 2px 14px rgba(230,0,0,0.45); }
.views-badge--t6 { background: linear-gradient(135deg, #ff1f1f, #ff5a2d); box-shadow: 0 2px 18px rgba(255,60,0,0.55); border-color: rgba(255,180,120,0.4); }
.views-badge--t7 { background: linear-gradient(135deg, #ff3b00, #ffb300); color: #1a0a00; border-color: rgba(255,220,120,0.7); box-shadow: 0 2px 16px rgba(255,120,0,0.5); }

.card-body { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.product-category { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; margin-bottom: 5px; text-transform: uppercase; }
.product-title { font-size: 1rem; font-weight: 600; margin: 0 0 10px 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.supported-agents { display: flex; gap: 6px; margin-bottom: auto; padding-bottom: 10px; }
.agent-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-main); color: var(--text-muted); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; transition: 0.3s; }
.agent-dot:hover { background: var(--bg-hover); color: white; border-color: var(--text-muted); }
/* margin-top:auto dopina stopkę do dołu (kółka "wspieranych agentów" wyleciały z kart) */
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-color); }
/* Cena na biało (jak w panelu sprzedawcy) — czerwień zostaje dla akcji/akcentów */
.current-price { color: #fff; font-size: 1.25rem; font-weight: 800; display: inline-block; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.product-card:hover .current-price { transform: scale(1.05); }
.footer-actions { display: flex; align-items: center; gap: 8px; }
.view-btn { display: flex; align-items: center; gap: 6px; background: var(--bg-hover); color: var(--text-main); border: 1px solid var(--border-color); padding: 8px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; text-decoration: none; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mini-agent-logo { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; z-index: 2; }
.view-btn span, .view-btn i { z-index: 2; position: relative; }
.view-btn::after { content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent); transform: skewX(-20deg); transition: 0s; z-index: 1; }
.product-card:hover .view-btn { background: rgba(230, 0, 0, 0.14); border-color: rgba(230, 0, 0, 0.45); transform: translateY(-2px); }
.view-btn:hover { background: var(--primary) !important; border-color: var(--primary) !important; box-shadow: 0 6px 15px rgba(230, 0, 0, 0.35); }
.product-card:hover .view-btn::after { left: 200%; transition: left 0.8s ease-in-out; }
.kakobuy-action-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: transparent; border: 1px solid var(--border-color); transition: all 0.3s ease; text-decoration: none; flex-shrink: 0; }
.kakobuy-action-btn img { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }
.kakobuy-action-btn:hover { background: rgba(255, 193, 7, 0.1); border-color: rgba(255, 193, 7, 0.45); transform: scale(1.05); }
.heart-action-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.heart-action-btn:hover { color: var(--error); border-color: var(--error); background: rgba(255, 64, 129, 0.1); transform: scale(1.05); }
.heart-action-btn.active { color: var(--error); background: rgba(255, 64, 129, 0.15); border-color: var(--error); }
.heart-action-btn.active i { font-weight: 900; animation: heartPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes heartPulse { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }
.kako-new-tab-btn { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; background: rgba(10, 10, 10, 0.75); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; display: flex; justify-content: center; align-items: center; color: #ffffff; font-size: 0.9rem; z-index: 25; cursor: pointer; backdrop-filter: blur(4px); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.kako-new-tab-btn:hover { background: #FFFFFF; color: #000000; border-color: #FFFFFF; transform: scale(1.1) translateY(-2px); box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3); }
.kako-new-tab-btn i { transition: transform 0.3s ease; }
.kako-new-tab-btn:hover i { transform: translate(1px, -1px); }
.kako-new-tab-tooltip { position: absolute; top: 50%; right: 42px; transform: translateY(-50%); background: #121212; color: #ffffff; border: 1px solid #2C2C2C; padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; font-family: 'Poppins', sans-serif; font-weight: 500; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 30; }
.kako-new-tab-btn:hover .kako-new-tab-tooltip { opacity: 1; visibility: visible; right: 48px; }
.platform-logo-top { position: absolute; top: 50px; right: 10px; width: 32px; height: 32px; border-radius: 8px; z-index: 10; background: rgba(18, 18, 18, 0.85); backdrop-filter: blur(5px); padding: 4px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 4px 15px rgba(0,0,0,0.5); object-fit: contain; transition: 0.3s ease; }
.product-card:hover .platform-logo-top { transform: scale(1.1) rotate(5deg); border-color: var(--primary); }
.product-card.boosted-card { position: relative; }
.product-card.boosted-card:hover { border-color: var(--primary); box-shadow: 0 15px 30px rgba(230, 0, 0, 0.18); transform: translateY(-8px) scale(1.01); }
/* Zweryfikowany produkt — mała kropka "i" z tooltipem (zamiast napisu "Polecany"). */
.verified-dot {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.78);
    color: #FFD24D;
    border: 1px solid rgba(255, 210, 77, 0.45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    z-index: 5;
    display: grid;
    place-items: center;
    font-size: 0.6rem;
    cursor: help;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.verified-dot:hover { background: #FFD24D; color: #120a00; transform: scale(1.12); }
/* Tooltip POD kropką, zawijany - mieści się w karcie (overflow:hidden jej nie utnie) */
.verified-tip {
    position: absolute;
    top: 28px;
    left: -4px;
    transform: translateY(4px);
    background: #121212;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 0.68rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    white-space: normal;
    line-height: 1.35;
    width: max-content;
    max-width: 200px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    z-index: 30;
}
.verified-dot:hover .verified-tip { opacity: 1; visibility: visible; transform: translateY(0); }
@media (max-width: 768px) { .verified-tip { display: none; } }
/* odznaki jakości/NEW schodzą niżej, żeby nie nachodziły na kropkę */
.boosted-card .badges { top: 42px; }

/* Ikony kategorii jako obrazki (skalują się z otaczającym tekstem) */
.cat-ic-img { width: 1.15em; height: 1.15em; object-fit: contain; vertical-align: -0.22em; display: inline-block; flex-shrink: 0; }
.cat-ic-emoji { font-style: normal; }
/* W nagłówku pełnej topki ikona większa */
.full-top-cat-slide h3 .cat-ic-img { width: 1.3em; height: 1.3em; vertical-align: -0.28em; }
.kako-promo-fab { position: fixed; bottom: 30px; right: 30px; width: 65px; height: 65px; background: linear-gradient(135deg, #8A0000, #E60000); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFFFFF; text-decoration: none; z-index: 999; box-shadow: 0 8px 25px rgba(230, 0, 0, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2); border: 2px solid #FF1A1A; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); animation: floatingFAB 3s ease-in-out infinite; }
.kako-promo-fab::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #E60000; opacity: 0; animation: pulseGlow 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; }
.kako-promo-fab:hover { transform: translateY(-5px) scale(1.08); background: linear-gradient(135deg, #E60000, #FF1A1A); box-shadow: 0 12px 35px rgba(255, 26, 26, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.3); border-color: #FFFFFF; animation-play-state: paused; }
.promo-icon-wrapper { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.base-icon { font-size: 1.6rem; transition: transform 0.4s ease; }
.kako-promo-fab:hover .base-icon { transform: scale(1.1); }
.spark-icon { position: absolute; top: 12px; right: 14px; font-size: 0.7rem; color: #FFD700; animation: sparkleSpin 4s linear infinite; }
.kako-promo-tooltip { position: absolute; right: 85px; top: 50%; transform: translateY(-50%) translateX(20px); background: #121212; border: 1px solid #2C2C2C; padding: 10px 18px; border-radius: 8px; color: #FFFFFF; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); }
.kako-promo-tooltip::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 12px; height: 12px; background: #121212; border-right: 1px solid #2C2C2C; border-top: 1px solid #2C2C2C; }
.kako-promo-tooltip h3 { margin: 0; font-size: 0.95rem; font-weight: 700; color: #FF1A1A; text-transform: uppercase; letter-spacing: 0.5px; }
.kako-promo-fab:hover .kako-promo-tooltip { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }

@media screen and (min-width: 1921px) { .products-grid-6 { grid-template-columns: repeat(6, 1fr); } }
@media screen and (max-width: 1920px) { .products-grid-6 { grid-template-columns: repeat(5, 1fr); } }
@media screen and (max-width: 1600px) { .products-grid-6 { grid-template-columns: repeat(4, 1fr); } }

@media screen and (max-width: 1200px) {
    .products-grid-6 { grid-template-columns: repeat(3, 1fr); } 
    .mega-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    
    .header-layout-flex {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-left-stats {
        display: flex !important; /* Dodałem to, żeby rankingi się wyświetlały także na mobile */
        margin-bottom: 20px;
        flex-direction: column;
    }

    .header-widgets-row {
        display: none !important;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .header-widgets-row.show { 
        display: flex !important; 
    }
    
    .mobile-widgets-btn { 
        display: block; 
    }
}

@media screen and (max-width: 1024px) {
    .mega-filter-toggle { justify-content: center; }
}

@media screen and (max-width: 900px) { .products-grid-6 { grid-template-columns: repeat(2, 1fr); } }

@media screen and (max-width: 768px) {
    .catalog-main.full-width-mode { padding: 100px 15px 60px 15px; } 
    
    .header-center-title h1 { font-size: 28px; line-height: 1.2; margin-bottom: 5px; }
    .header-center-title p { font-size: 14px; }
    
    .header-widgets-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .compact-widget { max-width: 100% !important; }
    .top-stats-row { flex-direction: column; gap: 15px; }
    .top-cat-box { width: 100%; }

    .products-grid-6 { gap: 12px; } 
    .catalog-content { padding: 0; }
    .mega-grid { grid-template-columns: 1fr; gap: 25px; } 
    .mega-filter-panel { padding: 20px 15px; max-height: 75vh; overflow-y: auto; }
    .category-grid { grid-template-columns: 1fr; max-height: unset; overflow-y: visible; }
    .mega-panel-footer { flex-direction: column; gap: 15px; }
    .clear-all-btn, .apply-mega-btn { width: 100%; text-align: center; padding: 15px; font-size: 15px; }
    .card-body { padding: 12px; }
    .product-category { font-size: 10px; margin-bottom: 4px; }
    .product-title { font-size: 13px; margin-bottom: 8px; }
    .badges { top: 6px; left: 6px; gap: 3px; }
    .badge { font-size: 9px; padding: 3px 6px; }
    .views-badge-wrap { bottom: 6px; left: 6px; }
    .platform-logo-top { width: 26px; height: 26px; top: 6px; right: 6px; padding: 3px; }
    .heart-action-btn { width: 36px; height: 36px; font-size: 16px; }
    .current-price { font-size: 18px; }
    .card-footer { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; }
    .footer-actions { justify-content: space-between; width: 100%; }
    .view-btn { flex: 1; justify-content: center; font-size: 13px; padding: 8px; }
    .view-btn span { display: inline; } 
    .active-filters-row { padding: 0; gap: 8px; }
    .active-tag { font-size: 12px; padding: 6px 10px; }
    .kako-new-tab-tooltip { display: none; }
    .kako-promo-fab { bottom: 20px; right: 20px; width: 55px; height: 55px; }
    .base-icon { font-size: 1.4rem; }
    .spark-icon { top: 10px; right: 10px; font-size: 0.6rem; }
    .kako-promo-tooltip { display: none; }
}

@media screen and (max-width: 600px) { .compare-btn { font-size: 0.85rem; padding: 12px 10px; } .compare-pane.active { flex-direction: column; align-items: center; text-align: center; } }
@media screen and (max-width: 480px) { .products-grid-6 { gap: 8px; } .card-body { padding: 10px; } .product-title { font-size: 12px; } .current-price { font-size: 16px; } .view-btn { font-size: 12px; } .quick-search input { font-size: 14px; } }
a[class*="product-card"] { display: flex !important; opacity: 1 !important; transform: none !important; }
a[class*="product-card"] img { opacity: 1 !important; visibility: visible !important; }

/* =====================================================================
   REDESIGN 2026-06 — Rail kategorii + maskotka w nagłówku + dopracowania
   (dokłada nowe komponenty; nie modyfikuje istniejących reguł powyżej)
   ===================================================================== */

/* --- Nagłówek: miękka czerwona poświata w tle (spójność ze stroną główną) --- */
.catalog-header { position: relative; }
.catalog-header::before {
    content: '';
    position: absolute;
    top: -50px; left: 50%; transform: translateX(-50%);
    width: min(960px, 92%); height: 340px;
    background: radial-gradient(ellipse at center, rgba(230, 0, 0, 0.11), transparent 68%);
    pointer-events: none; z-index: 0; filter: blur(6px);
}
.header-main-content { position: relative; z-index: 1; }
.header-mascot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 172px;
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 18px 38px rgba(230, 0, 0, 0.30));
    opacity: 0.95;
    z-index: 0;
}
.header-mascot--right { right: 1vw; }
@media (min-width: 1600px) { .header-mascot { width: 200px; right: 2.5vw; } }
@media (max-width: 1299px) { .header-mascot { display: none; } }

/* --- Rail kategorii: szybkie filtry jednym kliknięciem --- */
.cat-rail-section { margin: 4px 0 22px; padding: 0 2vw; }
.cat-rail-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 11px;
}
.cat-rail-title {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 0.82rem; font-weight: 800; letter-spacing: 0.5px;
    text-transform: uppercase; color: #fff;
}
.cat-rail-title i { color: var(--primary); font-size: 0.9rem; }
.cat-rail-count {
    font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 5px 12px; border-radius: 50px; white-space: nowrap;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.cat-rail-count b { color: #fff; font-weight: 800; }

.cat-rail-scroll { position: relative; }
.cat-rail-scroll::before,
.cat-rail-scroll::after {
    content: ''; position: absolute; top: 0; bottom: 12px; width: 46px;
    z-index: 2; pointer-events: none;
}
.cat-rail-scroll::before { left: 0; background: linear-gradient(90deg, var(--bg-main) 12%, transparent); }
.cat-rail-scroll::after { right: 0; background: linear-gradient(270deg, var(--bg-main) 12%, transparent); }

.cat-rail {
    display: flex; gap: 10px; overflow-x: auto;
    padding: 3px 6px 12px; scroll-behavior: smooth;
    scrollbar-width: thin; scrollbar-color: rgba(230, 0, 0, 0.35) transparent;
}
.cat-rail::-webkit-scrollbar { height: 6px; }
.cat-rail::-webkit-scrollbar-thumb { background: rgba(230, 0, 0, 0.32); border-radius: 50px; }
.cat-rail::-webkit-scrollbar-track { background: transparent; }

.cat-chip {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px;
    height: 46px; padding: 0 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    color: #cfcfcf; font-family: 'Poppins', sans-serif; font-size: 0.85rem;
    font-weight: 600; cursor: pointer; white-space: nowrap; outline: none;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.22s ease, background 0.22s ease,
                color 0.22s ease, box-shadow 0.22s ease;
}
.cat-chip:hover {
    transform: translateY(-2px); color: #fff;
    border-color: rgba(230, 0, 0, 0.45);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
}
.cat-chip:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.18); }
.cat-chip__ic {
    width: 26px; height: 26px; flex-shrink: 0;
    display: grid; place-items: center;
    background: rgba(0, 0, 0, 0.28); border-radius: 8px; overflow: hidden;
    color: var(--primary); font-size: 0.9rem;
}
.cat-chip__ic .cat-chip-img { width: 18px; height: 18px; object-fit: contain; }
.cat-chip__ic .cat-ic-emoji { font-size: 0.95rem; line-height: 1; }
.cat-chip__lbl { line-height: 1; }
.cat-chip__count {
    font-size: 0.66rem; font-weight: 800; line-height: 1;
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted); padding: 3px 8px; border-radius: 50px;
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.cat-chip:hover .cat-chip__count { color: #fff; }

.cat-chip.is-active {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.92), rgba(138, 0, 0, 0.94));
    border-color: var(--primary); color: #fff;
    box-shadow: 0 8px 22px rgba(230, 0, 0, 0.40);
}
.cat-chip.is-active .cat-chip__ic { background: rgba(0, 0, 0, 0.22); color: #fff; }
.cat-chip.is-active .cat-chip__count {
    background: rgba(0, 0, 0, 0.28); color: #fff; border-color: rgba(255, 255, 255, 0.2);
}

.cat-chip--all .cat-chip__ic { background: rgba(230, 0, 0, 0.16); color: var(--primary); }
.cat-chip--all.is-active .cat-chip__ic { color: #fff; }

/* strzałki przewijania (desktop) */
.cat-rail-arrow {
    position: absolute; top: calc(50% - 6px); transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(18, 18, 18, 0.92); border: 1px solid var(--border-color);
    color: #fff; cursor: pointer; z-index: 3;
    display: grid; place-items: center; font-size: 0.8rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.25s ease;
}
.cat-rail-arrow:hover { background: var(--primary); transform: translateY(-50%) scale(1.08); }
.cat-rail-arrow--l { left: -4px; }
.cat-rail-arrow--r { right: -4px; }
.cat-rail-arrow.is-hidden { opacity: 0; pointer-events: none; }

/* skeleton chipy (zanim dojdą dane) */
.cat-chip-skel {
    flex-shrink: 0; width: 116px; height: 46px; border-radius: 13px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
    position: relative; overflow: hidden;
}
.cat-chip-skel:nth-child(2) { width: 92px; }
.cat-chip-skel:nth-child(4) { width: 134px; }
.cat-chip-skel::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%);
    animation: psShimmer 1.3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .cat-rail-section { padding: 0; margin: 2px 0 16px; }
    .cat-rail-arrow { display: none; }
    .cat-rail-scroll::before, .cat-rail-scroll::after { width: 26px; }
    .cat-chip { height: 42px; font-size: 0.8rem; padding: 0 12px; }
    .cat-chip__ic { width: 24px; height: 24px; }
}

/* =====================================================================
   KOMPAKTOWY NAGŁÓWEK — produkty wyżej (widoczne niemal od razu),
   tytuł skaluje się płynnie i nigdy się nie ucina.
   ===================================================================== */
.catalog-main.full-width-mode { padding-top: calc(var(--nav-height) + 10px); }
.catalog-header { margin-bottom: 14px; }
.catalog-header::before { top: -38px; height: 280px; }

.header-eyebrow { margin-bottom: 9px; padding: 4px 13px; }
.header-center-title h1 {
    font-size: clamp(1.5rem, 3.1vw, 2.1rem);
    line-height: 1.12;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.header-center-title p { margin-bottom: 0; font-size: 0.86rem; max-width: 640px; }

.header-quick-stats { margin-top: 12px; padding: 5px 8px; }
.hqs-item { padding: 5px 15px; gap: 9px; }
.hqs-item i { width: 28px; height: 28px; font-size: 0.8rem; }
.hqs-num { font-size: 0.86rem; }

.header-mini-icons { margin-top: 11px; }
.mini-icon { padding: 7px 13px; }

.sticky-filter-bar { margin-bottom: 12px; }
.cat-rail-section { margin: 0 0 12px; }
.cat-rail-head { margin-bottom: 8px; }

@media (max-width: 768px) {
    .catalog-main.full-width-mode { padding-top: 88px; }
    .catalog-header { margin-bottom: 10px; }
    .header-quick-stats { margin-top: 10px; }
    .header-mini-icons { margin-top: 9px; }
}

/* Odzysk pionu: skasuj puste odstępy i ścieśnij pasek filtrów + rail,
   żeby produkty wskoczyły jeszcze wyżej (widoczne od razu). */
.catalog-header { margin-bottom: 12px; }
.header-eyebrow { margin-bottom: 8px; }
.header-mini-icons { margin-top: 10px; }
.active-filters-row { margin-bottom: 14px; }
.active-filters-row:empty { margin: 0; padding: 0; }
.filter-bar-inner { padding-top: 9px; padding-bottom: 9px; }
.cat-rail-head { margin-bottom: 7px; }
.cat-rail { padding-bottom: 9px; }
.sticky-filter-bar { margin-bottom: 10px; }

/* Statystyki + przyciski (Discord/Arkusz/TOP) w jednym rzędzie — oszczędza
   cały rząd pionu, więc produkty wskakują wyżej. Zawija się na wąskich ekranach. */
.header-meta-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 10px 16px; width: 100%; margin-top: 13px;
}
.header-meta-row .header-quick-stats { margin: 0; }
.header-meta-row .header-mini-icons { margin: 0; width: auto; }
@media (max-width: 600px) {
    .header-meta-row { gap: 9px; }
    .header-meta-row .header-quick-stats,
    .header-meta-row .header-mini-icons { width: 100%; justify-content: center; }
}

/* =====================================================================
   UPROSZCZONY NAGŁÓWEK (2026-06-12) — u góry działo się za dużo.
   Nic nie znika z HTML; część elementów chowamy, resztę wyciszamy,
   żeby został tytuł + jedna cicha linia meta. Dane i linki zostają.
   ===================================================================== */

/* Badge "Kakobuy Spreadsheet 2026" i maskotka — czysto dekoracyjne, off. */
.header-eyebrow { display: none; }
.header-mascot { display: none; }
.catalog-header::before { height: 190px; opacity: 0.65; }

/* Tytuł i opis: spokojniejsza skala. */
.header-center-title h1 {
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.header-center-title p { font-size: 0.82rem; color: #8d8d8d; }

/* Statystyki: zamiast trzech "boxów" — cichy tekst w jednej linii. */
.header-quick-stats {
    background: none;
    border: none;
    padding: 0;
    backdrop-filter: none;
    border-radius: 0;
    gap: 4px;
}
.hqs-item { padding: 2px 10px; gap: 7px; }
.hqs-item i {
    width: auto; height: auto;
    background: none; border: none; border-radius: 0;
    font-size: 0.74rem;
}
.hqs-text { flex-direction: row; align-items: baseline; gap: 6px; }
.hqs-num { font-size: 0.8rem; }
.hqs-label { margin-top: 0; }
.hqs-divider { margin: 4px 0; }

/* Discord / Arkusz / TOP: drobne chipy zamiast dużych przycisków. */
.header-mini-icons { gap: 7px; }
.mini-icon { padding: 6px 11px; font-size: 0.7rem; gap: 6px; border-radius: 50px; }
.mini-icon i { font-size: 0.82rem; }

/* Jedna linia meta pod tytułem, mniejszy oddech całości. */
.header-meta-row { margin-top: 8px; gap: 6px 14px; }
.catalog-header { margin-bottom: 10px; }

/* Rail kategorii: zostawiamy chipy, chowamy nagłówek "Przeglądaj kategorie"
   (chipy mówią same za siebie), a licznik wyników przenosimy wizualnie niżej
   — nadal aktualizuje go JS, więc nic się nie psuje. */
.cat-rail-head { margin-bottom: 4px; }
.cat-rail-title { display: none; }
.cat-rail-count { font-size: 0.68rem; padding: 4px 10px; }
.cat-rail-section { margin-bottom: 8px; }