body {
    font-family: Open Sans, HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f0;
    color: #333;
}

.furn-logo {
    width: 100px;
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 100000;
}

.shop-link {
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 100000;
    background-color: darkorange;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
}

.calculator-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.7em;
}

.intro {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 0.95em;
    line-height: 1.5;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Input Section */
.input-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.input-section h2 {
    font-size: 1.1em;
    color: #2c3e50;
    margin: 25px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #e8e4dd;
}

.input-section h2:first-child {
    margin-top: 0;
}

/* Wall rows */
.wall-row,
.deduction-row {
    background: #faf9f7;
    border: 1px solid #e8e4dd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.wall-label,
.deduction-label {
    font-weight: 600;
    font-size: 0.9em;
    color: #555;
    display: block;
    margin-bottom: 6px;
}

.wall-inputs,
.deduction-inputs {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.wall-inputs label,
.deduction-inputs label {
    font-size: 0.8em;
    color: #777;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wall-inputs input,
.deduction-inputs input {
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    width: 80px;
}

.deduction-inputs input {
    width: 65px;
}

.remove-wall-btn,
.remove-ded-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #999;
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.2s;
    align-self: flex-end;
}

.remove-wall-btn:hover,
.remove-ded-btn:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-block;
    margin-top: 10px;
}

.btn-secondary {
    background: #f0ede8;
    color: #555;
    border: 1px dashed #ccc;
}

.btn-secondary:hover {
    background: #e8e4dd;
}

.btn-primary {
    background: #2c3e50;
    color: #fff;
    font-weight: 600;
    width: 100%;
    padding: 14px;
    font-size: 1.05em;
    margin-top: 25px;
}

.btn-primary:hover {
    background: #34495e;
}

/* Paint type selector */
.paint-type-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.paint-option {
    border: 2px solid #e8e4dd;
    border-radius: 6px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    background: #faf9f7;
}

.paint-option:hover {
    border-color: #b0a898;
}

.paint-option.selected {
    border-color: #2c3e50;
    background: #f0f4f8;
}

.paint-option strong {
    display: block;
    font-size: 0.95em;
    color: #2c3e50;
}

.paint-coverage {
    display: inline-block;
    background: #e8e4dd;
    color: #666;
    font-size: 0.78em;
    padding: 2px 8px;
    border-radius: 3px;
    margin-top: 4px;
}

.paint-option.selected .paint-coverage {
    background: #2c3e50;
    color: #fff;
}

.paint-desc {
    display: block;
    font-size: 0.82em;
    color: #888;
    margin-top: 4px;
}

/* Coats selector */
.coats-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.coat-option {
    border: 2px solid #e8e4dd;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: #faf9f7;
    font-size: 0.95em;
    flex: 1;
    text-align: center;
}

.coat-option:hover {
    border-color: #b0a898;
}

.coat-option.selected-coat {
    border-color: #2c3e50;
    background: #f0f4f8;
}

.coat-option input[type="radio"] {
    margin-right: 5px;
}

.recommended {
    font-size: 0.78em;
    color: #27ae60;
    font-weight: 600;
}

/* Results Section */
.results-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.results-placeholder {
    text-align: center;
    color: #999;
    padding: 60px 20px;
}

.results-content h2 {
    font-size: 1.2em;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.result-summary,
.result-paint-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.result-final {
    margin-bottom: 20px;
}

.result-card {
    background: #faf9f7;
    border: 1px solid #e8e4dd;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.result-card.highlight {
    background: #f0f4f8;
    border-color: #2c3e50;
}

.result-card.big {
    background: #2c3e50;
    color: #fff;
    padding: 20px;
}

.result-card.big .result-label {
    color: #aab;
}

.result-card.big .result-value {
    font-size: 1.8em;
}

.result-label {
    display: block;
    font-size: 0.78em;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-value {
    display: block;
    font-size: 1.2em;
    font-weight: 700;
    color: #2c3e50;
}

/* Cans grid */
.result-cans h3 {
    font-size: 1em;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.cans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.can-option {
    background: #faf9f7;
    border: 1px solid #e8e4dd;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.can-option.best {
    border-color: #27ae60;
    background: #f0faf4;
}

.can-option .can-size {
    display: block;
    font-weight: 700;
    font-size: 1.1em;
    color: #2c3e50;
}

.can-option .can-count {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

.can-option.best .can-count {
    color: #27ae60;
    font-weight: 600;
}

.can-option .can-label {
    display: block;
    font-size: 0.72em;
    color: #999;
    margin-top: 2px;
}

/* Disclaimer */
.disclaimer {
    background: #fff9ed;
    border: 1px solid #f0d6a0;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.disclaimer p {
    margin: 0;
    font-size: 0.8em;
    color: #8a6d3b;
    line-height: 1.5;
}

/* Simple m² input */
.simple-area-input {
    background: #faf9f7;
    border: 1px solid #e8e4dd;
    border-radius: 6px;
    padding: 15px;
}

.simple-area-input label {
    font-size: 0.9em;
    color: #555;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.simple-area-input input {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.1em;
    width: 100%;
    box-sizing: border-box;
}

/* Mode toggle link */
.btn-link {
    background: none;
    border: none;
    color: #2c3e50;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85em;
    padding: 8px 0;
    display: inline-block;
}

.btn-link:hover {
    color: #34495e;
}

/* Sub-headings in detailed mode */
.sub-heading {
    font-size: 0.95em;
    color: #555;
    margin: 15px 0 8px 0;
    font-weight: 600;
}

/* Bol products section */
.bol-products-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 0;
}

.bol-products-section h2 {
    font-size: 1.2em;
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-align: center;
}

/* Override BolService Bootstrap HTML: ul.row > li.col-sm-3 */
.bol-products-section .products-grid,
.bol-products-section .product-list {
    margin: 0;
    padding: 0;
}

.bol-products-section ul,
.bol-products-section .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bol-products-section li {
    list-style: none;
    text-align: center;
    padding: 15px;
    background: #faf9f7;
    border: 1px solid #e8e4dd;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bol-products-section li:hover {
    border-color: #b0a898;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.bol-products-section a {
    text-decoration: none;
    color: #333;
    display: block;
}

.bol-products-section img {
    max-width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    margin: 0 auto 10px;
}

.bol-products-section strong {
    display: block;
    font-size: 0.85em;
    margin: 0 0 6px;
    color: #2c3e50;
    line-height: 1.3;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .calculator-wrapper {
        padding: 15px 10px;
    }

    h1 {
        font-size: 1.3em;
        margin-top: 10px;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .results-section {
        position: static;
    }

    .result-summary,
    .result-paint-details {
        grid-template-columns: 1fr;
    }

    .wall-inputs,
    .deduction-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .wall-inputs input,
    .deduction-inputs input {
        width: 100%;
        box-sizing: border-box;
    }

    .coats-selector {
        flex-direction: column;
    }

    .furn-logo {
        width: 70px;
    }

    .shop-link {
        font-size: 0.8em;
        padding: 8px 14px;
    }

    .bol-products-section ul,
    .bol-products-section .row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
