.collections-main-title {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid;
    font-size: x-large;
}

 .collections-main-title {
    margin-bottom: 2rem;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolumny na desktopie */
    gap: 16px; /* Odstępy między produktami */
    text-align: center;
    padding-top: 1rem;
}


 
.collections-grid .product p a,
.collections-grid .collection p a {
    font-size: large;
}

.collection-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 2 kolumny na mobilnych urządzeniach */
    gap: 20px;
    overflow: hidden;
}

.collection-product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    background-color: #fff;
    height: 100%;
    overflow: hidden; /* Zapewnia, że treść w produkcie nie wyjdzie poza jego kontener */
}

.collection-product img {
    max-width: 100%; /* Zapobiega wychodzeniu obrazów poza kontener */
    height: auto;    /* Zachowuje proporcje obrazu */
    object-fit: cover; /* Zapewnia, że obraz wypełni przestrzeń bez rozciągania */
}

.collection-product .product-description {
    flex-grow: 1;
}

.collections-grid {
    display: grid; /* Użycie grid layout */
    grid-template-columns: repeat(6, 1fr); /* 4 kolumny na desktopie */
    gap: 20px; /* Odstęp między produktami */
}

@media (max-width: 1550px) {
    .collections-grid,
    .collection-product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1280px) {
    .collections-grid,
    .collection-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .collections-grid,
    .collection-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .collections-grid,
    .collection-product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.collections-grid h2 {
    text-align: center;
}

.collections-grid .collection,
#bs24-collections-slider .collection,
#bs24-collections-slider .overlay {
    border-radius: var(--bs24-border-radius, 8px);
}

.collections-grid .collection,
#bs24-collections-slider .collection {
    position: relative;
    overflow: hidden;
}

.collections-grid .collection-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.collections-grid .collection-image,
.collections-grid .collection-name,
#bs24-collections-slider .collection-image,
#bs24-collections-slider .collection-name {
    transition: transform 0.3s;
}

@media (min-width: 1025px) {
    #bs24-collections-slider .collection-name {
        font-size: 60px;
    }
}
@media (min-width: 481px) {
    #bs24-collections-slider .collection-name {
        font-size: 46px;
    }
}
#bs24-collections-slider .collection-name,
#bs24-collections-slider .collection-name:after {
    font-size: 32px;
}

#bs24-collections-slider .overlay:after {
    content: "chevron_right";
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    vertical-align: middle;
    color: #fff;
    margin-bottom: 8px;
}

.collections-grid .collection:hover .collection-image,
#bs24-collections-slider .collection:hover .collection-image {
    transform: scale(1.05);
}

.collections-grid .collection:hover .collection-name,
#bs24-collections-slider .collection:hover .collection-name {
    transform: scale(1.2);
}

.collections-grid .overlay,
#bs24-collections-slider .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Shade of #e07c35 (orange main) */
    /* background-color: rgba(224, 124, 53, 0.3); */ 
    background-color: rgb(45 45 45 / 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 1);
}

#bs24-collections-slider .overlay {
    justify-content: space-between;
    align-items: flex-end;
    padding: 40px;
}

.collections-grid .collection:hover .overlay,
#bs24-collections-slider .collection:hover .overlay {
    background-color: rgba(224, 124, 53, 0.7);
}

.collections-grid .overlay h2,
#bs24-collections-slider .overlay h2 {
    color: #fff;
    margin: 0;
    font-size: 22px;
    text-align: center;
    font-weight: 700;
}
#bs24-collections-slider .overlay h2 {
    font-size: 32px;
}


.collection-banner {
    width: auto;
    height: auto; /* Możesz dostosować wysokość */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid;
}

.collection-banner img {
    width: auto;
    height: auto;
    display: block; /* Usuwa marginesy */
}

.banner-title {
    color: #fff;
    font-size: 2rem;
    background-color: rgba(0, 0, 0, 0.5); /* Półprzezroczyste tło */
    padding: 10px 20px;
    border-radius: 5px;
}

@media (max-width: 866px) {
    .collection-banner img {
        width: 100%;
    }
}