/* BMW Brand-Page Stylesheet */
/* Shared header/footer styles for all BMW pages */

:root {
  --bmw-blue: #0066b3;
  --bmw-blue-dark: #003d6b;
  --bmw-blue-light: #0080d6;
}

/* ── Reset body padding set by bmw-viewer.css ── */
body {
    padding: 0 !important;
}

/* ── Brand-page header ── */
.brand-page__header {
    background: linear-gradient(135deg, #0066b3 0%, #003d6b 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin: 12px 20px 30px 20px;
    position: static !important;
}

.brand-page__header-inner {
    width: 100%;
    padding: 12px 30px 0;
    display: flex;
    flex-direction: column;
}

.brand-page__header-top {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
    min-height: 70px;
}

.brand-page__header-logo {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
}

.brand-page__header-title {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
    color: white;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 2rem;
}

.brand-page__header-title .brand-page__header-model {
    font-size: 0.8em;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    cursor: help;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.brand-page__header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
}

.brand-page__header-contact a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.15s;
    text-transform: uppercase;
}

.brand-page__header-contact a:hover { color: white; }

.brand-page__header-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
    align-items: center;
}

.brand-page__header-social a { color: rgba(255,255,255,0.9); text-decoration: none; transition: color 0.15s; }
.brand-page__header-social a:hover { color: white; }
.brand-page__header-social img { filter: brightness(0) invert(1); vertical-align: middle; }

.brand-page__header-nav {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.brand-page__header-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
    text-transform: uppercase;
}

.brand-page__header-nav a:hover { color: white; }
.brand-page__header-nav-sep { color: rgba(255,255,255,0.3); }

.brand-page__header-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-decoration: none;
    margin-left: 20px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.brand-page__header-cart svg { width: 45px; height: 45px; fill: currentColor; }
.brand-page__header-cart-count {
    position: absolute; top: -10px; right: -12px; background: white; color: #0066b3;
    font-size: 0.75rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ── Brand-page footer ── */
.brand-page__footer {
    background: linear-gradient(135deg, #0066b3 0%, #003d6b 100%);
    color: rgba(255,255,255,0.9);
    padding: 0.6rem 20px;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-top: auto !important;
}

.brand-page__footer p { margin: 0; }
.brand-page__footer-inner {
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.brand-page__footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.brand-page__footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.15s; }
.brand-page__footer-links a:hover { color: white; }
.brand-page__footer-contact { font-size: 0.75rem; color: rgba(255,255,255,0.7); }

/* ── Cart drawer (BMW blue) ── */
.cart-drawer-header {
    background: linear-gradient(135deg, #0066b3 0%, #003d6b 100%) !important;
}
.cart-drawer-body::-webkit-scrollbar-thumb { background: #0066b3 !important; }
.cart-item-remove:hover { color: #0066b3 !important; }
.cart-checkout-btn {
    background: linear-gradient(135deg, #0066b3 0%, #003d6b 100%) !important;
}
.cart-badge { color: #0066b3 !important; }

/* ── Page content padding ── */
.year-grid, .model-grid, .cat-grid, .breadcrumb, .diagram-grid,
.panel-tabs, .fiche-layout {
    padding-left: 20px;
    padding-right: 20px;
}

#breadcrumb {
    padding: 0 20px 10px 20px;
}

#level1, #level2, #level3 {
    flex: 1;
    min-height: 0;
}

/* ── Section filter padding (matches header margin) ── */
.section-filter {
    padding-left: 20px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .brand-page__header {
        margin: 6px 10px 16px 10px !important;
        border-radius: 6px !important;
    }
    .brand-page__header-inner {
        padding: 0.75rem 1rem 0 !important;
    }
    .brand-page__header-title {
        font-size: 1.2rem !important;
    }
    .brand-page__header-contact {
        display: none !important;
    }
    .container {
        padding: 0.75rem !important;
    }
}
