/* Materials and Colors Styling */

/* Common Elements */
.sk-materials-header,
.sk-colors-header {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
}

hr.sk-materials-divider,
hr.sk-colors-divider {
    border: 0;
    height: 1px;
    background-color: #ccc;
    width: 100%;
    margin: 0 0 30px 0;
}

/* Materials Section */
.sk-materials-section {
    margin-bottom: 60px;
}

.sk-materials-carousel {
    position: relative;
    padding-bottom: 60px; /* Space for pagination */
}

.sk-materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Material Item */
.sk-material-item {
    margin-bottom: 40px;
}

.sk-material-image {
    position: relative;
    height: 0;
    padding-bottom: 100%; /* Square aspect ratio */
    background-size: cover;
    background-position: center;
    
    overflow: hidden;
    margin-bottom: 30px;
}

.sk-material-name {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 34px;
    font-weight: 400;
    z-index: 2;
}

.sk-samples-link {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: #ffffff;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    gap:8px;
    align-items: center;
    z-index: 2;
    transition: color 0.2s ease;
    text-transform: uppercase;
}

.sk-samples-link:hover {
    color: #ffffff;
    opacity: 0.9;
}

.sk-material-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.sk-special-order-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white !important;

    padding: 6px 12px;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: underline !important;
    text-align: center;
    z-index: 2;
    max-width: 80%;
}


.sk-material-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Swiper Pagination */
.swiper-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    background-color: #fff;
    opacity: 1;
    margin: 0 5px;
    border: 3px solid #CE8946 !important;
}

.swiper-pagination-bullet-active {
    background-color: #CE8946 !important;
}

/* Colors Sections */
.sk-colors-sections {
    margin-bottom: 60px;
    scroll-margin-top: 187px;
}

.sk-colors-header {
    text-align: center;
    margin-top: 60px;
    margin-bottom:60px;
}

.sk-colors-divider {
    margin-bottom: 40px;
}

.sk-colors-section {
    margin-bottom: 180px;
    scroll-margin-top: 50px; /* For smooth scrolling to anchor */
}
.sk-colors-section:last-of-type {
    margin-bottom: 0px !important;
}
.sk-color-material-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 50px;
    text-align: center;
}

.sk-colors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.sk-color-item {
    text-align: center;
}

.sk-color-image {
    height: 0;
    padding-bottom: 100%; /* Square aspect ratio */
    background-size: cover;
    background-position: center;
  
    margin-bottom: 10px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.sk-color-name {
    font-size: 16px;
    font-weight: 400;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sk-materials-grid,
    .sk-colors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sk-material-name{
        bottom:5px;
    }
}
@media (min-width: 780px) and (max-width: 1200px) {
    .sk-material-name{
        font-size:24px;
        bottom:5px;
    }
    .sk-samples-link{
        bottom:10px;
    }
}
@media (max-width: 480px) {
    .sk-materials-grid,
    .sk-colors-grid {
        grid-template-columns: 1fr;
    }
    .sk-material-name{
        bottom:5px;
    }
    .sk-material-name,
    .sk-color-material-name {
        font-size: 20px;
    }
    
    .sk-special-order-badge {
        font-size: 12px;
        padding: 4px 8px;
    }
    .sk-samples-link{
        bottom:10px;
        font-size:14px;
    }
}
/* Dodaj te style dla strzałek nawigacji */
.sk-materials-carousel .swiper-button-next,
.sk-materials-carousel .swiper-button-prev {
    background-image: none;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
}

.sk-materials-carousel .swiper-button-next::after,
.sk-materials-carousel .swiper-button-prev::after {
    display: none;
}

/* Style dla niestandardowych strzałek SVG */
.sk-materials-carousel .swiper-button-next svg,
.sk-materials-carousel .swiper-button-prev svg {
    width: 55px;
    height: 16px;
}

/* Efekt hover dla strzałek */
.sk-materials-carousel .swiper-button-next:hover svg path,
.sk-materials-carousel .swiper-button-prev:hover svg path {
    fill: #a06729; /* Ciemniejszy odcień na hover */
    transition: fill 0.3s ease;
}

/* Style responsywne dla strzałek */
@media (max-width: 768px) {
    .sk-materials-carousel .swiper-button-next svg,
    .sk-materials-carousel .swiper-button-prev svg {
        width: 40px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .sk-materials-carousel .swiper-button-next svg,
    .sk-materials-carousel .swiper-button-prev svg {
        width: 35px;
        height: 25px;
    }
    .sk-materials-carousel .swiper-button-next{
    }
}