/**
 * ENNU Face Chart - Product Card Style Fix
 * Consolidates and fixes conflicting product card colors
 */

/* Remove conflicting inline styles with higher specificity */
.treatment-product-card {
    border: 2px solid #e0e0e0 !important;
    background: white !important;
    transition: all 0.2s ease !important;
}

/* Fix hover state conflicts */
.treatment-product-card:hover {
    border-color: #0073aa !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15) !important;
}

/* Ensure active/selected state is consistent */
.treatment-product-card.selected,
.treatment-product-card.active {
    border-color: #0073aa !important;
    background: #f0f8ff !important;
}

/* Override POS integration styles that might conflict */
.ennu-face-chart-app .product-card,
.ennu-face-chart-app .service-card {
    /* Use face chart specific styles */
    border-left: none !important;
}

/* Fix color consistency for product details */
.treatment-product-card h4 {
    color: #1e293b !important;
}

.treatment-product-card p {
    color: #666 !important;
}

.treatment-product-card .price {
    color: #0073aa !important;
}

/* Prevent theme switching from affecting product cards */
.theme-dark .treatment-product-card {
    background: #2d2d2d !important;
    border-color: #444 !important;
}

.theme-dark .treatment-product-card:hover {
    border-color: #4a9eff !important;
    background: #3a3a3a !important;
}

.theme-dark .treatment-product-card h4 {
    color: #ffffff !important;
}

.theme-dark .treatment-product-card p {
    color: #b0b0b0 !important;
}

/* Remove any animation conflicts from multiple sources */
.treatment-product-card {
    animation: none !important;
}

/* Fix z-index stacking issues */
.treatment-product-selection {
    position: relative;
    z-index: 100;
}

/* Ensure consistent rendering across all states */
.treatment-product-card * {
    transition: none !important;
}

/* Style the product card elements */
.treatment-product-card {
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
}

/* Product images removed - never show product images in selection */
.service-card .service-image,
.service-card img,
.treatment-product-card .product-image,
.treatment-product-card img,
.treatment-product-card .product-image-placeholder {
    display: none !important;
}

/* Product image placeholder removed - images never shown */

.treatment-product-card .product-name {
    margin: 0 0 5px 0;
    font-size: 0.95em;
    font-weight: 600;
}

.treatment-product-card .product-description {
    margin: 0 0 10px 0;
    font-size: 0.85em;
    line-height: 1.3;
    height: 35px;
    overflow: hidden;
}

.treatment-product-card .product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.treatment-product-card .product-price {
    font-weight: 600;
}

.treatment-product-card .product-sku {
    font-size: 0.75em;
    color: #999;
}

.treatment-product-card .product-unit {
    margin-top: 5px;
    font-size: 0.75em;
    color: #666;
}
