/* --- STREFA OKAZJI --- */
.special-products-wrapper {
    background: #fff;
    padding: 60px 0;
    margin-bottom: 60px;
    border-top: 1px solid #f0f0f0;
    margin-top: -45px;
}

/* --- NAGŁÓWEK --- */
.special-header-section {
    text-align: center;
    margin-bottom: 60px;
}
.special-header-accent {
    color: #ff6600;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
    font-family: inherit;
}
.special-header-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #222;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    font-family: inherit;
}
.special-header-line {
    width: 60px;
    height: 4px;
    background: #ff6600;
    margin: 0 auto 25px auto;
    border-radius: 2px;
}
.special-header-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 800px;
    font-weight: 400;
}

/* --- LOADER --- */
.special-loading-overlay {
    width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px dashed #f0f0f0;
    border-radius: 8px;
    color: #999;
    gap: 15px;
}
.special-loading-text {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}
.special-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #888;
    border-radius: 50%;
    animation: special-spin 0.8s linear infinite;
}
@keyframes special-spin {
    100% { transform: rotate(360deg); }
}

/* --- UKŁAD --- */
.special-dual-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(240px, 1fr);
    gap: 40px;
    align-items: stretch;
}
.special-dual-layout.special-layout-full,
.special-dual-layout.special-no-last-minute {
    display: block;
}

/* --- KOLUMNY --- */
.special-col {
    background: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.col-short {
    background: #fff;
    box-shadow: none !important;
    border: 1px solid #ffcdd2;
    border-top: 4px solid #d32f2f;
    border-radius: 8px;
    padding: 20px;
}

/* --- NAGŁÓWKI KOLUMN --- */
.special-col-header {
    display: flex;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    min-height: 90px;
    box-sizing: border-box;
}
.col-sale .special-col-header {
    justify-content: space-between;
    align-items: center;
}
.header-short {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-bottom: 1px solid #ffebee;
}
.header-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}
.header-short h3 {
    font-size: 18px;
    font-weight: 800;
    color: #d32f2f;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}
.icon-orange {
    color: #ff6600;
    font-size: 26px;
}
.icon-red {
    color: #d32f2f;
    font-size: 26px;
}
.stock-info {
    font-size: 13px;
    color: #666;
    margin: 0;
}
.stock-info strong {
    color: #ff6600;
    font-weight: 700;
}
.header-short p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* --- TIMER --- */
.sales-timer-pill {
    background: #fff3e0;
    color: #e65100;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border: 1px solid #ffe0b2;
}
.sales-timer-pill i {
    font-size: 16px;
}
.daily-countdown {
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 1px;
}

/* --- SIATKI PRODUKTÓW --- */
.special-grid-sale {
    display: grid;
    grid-template-columns: repeat(var(--sale-cols, 5), minmax(0, 1fr));
    gap: 20px;
}
.special-layout-full .special-grid-sale,
.special-no-last-minute .special-grid-sale {
    grid-template-columns: repeat(var(--sale-cols, 6), minmax(0, 1fr));
}
.special-grid-short {
    display: grid;
    grid-template-columns: repeat(var(--short-cols, 1), minmax(0, 1fr));
    gap: 20px;
}
.special-grid-sale > .alert,
.special-grid-short > .alert {
    grid-column: 1 / -1;
}
.special-item {
    min-width: 0;
}
.special-item .tvproduct-wrapper {
    margin-bottom: 0 !important;
    border: 1px solid #f0f0f0;
    background: #fff;
    height: 100%;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.special-item .tvproduct-wrapper:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: transparent;
    transform: translateY(-5px);
}
.special-products-wrapper img {
    max-width: 100%;
}

/* --- FOOTER --- */
.special-col-footer {
    margin-top: 30px;
    text-align: right;
}
.col-short .special-col-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
}
.btn-clean-orange,
.btn-clean-red {
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.25s ease;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}
.btn-clean-orange {
    color: #ff6600;
}
.btn-clean-orange:hover {
    color: #d84315;
    border-bottom-color: #d84315;
    gap: 12px;
}
.btn-clean-red {
    color: #d32f2f;
}
.btn-clean-red:hover {
    color: #b71c1c;
    border-bottom-color: #b71c1c;
    gap: 12px;
}

/* --- RWD --- */
@media (max-width: 1600px) {
    .special-dual-layout {
        grid-template-columns: minmax(0, 4.5fr) minmax(230px, 1fr);
        gap: 30px;
    }
}
@media (max-width: 1200px) {
    .special-dual-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .special-col-header {
        height: auto;
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .sales-timer-pill {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }
    .special-col-footer {
        text-align: center;
    }
}
@media (max-width: 767px) {
    .special-products-wrapper {
        padding: 35px 0;
        margin-top: 0;
    }
    .special-header-section {
        margin-bottom: 35px;
    }
    .special-header-title {
        font-size: 26px !important;
    }
    .special-grid-sale,
    .special-layout-full .special-grid-sale,
    .special-no-last-minute .special-grid-sale {
        gap: 15px;
    }
}

/* --- FAST CARDS 5.2.0 --- */
.special-has-initial-content {
    min-height: 0;
}
.special-fast-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}
.special-fast-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: transparent;
    transform: translateY(-4px);
}
.special-fast-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #fff;
    padding: 12px;
    text-decoration: none !important;
}
.special-fast-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.special-fast-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(135deg, #fafafa, #f1f1f1);
    border-radius: 8px;
}
.special-fast-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #ff6600;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: 999px;
    padding: 6px 8px;
}
.special-fast-badge-red {
    background: #d32f2f;
}
.special-fast-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 12px 14px;
    min-height: 112px;
    flex: 1 1 auto;
}
.special-fast-brand {
    min-height: 14px;
    font-size: 10px;
    line-height: 1.2;
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.special-fast-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
    color: #222 !important;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    text-decoration: none !important;
}
.special-fast-name:hover {
    color: #ff6600 !important;
}
.special-fast-price-row {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
}
.special-fast-price {
    color: #ff6600;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
}
.special-fast-price-red {
    color: #d32f2f;
}
.special-fast-regular {
    color: #999;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: line-through;
    font-weight: 600;
}
.special-fast-card-short {
    border-color: #ffe1e5;
}
.special-pending-state,
.special-empty {
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #777;
    border: 1px dashed #eee;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    padding: 25px;
}
@media (max-width: 767px) {
    .special-fast-image {
        padding: 9px;
    }
    .special-fast-body {
        padding: 10px;
        min-height: 104px;
    }
    .special-fast-name {
        font-size: 12px;
        min-height: 35px;
    }
    .special-fast-price {
        font-size: 14px;
    }
}
