/* ProteusERP WooCommerce Bridge - Lab Results & Terpene Styles */

/* ============ Lab Results Tab ============ */
.proteus-lab-results {
    max-width: 500px;
}

.proteus-total-thc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #f0f7f0;
    border-radius: 6px;
    border-left: 4px solid #2e7d32;
}

.proteus-total-thc-label {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
}

.proteus-total-thc-value {
    font-weight: 700;
    font-size: 1.3em;
    color: #2e7d32;
}

.proteus-cannabinoid-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.proteus-cannabinoid-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proteus-cannabinoid-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.proteus-cannabinoid-table tr:last-child td {
    border-bottom: none;
}

.proteus-cannabinoid-table tr:hover td {
    background: #fafafa;
}

.proteus-terps-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #f5f0ff;
    border-radius: 6px;
    border-left: 4px solid #7b1fa2;
}

.proteus-terps-total-label {
    font-weight: 600;
    color: #333;
}

.proteus-terps-total-value {
    font-weight: 700;
    color: #7b1fa2;
}

/* ============ Terpene Profile Tab ============ */
.proteus-terpene-profile {
    max-width: 600px;
}

.proteus-terps-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #f5f0ff;
    border-radius: 6px;
    border-left: 4px solid #7b1fa2;
}

.proteus-terps-header-label {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
}

.proteus-terps-header-value {
    font-weight: 700;
    font-size: 1.2em;
    color: #7b1fa2;
}

.proteus-terp-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.proteus-terp-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proteus-terp-name {
    flex: 0 0 120px;
    font-size: 0.9em;
    color: #555;
    text-align: right;
}

.proteus-terp-bar-wrap {
    flex: 1;
    height: 18px;
    background: #f0f0f0;
    border-radius: 9px;
    overflow: hidden;
}

.proteus-terp-bar {
    height: 100%;
    background: linear-gradient(90deg, #7b1fa2, #ab47bc);
    border-radius: 9px;
    min-width: 4px;
    transition: width 0.3s ease;
}

.proteus-terp-value {
    flex: 0 0 60px;
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
}

/* ============ COA Tab ============ */
.proteus-coa {
    max-width: 500px;
}

.proteus-coa p {
    margin-bottom: 16px;
    color: #555;
    line-height: 1.6;
}

.proteus-coa-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
}

/* ============ Deal Badges ============ */
.proteus-deal-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.proteus-deal-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75em;
    font-weight: 700;
    color: #fff;
    background: #e53935;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    white-space: nowrap;
}

.proteus-deal-badge--bogo {
    background: #ff6f00;
}

.proteus-deal-badge--percent {
    background: #2e7d32;
}

.proteus-deal-badge--dollar {
    background: #e53935;
}

.proteus-deal-badge--price {
    background: #1565c0;
}

/* ============ Brand Display ============ */
.proteus-product-brand {
    margin: 8px 0;
    font-size: 0.9em;
    color: #666;
}

.proteus-product-brand a {
    color: #666;
    text-decoration: none;
}

.proteus-product-brand a:hover {
    color: #333;
    text-decoration: underline;
}

/* Make WC product card position relative for badge positioning */
.woocommerce ul.products li.product {
    position: relative;
}
