/* KARTA PRODUKTU */
.m-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #f2f6f9;
    position: relative;
}

/* BADGE RANKINGU */
.m-rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--m-grad);
    color: #fff;
    padding: 5px 15px;
    font-weight: 800;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

/* UKŁAD WIERSZA */
.m-main-row {
    display: flex;
    align-items: center;
    padding: 25px;
    gap: 20px;
}

/* ZDJĘCIE */
.m-img-col {
    flex: 0 0 200px;
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-img-col img {
    width: 100% !important;
    max-width: 180px !important;
    height: auto !important;
    max-height: 180px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s;
    display: inline-block !important;
}

.m-img-col img:hover { transform: scale(1.05); }

/* INFORMACJE I TYTUŁ */
.m-info-col { flex: 1; }
.m-info-col h3 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--m-dark);
}

/* GRUPA PRZYCISKÓW */
.m-btns-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* STYLE PRZYCISKÓW */
.btn-offer, .btn-details, .btn-comp-trigger {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border: none;
    transition: all 0.2s ease;
}

.btn-offer { background: var(--m-grad); color: #fff !important; }

.btn-details { background: #f1f4f8; color: var(--m-dark) !important; }
.btn-details:hover { background: #e2e8f0; }

/* PRZYCISK PORÓWNAJ - EFEKT HOVER */
.btn-comp-trigger { 
    background: #fff; 
    border: 2px solid var(--m-dark) !important; 
    color: var(--m-dark) !important; 
}

.btn-comp-trigger:hover { 
    background: var(--m-dark) !important; 
    color: #fff !important; 
}

/* SEKKOJA OCENY */
.score-side {
    flex: 0 0 140px;
    text-align: center;
    border-left: 1px solid #f2f6f9;
    padding-left: 20px;
}

.score-val { font-size: 36px; font-weight: 900; color: #a259ff; display: block; }
.score-side small { color: #777; text-transform: uppercase; font-size: 11px; }

.btn-rate-now {
    margin-top: 10px;
    background: none;
    border: 1px solid #a259ff;
    color: #a259ff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

.btn-rate-now:hover { background: #a259ff; color: #fff; }

/* PAGINACJA */
.m-pagination { margin-top: 30px; text-align: center; }
.m-pagination a, .m-pagination span {
    padding: 8px 16px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: var(--m-dark);
}
.m-pagination .current { background: var(--m-dark); color: #fff; }

/* LIGHTBOX */
#m-lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 9999;
    display: none; justify-content: center; align-items: center;
}
#m-lightbox img { max-width: 90%; max-height: 85%; }