.product-scroll-wrapper {
    position: relative;
    padding-bottom: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.product-scroll-container:active {
    cursor: grabbing;
}

.product-scroll-container::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.product-card img {
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    object-fit: cover;
}

.product-card-body {
    padding: 1rem;
}

/* Arrow Icon */
.arrow-icon {
    font-size: 1.2rem;
    transition: transform 0.2s;
    text-decoration: none;
}

.arrow-icon:hover {
    transform: translateX(4px);
    text-decoration: none;
}
.product-card-body .arrow-icon {
  pointer-events: auto;
}

/* Custom Scrollbar Track */
.custom-scrollbar-track {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 6px;
    width: 40%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

/* Custom Scrollbar Thumb */
.custom-scrollbar-thumb {
    height: 100%;
    width: 0;
    background: #007bff;
    border-radius: 6px;
    transition: width 0.08s linear, transform 0.02s linear, background 0.2s;
    cursor: grab;
    touch-action: none;
}

.custom-scrollbar-thumb.dragging {
    cursor: grabbing;
    background: #0056b3;
}

.no-select {
    user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
}

@media (max-width: 991.98px) {
    .product-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 575.98px) {
    .product-card {
        flex: 0 0 100%;
    }

    .custom-scrollbar-track {
        width: 60%;
    }
}

.product-scroll-wrapper {
    position: relative; 
    padding: 0 5px; 
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #525455;
    border: none;
    cursor: pointer;
    font-size: 2.5rem;
    line-height: 1;
    box-shadow: none;
    padding: 5px;
    transition: color 0.3s;
}

.scroll-button:hover {
    background-color: transparent;
    color: #007bff;
    opacity: 1;
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

.scroll-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    color: #3e4346;
}