/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.grouped-products-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Add Border */
.grouped-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px !important;
    background: #fff;
    border: 1px solid #F5F5F5;
	border-radius: 0px !important;
}

/* First Column: Product Image */
.grouped-product-image {
    flex: 1;
    text-align: center;
}

.grouped-product-image img {
    max-width: 80px;
    height: auto;
}

/* Second Column: Product Info */
.grouped-product-info {
    flex: 2;
    padding: 0px;
    background: #fff;
    border-radius: 5px;
}

/* Two-Row, Two-Column Layout for Desktop */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px; /* Reduced space between rows */
}

.info-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.info-detail {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

/* Third Column: Price & Quantity */
.grouped-product-price {
    flex: 0.7;
    padding: 10px;
    background: #F7F7F7;
    border-radius: 0px !important;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grouped-product-item {
        flex-direction: row; /* Keep three-column layout */
        align-items: center;
        text-align: center;
		padding: 10px !important;
    }

    .grouped-product-info {
		flex: 1;
        width: 100%;
        padding: 10px;
    }
	
	.grouped-product-image img {
    max-width: 80px;
    height: auto;
}

    /* Convert Product Details to Single Column on Mobile */
    .info-grid {
        grid-template-columns: 1fr; /* Change to 1 column on mobile */
        gap: 3px; /* Minimized space between rows */
    }

    .grouped-product-price {
		flex: 1;
        width: 100%;
        padding: 15px;
    }
	.info-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.info-detail {
    font-size: 12px;
    font-weight: 500;
    color: #666;
	text-align: left !important;
}
}

