.featured-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    cursor: pointer;
}

.category-link {
    text-decoration: none;
    color: inherit;
}

.category-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.category-text {
    margin-top: 12px;
}

.category-text h3 {
    font-size: 1.2em;
    margin: 5px 0;
    font-weight: 600;
}

.category-text p {
    font-size: 0.95em;
    color: #555;
}

/* 📱 RESPONSIVITA */
@media (max-width: 1024px) {
    .category-item {
        width: 48%; /* 2 vedle sebe pro tablet */
    }
}

@media (max-width: 800px) {
    .featured-categories {
        padding-left: 10px !important;
        padding-right: 10px !important;
        gap: 10px !important; /* mezery mezi boxy */
    }

    .featured-categories .category-text h3 {
        font-size: 0.95em !important;
    }

    .featured-categories .category-text p {
        font-size: 0.85em !important;
        line-height: 1.3 !important;
    }
}




.product-carousel {
    margin: 40px 0;
    position: relative;

}

.product-carousel.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-carousel.fade-out {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}


.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.carousel-header h2 {
    font-size: 1.8em;
    margin: 0;
}

.carousel-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.swiper-button-prev,
.swiper-button-next {
    position: static !important; /* odstraní absolutní pozici Swiperu */
    margin: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #ccc;
}

.product-carousel .swiper {
    margin-top: 35px;
}

@media (max-width: 768px) {
    .carousel-nav {
        display: none;
    }

    .product-carousel .swiper {
        margin-top: 35px;
    }

    .carousel-header {
        justify-content: center; /* nadpis doprostřed */
        text-align: center;
    }

    .carousel-header h2 {
        font-size: 1.6em;
    }
}

.swiper-slide {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.swiper-slide.fade-out-right {
    opacity: 0;
    transform: translateX(-60px) scale(0.94);
}

/* --- button KOUPIT --- */
.product-carousel .swiper-slide .prod-thumb .product-button a.btn-primary {
    z-index:30 !important;
}

/* --- transparentní odkazy --- */
.product-carousel .swiper-slide a {
    background: transparent;
}


.instagram-feed {
    padding: 50px 0 30px;
    margin: 10px 0 20px 0;
}

.instagram-feed .carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.instagram-feed .carousel-header h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0;
}

.insta-follow:hover {
    border-color: #000;
}

.instagram-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(208px, 1fr));
    gap: 12px;
}
.instagram-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    text-align: center;
    aspect-ratio: 1 / 1;
    background: #fff;
}
.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.instagram-item:hover img {
    transform: scale(1.05);
}
.instagram-item.text {
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #000;
}
.instagram-item.text h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: left !important;
}
.instagram-item.text .hashtag {
    color: #434c40;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 18px;
}
.instagram-item.text .socials {
    display: flex;
    gap: 20px;
}
.instagram-item.text .socials a {
    font-size: 26px;
    color: #000;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.instagram-item.text .socials a:hover {
    transform: scale(1.15);
    opacity: 0.7;
}
@media (max-width: 768px) {

    .instagram-feed .carousel-header h2 {
        font-size: 1.6em;
    }

    .instagram-feed.span-12.nopad {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    .instagram-feed .carousel-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding-left: 5px;
        padding-right: 5px;
    }
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .instagram-item.text h3 {
        font-size: 14px;
    }
    .instagram-item.text .socials a {
        font-size: 24px;
    }
}