/* ========================================================= */
/* FRESH PRODUKTY - CSS                                     */
/* ========================================================= */

.freshprodukty-section {
    background-color: #ffffff;
    margin-top: -20px !important;
    margin-bottom: 60px !important;
    padding: 60px 0 40px 0;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 10;
    min-height: 460px;
    box-sizing: border-box;
    content-visibility: auto;
    contain-intrinsic-size: 760px;
}

.fresh-prod-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.fresh-prod-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #222;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.fresh-prod-line {
    width: 60px;
    height: 4px;
    background: #00a8cc;
    margin: 0 auto 25px auto;
    border-radius: 2px;
}

.fresh-prod-desc {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 750px;
    font-weight: 400;
}

.fresh-hero-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: stretch;
    width: 100%;
}

.fresh-hero-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    height: 100%;
}

.fresh-hero-intro {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.fresh-intro-title {
    font-size: 16px;
    font-weight: 700;
    color: #00a8cc;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.fresh-intro-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.fresh-hero-card-wrapper {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #00a8cc;
    transition: border-color 0.3s ease;
    overflow: visible !important;
    margin-top: auto !important;
}

.fresh-hero-card-wrapper .tvproduct-wrapper {
    margin-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.fresh-hero-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #00a8cc;
    color: #00a8cc;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 18px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    white-space: nowrap;
}

.fresh-grid-column {
    min-width: 0;
}

.fresh-dense-grid {
    display: grid;
    grid-template-columns: repeat(var(--fresh-cols, 5), 1fr);
    gap: 15px;
}

.fresh-grid-item .tvproduct-wrapper {
    margin-bottom: 0 !important;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.fresh-grid-item .tvproduct-wrapper:hover {
    border-color: #00a8cc !important;
    box-shadow: 0 5px 15px rgba(0,168,204, 0.1) !important;
}

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

.fresh-empty {
    min-height: 120px;
    padding: 30px 15px;
    font-size: 14px;
    font-weight: 600;
}

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

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

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

@media (max-width: 1199px) {
    .fresh-hero-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fresh-hero-column {
        flex-direction: row;
        align-items: stretch;
        height: auto;
    }

    .fresh-hero-intro,
    .fresh-hero-card-wrapper {
        flex: 1;
        margin-top: 0 !important;
    }
}

@media (max-width: 991px) {
    .freshprodukty-section {
        min-height: 420px;
        contain-intrinsic-size: 640px;
    }

    .fresh-hero-layout {
        display: block;
        width: 100%;
    }

    .fresh-hero-column {
        display: block;
        width: 100%;
        margin-bottom: 30px;
        height: auto;
    }

    .fresh-hero-intro {
        margin-bottom: 20px;
    }

    .fresh-hero-card-wrapper {
        position: relative;
        background: #fff;
        border-radius: 8px;
        padding: 5px;
        border: 1px solid #00a8cc;
        transition: border-color 0.3s ease;
        overflow: visible !important;
        margin-top: 15px !important;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .fresh-prod-title {
        font-size: 20px !important;
        padding: 0 10px;
    }

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

    .fresh-dense-grid::-webkit-scrollbar {
        display: none;
    }

    .fresh-grid-item {
        min-width: 150px;
        max-width: 150px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}

/* ========================================================= */
/* FRESH PRODUKTY 2.1.0 - lekkie karty snapshotu HTML       */
/* ========================================================= */

#fresh-content-area.fresh-has-initial-content,
#fresh-content-area:not(.fresh-lazy-skeleton) {
    min-height: 0;
}

.fresh-fast-layout {
    align-items: stretch;
}

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

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

.fresh-fast-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    min-height: 260px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 12px 16px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.fresh-fast-card:hover {
    border-color: #00a8cc;
    box-shadow: 0 5px 15px rgba(0,168,204,0.10);
    transform: translateY(-1px);
}

.fresh-fast-hero-wrapper {
    padding: 6px !important;
}

.fresh-fast-hero-card {
    border: none;
    min-height: 360px;
    padding-top: 24px;
}

.fresh-fast-hero-card:hover {
    box-shadow: none;
    transform: none;
}

.fresh-fast-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    text-decoration: none;
}

.fresh-fast-hero-image {
    height: 220px;
}

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

.fresh-fast-image-placeholder {
    width: 82%;
    height: 82%;
    display: block;
    border-radius: 8px;
    background: #f7f7f7;
}

.fresh-fast-stars {
    color: #d8d8d8;
    font-size: 13px;
    letter-spacing: 2px;
    line-height: 1;
    margin: 2px 0 10px;
}

.fresh-fast-name {
    width: 100%;
    min-height: 42px;
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
}

.fresh-fast-hero-name {
    font-size: 13px;
    min-height: auto;
}

.fresh-fast-name a {
    color: inherit;
    text-decoration: none;
}

.fresh-fast-name a:hover {
    color: #00a8cc;
}

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

.fresh-fast-price {
    font-size: 14px;
    font-weight: 800;
    color: #222;
}

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

.fresh-pending-state {
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .fresh-fast-hero-card {
        min-height: 300px;
    }

    .fresh-fast-hero-image {
        height: 190px;
    }

    .fresh-fast-card {
        min-height: 245px;
        padding: 12px 10px 14px;
    }

    .fresh-fast-image {
        height: 130px;
    }
}
