/* =========================================================
   STREFA CZYSTOŚCI - Fast Lazy Load + mobile swipe
   ========================================================= */

.czystosc-wrapper {
    background: #fff;
    padding: 60px 0;
    margin-top: -45px;
    margin-bottom: 60px;
    border-top: 1px solid #f0f0f0;
}

.czystosc-header {
    position: relative;
    margin-bottom: 40px;
    text-align: center;
}

.czystosc-header-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.czystosc-main-title {
    margin: 0 0 15px 0 !important;
    color: #222 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.czystosc-line {
    width: 60px;
    height: 4px;
    margin: 0 auto 20px auto;
    border-radius: 2px;
    background: #ff6600;
}

.czystosc-main-desc {
    max-width: 800px !important;
    margin: 0 auto !important;
    color: #777 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.czystosc-btn-container {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.czystosc-btn-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: all .25s ease;
}

.czystosc-btn-all:hover {
    color: #ff6600;
    transform: translateX(5px);
}

.czystosc-layout {
    display: flex;
    align-items: stretch;
    gap: 30px;
}

.czystosc-info-col {
    flex: 0 0 380px;
    width: 380px;
    display: flex;
    flex-direction: column;
}

.czystosc-info-box {
    position: relative;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    overflow: hidden;
    padding: 40px;
    border: 1px solid #f2e9e4;
    border-radius: 8px;
    background: #fffbf7;
    text-align: left;
    transition: border-color .25s ease;
}

.czystosc-info-box:hover {
    border-color: #ff6600;
}

.czystosc-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    z-index: 0;
    color: #f0eae5;
    font-size: 180px;
    opacity: .6;
    pointer-events: none;
    transform: rotate(-15deg);
}

.czystosc-box-content {
    position: relative;
    z-index: 1;
}

.czystosc-badge {
    display: inline-block;
    margin-bottom: 25px;
    padding: 5px 12px;
    border: 1px solid #ff6600;
    border-radius: 20px;
    background: #fff;
    color: #ff6600;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.czystosc-box-title {
    margin-bottom: 20px;
    color: #222;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-transform: none;
}

.czystosc-box-desc {
    margin-bottom: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}

.czystosc-grid-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 0;
}

.czystosc-grid {
    display: grid;
    grid-template-columns: repeat(var(--czystosc-cols, 4), minmax(0, 1fr));
    gap: 20px;
    height: 100%;
}

.czystosc-loading-overlay {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 360px;
    gap: 15px;
    border: 1px dashed #f0f0f0;
    border-radius: 8px;
    background: #fff;
    color: #999;
}

.czystosc-loading-text {
    color: #999;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.czystosc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #888;
    border-radius: 50%;
    animation: czystosc-spin .8s linear infinite;
}

@keyframes czystosc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.czystosc-item {
    display: flex;
    height: 100%;
    margin: 0 !important;
}

.czystosc-item .tvproduct-wrapper,
.czystosc-item .product-miniature,
.czystosc-item .thumbnail-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.czystosc-item .tvproduct-image {
    align-self: center !important;
    margin-top: auto !important;
    margin-bottom: 10px !important;
}

.czystosc-item .tvproduct-info-box-wrapper {
    width: 100%;
    margin-top: 0 !important;
    margin-bottom: auto !important;
    text-align: center;
}

.czystosc-item .product-flags,
.czystosc-item .product-flag,
.czystosc-item .tvproduct-flags {
    display: none !important;
}

.czystosc-item .product-flag.discount {
    display: block !important;
}

@media (max-width: 1300px) {
    .czystosc-btn-container {
        position: relative;
        right: auto;
        bottom: auto;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 991px) {
    .czystosc-layout {
        flex-direction: column;
    }

    .czystosc-info-col {
        flex: none;
        width: 100%;
        height: auto;
        margin-bottom: 30px;
    }

    .czystosc-info-box {
        align-items: center;
        height: auto;
        padding: 30px;
        text-align: center;
    }

    .czystosc-bg-icon {
        display: none;
    }

    .czystosc-grid {
        display: flex !important;
        gap: 15px;
        overflow-x: auto;
        padding-bottom: 15px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .czystosc-grid::-webkit-scrollbar {
        display: none;
    }

    .czystosc-item {
        min-width: 160px;
        max-width: 160px;
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        scroll-snap-align: start;
    }
}

/* =========================================================
   STREFA CZYSTOŚCI 2.1.0 - lekkie karty snapshot HTML
   ========================================================= */
.czystosc-has-initial-content .czystosc-grid {
    opacity: 1;
}

.czystosc-fast-grid {
    align-items: stretch;
}

.czystosc-fast-item {
    min-width: 0;
}

.czystosc-fast-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 100%;
    padding: 12px 10px 16px;
    border: 1px solid #f2f2f2;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.czystosc-fast-card:hover {
    border-color: #ff6600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    transform: translateY(-2px);
}

.czystosc-fast-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 150px;
    margin-bottom: 8px;
    text-decoration: none !important;
}

.czystosc-fast-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
}

.czystosc-fast-image-placeholder {
    display: block;
    width: 130px;
    height: 130px;
    border-radius: 8px;
    background: #f5f5f5;
}

.czystosc-fast-stars {
    min-height: 16px;
    margin: 2px 0 6px;
    color: #f6b800;
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1;
}

.czystosc-fast-name {
    display: -webkit-box;
    min-height: 38px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #222;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    text-transform: none !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.czystosc-fast-name a {
    color: inherit !important;
    text-decoration: none !important;
}

.czystosc-fast-name a:hover {
    color: #ff6600 !important;
}

.czystosc-fast-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
}

.czystosc-fast-price {
    color: #ff6600;
    font-size: 15px;
    font-weight: 800;
}

.czystosc-fast-regular-price {
    color: #999;
    font-size: 12px;
    text-decoration: line-through;
}

.czystosc-empty,
.czystosc-pending-state {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    gap: 12px;
    border: 1px dashed #efefef;
    border-radius: 10px;
    background: #fff;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .czystosc-fast-card {
        min-width: 160px;
        padding: 10px 8px 14px;
    }

    .czystosc-fast-image {
        min-height: 130px;
    }

    .czystosc-fast-image img {
        max-height: 135px;
    }
}
