/* =====================================================================
   Deurintercom B.V. — Modern SaaS stijl
   Geïnspireerd op SalesHive CRM design
   Witte sidebar + lichtgrijze achtergrond + oranje accent
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --di-orange:      #e87722;
    --di-orange-dark: #c9661a;
    --di-orange-soft: #fff4ec;
    --di-navy:        #1a2e4a;
    --di-slate:       #1e293b;
    --di-white:       #ffffff;
    --di-bg:          #f4f6f9;
    --di-card:        #ffffff;
    --di-line:        #e8edf2;
    --di-muted:       #8492a6;
    --di-ink:         #1a2332;
    --di-green:       #22c55e;
    --di-green-soft:  #f0fdf4;
    --di-red:         #ef4444;
    --di-red-soft:    #fef2f2;
    --sidebar-w:      220px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--di-bg);
    color: var(--di-ink);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--di-ink);
    letter-spacing: -0.02em;
    margin: 0;
}

/* ─── TOPBAR ─── */
.di-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--di-white);
    border-bottom: 1px solid var(--di-line);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1030;
    gap: 1rem;
}
.di-topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: var(--sidebar-w);
    flex-shrink: 0;
    text-decoration: none;
}
.di-topbar .brand img {
    height: 32px;
}
.di-topbar .brand-fallback {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--di-navy);
    letter-spacing: -0.02em;
    display: none;
}
.di-topbar .topbar-center {
    flex: 1;
    display: flex;
    align-items: center;
}
.di-topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}
.di-topbar .topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--di-ink);
}
.di-topbar .topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--di-orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.di-topbar .btn-logout {
    border: 1px solid var(--di-line);
    background: transparent;
    color: var(--di-muted);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.di-topbar .btn-logout:hover {
    background: var(--di-bg);
    color: var(--di-ink);
    border-color: #d0d7e2;
}

/* ─── LAYOUT WRAPPER ─── */
.di-shell {
    display: flex;
    min-height: 100vh;
    padding-top: 60px;
}

/* ─── SIDEBAR ─── */
.di-sidebar {
    width: var(--sidebar-w);
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    background: var(--di-white);
    border-right: 1px solid var(--di-line);
    padding: 1.25rem 0.75rem;
    overflow-y: auto;
    z-index: 1020;
}
.di-sidebar .nav-section {
    margin-bottom: 0.25rem;
}
.di-sidebar .nav-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--di-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.6rem 0.75rem 0.25rem;
}
.di-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.52rem 0.75rem;
    border-radius: 8px;
    color: #4a5568;
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.12s;
    cursor: pointer;
    margin-bottom: 1px;
}
.di-sidebar .nav-item i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    color: var(--di-muted);
    flex-shrink: 0;
}
.di-sidebar .nav-item:hover {
    background: var(--di-bg);
    color: var(--di-ink);
}
.di-sidebar .nav-item:hover i { color: var(--di-ink); }
.di-sidebar .nav-item.active {
    background: var(--di-orange-soft);
    color: var(--di-orange-dark);
    font-weight: 600;
}
.di-sidebar .nav-item.active i { color: var(--di-orange); }

/* ─── MAIN CONTENT ─── */
.di-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 2rem 2.5rem;
    min-width: 0;
}

/* ─── CARDS ─── */
.di-card {
    background: var(--di-card);
    border: 1px solid var(--di-line);
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.di-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.di-stat-card {
    background: var(--di-card);
    border: 1px solid var(--di-line);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.di-stat-card .stat-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--di-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}
.di-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--di-ink);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.di-stat-card .stat-sub {
    font-size: 0.78rem;
    color: var(--di-muted);
}

/* ─── PAGE HEADER ─── */
.di-page-header {
    margin-bottom: 1.75rem;
}
.di-page-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--di-ink);
}
.di-page-header p {
    color: var(--di-muted);
    font-size: 0.875rem;
    margin: 0.25rem 0 0;
}

/* ─── TABLES ─── */
.table {
    font-size: 0.855rem;
}
.table thead th {
    background: #f8fafc;
    color: var(--di-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--di-line);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}
.table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: var(--di-ink);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #fafbfc; }

/* ─── BUTTONS ─── */
.btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s;
}
.btn-signal, .btn-primary {
    background: var(--di-orange);
    border-color: var(--di-orange);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(232,119,34,0.3);
}
.btn-signal:hover, .btn-primary:hover {
    background: var(--di-orange-dark);
    border-color: var(--di-orange-dark);
    color: #fff;
    box-shadow: 0 3px 8px rgba(232,119,34,0.35);
    transform: translateY(-1px);
}
.btn-outline-primary {
    border-color: var(--di-orange);
    color: var(--di-orange);
}
.btn-outline-primary:hover {
    background: var(--di-orange);
    border-color: var(--di-orange);
    color: #fff;
}
.btn-outline-secondary {
    border-color: var(--di-line);
    color: #4a5568;
    background: var(--di-white);
}
.btn-outline-secondary:hover {
    background: var(--di-bg);
    border-color: #d0d7e2;
    color: var(--di-ink);
}
.btn-outline-danger {
    border-color: #fecaca;
    color: var(--di-red);
    background: var(--di-white);
}
.btn-outline-danger:hover {
    background: var(--di-red-soft);
    border-color: #fca5a5;
    color: var(--di-red);
}

/* ─── FORMS ─── */
.form-control, .form-select {
    border: 1px solid var(--di-line);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--di-ink);
    background: var(--di-white);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--di-orange);
    box-shadow: 0 0 0 3px rgba(232,119,34,0.12);
    outline: none;
}
.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

/* ─── STATUS PILLS ─── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.status-pill.status-done {
    background: var(--di-green-soft);
    color: #15803d;
}
.status-pill.status-done::before { background: var(--di-green); }
.status-pill.status-open {
    background: #fff7ed;
    color: #c2410c;
}
.status-pill.status-open::before { background: var(--di-orange); }
.status-pill.status-neutral {
    background: #f8fafc;
    color: var(--di-muted);
    border: 1px solid var(--di-line);
}
.status-pill.status-neutral::before { background: #cbd5e1; }

/* ─── PROGRESS ─── */
.di-progress {
    height: 6px;
    border-radius: 999px;
    background: #e8edf2;
    overflow: hidden;
}
.di-progress > div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--di-orange), #f59e42);
    transition: width 0.4s ease;
}

/* ─── OPTION CARDS (bewonersportaal) ─── */
.option-card {
    border: 2px solid var(--di-line);
    border-radius: 12px;
    background: var(--di-card);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.option-card .option-body {
    flex: 1 1 auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
}
.option-card .option-footer {
    padding: 0.5rem 0.75rem 0.75rem;
    margin-top: auto;
    flex-shrink: 0;
}
.option-card:hover {
    border-color: #f0b98a;
    box-shadow: 0 4px 16px rgba(232,119,34,0.1);
}
.option-card.selected {
    border-color: var(--di-orange);
    box-shadow: 0 0 0 3px var(--di-orange-soft);
}
.option-card img, .option-card .option-img-placeholder {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: var(--di-bg);
}
.option-card .option-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--di-muted);
    font-size: 2rem;
}
.option-price-label {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--di-orange-dark);
    background: var(--di-orange-soft);
    border: 1px solid #f5c99a;
    border-radius: 999px;
    padding: 0.18rem 0.65rem;
    font-size: 0.78rem;
}

/* ─── NAMEPLATE PREVIEW ─── */
.nameplate-preview {
    background: #ffffff;
    color: #1a1a1a;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 1.1rem;
    border: 2px solid #bbb;
    box-shadow: inset 0 0 0 4px #eeeeee, 0 2px 8px rgba(0,0,0,0.1);
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    max-width: 260px;
}
.nameplate-preview .nameplate-line { display: block; line-height: 1.3; }

/* ─── AUTH PAGES ─── */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--di-bg);
    padding: 1.5rem;
}
.auth-card {
    background: var(--di-white);
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    max-width: 400px;
    width: 100%;
    padding: 2.5rem;
    border: 1px solid var(--di-line);
}
.auth-card .auth-logo { margin-bottom: 1.5rem; }
.auth-card .auth-logo img { height: 40px; }

/* ─── ALERTS ─── */
.alert {
    border-radius: 10px;
    font-size: 0.875rem;
    border: none;
}
.alert-success {
    background: var(--di-green-soft);
    color: #14532d;
    border-left: 4px solid var(--di-green);
}
.alert-danger {
    background: var(--di-red-soft);
    color: #7f1d1d;
    border-left: 4px solid var(--di-red);
}
.alert-warning {
    background: var(--di-orange-soft);
    color: #7c2d12;
    border-left: 4px solid var(--di-orange);
}
.alert-info {
    background: #eff6ff;
    color: #1e3a5f;
    border-left: 4px solid #3b82f6;
}

/* ─── MISC ─── */
.text-muted-di { color: var(--di-muted) !important; }
.text-orange { color: var(--di-orange) !important; }
.bg-orange-soft { background: var(--di-orange-soft) !important; }
code.access-code {
    background: var(--di-slate);
    color: var(--di-orange);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}
a { color: var(--di-navy); text-decoration: none; }
a:hover { color: var(--di-orange); }

/* ─── MODALS ─── */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.modal-header {
    border-bottom: 1px solid var(--di-line);
    padding: 1.25rem 1.5rem;
}
.modal-footer {
    border-top: 1px solid var(--di-line);
    padding: 1rem 1.5rem;
}
.modal-body { padding: 1.5rem; }

/* ─── BADGES ─── */
.badge {
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    padding: 0.25rem 0.55rem;
}
.text-bg-light {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid var(--di-line) !important;
}

/* ─── NAV TABS ─── */
.nav-tabs {
    border-bottom: 1px solid var(--di-line);
    gap: 0.25rem;
}
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--di-muted);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.6rem 0.9rem;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.nav-tabs .nav-link:hover { color: var(--di-ink); border-bottom-color: #d0d7e2; }
.nav-tabs .nav-link.active {
    color: var(--di-orange);
    border-bottom-color: var(--di-orange);
    font-weight: 600;
    background: transparent;
}

/* =====================================================================
   RESPONSIVE — Mobile First
   ===================================================================== */

/* ─── SIDEBAR OVERLAY voor mobiel ─── */
.di-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1019;
    backdrop-filter: blur(2px);
}
.di-sidebar-overlay.active { display: block; }

.di-hamburger {
    display: none;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    color: var(--di-ink);
    font-size: 1.2rem;
    border-radius: 6px;
    transition: background 0.15s;
}
.di-hamburger:hover { background: var(--di-bg); }

/* ─── Tablet (max 992px) ─── */
@media (max-width: 992px) {
    :root { --sidebar-w: 200px; }

    .di-main { padding: 1.5rem; }
}

/* ─── Mobile (max 768px) ─── */
@media (max-width: 768px) {
    .di-hamburger { display: flex; align-items: center; justify-content: center; }

    .di-sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: none;
        z-index: 1020;
    }
    .di-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    }

    .di-main {
        margin-left: 0 !important;
        padding: 1.25rem 1rem;
    }

    .di-topbar { padding: 0 1rem; }
    .di-topbar .brand { width: auto; }

    /* Stat cards: 2 kolommen op mobiel */
    .di-stat-card { padding: 1rem; }
    .di-stat-card .stat-value { font-size: 1.4rem; }

    /* Tables: horizontaal scrollen */
    .table-responsive-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    /* Modals: fullscreen op mobiel */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    .modal-dialog.modal-lg {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
    }
    .modal-dialog.modal-lg .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }

    /* Buttons: volle breedte op mobiel */
    .btn-mobile-full { width: 100%; margin-bottom: 0.5rem; }

    /* Cards: minder padding */
    .di-card { border-radius: 10px; }
    .di-card.p-4 { padding: 1.25rem !important; }

    /* Page header */
    .di-page-header h1 { font-size: 1.25rem; }
    .di-page-header { margin-bottom: 1.25rem; }

    /* Flex wrapping */
    .di-page-header.d-flex { flex-direction: column; gap: 0.75rem; }
    .di-page-header .btn { width: 100%; text-align: center; }
}

/* ─── Kleine mobiel (max 480px) ─── */
@media (max-width: 480px) {
    .di-main { padding: 1rem 0.75rem; }

    .di-topbar { padding: 0 0.75rem; }
    .di-topbar .topbar-user span { display: none !important; }

    /* Auth card */
    .auth-card { padding: 1.75rem 1.25rem; }
    .auth-shell { padding: 0.75rem; align-items: flex-start; padding-top: 2rem; }
}

/* ─── Bewonersportaal responsive ─── */
@media (max-width: 768px) {
    .resident-main {
        padding: 1.25rem 1rem 3rem;
        padding-top: 72px;
    }
    .resident-topbar { padding: 0 1rem; }
    .resident-topbar .save-btn-wrap .btn { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
    .resident-topbar .btn-logout { display: none; }

    .option-card img, .option-card .option-img-placeholder {
        height: 180px;
    }

    /* Naam op mobiel verbergen in topbar */
    .resident-topbar .d-none { display: none !important; }
}

/* ─── Auth pages responsive ─── */
@media (max-width: 576px) {
    .auth-shell {
        background: #fff;
        align-items: flex-start;
        padding: 0;
    }
    .auth-card {
        border-radius: 0;
        box-shadow: none;
        border: none;
        min-height: 100vh;
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    .auth-card .d-flex.gap-2 {
        flex-direction: column;
    }
    .auth-card .d-flex.gap-2 .btn {
        width: 100%;
    }
}

/* ─── Voorkom zoom op iOS bij input focus ─── */
/* iOS zoomt in als de input font-size < 16px is */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="date"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* =====================================================================
   RESPONSIVE TABELLEN — Admin & VvE
   ===================================================================== */

/* Alle tabellen in di-card horizontaal scrollbaar op mobiel */
@media (max-width: 992px) {
    .di-card .table-responsive,
    .di-card table {
        font-size: 0.82rem;
    }
    .di-card table th,
    .di-card table td {
        padding: 0.5rem 0.6rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    /* Tabellen: horizontaal scrollen */
    .di-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .di-card table {
        min-width: 600px;
    }

    /* Page headers */
    .di-page-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
    .di-page-header .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .di-page-header .btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

    /* Stat cards: 2 per rij */
    .di-stat-card {
        padding: 0.875rem;
    }
    .di-stat-card .stat-value {
        font-size: 1.5rem;
    }

    /* Filter form */
    form.d-flex.gap-2 {
        flex-direction: column;
        align-items: stretch !important;
    }
    form.d-flex.gap-2 .form-control,
    form.d-flex.gap-2 .form-select {
        max-width: 100% !important;
        width: 100% !important;
    }
    form.d-flex.gap-2 .btn {
        width: 100%;
    }

    /* Modals: bijna fullscreen op mobiel */
    .modal-dialog {
        margin: 0.5rem auto;
        max-width: calc(100% - 1rem);
    }
    .modal-dialog.modal-lg,
    .modal-dialog.modal-xl {
        margin: 0;
        max-width: 100%;
        min-height: 100dvh;
    }
    .modal-dialog.modal-lg .modal-content,
    .modal-dialog.modal-xl .modal-content {
        border-radius: 0;
        min-height: 100dvh;
    }

    /* Knoppen in tabellen: kleiner */
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    /* Tabs: scrollen */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid var(--di-line);
    }
    .nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 0.5rem 0.75rem;
    }

    /* VvE dashboard snelkoppelingen */
    .di-card .btn.w-100 {
        font-size: 0.82rem;
    }

    /* Projectkaarten in projectenlijst */
    .project-card .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    /* Topbar: naam verbergen */
    .di-topbar .topbar-user span {
        display: none !important;
    }
    .di-topbar .btn-logout span {
        display: none !important;
    }

    /* Stat cards: 2 kolommen */
    .row .col-md-3,
    .row .col-md-4 {
        min-width: 50%;
    }

    /* Minder padding in cards */
    .di-card.p-4 {
        padding: 1rem !important;
    }
    .di-main {
        padding: 1rem 0.75rem !important;
    }

    /* Tabel knoppen: icoon zonder tekst op heel klein scherm */
    .btn-sm .d-none-xs {
        display: none !important;
    }
}

/* Specifiek: bewoners tabel kolommen verbergen op mobiel */
@media (max-width: 768px) {
    .col-hide-mobile {
        display: none !important;
    }
}

/* Tabel responsive wrapper */
.table-responsive-mobile {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 12px 12px;
}
.table-responsive-mobile table {
    margin-bottom: 0;
}

/* Option cards in een rij: gelijke hoogte zodat price badges uitlijnen */
.options-row {
    display: flex;
    flex-wrap: wrap;
}
.options-row > [class*="col-"] {
    display: flex;
}
.options-row .option-card {
    width: 100%;
}

/* ─── Quantity selector ─── */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--di-orange);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.qty-btn {
    background: none;
    border: none;
    padding: 0.2rem 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--di-orange);
    cursor: pointer;
    line-height: 1;
    transition: background 0.1s;
}
.qty-btn:hover { background: var(--di-orange-soft); }
.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--di-navy);
    padding: 0.2rem 0;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.quantity-price-label { transition: all 0.2s; }
