.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 4px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 150px;
    cursor:pointer;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 5px;
}
.product-name {
    color: #333;
    margin-bottom: 5px;
}

.sold-count {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 5px;
}

.price {
    font-size: 1em;
    color: #e74c3c;
    margin-bottom: 5px;
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.discount {
    font-size: 0.8em;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}

.offer {
    font-size: 0.8em;
    color: #27ae60;
    margin-bottom: 10px;
}

.cta-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    margin-bottom: 10px;
}
.cart-area2{
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.cart-area2 input{
    text-align: center;
}

.cta-buttons button {
    color: #05bcf5;
    background: inherit;
    padding: 4px 8px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.cta-buttons button:hover {
    color: darkblue;
}

/* Color Selection */
.color-selection {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}
.color-selection label {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    align-items: center;
    margin-right: 5px;
    cursor: pointer;
}

.color-selection input[type="radio"] {
    margin-right: 2px;
}
.selected-product {
    display: flex;
    flex-direction: row;
    margin-bottom: 4px;
}

.selected-product-info {
    padding: 2px 8px;
    width: 50%;
}
.image-container {
    display: flex;
    flex-direction: column;
    width:50%;
}
.inner_container{
    display: flex;
    width: 100%;
    background-color: #dddddd;
    height: 400px;
}

.large-product-image {
    object-fit: fill;
    border-radius: 6px;
}
.large-product-image:hover{
    cursor: zoom-in;
}
.small-images{
    padding: 2px;
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    justify-content: start;
    align-items: center;
}
.small-image{
    margin-right: 5px;
    width: 50px;
    border-radius: 10px;
}

.small-image.isActive {
    border: 2px solid blue; /* Border when active */
}
.small-image img{
    border-radius: 5px;
    object-fit: cover;
}

/* Style for related products section */
.related-products {
    margin-top: 10px;
}
.related-products h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Small Screens (Mobile) */
@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .color-selection {
        justify-content: center;
    }
    .selected-product {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .selected-product-info {
        width: 100%;
        text-align: center;
    }
    .image-container {
        width:100%;
    }
}

/* Tablet View */
@media (min-width: 768px) and (max-width: 1023px) {

}

/* Large Screens (Desktop) */
@media (min-width: 1024px) {

}
