@layer base, components;

@layer base {
    :root {
        --primary-color: #007bff;
        --secondary-color: #6c757d;
        --background-color: #f8f9fa;
        --surface-color: #ffffff;
        --text-color: #212529;
        --border-color: #dee2e6;
        --shadow-color: rgba(0, 0, 0, 0.1);
        --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    }

    body {
        font-family: var(--font-family);
        background-color: var(--background-color);
        color: var(--text-color);
        margin: 0;
        padding: 2rem;
        display: flex;
        justify-content: center;
        min-height: 100vh; 
        background-image: linear-gradient(to top, #accbee 0%, #e7f0fd 100%);

    }
	body > * {
    width: 100%;
    max-width: 1200px;
}

    h1 {
        color: var(--primary-color);
        text-align: center;
        margin-bottom: 2rem;
    }
}

@layer components {
    heat-load-calculator {
        display: block;
        width: 100%;
        max-width: 800px;
        background-color: var(--surface-color);
        border-radius: 12px;
        box-shadow: 0 8px 32px var(--shadow-color);
        padding: 2rem;
        border: 1px solid var(--border-color);
    }

    .calculator-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .input-group {
        display: flex;
        flex-direction: column;
    }

    .input-group label {
        font-weight: 500;
        margin-bottom: 0.5rem;
        color: var(--secondary-color);
    }

    .input-group input {
        padding: 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        font-size: 1rem;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .input-group input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    }

    .results {
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color);
        text-align: center;
    }

    .results h2 {
        margin-bottom: 1rem;
    }

    .total-heat-load {
        font-size: 2.5rem;
        font-weight: bold;
        color: var(--primary-color);
    }
	.hidden { display: none; }
	
	
	
	
	
	.heat-product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    background: #fff;
}

/* ⭐ Best match highlight */
.heat-product-card.best-match {
    border: 3px solid #ff9800;
    background: #fff7e8;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.25);
}

/* Badge */
.best-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg,#ff9800,#ff5722);
    color:#fff;
    font-weight:700;
    font-size:11px;
    padding:5px 9px;
    border-radius: 12px;
}

.match-note{
    color:#444;
    font-size:13px;
    margin:6px 0;
}
	

.heat-product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-top:25px;
}

.heat-product-card{
    background:#fff;
    border-radius:12px;
    padding:12px;
    border:1px solid #ddd;
    position:relative;
    text-align:center;
}

.heat-product-card.best-match{
    border:3px solid #ff9800;
    background:#fff7e8;
    box-shadow:0 8px 20px rgba(255,165,0,0.25);
}

.product-thumb img{
    width:100%;
    height:200px;
    object-fit:contain;
    border-radius:8px;
    margin-bottom:10px;
}

.capacity{
    font-weight:600;
    color:#555;
}

.best-badge{
    position:absolute;
    top:10px;
    right:10px;
    background:linear-gradient(135deg,#ff9800,#ff5722);
    color:#fff;
    font-size:11px;
    font-weight:700;
    padding:6px 10px;
    border-radius:14px;
}

.match-note{
    font-size:13px;
    color:#555;
}

.btn{
    display:inline-block;
    padding:8px 14px;
    background:#0073aa;
    color:#fff;
    border-radius:6px;
    text-decoration:none;
    margin-top:10px;
}

}


