/* ============================
   HEADER — TŁO I KOLORY
============================ */

.as-header {
  background: #1565C0;
  color: #ffffff;
  position: relative;
  z-index: 500;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
}

.as-header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: center; /* pełne wyśrodkowanie */
    gap: 40px;
}

/* ============================
   HAMBURGER — OBRAZEK
============================ */

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: none;
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: block;
    background-image: url("https://www.autoskrzynia.pl/shop/images/src/icomenu.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================
   MENU GŁÓWNE — DESKTOP
============================ */

.as-main-nav {
    display: block;
}

.as-nav-menu {
    list-style: none;
    display: flex;
    gap: 22px;
    padding: 0;
    margin: 0;
    height: 32px;
    align-items: center;
}

.as-nav-menu a,
.nav-label {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0 8px;
    display: flex;
    align-items: center;
    height: 32px;
    cursor: pointer;
    transition: 0.25s ease;
    font-size: 15px;
}

.as-nav-menu a:hover,
.nav-label:hover {
    background: rgba(255,255,255,0.18);
    border-radius: 4px;
}

/* ============================
   DESKTOP — UKRYJ HAMBURGER
============================ */

@media (min-width: 769px) {
    .menu-btn {
        display: none !important;
    }
    .as-main-nav {
        display: block !important;
    }
}

/* ============================
   MOBILE — MENU ROZWIJANE
============================ */

@media (max-width: 768px) {

    .menu-btn {
        display: block !important;
    }

    .as-main-nav {
        display: none !important;
    }

    .as-main-nav.active {
        display: block !important;
        background: #ffffff;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;

        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        border-bottom: 1px solid #ddd;
        z-index: 9999;
    }

    .as-nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .as-nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #e5e5e5;
        background: #ffffff;
    }

    .as-nav-menu a,
    .nav-label {
        color: #000 !important;
        padding: 12px 24px;
        font-size: 16px;
        display: block;
        width: 100%;
        background: #f0f0f0;
    }

    .as-nav-menu a:hover {
        background: #e5e5e5;
    }
}
