/* ============================================================
   MarvikShop 5.0 — Header module (LEGO-stijl)
   ============================================================ */

/* ------------------------------------------------------------
   WRAPPER — breadcrumb links, links rechts
   ------------------------------------------------------------ */ 

.ms-header-module {
    background: #fff;
   /* border-bottom: 3px solid #d40000; */  /* ← rode accent-lijn */
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    color: #1e293b;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ms-header-module * {
    box-sizing: border-box;
}

/* ------------------------------------------------------------
   BREADCRUMB — links
   ------------------------------------------------------------ */

.ms-header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #64748b;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.5;
}

.ms-header-breadcrumb a {
    color: #d40000;                       /* ← LEGO-rood */
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
    font-weight: 600;
}

.ms-header-breadcrumb a:hover {
    color: #ffd400;                       /* ← LEGO-geel bij hover */
    background: #d40000;                  /* ← rode achtergrond bij hover */
    padding: 2px 6px;
    margin: -2px -6px;
    border-radius: 4px;
    text-decoration: none;
}

.ms-breadcrumb-sep {
    color: #cbd5e1;
    margin: 0 4px;
    font-size: 11px;
    user-select: none;
}

.ms-breadcrumb-current {
    color: #1e293b;
    font-weight: 700;
}

/* ------------------------------------------------------------
   HEADER LINKS — rechts
   ------------------------------------------------------------ */

.ms-header-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.ms-header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #d40000;                  /* ← LEGO-rood */
    border: 1px solid #b91c1c;
    border-radius: 6px;
    color: #ffffff;                       /* ← witte letters */
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.ms-header-link:hover {
    background: #b30000;                  /* ← donkerder rood */
    border-color: #991b1b;
    color: #ffd400;                       /* ← LEGO-geel */
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 0, 0, 0.3);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.ms-header-link:active {
    transform: translateY(0);
    box-shadow: none;
}

.ms-header-link .icon {
    font-size: 14px;
    line-height: 1;
    display: inline-block;
}

.ms-header-link .label {
    line-height: 1;
}

/* ------------------------------------------------------------
   VARIANTEN
   ------------------------------------------------------------ */

/* Primaire knop (checkout) — iets donkerder rood */
.ms-header-link-primary {
    background: #a80000;
    border-color: #7f1d1d;
    color: #ffffff;
}

.ms-header-link-primary:hover {
    background: #7f1d1d;
    border-color: #5b1414;
    color: #ffd400;
    box-shadow: 0 4px 12px rgba(168, 0, 0, 0.35);
}

/* Uitloggen-knop — blijft rood, maar met subtiel verschil */
.ms-header-link-logout {
    background: #e01a1a;
    border-color: #b91c1c;
    color: #ffffff;
}

.ms-header-link-logout:hover {
    background: #b30000;
    border-color: #991b1b;
    color: #ffd400;
    box-shadow: 0 2px 6px rgba(212, 0, 0, 0.25);
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */

@media (max-width: 900px) {
    .ms-header-module {
        padding: 10px 16px;
        gap: 12px;
    }

    .ms-header-breadcrumb {
        font-size: 11px;
        width: 100%;
    }

    .ms-header-links {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .ms-header-module {
        padding: 10px 12px;
    }

    .ms-header-links {
        gap: 4px;
    }

    .ms-header-link {
        padding: 7px 10px;
        font-size: 11px;
    }

    .ms-header-link .label {
        display: none;   /* Alleen iconen op mobiel */
    }

    .ms-header-link .icon {
        font-size: 16px;
    }

    .ms-header-breadcrumb a:hover {
        padding: 1px 4px;
        margin: -1px -4px;
    }
}

/* ------------------------------------------------------------
   DARK MODE (optioneel — voor als je site dark mode heeft)
   ------------------------------------------------------------ */

@media (prefers-color-scheme: dark) {
    /* Laat staan — thema bepaalt dit */
}