@import "../../other/nav/navigation.css";

 /* ARROWS */
        .arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0,0,0,0.5);
        color: white;
        border: none;
        padding: 6px 8px;
        cursor: pointer;
        border-radius: 50%;
        z-index: 2;
        opacity: 0;
        transition: opacity 0.2s;
        }

        .arrow.left {
        left: 10px;
        }

        .arrow.right {
        right: 10px;
        }

        .product-card:hover .arrow{
            opacity: 1;
        }

        .arrow:hover{
            background: rgba(0,0,0,0.8);
        }



        /* GRID */
        .product-grid {
            display: grid;
           /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
           grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 20px;
            max-width: 2500px;
            margin: 0 auto;
        
        }
        

        /* PRODUCT CARD */
        .product-card {
            background: rgb(252, 252, 252);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0,0,0,0.08);
            transition: transform 0.2s ease;
            width: 100%;
            min-width: 0;
            margin-top: 10px;
            padding: 10px;
        }

        .product-card:hover {
            transform: translateY(-5px);
        }

        /* IMAGE SCROLLER */

        .image-wrapper{
            position: relative;
            overflow: hidden;
        }

        .image-slider {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            scrollbar-width: none; /* Firefox */
        }

        .image-slider::-webkit-scrollbar {
            display: none; /* Chrome */
        }

        .image-slider img {
            width: 100%;
            max-width: 100%;
            flex-shrink: 0;
            scroll-snap-align: start;
            object-fit: cover;
            height: 60vh;
        }

        /* PRODUCT INFO */
        .product-info {
            padding: 15px;
            letter-spacing: 4px;
            text-align: center;
        }

        .product-title {
            font-size: 16px;
            margin-bottom: 12px;
            font-weight: bolder;
        }

        .product-price {
            color: rgb(0, 0, 0);
            margin-bottom: 10px;
        }

        .btn {
            display: inline-block;
            padding: 8px 12px;
            background: #222;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
            font-size: 14px;
        }

/* Tablet */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small tablet */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}