/* =========================================================
   STREFA PRODUKTOWA - odseparowana od Strefy Koszyka
   ========================================================= */

.strefaproduktowa-wrapper {
    background: #fff;
    padding: 60px 0;
    margin-top: 20px;
    margin-bottom: 60px;
    border-top: 1px solid #f0f0f0;
    display: block;
    position: relative;
    min-height: 550px;
}

.strefaproduktowa-header {
    text-align: center;
    margin-bottom: 50px;
}

.strefaproduktowa-accent {
    color: #ff6600;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.strefaproduktowa-title {
    font-size: 38px !important;
    font-weight: 800 !important;
    color: #222;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

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

.strefaproduktowa-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px;
    font-weight: 400;
}

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

.strefaproduktowa-left-col {
    flex: 0 0 280px;
    width: 280px;
    display: flex;
    flex-direction: column;
}

.strefaproduktowa-right-col {
    flex: 1;
    width: calc(100% - 310px);
}

.strefaproduktowa-deal-container {
    display: none;
    height: 100%;
    animation: strefaproduktowa-fade-in 0.5s ease;
}

.strefaproduktowa-deal-container.active {
    display: block;
}

.strefaproduktowa-deal-box {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
    margin-top: 15px;
    transition: border-color 0.3s;
}

.strefaproduktowa-deal-box:hover {
    border-color: #ffcc80;
}

.strefaproduktowa-deal-top-bar {
    padding: 0;
    border: none;
    height: 0;
    display: flex;
    justify-content: center;
    position: relative;
}

.strefaproduktowa-deal-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #ff6600;
    border: 1px solid #ff6600;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 15px;
    font-size: 12px;
    border-radius: 30px;
    white-space: nowrap;
    z-index: 5;
}

.strefaproduktowa-deal-desc-internal {
    padding: 40px 20px 10px 20px;
    background: #fff;
    text-align: center;
    flex-shrink: 0;
    border-radius: 8px 8px 0 0;
}

.strefaproduktowa-deal-desc-internal p {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.strefaproduktowa-deal-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.strefaproduktowa-empty-deal {
    text-align: center;
    padding: 20px;
    color: #999;
}

.strefaproduktowa-empty-deal i {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
}

.strefaproduktowa-deal-item .tvproduct-wrapper {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.strefaproduktowa-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.strefaproduktowa-tabs-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.strefaproduktowa-tab-btn {
    cursor: pointer;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    transition: all 0.3s;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    background: transparent;
    white-space: nowrap;
}

.strefaproduktowa-tab-btn.active,
.strefaproduktowa-tab-btn:hover {
    color: #ff6600;
    background: #fff;
    border-color: #ff6600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.strefaproduktowa-tab-btn.active i,
.strefaproduktowa-tab-btn:hover i {
    color: #ff6600;
}

.strefaproduktowa-tabs-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 180px;
}

.strefaproduktowa-more-link {
    display: none !important;
}

.strefaproduktowa-more-link.active {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    text-decoration: none !important;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.strefaproduktowa-more-link:hover {
    color: #ff6600;
    transform: translateX(5px);
}

.strefaproduktowa-grid {
    display: grid;
    grid-template-columns: repeat(var(--strefaproduktowa-cols, 4), 1fr);
    gap: 20px;
}

.strefaproduktowa-item .tvproduct-wrapper {
    margin-bottom: 0 !important;
    height: 100%;
}

.strefaproduktowa-pane {
    display: none;
    animation: strefaproduktowa-fade-in 0.4s ease;
}

.strefaproduktowa-pane.active {
    display: block;
}

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

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

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

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

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

@keyframes strefaproduktowa-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

    .strefaproduktowa-left-col,
    .strefaproduktowa-right-col {
        width: 100%;
        flex: none;
    }

    .strefaproduktowa-left-col {
        height: auto;
        margin-top: 10px;
        margin-bottom: 40px;
    }

    .strefaproduktowa-tabs-header {
        display: block;
        border-bottom: none;
    }

    .strefaproduktowa-tabs-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding-bottom: 15px;
        margin-bottom: 10px;
    }

    .strefaproduktowa-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 10px;
        background: #f9f9f9;
        border: 1px solid #eee;
    }

    .strefaproduktowa-tab-btn.active {
        background: #fff;
        border-color: #ff6600;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    }

    .strefaproduktowa-tabs-links {
        justify-content: center;
        border-top: 1px solid #f0f0f0;
        padding-top: 15px;
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   STREFA PRODUKTOWA - blok w megamenu
   ========================================================= */

.mz-hook-wrapper {
    max-width: none !important;
    width: 100% !important;
    display: block !important;
    height: 100%;
}

.mz-default-placeholder {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 27% !important;
    right: 0 !important;
    width: auto !important;
    padding: 0 !important;
    background: #fff;
    z-index: 100;
    overflow: hidden;
}

.strefaproduktowa-menu-wrapper {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
}

.strefaproduktowa-menu-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.strefaproduktowa-menu-tab-btn {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.2s;
}

.strefaproduktowa-menu-tab-btn.active,
.strefaproduktowa-menu-tab-btn:hover {
    color: #222;
}

.strefaproduktowa-menu-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff6600;
}

.strefaproduktowa-menu-content {
    flex-grow: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.strefaproduktowa-menu-pane {
    display: none;
    height: 100%;
    width: 100%;
}

.strefaproduktowa-menu-pane.active {
    display: block;
    animation: strefaproduktowa-fade-in 0.4s;
}

.strefaproduktowa-menu-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) !important;
    grid-template-rows: repeat(2, max-content) !important;
    gap: 15px;
    width: 100%;
    height: 100%;
    align-content: start;
}

.strefaproduktowa-menu-card {
    background: #fff;
    border: 1px solid #f9f9f9;
    border-radius: 4px;
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s;
    height: auto !important;
    width: 100%;
    box-sizing: border-box;
}

.strefaproduktowa-menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #fff;
}

.strefaproduktowa-menu-img-box {
    width: 100%;
    height: 80px !important;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strefaproduktowa-menu-img-box img {
    max-height: 75px !important;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.strefaproduktowa-menu-info-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.strefaproduktowa-menu-name {
    font-size: 10px !important;
    font-weight: 300 !important;
    color: #555 !important;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1.35;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 28px;
}

.strefaproduktowa-menu-name:hover {
    color: #ff6600 !important;
}

.strefaproduktowa-menu-price {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ff6600;
    margin-top: 5px;
}

/* Poprawki paneli megamenu motywu. Nie dotyczą koszyka ani sekcji home. */
.mz-content-panel {
    z-index: 500 !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 27% !important;
    right: 0 !important;
    width: auto !important;
    height: 100% !important;
    background: #fff !important;
    display: none;
    padding: 30px !important;
    box-sizing: border-box;
    overflow-y: auto;
}

.mz-nav-item:hover .mz-content-panel {
    display: block !important;
}

.mz-left-nav {
    position: static !important;
}

.mz-nav-item {
    position: static !important;
}

.mz-main-container {
    position: relative !important;
}

.mz-left-nav:hover ~ .mz-default-placeholder {
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: -1 !important;
    transition: none !important;
}

.mz-content-panel {
    background-color: #fff !important;
    z-index: 600 !important;
}

/* =========================================================
   STREFA PRODUKTOWA 3.8.0 - szybkie karty / snapshot HTML
   ========================================================= */
.strefaproduktowa-has-initial-content {
    min-height: 0 !important;
}

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

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

.strefaproduktowa-fast-card {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    height: 100%;
    min-height: 100%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

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

.strefaproduktowa-fast-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 9px;
}

.strefaproduktowa-fast-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.strefaproduktowa-fast-image-placeholder {
    width: 72%;
    height: 72%;
    display: block;
    border-radius: 10px;
    background: linear-gradient(135deg, #f4f4f4, #fafafa);
}

.strefaproduktowa-fast-stars {
    color: #ffb400;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 1px;
    margin: 0 0 7px;
}

.strefaproduktowa-fast-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 9px;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.strefaproduktowa-fast-name a {
    color: #222;
    text-decoration: none !important;
}

.strefaproduktowa-fast-name a:hover {
    color: #ff6600;
}

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

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

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

.strefaproduktowa-fast-deal-card {
    border: none;
    box-shadow: none;
    transform: none !important;
    width: 100%;
}

.strefaproduktowa-fast-deal-card:hover {
    box-shadow: none;
}

.strefaproduktowa-fast-deal-image {
    max-width: 230px;
    margin-left: auto;
    margin-right: auto;
}

.strefaproduktowa-pending-state,
.strefaproduktowa-empty {
    width: 100%;
    padding: 28px 20px;
    text-align: center;
    color: #777;
    background: #fff;
    border: 1px dashed #ddd;
    border-radius: 10px;
}

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

    .strefaproduktowa-left-col,
    .strefaproduktowa-right-col {
        width: 100%;
        flex: 0 0 auto;
    }

    .strefaproduktowa-fast-deal-image {
        max-width: 210px;
    }
}
