/* Vertical scrolling for template slider */
#template-slider {
    max-height: 120vh;
    scroll-snap-type: y mandatory;

    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px; /* Give some breathing room */

}

/* Category sections */
.template-category {
    /* scroll-snap-align: start; */

    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

/* Template containers */
.template-container {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.template-container > div {
    scroll-snap-align: start;
}

/* Navigation arrows */
#slider-prev, #slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    border: none;
}

#slider-prev {
    left: 0;
}

#slider-next {
    right: 0;
}