/* shop/static/shop/css/category_detail.css */

/* Content Info Section Component */

/* Section Container */
.content-info-section {
    background-color: #f8f9fa;
}

/* Grid Layout - Desktop: 2-column asymmetric */
.content-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
    min-height: 300px; /* Minimum height for the grid */
    max-height: 500px; /* Maximum height for the grid */
}

/* Main Image (Left) - Takes full height of the grid row */
.content-info-image-main {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: stretch;
    min-height: 300px;
}

.content-info-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

/* Image Stack (Right) - Vertical Stack */
.content-info-image-stack {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 300px;
}

.content-info-image-item {
    flex: 1;
    display: flex;
    min-height: 0; /* Allows proper flex shrinking */
}

.content-info-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 145px;
}

/* Typography */
.content-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

.content-info-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .content-info-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1rem;
        min-height: auto;
    }
    
    .content-info-image-main {
        grid-column: 1;
        grid-row: 1;
        min-height: 200px;
    }
    
    .content-info-image-main img {
        min-height: 200px;
    }
    
    /* Right images become 2-column grid - side by side with equal width */
    .content-info-image-stack {
        grid-column: 1;
        grid-row: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        min-height: 120px;
    }
    
    .content-info-image-item img {
        min-height: 120px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Tablet Responsive (769px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .content-info-grid {
        min-height: 250px;
    }
    
    .content-info-image-main,
    .content-info-image-stack {
        min-height: 250px;
    }
    
    .content-info-image-main img {
        min-height: 250px;
    }
}