/* ==================================================
   SEKCJA DESKTOPOWA - NOWA, ODŚWIEŻONA STYLIZACJA
   ================================================== */

/* --- Główny kontener i pasek menu --- */
.shop-categories-menu-container {
	display: flex;
	margin-top: 0.8rem;
    width: 100%;
	 justify-content: center !important;
    z-index: 999;
    margin-bottom: 30px; /* Zwiększony margines dolny */
    white-space: nowrap;

    /* NOWE: Ładne tło i cień dla lepszego wyróżnienia i centrowania */
    background: #f8f9fa; /* Jasne tło jako fallback */
    background: linear-gradient(to bottom, #ffffff, #f2f2f2); /* Subtelny gradient */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05); /* Delikatny cień */
    border-bottom: 1px solid #e0e0e0;
    padding: 5px 0; /* Odstęp góra/dół dla "oddechu" */
}


.shop-categories-menu {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
     justify-content: center !important;
	width: 100%;
    max-width: 1200px;
}

.shop-categories-menu-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-categories-menu .cat-item {
    position: relative;
}

/* ZMODYFIKOWANE: Powiększone elementy menu */
.shop-categories-menu .cat-item a {
    display: block;
    padding: 15px 25px; /* Zwiększony padding */
    color: #0C7AA8;
    text-decoration: none;
    font-size: 16px; /* Powiększona czcionka */
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    position: relative;
    padding-right: 45px; /* Dostosowanie paddingu dla strzałki */
}

/* --- Strzałki wskazujące na podmenu --- */
.shop-categories-menu .cat-item:not(.cat-item-has-children) > a {
    padding-right: 25px;
}

.shop-categories-menu .cat-item-has-children > a::after {
    content: '›';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px; /* Powiększona strzałka */
    font-weight: bold;
    transition: transform 0.2s;
    color: #0C7AA8;
}

.shop-categories-menu > .cat-item-has-children > a::after {
    content: 'ˇ';
    transform: translateY(-50%) rotate(-90deg);
}

/* --- Wygląd podmenu --- */
.shop-categories-menu .children.submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #ffffff;
    padding: 10px 0;
    margin-top: 5px; /* Lekkie odsunięcie od głównego menu */
    min-width: 260px; /* Zwiększona szerokość */
    box-shadow: 0 8px 20px rgba(0,0,0,0.12); /* NOWE: Ładniejszy, głębszy cień */
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    z-index: 1000;
}

.shop-categories-menu .submenu .submenu {
    left: 100%;
    top: -11px; /* Korekta pozycji, aby wyrównać z górną krawędzią */
    margin-top: 0;
}

/* --- Interakcje (hover i podświetlenie) --- */
.shop-categories-menu .cat-item.menu-item-hover > .children.submenu {
    display: block;
}

/* ZMODYFIKOWANE: Nowy, ładniejszy efekt hover */
.shop-categories-menu .cat-item:hover > a,
.shop-categories-menu .cat-item.menu-item-hover > a {
    background-color: #e3f2fd; /* Tło podświetlenia: bardzo jasny błękit */
    color: #005a9c; /* Kolor tekstu po najechaniu: ciemniejszy niebieski */
}
.shop-categories-menu .cat-item:hover > a::after,
.shop-categories-menu .cat-item.menu-item-hover > a::after {
    color: #005a9c; /* Kolor strzałki po najechaniu */
}


/* ==================================================
   SEKCJA MOBILNA - (BEZ WIĘKSZYCH ZMIAN)
   ================================================== */

.mks-mobile-toggle,
.mks-submenu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .shop-categories-menu-container {
        position: relative;
        border-bottom: none;
        box-shadow: none; /* Reset cienia na mobile */
        padding: 0;
        margin-bottom: 20px;
    }

    /* --- Przycisk "Kategorie" --- */
    .mks-mobile-toggle {
        display: block;
        background-color: #1d3557;
        color: white;
        border: none;
        padding: 15px;
        width: 100%;
        text-align: left;
        font-size: 16px;
        cursor: pointer;
        border-radius: 4px; /* Zaokrąglenie rogów */
    }
    .mks-mobile-toggle span {
        display: block; width: 22px; height: 2px; background: white; margin-bottom: 5px;
    }

    /* --- Wygląd menu mobilnego --- */
    .shop-categories-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        z-index: 998;
        border: 1px solid #e0e0e0;
        border-top: none;
        border-radius: 0 0 4px 4px;
    }
    .shop-categories-menu.is-active { display: block; }

    /* --- Wygląd elementów i podmenu w mobile --- */
    .shop-categories-menu .cat-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .shop-categories-menu .cat-item:last-child {
        border-bottom: none;
    }
    .shop-categories-menu .cat-item a {
        padding: 15px;
        padding-right: 60px;
        color: #1d3557;
    }
    .shop-categories-menu .children.submenu {
        display: none;
        position: static;
        box-shadow: none;
        border-radius: 0;
        border: none;
        border-top: 1px solid #ddd;
        padding-left: 20px;
        background-color: #f7f7f7;
    }
    .shop-categories-menu .children.submenu.is-active { display: block; }

    /* --- Przycisk rozwijania podmenu '+' --- */
    .mks-submenu-toggle {
        display: block;
        position: absolute;
        right: 0; top: 0; width: 55px; height: 100%;
        border: none; background: transparent;
        color: #457b9d;
        font-size: 24px; cursor: pointer;
    }
    .mks-submenu-toggle::after { content: '+'; }
    .mks-submenu-toggle.is-active::after { content: '–'; }

    .shop-categories-menu .cat-item-has-children > a::after {
        display: none;
    }
}