/**
 * Public styles for WooCommerce Product Attribute Shortcode
 */

.product-attribute-display {
    margin: 15px 0;
    padding: 10px;
    background: #fafafa; /* Default background, will be overridden by custom settings */
    border-radius: 3px;
    font-size: 14px; /* Default font size, will be overridden by custom settings */
    font-family: inherit; /* Default font family, will be overridden by custom settings */
    border: none;
}

.product-attribute-display .attribute-label {
    font-weight: bold;
}

.product-attribute-display .attribute-value {
    color: #515151;
}

/* Product info display (category and brand) */
.product-info-display {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px;
    background: #fafafa; /* Default background, will be overridden by custom settings */
    border-radius: 3px;
    font-size: 14px; /* Default font size, will be overridden by custom settings */
    font-family: inherit; /* Default font family, will be overridden by custom settings */
    border: none;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.product-info-display .info-item {
    margin-right: 15px;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent items from shrinking */
}

.product-info-display .info-item:last-child {
    margin-right: 0;
}

.product-info-display .info-label {
    font-weight: bold;
    margin-right: 5px;
}

.product-info-display .info-value {
    color: #515151;
}

/* All-in-one product info display (category, brand, and attribute) */
.product-all-info-display {
    display: flex;
    flex-wrap: nowrap; /* Ensure items stay in a single row */
    align-items: center;
    justify-content: flex-start;
    margin: 15px 0;
    padding: 10px;
    background: #fafafa; /* Default background, will be overridden by custom settings */
    border-radius: 3px;
    font-size: 14px; /* Default font size, will be overridden by custom settings */
    font-family: inherit; /* Default font family, will be overridden by custom settings */
    border: none;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    width: 100%; /* Ensure it takes full width */
}

.product-all-info-display .info-item {
    margin-right: 20px;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent items from shrinking */
}

.product-all-info-display .info-item:last-child {
    margin-right: 0;
}

.product-all-info-display .info-label {
    font-weight: bold;
    margin-right: 5px;
    display: inline-block; /* Ensure label and value stay together */
}

.product-all-info-display .info-value {
    color: #515151;
    display: inline-block; /* Ensure label and value stay together */
}

/* Mobile optimization - keep in one row for all screen sizes */
@media (max-width: 767px) {
    .product-all-info-display {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 5px;
        white-space: nowrap;
        display: block; /* Use block display for very small screens */
        width: 100%;
        box-sizing: border-box;
    }
    
    .product-info-display {
        overflow-x: auto;
        white-space: nowrap;
        display: block; /* Use block display for very small screens */
        width: 100%;
    }
    
    .product-all-info-display .info-item,
    .product-info-display .info-item {
        margin-right: 15px;
        margin-bottom: 0;
        display: inline-block; /* Force inline display on mobile */
    }
} 