@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: 40vh;
        }

        /* 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);
    }
}




/* Layout */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 40px 40px; /* space for fixed nav */
    max-width: 1200px;
    margin: auto;
}

/* IMAGES */
.product-images {
    display: flex;
    flex-direction: column;
    object-fit: contain;
}

.main-image img {
    width: 100%;
    height: 60vh;
    object-fit: contain;
    border-radius: 10px;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail-row img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    opacity: 0.7;
    transition: 0.2s;
}

.thumbnail-row img:hover {
    opacity: 1;
}

/* DETAILS */
.product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-details h1 {
    font-size: 28px;
    letter-spacing: 4px;
    margin-bottom: 10px;

}

.price {
    font-size: 20px;
    margin-bottom: 20px;
}

.description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}


/* SIZE DROPDOWNS */
.size-selectors {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.size-dropdown {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    background: white;
}

.size-error {
    color: red;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 15px;
    display: none; /* hidden by default */
}


/* BUTTON */
.pre-order {
    font-size: 14px;
    padding: 12px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    margin-bottom: 20px;
}

/* EXTRA INFO */
.extra-info p {
    padding: 5px;
    font-size: 14px;
    color: #3a3a3a;
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
    .product-container {
        grid-template-columns: 1fr;
    }

    .main-image img {
        height: 50vh;
    }
}