/* Subcategories Carousel Styling */
.sk-subcategories-section {
    margin-bottom: 50px;
    opacity: 0; /* Początkowo ukryty, pokaże się po załadowaniu */
    transition: opacity 0.3s ease;
}
.sk-parent-category-title {
    margin-bottom: 0;
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
}
hr.sk-category-divider {
    border: 0;
    height: 1px;
    background-color: black;
    width: 100%;
    margin: 0 0 50px 0;
}
.sk-subcategories-carousel {
    position: relative;
}
/* Subcategory Item */
.sk-subcategory-item {
    display: block;
    position: relative;
    height: 0;
    padding-bottom: 100%; /* Proporcja 1:1 dla kwadratowego kafelka */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.sk-subcategory-item:hover {
    transform: translateY(-5px);
}
.sk-subcategory-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
}
.sk-subcategory-name {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 400;
    text-transform: uppercase;
    transition: text-decoration 0.2s ease;
    z-index: 2; /* Zapewnia, że tekst będzie na wierzchu */
}
.sk-subcategory-item:hover .sk-subcategory-name {
    text-decoration: underline;
}
/* Swiper Pagination */
.sk-subcategories-section .swiper-pagination {
    position: absolute;
    bottom: -10px !important;
    left: 0;
    right: 0;
    text-align: center;
}
/* Ensure the fourth card is partially visible */
.sk-subcategories-section .swiper {
    overflow: hidden; /* Zmiana z visible na hidden */
    position: relative;
    margin: 0 auto; /* Centrowanie */
    width: 100%; /* Pełna szerokość */
}
.sk-subcategories-section .swiper-slide {
    width: 31%; /* Slightly less than 1/3 to account for margins */
    margin-right: 2%;
}
.sk-subcategory-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1; /* Zapewnia, że gradient będzie ponad obrazkiem, ale pod tekstem */
}
/* Navigation arrows - zmodyfikowane */
.sk-subcategories-carousel .swiper-button-next,
.sk-subcategories-carousel .swiper-button-prev {
    background-image: none;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
}
.sk-subcategories-carousel .swiper-button-next::after,
.sk-subcategories-carousel .swiper-button-prev::after {
    display: none;
}
/* Style dla niestandardowych strzałek SVG */
.sk-subcategories-carousel .swiper-button-next svg,
.sk-subcategories-carousel .swiper-button-prev svg {
    width: 55px;
    height: 25px;
}
/* Efekt hover dla strzałek */
.sk-subcategories-carousel .swiper-button-next:hover svg path,
.sk-subcategories-carousel .swiper-button-prev:hover svg path {
    fill: #a06729; /* Ciemniejszy odcień na hover */
    transition: fill 0.3s ease;
}
.sk-subcategories-carousel .swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* Mobile styles for navigation arrows */
@media (max-width: 767px) {
    .sk-subcategories-carousel .swiper-button-next svg,
    .sk-subcategories-carousel .swiper-button-prev svg {
        width: 40px;
        height: 25px;
    }
}
/* Swiper Pagination - zewnętrzny kontener - NOWY STYL */
#pagination-sk-subcat-carousel-1,
#pagination-sk-subcat-carousel-2,
#pagination-sk-subcat-carousel-3,
.swiper-pagination[id^="pagination-sk-subcat-carousel-"] {
    position: relative;
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
}
/* Style dla kropek - NOWY STYL */
.swiper-pagination[id^="pagination-sk-subcat-carousel-"] .swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    background: #fff;
    opacity: 1;
    margin: 0 5px;
}
.swiper-pagination[id^="pagination-sk-subcat-carousel-"] .swiper-pagination-bullet-active {
    background: #CE8946;
}

/* Loader Styles */
.sk-carousel-loader {
    position: relative;
    width: 100%;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.sk-carousel-loader-tile {
    width: 100px;
    height: 100px;
    background: linear-gradient(90deg, #f2f2f2, #e6e6e6, #f2f2f2);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}
.sk-carousel-loader-tile::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 2s infinite;
}
@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}
@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}