/* Product Variation Styles */
.product-variation-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info {
    margin-bottom: 10px;
}

.product-brand {
    font-size: 14px;
    font-weight: 600;
    color: #007cba;
    margin: 0 0 5px 0;
}

.product-title {
    font-size: 13px;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.product-category {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.product-metric {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
}

.product-metric.positive {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.product-metric.negative {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.product-metric.neutral {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.metric-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 3px;
}

.metric-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.product-secondary {
    text-align: center;
    margin-top: 5px;
}

.product-secondary small {
    color: #666;
    font-size: 11px;
}

.product-variation-error {
    text-align: center;
    padding: 20px;
    color: #721c24;
}

.product-variation-error button {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.product-variation-empty {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 12px;
}

/* Integration with existing snapshot styles */
.chart-block__snapshot .product-variation-card {
    height: calc(100% - 20px);
}

/* Simple product card styles */
.product-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h4 {
    color: #007cba;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.product-info p {
    font-size: 13px;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.product-info small {
    font-size: 12px;
    color: #666;
}

.product-metric {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
}

.product-metric.positive {
    background: #d4edda;
    color: #155724;
}

.product-metric.negative {
    background: #f8d7da;
    color: #721c24;
}

.product-metric.neutral {
    background: #e2e3e5;
    color: #383d41;
}

.metric-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 3px;
}

.metric-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.product-stores {
    text-align: center;
    margin-top: 5px;
}

.product-stores small {
    color: #666;
    font-size: 11px;
}

.product-error {
    text-align: center;
    padding: 20px;
    color: #721c24;
}

.product-empty {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 12px;
}

/* Button states for product variation toggles */
[data-product-view] {
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-product-view].active {
    background-color: #007cba !important;
    color: white !important;
}

[data-product-view]:hover {
    opacity: 0.8;
}