/* POS No Images Layout Styles */
/* Applied when display_images_on_pos setting is disabled */

.pos-products .product-info.no-image {
    /* Adjust card height when no image */
    min-height: 110px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pos-products .product-info.no-image .product-name {
    /* Make product name more prominent when no image */
    font-size: 15px;
    font-weight: 600;
    margin: 8px 0 6px;
    line-height: 1.3;
}

.pos-products .product-info.no-image .cat-name {
    /* Adjust category name styling */
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.pos-products .product-info.no-image .price {
    /* Ensure price section is properly spaced */
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.pos-products .product-info.no-image .price p {
    /* Make price more prominent */
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
    margin: 0;
}

.pos-products .product-info.no-image .price span {
    /* Style the item type text */
    font-size: 10px;
    color: #6c757d;
    font-weight: 500;
}

/* Layout adjustments when images are hidden */
body.pos-no-image-mode .pos-products .product-card-grid.no-image-grid {
    margin-left: -6px;
    margin-right: -6px;
}

body.pos-no-image-mode .pos-products .product-card-grid.no-image-grid .product-card-col.no-image-col {
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 12px;
}

@media (min-width: 992px) {
    body.pos-no-image-mode .pos-products .product-card-grid.no-image-grid .product-card-col.no-image-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Responsive adjustments for no-image layout */
@media (max-width: 768px) {
    .pos-products .product-info.no-image {
        min-height: 95px;
        padding: 10px;
    }
    
    .pos-products .product-info.no-image .product-name {
        font-size: 14px;
    }
    
    .pos-products .product-info.no-image .price p {
        font-size: 15px;
    }
}

/* Dark mode support for no-image layout */
[data-layout-mode=dark_mode] .pos-products .product-info.no-image {
    background-color: #3a3f4b;
    border-color: #4a4f5b;
}

[data-layout-mode=dark_mode] .pos-products .product-info.no-image .product-name {
    color: #ffffff;
}

[data-layout-mode=dark_mode] .pos-products .product-info.no-image .cat-name {
    color: #b8bcc9;
}

[data-layout-mode=dark_mode] .pos-products .product-info.no-image .price {
    border-top-color: #4a4f5b;
}

[data-layout-mode=dark_mode] .pos-products .product-info.no-image .price span {
    color: #b8bcc9;
}
