/**
 * MedLek Reviews Slider
 * Zintegrowany z layoutem - v1.5.0
 */

/* SEKCJA - FULL WIDTH, BEZ PRZERW */
.mlrs-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -1px !important;
    margin-bottom: 0 !important;
    padding: 16px 0 20px;
    background: #f5f5f5;
    border: none;
    overflow: hidden;
}

/* Usunięcie marginesów z parent containers */
.woo-c_recommended,
.mlrs-after-product-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

/* Usunięcie przerwy przed footerem */
.mlrs-section + *,
.woo-c_recommended + *,
.mlrs-after-product-wrapper + * {
    margin-top: 0 !important;
}

/* Główny kontener produktu - usuń padding-bottom (domyślnie 80px desktop, 50px mobile w Stockie) */
.woo_c-product,
.product-popup {
    padding-bottom: 0 !important;
}

@media screen and (max-width: 768px) {
    .woo_c-product,
    .product-popup {
        padding-bottom: 0 !important;
    }
}

/* Fix dla elementów przed sliderem */
.page-container + .woo-c_recommended,
.page-container + .mlrs-after-product-wrapper,
[class*="product"] + .woo-c_recommended,
[class*="product"] + .mlrs-after-product-wrapper {
    margin-top: 0 !important;
}

/* Grafiki promocyjne CPC - style zarządzane przez wtyczkę custom-product-content */

/* Sekcje medlek-custom-sections - usuń dolne marginesy przed sliderem */
.medlek-sections-wrapper {
    margin-bottom: 0 !important;
}

.medlek-sections-wrapper > *:last-child,
.medlek-card-section:last-child,
.medlek-faq-section:last-child {
    margin-bottom: 0 !important;
}

.medlek-bundle-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.mlrs-container {
    max-width: 100%;
    padding: 0 12px;
}

/* HEADER */
.mlrs-header {
    text-align: center;
    margin-bottom: 12px;
}

.mlrs-subtitle {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0d5a1c;
    margin-bottom: 3px;
}

.mlrs-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
}

/* SLIDER */
.mlrs-slider {
    position: relative;
    overflow: hidden;
}

.mlrs-track {
    display: flex;
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.mlrs-slide {
    flex: 0 0 calc(50% - 4px);
    padding: 0 2px;
    box-sizing: border-box;
}

/* KARTA */
.mlrs-card {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mlrs-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.mlrs-author-info {
    flex: 1;
    min-width: 0;
}

.mlrs-author {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mlrs-brand-link {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mlrs-brand-link a {
    color: #0d5a1c;
    text-decoration: none;
    font-weight: 500;
}

.mlrs-brand-link a:hover {
    text-decoration: underline;
}

/* GWIAZDKI SVG */
.mlrs-rating {
    flex-shrink: 0;
}

.mlrs-stars {
    display: flex;
    gap: 1px;
}

.mlrs-star {
    width: 12px;
    height: 12px;
}

.mlrs-star--filled {
    fill: #f5a623;
}

.mlrs-star--empty {
    fill: #ddd;
}

/* TREŚĆ */
.mlrs-content {
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    margin: 0;
    padding: 0;
    border: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mlrs-content::before,
.mlrs-content::after {
    content: none;
}

/* DATA OPINII */
.mlrs-date {
    font-size: 10px;
    color: #888;
    margin-top: auto;
}

/* TABLET 768px+ */
@media (min-width: 768px) {
    .mlrs-section { padding: 20px 0 24px; }
    .mlrs-container { padding: 0 20px; }
    .mlrs-header { margin-bottom: 14px; }
    .mlrs-subtitle { font-size: 11px; }
    .mlrs-title { font-size: 20px; }
    .mlrs-slide { flex: 0 0 calc(25% - 6px); padding: 0 3px; }
    .mlrs-card { padding: 14px; gap: 8px; }
    .mlrs-author { font-size: 14px; }
    .mlrs-brand-link { font-size: 12px; }
    .mlrs-star { width: 13px; height: 13px; }
    .mlrs-content { font-size: 13px; -webkit-line-clamp: 3; }
    .mlrs-date { font-size: 11px; }
}

/* DESKTOP 1024px+ */
@media (min-width: 1024px) {
    .mlrs-section { padding: 24px 0 28px; }
    .mlrs-container { max-width: 1400px; margin: 0 auto; padding: 0 30px; }
    .mlrs-subtitle { font-size: 12px; }
    .mlrs-title { font-size: 22px; }
    .mlrs-slide { flex: 0 0 calc(16.666% - 8px); padding: 0 4px; }
    .mlrs-card { padding: 16px; border-radius: 8px; gap: 8px; }
    .mlrs-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.1); transform: translateY(-1px); transition: all 0.2s; }
    .mlrs-author { font-size: 15px; }
    .mlrs-brand-link { font-size: 13px; }
    .mlrs-star { width: 14px; height: 14px; }
    .mlrs-content { font-size: 14px; }
    .mlrs-date { font-size: 11px; }
}

/* LARGE DESKTOP */
@media (min-width: 1400px) {
    .mlrs-container { max-width: 1600px; padding: 0 50px; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    .mlrs-track, .mlrs-card { transition: none; }
}

/* PRINT */
@media print {
    .mlrs-section { display: none; }
}
