/* Category Tiles Horizontal Scroll Slider */

.category-tiles-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    position: relative;
    padding: 20px 0;
    margin: 0 auto;
}

.category-tiles {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 20px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent, #333) rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    width: 100%;
}

/* Add padding to first and last tile for proper scroll alignment */
.category-tiles .category-tile:first-child {
    margin-left: 20px;
}

.category-tiles .category-tile:last-child {
    margin-right: 20px;
}

/* Override any theme styles that might interfere with horizontal scroll */
@media (min-width: 1025px) {
    .category-tiles {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
    }
}

/* Custom scrollbar for webkit browsers */
.category-tiles::-webkit-scrollbar {
    height: 8px;
}

.category-tiles::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.category-tiles::-webkit-scrollbar-thumb {
    background: var(--accent, #333);
    border-radius: 4px;
}

.category-tiles::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark, #222);
}

.category-tile {
    min-width: 300px !important;
    max-width: 300px !important;
    width: 300px !important;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    display: flex !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-tile:hover img {
    transform: scale(1.05);
}

.category-tile .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: white;
    padding: 30px 20px;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
}

.category-tile:hover .overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

.category-tile .overlay .odkryj {
    font-size: 0.75em;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    opacity: 0.9;
    font-style: italic;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .category-tiles-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px) !important;
    }

    .category-tile {
        min-width: 250px !important;
        max-width: 250px !important;
        width: 250px !important;
        height: 350px;
    }

    .category-tiles {
        gap: 15px;
    }

    .category-tiles .category-tile:first-child {
        margin-left: 15px;
    }

    .category-tiles .category-tile:last-child {
        margin-right: 15px;
    }

    .category-tile .overlay {
        font-size: 1em;
        padding: 20px 15px;
    }
}

@media screen and (max-width: 480px) {
    .category-tiles-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px) !important;
    }

    .category-tile {
        min-width: 200px !important;
        max-width: 200px !important;
        width: 200px !important;
        height: 300px;
    }

    .category-tiles {
        gap: 12px;
    }

    .category-tiles .category-tile:first-child {
        margin-left: 15px;
    }

    .category-tiles .category-tile:last-child {
        margin-right: 15px;
    }

    .category-tile .overlay {
        font-size: 0.9em;
        padding: 15px 10px;
    }

    .category-tile .overlay .odkryj {
        font-size: 0.7em;
    }
}

	.category-tiles {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.category-tile {
    width: 360px;
    height: 550px;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease; /* Dodano animację skalowania dla obrazka */
}

.category-tile:hover img {
    transform: scale(1.05); /* Skalowanie dotyczy tylko obrazka */
}

.category-tile .overlay {
    position: absolute;
		display: flex;
		flex-direction: column;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.83);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
		text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}
	.odkryj {
		text-align: center;
		line-height: 1em;
		color: #ffffff;
		font-size: 16px;
		font-weight: 400;
		margin: 0;
	}

	.category-tile:hover .overlay {
    opacity: 1;
}



@media (max-width: 768px) {
    .category-tile {
        width: 280px;
        height: 430px;
    }
				.category-tiles {
    justify-content: center;
}
}

@media (min-width: 769px) and (max-width: 1024px) {
    .category-tile {
        width: 320px;
        height: 500px;
    }
			.category-tiles {
    justify-content: center;
}
}


@media (min-width: 1025px) {
    .category-tile {
        width: 360px;
        height: 550px;
    }
		.category-tiles {
    justify-content: space-between;
}
}
