* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #e5e5e5;
    min-height: 100vh;
}
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}
header { text-align: center; margin-bottom: 1.5rem; }
h1 { font-size: 1.8rem; color: #8bc34a; }
h2 { font-size: 1.3rem; color: #8bc34a; margin-bottom: 0.8rem; }
.subtitle { color: #999999; font-size: 0.9rem; margin-top: 0.3rem; }

/* Client section */
.client-section {
    background: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #2a2a2a;
}
.client-section summary {
    padding: 0.8rem 1rem;
    cursor: pointer;
    color: #8bc34a;
    font-weight: 600;
}
.client-form {
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.client-form input {
    padding: 0.6rem 0.8rem;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    background: #0a0a0a;
    color: #e2e8e0;
    font-size: 0.9rem;
}
.client-form input:focus { border-color: #8bc34a; outline: none; }

/* Tabs */
.tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    -webkit-overflow-scrolling: touch;
}
.tab {
    padding: 0.5rem 0.8rem;
    border: none;
    border-radius: 20px;
    background: #1a1a1a;
    color: #999999;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.tab:hover { background: #2a2a2a; }
.tab.active { background: #8bc34a; color: #0a0a0a; font-weight: 600; }

/* Products */
.products {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.product-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #2a2a2a;
    transition: border-color 0.2s;
}
.product-card:hover { border-color: #8bc34a; }
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.product-name { font-weight: 600; font-size: 1rem; color: #e2e8e0; }
.product-price { color: #8bc34a; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.product-desc { color: #777777; font-size: 0.82rem; margin-bottom: 0.8rem; }

/* Variants */
.variant-group {
    margin-bottom: 0.6rem;
}
.variant-label {
    font-size: 0.78rem;
    color: #8bc34a;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.variant-btn {
    padding: 0.3rem 0.6rem;
    border: 1px solid #333333;
    border-radius: 8px;
    background: transparent;
    color: #999999;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
}
.variant-btn:hover { border-color: #8bc34a; color: #e2e8e0; }
.variant-btn.selected { background: #8bc34a; color: #0a0a0a; border-color: #8bc34a; font-weight: 600; }

/* Quantity + Add */
.product-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #2a2a2a;
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #333333;
    border-radius: 8px;
    background: transparent;
    color: #8bc34a;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover { background: #2a2a2a; }
.qty-input {
    width: 50px;
    text-align: center;
    padding: 0.3rem;
    border: 1px solid #333333;
    border-radius: 8px;
    background: #0a0a0a;
    color: #e2e8e0;
    font-size: 0.9rem;
}
.unit-label {
    color: #777777;
    font-size: 0.8rem;
}
.price-live {
    margin-left: auto;
    color: #8bc34a;
    font-weight: 700;
    font-size: 1rem;
}
.btn-add {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: #8bc34a;
    color: #0a0a0a;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.1s;
}
.btn-add:hover { transform: scale(1.05); }
.btn-add:active { transform: scale(0.95); }

/* Quote section */
.quote-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1rem;
    border: 2px solid #8bc34a;
    margin-bottom: 1.5rem;
}
.quote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.88rem;
}
.quote-item:last-of-type { border-bottom: none; }
.quote-item-info { flex: 1; }
.quote-item-name { font-weight: 600; }
.quote-item-detail { color: #777777; font-size: 0.78rem; }
.quote-item-price { font-weight: 700; color: #8bc34a; white-space: nowrap; margin-left: 0.5rem; }
.quote-item-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.3rem;
    margin-left: 0.5rem;
}

.quote-totals {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 2px solid #333333;
}
.total-line {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}
.total-line.grand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #8bc34a;
    padding-top: 0.5rem;
    border-top: 1px solid #333333;
    margin-top: 0.3rem;
}
.delivery-note {
    margin-top: 0.5rem;
    padding: 0.5rem 0.8rem;
    background: #1a2a1a;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #8bc34a;
}

.quote-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.btn-primary {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    background: #8bc34a;
    color: #0a0a0a;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.1s;
}
.btn-primary:hover { transform: scale(1.02); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary {
    padding: 0.8rem 1.2rem;
    border: 1px solid #333333;
    border-radius: 10px;
    background: transparent;
    color: #999999;
    font-size: 0.9rem;
    cursor: pointer;
}
.btn-secondary:hover { background: #2a2a2a; }

/* Messages */
.message {
    background: #1a1a1a;
    border-left: 4px solid #8bc34a;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.message.error { border-left-color: #ff6b6b; }
.hidden { display: none !important; }

/* Editing indicator */
.editing-indicator {
    background: #1a2a1a;
    border: 1px solid #8bc34a;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #8bc34a;
}
.editing-indicator .btn-new {
    padding: 0.3rem 0.8rem;
    border: 1px solid #8bc34a;
    border-radius: 8px;
    background: transparent;
    color: #8bc34a;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
}
.editing-indicator .btn-new:hover { background: #8bc34a; color: #0a0a0a; }

footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #1a1a1a;
    color: #556655;
    font-size: 0.8rem;
}
