
/* Wrapper that holds the track + buttons */
.scroll-wrapper {
    position: relative;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Override menu-grid to flex horizontal scroll */
.scroll-wrapper .menu-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: unset !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 10px 6px 24px;
    max-width: 100%;
}

/* Override gallery-grid to flex horizontal scroll */
.scroll-wrapper .gallery-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: unset !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 6px 24px;
    max-width: 100%;
}

/* Show exactly 4 items: (100% - 3 gaps) / 4 */
.scroll-wrapper .menu-grid .menu-item {
    flex: 0 0 calc(25% - 18px) !important;
    min-width: 0 !important;
    width: calc(25% - 18px) !important;
}

.scroll-wrapper .gallery-grid .gallery-item {
    flex: 0 0 calc(25% - 15px) !important;
    min-width: 0 !important;
    width: calc(25% - 15px) !important;
}

/* Prev / Next buttons */
.sc-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 20;
    background: #6F4E37;
    color: #fff;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    user-select: none;
}

.sc-btn:hover {
    background: #8B4513;
    transform: translateY(-60%) scale(1.1);
}

.sc-btn:active {
    transform: translateY(-60%) scale(0.96);
}

.sc-btn-prev {
    left: 7px;
}

.sc-btn-next {
    right: 7px;
}

/* Dot indicators */
.sc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.sc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D4A574;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    padding: 0;
}

.sc-dot.active {
    background: #6F4E37;
    transform: scale(1.3);
}

/* Responsive: show 2 items on tablet, 1 on mobile */
@media (max-width: 900px) {
    .scroll-wrapper .menu-grid .menu-item,
    .scroll-wrapper .gallery-grid .gallery-item {
        flex: 0 0 calc(50% - 12px) !important;
        width: calc(50% - 12px) !important;
    }
}

@media (max-width: 520px) {
    .scroll-wrapper .menu-grid .menu-item,
    .scroll-wrapper .gallery-grid .gallery-item {
        flex: 0 0 calc(100%) !important;
        width: 100% !important;
    }

    .sc-btn-prev { left: 4px; }
    .sc-btn-next { right: 4px; }
}
