﻿
/* আপনার CSS স্টাইল */
.product-details-container {
    display: flex;
    flex-wrap: wrap; /* ছোট স্ক্রিনে কন্টেন্ট নিচে নিচে আসবে */
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.product-image-gallery {
    flex: 1 1 50%;
    padding: 20px;
    text-align: center;
}

.main-image {
    max-width: 100%;
    min-width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 5px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

    .main-image.zoomed {
        transform: scale(2);
        cursor: zoom-out;
        position: relative;
        z-index: 10;
    }

.thumbnail-images {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .thumbnail-images img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border: 1px solid #ddd;
        cursor: pointer;
        border-radius: 5px;
        transition: border-color 0.2s ease;
    }

        .thumbnail-images img:hover,
        .thumbnail-images img.active {
            border-color: #007bff;
        }

.product-info {
    flex: 1 1 50%;
    padding: 20px;
}

    .product-info h2 {
        font-size: 2em;
        color: #333;
        margin-bottom: 10px;
    }

    .product-info .price {
        font-size: 1.8em;
        color: #e67e22;
        font-weight: bold;
        margin-bottom: 15px;
    }

    .product-info .description {
        line-height: 1.6;
        color: #555;
        margin-bottom: 20px;
    }

.add-to-cart-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .add-to-cart-btn:hover {
        background-color: #218838;
    }

/* লোডিং এবং এরর মেসেজ */
.loading-message, .error-message {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    color: #666;
}

/* রেসপনসিভনেস */
/*@media (max-width: 768px) {
    .product-image-gallery, .product-info {
        flex: 1 1 100%;
    }
}
*/

/* ------For collap div-----------------*/
.collapsible {
    background-color: #7777779e;
    color: white;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 8px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
}

#details_1, #details_2, #details_3 {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    /* নতুন যোগ করুন */
    justify-items: start; /* গ্রিড আইটেমগুলোকে প্রতিটি কলামের শুরুতে অ্যালাইন করবে */
    /* অথবা, যদি আইটেমগুলোকে পুরো প্রস্থ দখল করাতে চান (যদি single item হয়) */
    /* grid-auto-flow: row dense; */ /* এটি খুব বেশি দরকার নাও হতে পারে */
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    /* নিশ্চিত করুন যে product-card এর একটি নির্দিষ্ট প্রস্থ বা min-width আছে */
    min-width: 250px; /* এটি minmax(250px, 1fr) এর সাথে সামঞ্জস্যপূর্ণ */
    max-width: 100%; /* কলামের প্রস্থের মধ্যে থাকার জন্য */
}

    .product-card img {
        max-width: 100%;
        height: 200px; /* অথবা আপনার পছন্দের একটি নির্দিষ্ট উচ্চতা */
        object-fit: contain; /* ইমেজের অ্যাস্পেক্ট রেশিও বজায় রেখে কন্টেইনারে ফিট করবে */
        display: block;
        margin: 0 auto 10px auto;
        border-bottom: 1px solid #eee;
    }
