:root {
    --firecom-donker: #19162a;
    --firecom-donker-licht: #373246;
    --firecom-geel: #ffb100;
    --firecom-geel-hover: #e6a000;

    --aldi-blauw: #002b7f;
    --aldi-blauw-donker: #001f5c;
    --aldi-cyaan: #00a9e0;
    --aldi-rood: #d50000;

    --wit: #ffffff;
    --licht: #f5f7fa;
    --licht-blauw: #f1f7fc;
    --grijs: #6c757d;
    --grijs-licht: #e4e8ed;
    --tekst: #25232d;

    --fout: #dc3545;
    --succes: #198754;
    --informatie: #0d6efd;
    --waarschuwing: #ffc107;

    --schaduw:
        0 10px 30px rgba(0, 0, 0, 0.08);

    --radius-groot: 16px;
    --radius: 10px;
}


/* ============================================================
   BASIS
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        linear-gradient(
            180deg,
            #f5f7fa 0%,
            #eef2f6 100%
        );

    color: var(--tekst);
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

.wrapper {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;

    width: 100%;
}


/* ============================================================
   CONTAINER
   ============================================================ */

.container {
    width: 100%;
}


/* ============================================================
   HEADER
   ============================================================ */

.bg-firecom {
    background:
        linear-gradient(
            90deg,
            var(--firecom-donker) 0%,
            var(--aldi-blauw) 100%
        ) !important;
}

.navbar {
    min-height: 78px;

    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-brand {
    flex-shrink: 0;

    margin-right: auto;

    min-width: 0;
}

.header-logo-firecom {
    height: 34px;
    width: auto;

    display: block;

    object-fit: contain;
}

.header-logo-aldi {
    height: 44px;
    width: auto;

    display: block;

    object-fit: contain;
}

.header-partner-separator {
    color: rgba(255, 255, 255, 0.75);

    font-size: 1.35rem;
    font-weight: 600;

    line-height: 1;
}

.header-language-selector {
    flex-shrink: 0;
}

.header-language-selector .form-select {
    min-width: 72px;

    border-radius: 7px;

    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    background-color: #ffffff;

    color: var(--tekst);

    font-weight: 700;

    cursor: pointer;
}


/* ============================================================
   KNOPPEN
   ============================================================ */

.btn {
    border-radius: 8px;

    font-weight: 600;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-firecom {
    background: var(--firecom-geel);
    border-color: var(--firecom-geel);

    color: var(--firecom-donker);

    font-weight: 700;
}

.btn-firecom:hover,
.btn-firecom:focus {
    background: var(--firecom-geel-hover);
    border-color: var(--firecom-geel-hover);

    color: var(--firecom-donker);
}

.btn-outline-firecom {
    border: 1px solid var(--firecom-geel);

    color: var(--firecom-geel);

    background: transparent;

    font-weight: 700;
}

.btn-outline-firecom:hover,
.btn-outline-firecom:focus {
    background: var(--firecom-geel);
    border-color: var(--firecom-geel);

    color: var(--firecom-donker);
}

.navbar .btn-outline-light:hover {
    color: var(--aldi-blauw);
}


/* ============================================================
   ALGEMENE KAARTEN
   ============================================================ */

.card {
    min-width: 0;
}

.custom-card {
    border: 0;

    border-radius: var(--radius-groot);

    background: #ffffff;

    overflow: hidden;

    box-shadow: var(--schaduw);
}

.custom-card > .card-body {
    padding: 32px;
}

.custom-card h1 {
    color: var(--aldi-blauw);

    font-weight: 700;
}


/* ============================================================
   TYPOGRAFIE
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

.text-muted {
    color: #68727d !important;
}


/* ============================================================
   CATEGORIE TABS
   ============================================================ */

.firecom-categorie-tabs {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;
}

.firecom-categorie-tabs .nav-item {
    min-width: 0;
}

.firecom-categorie-tabs .nav-link {
    border: 1px solid #d7dde4;

    background: #ffffff;

    color: var(--aldi-blauw);

    border-radius: 8px;

    font-weight: 600;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.firecom-categorie-tabs .nav-link:hover {
    border-color: var(--aldi-cyaan);

    background: #f1fbff;
}

.firecom-categorie-tabs .nav-link.active {
    background: var(--aldi-blauw);
    border-color: var(--aldi-blauw);

    color: #ffffff;
}


/* ============================================================
   PRODUCTKAART
   ============================================================ */

.product-kaart {
    height: 100%;

    border: 1px solid #e0e5ea;

    border-radius: 12px;

    background: #ffffff;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.product-kaart:hover {
    transform: translateY(-2px);

    border-color:
        rgba(0, 43, 127, 0.3);

    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, 0.08);
}

.product-kaart .card-body {
    padding: 22px;

    min-width: 0;
}

.product-kaart h2 {
    color: var(--firecom-donker);

    font-weight: 700;

    overflow-wrap: anywhere;
}

.product-artikelnummer {
    display: inline-block;

    max-width: 100%;

    font-size: 0.8rem;
    font-weight: 700;

    color: var(--aldi-blauw);

    text-transform: uppercase;

    letter-spacing: 0.02em;

    overflow-wrap: anywhere;
}

.product-omschrijving {
    white-space: pre-line;

    color: #555d66;

    line-height: 1.55;

    font-size: 0.95rem;

    overflow-wrap: anywhere;
}

.product-prijs {
    padding-top: 12px;

    border-top: 1px solid #edf0f3;

    color: var(--aldi-blauw);

    font-size: 1.2rem;
}


/* ============================================================
   FORMULIEREN
   ============================================================ */

.form-label {
    color: #3f4650;

    font-weight: 600;
}

.form-control,
.form-select,
.form-check-input {
    border-radius: 7px;
}

.form-control,
.form-select {
    width: 100%;

    min-width: 0;
}

textarea.form-control {
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--aldi-cyaan);

    box-shadow:
        0 0 0 0.2rem
        rgba(0, 169, 224, 0.18);
}

.invalid-feedback {
    font-size: 0.875rem;
}


/* ============================================================
   RADIO KEUZES / REPARATIE
   ============================================================ */

.form-check {
    margin-bottom: 10px;
}

.form-check-input:checked {
    background-color: var(--aldi-blauw);
    border-color: var(--aldi-blauw);
}

.form-check-label {
    cursor: pointer;
}


/* ============================================================
   WINKELMANDJE
   ============================================================ */

.winkelmand-aantal-bediening {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    white-space: nowrap;
}

.winkelmand-aantal-bediening form {
    margin: 0;
}

.winkelmand-aantal-bediening .btn {
    width: 38px;
    height: 38px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.15rem;
    line-height: 1;
}

.winkelmand-aantal {
    min-width: 34px;

    text-align: center;

    font-weight: 700;
}

.verwijder-knop {
    border: 0;

    background: transparent;

    color: var(--fout);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 7px 10px;

    border-radius: 7px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.verwijder-knop:hover {
    background:
        rgba(220, 53, 69, 0.08);

    color: #b02a37;
}

.icon-delete {
    width: 15px;
    height: 15px;

    display: block;
}

.winkelmand-totaal {
    margin-left: auto;

    max-width: 380px;

    padding: 18px 20px;

    border-top:
        3px solid
        var(--aldi-blauw);

    border-radius: 8px;

    background: #f7f9fc;

    font-size: 1.1rem;
}

.winkelmand-totaal strong {
    color: var(--aldi-blauw);

    font-size: 1.25rem;
}


/* ============================================================
   TABELLEN
   ============================================================ */

.table-responsive {
    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;

    margin-bottom: 0;

    --bs-table-bg: transparent;
}

.table th {
    color: var(--aldi-blauw);

    font-weight: 700;

    white-space: nowrap;
}

.table td,
.table th {
    vertical-align: middle;
}

.table td {
    overflow-wrap: anywhere;
}


/* ============================================================
   BESTELLING / REPARATIE GELUKT
   ============================================================ */

.bestelling-gelukt-icoon {
    width: 64px;
    height: 64px;

    margin-left: auto;
    margin-right: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--succes);

    color: #ffffff;

    font-size: 2rem;
    font-weight: 700;
}

.bestelling-gelukt-tabel {
    border-top: 1px solid #e6e9ed;
}

.bestelling-gelukt-tabel th {
    text-align: left;

    color: #6c757d;

    font-weight: 600;
}

.bestelling-gelukt-tabel td,
.bestelling-gelukt-tabel th {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}


/* ============================================================
   FLASH MELDINGEN
   ============================================================ */

.flash-meldingen {
    margin-bottom: 24px;
}

.flash-meldingen .alert {
    border: 0;

    border-radius: 10px;

    overflow-wrap: anywhere;
}


/* ============================================================
   LOGIN / BEVESTIGING
   ============================================================ */

.card-body.text-center p {
    overflow-wrap: anywhere;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
    margin-top: auto;
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline:
        3px solid
        rgba(0, 169, 224, 0.35);

    outline-offset: 2px;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 991.98px) {

    .navbar .container {
        flex-wrap: wrap;

        gap: 12px;
    }

    .navbar-brand {
        margin-right: auto;
    }

    .header-logo-firecom {
        height: 30px;
    }

    .header-logo-aldi {
        height: 38px;
    }

    .header-partner-separator {
        font-size: 1.15rem;
    }

    .custom-card > .card-body {
        padding: 24px;
    }

    .content {
        padding-top: 32px !important;
        padding-bottom: 32px !important;
    }

}


/* ============================================================
   MOBIEL
   ============================================================ */

@media (max-width: 767.98px) {

    body {
        font-size: 0.96rem;
    }

    .content {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .content > .container {
        padding-left: 14px;
        padding-right: 14px;
    }


    /* Header */

    .navbar {
        min-height: auto;

        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar .container {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 10px 12px;
    }

    .navbar-brand {
        margin: 0;

        min-width: 0;
    }

    .navbar-brand.d-flex {
        gap: 7px !important;
    }

    .header-logo-firecom {
        height: 27px;
    }

    .header-logo-aldi {
        height: 34px;
    }

    .header-partner-separator {
        font-size: 1rem;
    }

    .navbar .d-flex.align-items-center.gap-2.ms-auto {
        width: 100%;

        grid-column:
            1 / -1;

        margin-left: 0 !important;

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px !important;
    }

    .header-language-selector {
        grid-column:
            1 / -1;
    }

    .header-language-selector .form-select {
        width: 100%;

        min-width: 0;
    }

    .navbar .btn {
        width: 100%;

        min-width: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        white-space: normal;

        text-align: center;

        font-size: 0.88rem;

        padding:
            9px 8px;
    }


    /* Cards */

    .custom-card {
        border-radius: 12px;
    }

    .custom-card > .card-body {
        padding: 20px;
    }

    .product-kaart .card-body {
        padding: 18px;
    }


    /* Categories */

    .firecom-categorie-tabs {
        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 6px;

        margin-left: -2px;
        margin-right: -2px;

        scrollbar-width: thin;
    }

    .firecom-categorie-tabs .nav-item {
        flex: 0 0 auto;
    }

    .firecom-categorie-tabs .nav-link {
        font-size: 0.9rem;
    }


    /* Table */

    .table {
        min-width: 700px;
    }

    .table-responsive {
        margin-left: -4px;
        margin-right: -4px;

        padding-bottom: 4px;
    }

    .table td,
    .table th {
        padding:
            10px 8px;
    }


    /* Cart controls */

    .winkelmand-aantal-bediening {
        gap: 7px;
    }

    .winkelmand-aantal-bediening .btn {
        width: 34px;
        height: 34px;
    }

    .winkelmand-aantal {
        min-width: 28px;
    }

    .verwijder-knop span {
        display: none;
    }

    .verwijder-knop {
        width: 38px;
        height: 38px;

        padding: 0;
    }

    .icon-delete {
        width: 16px;
        height: 16px;
    }


    /* Total */

    .winkelmand-totaal {
        max-width: 100%;

        margin-left: 0;

        padding: 16px;
    }


    /* Success table */

    .bestelling-gelukt-tabel {
        min-width: 0;
    }

    .bestelling-gelukt-tabel th,
    .bestelling-gelukt-tabel td {
        display: block;

        width: 100%;

        text-align: left !important;
    }

    .bestelling-gelukt-tabel th {
        padding-bottom: 2px;

        border-bottom: 0;
    }

    .bestelling-gelukt-tabel td {
        padding-top: 2px;
    }

}


/* ============================================================
   KLEINE TELEFOONS
   ============================================================ */

@media (max-width: 575.98px) {

    .content > .container {
        padding-left: 10px;
        padding-right: 10px;
    }


    /* Header */

    .navbar .container {
        grid-template-columns:
            minmax(0, 1fr);
    }

    .navbar-brand {
        justify-content: center;

        width: 100%;
    }

    .header-logo-firecom {
        height: 25px;
    }

    .header-logo-aldi {
        height: 31px;
    }

    .header-partner-separator {
        display: inline-block;

        font-size: 0.9rem;
    }

    .navbar .d-flex.align-items-center.gap-2.ms-auto {
        grid-column: 1;

        grid-template-columns:
            1fr 1fr;
    }

    .header-language-selector {
        grid-column:
            1 / -1;
    }


    /* Typografie */

    h1,
    .h1 {
        font-size: 1.65rem;
    }

    h2,
    .h2 {
        font-size: 1.4rem;
    }

    .lead {
        font-size: 1.05rem;
    }


    /* Cards */

    .custom-card > .card-body {
        padding: 17px;
    }

    .product-kaart .card-body {
        padding: 16px;
    }


    /* Product */

    .product-kaart h2 {
        font-size: 1.05rem;
    }


    /* Buttons */

    .btn-lg {
        font-size: 1rem;

        padding:
            11px 14px;
    }


    /* Forms */

    .form-control-lg {
        font-size: 1rem;
    }


    /* Tables */

    .table {
        min-width: 640px;
    }

}


/* ============================================================
   ZEER KLEINE TELEFOONS
   ============================================================ */

@media (max-width: 399.98px) {

    .header-logo-firecom {
        height: 22px;
    }

    .header-logo-aldi {
        height: 28px;
    }

    .navbar .d-flex.align-items-center.gap-2.ms-auto {
        grid-template-columns:
            1fr;
    }

    .header-language-selector {
        grid-column: auto;
    }

    .navbar .btn {
        font-size: 0.84rem;
    }

    .custom-card > .card-body {
        padding: 14px;
    }

    .product-kaart .card-body {
        padding: 14px;
    }

}