.custom-category-nav-wrapper {
    height: fit-content;
    margin: auto 24px auto;
    width: inherit;
}

.custom-category-nav {
    max-width: 1200px;
    margin: 0 auto;
}

.custom-category-nav .nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 40px;
}

.custom-category-nav .nav-link {
    display: flex;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    font-weight: 550;
    font-size: 16px;
    align-items: center;
    gap:4px;
    letter-spacing: 0.96px;
}

.custom-category-nav .nav-link img{
    height:24px;
    color:red;
    fill:red
}

/* Submenu styles */
.custom-category-nav .submenu {
    display: none;
    position: absolute;
    left: 0%;
    top: 100%;
    width: 100%;
    background: white;
    padding: 30px;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--cornero-border-light);
    gap: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    border-bottom-right-radius: 32px;
    border-bottom-left-radius: 32px;
}

/* Show submenu on hover */
.custom-category-nav .nav-item:hover > .submenu,
.custom-category-nav .nav-item.hover > .submenu {
    display: grid;
    opacity: 1;
    visibility: visible;
}

.custom-category-nav .nav-item:hover > .submenu:after,
.custom-category-nav .nav-item.hover > .submenu:after{
    content:'';
    bottom:100%;
    left:0;
    position:absolute;
    width:100%;
    height:30px

}

.custom-category-nav .subcategory-column {
    min-width: 200px;
}

.custom-category-nav .subcategory-title {
    display: block;
    font-weight: 600;
    color: #232323;
    text-decoration: none;
    font-size: 14px;
}

.custom-category-nav .third-level {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-category-nav .third-level li {
    margin: 5px 0;
}

.custom-category-nav .third-level .nav-link {
    padding: 5px 0;
    font-weight: normal;
    text-transform: none;
    color: #666;
    font-size: 13px;
}

/* Hover effects */
.custom-category-nav .nav-link:hover {
    color: var(--snusowo-accent);
}

.custom-category-nav .nav-item:hover > .nav-link {
    color: var(--snusowo-accent);
}

/* Arrow indicator */
/*.custom-category-nav .nav-item.has-submenu.category > .nav-link::after {*/
/*    content: '';*/
/*    display: inline-block;*/
/*    width: 0;*/
/*    height: 0;*/
/*    border-style: solid;*/
/*    border-width: 0 7px 7px 0;*/
/*    border-color: transparent #606060 transparent transparent;*/
/*    -webkit-transform: rotate(135deg);*/
/*    -moz-transform: rotate(135deg);*/
/*    -o-transform: rotate(135deg);*/
/*    -ms-transform: rotate(135deg);*/
/*    transform: rotate(135deg);*/
/*    margin-bottom: 3px;*/
/*    margin-left: 3px*/
/*}*/
.nav-item.category .nav-link,
.nav-item.custom_html .nav-link {
    position: relative;
    text-decoration: none;
    width: fit-content;
}

.nav-item.category .nav-link::after,
.nav-item.custom_html .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-item.category .nav-link:hover::after,
.nav-item.custom_html .nav-link:hover::after {
    width: 80%;
}


/* Add these new styles */
.custom-category-nav .custom-html-submenu {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1450px;
    max-width: 95vw;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    transform: translateX(-50%);
    border-radius:0 0 10px 10px;
}

.custom-category-nav .nav-item:hover > .custom-html-submenu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Add admin styles */
.custom-html-editor {
    min-width: 500px;
    margin: 10px 0;
}

.custom-html-item {
    flex-wrap: wrap;
}

.custom-html-item textarea {
    width: 100%;
    margin-top: 10px;
}


/* Burger Button */
.mobile-nav-toggle {
    display: none;
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
    padding: 10px;
    /* margin: 10px; */
}

.burger-icon,
.burger-icon:before,
.burger-icon:after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: all 0.3s;
}

.burger-icon:before {
    top: -7px;
}
.burger-icon:after {
    bottom: -7px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    max-width:900px;
    background: white;
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-title {
    font-weight: 600;
    font-size: 18px;
}

.mobile-menu-close {
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Panels */
.mobile-panel {
    display: none;
    padding: 0 0 130px;
}

.mobile-panel.active {
    display: block;
}

.panel-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-button {
    border: none;
    background: none;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 0;
}

.mobile-arrow-left {
    border: solid #232323;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(135deg);
}

.mobile-arrow {
    border: solid #232323;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(-45deg);
    margin-left: auto;
}

.mobile-nav-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #e5e5e5;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 12px;
    color: #232323;
    text-decoration: none;
    cursor: pointer;
}

.mobile-nav-link:hover{
    color: var(--eliq-blue) !important;
}

/* Media Queries */
@media (max-width: 1200px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .custom-category-nav .nav-items.desktop-nav {
        display: none;
    }

    .custom-category-nav-wrapper {
        width: auto;
        border: none;
        margin: 0;
    }

    .mobile-menu {
        display: block;
    }
}

.mobile-nav-item-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.mobile-nav-item-wrapper .mobile-nav-link {
    flex: 1;
}

.mobile-nav-item-wrapper .panel-trigger {
    padding: 10px;
    cursor: pointer;
}

.mobile-nav-item-wrapper .mobile-arrow {
    border: solid #000;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(-45deg);
}








/* ==========================================================================
   Mega menu 1.5.0 – structure only.
   Colors, typography, spacing, borders and other visual styling belong to the
   per-mega-menu Custom CSS configured in the module back office.
   ========================================================================== */
.custom-category-nav .nav-item.mega_menu { position: static; }
.custom-category-nav .nav-item.mega_menu > .nav-link { position: relative; }
.custom-category-nav .nav-item.mega_menu > .nav-link::after { display: none; }
.custom-category-nav .ccn-nav-chevron { flex: 0 0 auto; transition: transform .18s ease; }
.custom-category-nav .nav-item.has-submenu:hover > .nav-link .ccn-nav-chevron,
.custom-category-nav .nav-item.has-submenu.hover > .nav-link .ccn-nav-chevron { transform: rotate(180deg); }

.custom-category-nav [data-mega-menu] {
    display: none;
    position: absolute;
    z-index: 1200;
    top: 100%;
    left: 50%;
    width: min(1120px, calc(100vw - 48px));
    transform: translateX(-50%);
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}
.custom-category-nav .nav-item.mega_menu:hover > [data-mega-menu],
.custom-category-nav .nav-item.mega_menu.hover > [data-mega-menu] {
    display: grid;
}
.custom-category-nav .nav-item.mega_menu:hover > [data-mega-menu]::before,
.custom-category-nav .nav-item.mega_menu.hover > [data-mega-menu]::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 18px;
}
.custom-category-nav .mega-menu--no-panels { grid-template-columns: minmax(220px, 1fr); }
.custom-category-nav .mega-menu__sections,
.custom-category-nav .mega-menu__content { min-width: 0; }
.custom-category-nav .mega-menu__content { position: relative; }
.custom-category-nav [data-mega-trigger] { min-width: 0; }
.custom-category-nav [data-mega-panel] { display: none; }
.custom-category-nav [data-mega-panel].is-active { display: block; }

.mobile-mega-third-level { list-style: none; margin: -4px 0 8px; padding: 0 15px 7px 30px; }
.mobile-mega-third-level li { padding: 5px 0; }
.mobile-mega-third-level a { color: #666; text-decoration: none; font-size: 13px; }

@media (max-width: 1200px) {
    .custom-category-nav [data-mega-menu] { display: none !important; }
}

@media (min-width: 1201px) and (max-width: 1350px) {
    .custom-category-nav [data-mega-menu] { width: min(1000px, calc(100vw - 32px)); grid-template-columns: 250px minmax(0, 1fr); }
}
/* =========================================================
   SNUSOWO - MOBILE MENU
   ========================================================= */

/* =========================================================
   SNUSOWO - MOBILE MENU
   ========================================================= */

@media (max-width: 1200px) {

    /* =====================================================
       DRAWER
       ===================================================== */

    .custom-category-nav .mobile-menu {
        background: #050505;
        color: #fff;
    }

    .custom-category-nav .mobile-menu-content,
    .custom-category-nav .mobile-panel {
        background: #050505;
        color: #fff;
    }


    /* =====================================================
       HEADER
       ===================================================== */

    .custom-category-nav .mobile-menu-header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;

        min-height: 72px;
        padding: 14px 16px;

        background: #050505;
        border-bottom: 1px solid rgba(255, 255, 255, .25);
    }

    .custom-category-nav .mobile-menu-title {
        justify-self: start;

        color: #fff;

        font-size: 18px;
        font-weight: 600;
    }

    .custom-category-nav .mobile-menu-logo {
        display: block;
        justify-self: center;

        width: auto;
        max-width: 120px;
        max-height: 42px;

        object-fit: contain;
    }

    .custom-category-nav .mobile-menu-close {
        justify-self: end;

        padding: 4px;

        border: 0;
        background: transparent;

        color: #fff;

        font-size: 28px;
        line-height: 1;

        cursor: pointer;
    }


    /* =====================================================
       PANELE KOLEJNYCH POZIOMÓW
       ===================================================== */

    .custom-category-nav .panel-header {
        background: #050505;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .custom-category-nav .panel-title {
        color: #d0cece;
    }

    .custom-category-nav .back-button {
        color: #fff;
    }


    /* =====================================================
       GŁÓWNE LINKI
       ===================================================== */

    .custom-category-nav .mobile-nav-item {
        background: #050505;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .custom-category-nav .mobile-nav-link {
        color: #fff;
        background: transparent;
    }

    .custom-category-nav a.mobile-nav-link:visited {
        color: #fff;
    }

    .custom-category-nav .mobile-nav-link:hover,
    .custom-category-nav .mobile-nav-link:focus {
        color: var(--snusowo-accent, #1de9b6) !important;
        background: transparent;
    }


    /* =====================================================
       WRAPPER: LINK + STRZAŁKA
       ===================================================== */

    .custom-category-nav .mobile-nav-item-wrapper {
        display: flex;
        align-items: center;

        width: 100%;
    }

    .custom-category-nav .mobile-nav-item-wrapper > a.mobile-nav-link {
        flex: 1 1 auto;

        min-width: 0;
        width: auto;
        max-width: none;

        padding: 14px 10px 14px 16px;

        white-space: nowrap;

        font-size: 15px;
        line-height: 1.25;
    }

    .custom-category-nav .mobile-nav-item-wrapper > .panel-trigger {
        display: flex;
        align-items: center;
        justify-content: center;

        flex: 0 0 42px;

        width: 42px;
        min-width: 42px;

        padding: 0 12px 0 0;

        background: transparent;

        cursor: pointer;
    }


    /* =====================================================
       STRZAŁKI
       ===================================================== */

    .custom-category-nav .mobile-arrow,
    .custom-category-nav .mobile-nav-item-wrapper .mobile-arrow {
        margin: 0;
        border-color: #fff;
    }

    .custom-category-nav .mobile-arrow-left {
        border-color: #fff;
    }

    .custom-category-nav .panel-trigger:hover .mobile-arrow,
    .custom-category-nav .panel-trigger:focus .mobile-arrow {
        border-color: var(--snusowo-accent, #1de9b6);
    }


    /* =====================================================
       MEGA MENU - KATEGORIE W GŁÓWNYM PANELU
       LIGHT / MEDIUM / STRONG / ...
       ===================================================== */

    .custom-category-nav .mobile-mega-shortcuts {
        padding: 12px;
    }

    .custom-category-nav .mobile-mega-shortcuts__eyebrow {
        margin: 0 0 14px;

        color: rgba(255, 255, 255, .45);

        font-size: 12px;
        font-weight: 700;
        line-height: 1;

        letter-spacing: 1.8px;
        text-transform: uppercase;
    }

    .custom-category-nav .mobile-mega-shortcuts__list {
        margin: 0;
        padding: 0;

        list-style: none;
    }

    .custom-category-nav .mobile-mega-shortcuts__item {
        margin: 0;
        padding: 0;
    }

    .custom-category-nav .mobile-mega-shortcuts__row {
        display: flex;
        align-items: center;
        background: #1a1a1a;
        width: 100%;
        min-height: 52px;
        border-radius: 12px;
        padding-inline: 12px;
    }
    .custom-category-nav .mobile-mega-shortcuts__item:not(:last-child) {
        margin-bottom: 12px;
    }

    .custom-category-nav .mobile-mega-shortcuts__link {
        display: flex;
        align-items: center;

        flex: 1 1 auto;

        min-width: 0;
        min-height: 52px;

        padding: 0;

        color: var(--snusowo-text-inverse);

        font-size: 14px;
        font-weight: 700;
        line-height: 1.2;

        text-decoration: none;
        text-transform: uppercase;
    }

    .custom-category-nav a.mobile-mega-shortcuts__link:visited {
        color: var(--snusowo-text-inverse);
    }

    .custom-category-nav .mobile-mega-shortcuts__link:hover,
    .custom-category-nav .mobile-mega-shortcuts__link:focus {
        color: var(--snusowo-accent, #1de9b6);
    }

    .custom-category-nav .mobile-mega-shortcuts__trigger {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        flex: 0 0 42px;

        width: 42px;
        min-width: 42px;
        min-height: 52px;

        padding: 0;

        cursor: pointer;
    }

    .custom-category-nav .mobile-mega-shortcuts__trigger .mobile-arrow {
        margin: 0;

        border-color: var(--snusowo-text-inverse);
    }

    .custom-category-nav .mobile-mega-shortcuts__trigger:hover .mobile-arrow,
    .custom-category-nav .mobile-mega-shortcuts__trigger:focus .mobile-arrow {
        border-color: var(--snusowo-accent, #1de9b6);
    }


    /* =====================================================
       ZWYKŁE LINKI POD KATEGORIAMI
       NOWOŚCI / PROMOCJE / O NAS
       ===================================================== */

    .custom-category-nav .mobile-nav-items--main {
        border-top: 1px solid rgba(255, 255, 255, .25);
    }

    .custom-category-nav .mobile-nav-items--main > .mobile-nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, .25);
    }

    /* =====================================================
       LANGUAGE SWITCHER
       ===================================================== */

    .custom-category-nav .main-panel.active {
        display: flex;
        flex-direction: column;

        min-height: calc(100dvh - 72px);
        padding-bottom: 24px;
    }

    .custom-category-nav .mobile-language-switcher {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;

        width: auto;
        margin: auto 16px 0;
        padding: 6px;

        background: #1a1a1a;
        border-radius: 12px;
    }

    .custom-category-nav .mobile-language-switcher__link {
        display: flex;
        align-items: center;
        justify-content: center;

        min-width: 0;
        min-height: 40px;
        padding: 0 16px;

        border: 0;
        border-radius: 12px;

        background: transparent;
        color: var(--snusowo-text-inverse);

        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
        text-decoration: none;
    }

    .custom-category-nav .mobile-language-switcher__link:visited {
        color: var(--snusowo-text-inverse);
    }

    .custom-category-nav .mobile-language-switcher__link.is-active,
    .custom-category-nav .mobile-language-switcher__link.is-active:visited,
    .custom-category-nav .mobile-language-switcher__link.is-active:hover,
    .custom-category-nav .mobile-language-switcher__link.is-active:focus {
        background: var(--snusowo-accent);
        color: var(--snusowo-text-primary);
        text-decoration: none;
    }

    .custom-category-nav .mobile-language-switcher__link:not(.is-active):hover,
    .custom-category-nav .mobile-language-switcher__link:not(.is-active):focus {
        background: transparent;
        color: var(--snusowo-text-inverse);
        text-decoration: none;
    }
    /* =====================================================
       TRZECI POZIOM MEGA MENU
       ===================================================== */

    .custom-category-nav .mobile-mega-third-level {
        background: #050505;
    }

    .custom-category-nav .mobile-mega-third-level a {
        color: rgba(255, 255, 255, .75);
    }

    .custom-category-nav .mobile-mega-third-level a:hover {
        color: var(--snusowo-accent, #1de9b6);
    }


    /* =====================================================
       CUSTOM HTML
       ===================================================== */

    .custom-category-nav .mobile-custom-html-content {
        color: #fff;
        background: #050505;
    }
    .custom-category-nav .mobile-nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }
}

/* 1.7.0: bounded brand grid; specificity intentionally overrides legacy BO CSS. */
.custom-category-nav .mega-menu__panel-shell {
  container-type: inline-size;
  container-name: ccn-panel;
}
.custom-category-nav .mega-menu__panel-shell .mega-menu__children {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}
.custom-category-nav .mega-menu__panel-shell .mega-menu__child.ccn-brand-tile {
  display: flex;
  box-sizing: border-box;
  min-width: 0;
  aspect-ratio: 1;
  padding: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #111;
  border: 1px solid #262626;
  border-radius: 12px;
  text-decoration: none;
}
.custom-category-nav .ccn-brand-tile .ccn-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 64px;
  min-height: 0;
  flex: 0 1 64px;
}
.custom-category-nav .ccn-brand-tile .ccn-brand-logo img {
  display: block;
  max-width: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
}
.custom-category-nav .mega-menu__panel-shell .ccn-brand-tile .mega-menu__child-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: normal;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.custom-category-nav .mega-menu__panel-shell .mega-menu__panel-body:has(.mega-menu__promo img) {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
  gap: 24px;
}
.custom-category-nav .mega-menu__panel-shell .mega-menu__promo img {
  height: auto;
  max-height: 340px;
  object-fit: contain;
}
.custom-category-nav .mega-menu__panel-shell .mega-menu__children > :nth-child(n+11) {
  display: none;
}
@container ccn-panel (max-width: 1050px) {
  .custom-category-nav .mega-menu__panel-shell .mega-menu__children {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .custom-category-nav .mega-menu__panel-shell .mega-menu__children > :nth-child(n+9) {
    display: none;
  }
}
@container ccn-panel (max-width: 820px) {
  .custom-category-nav .mega-menu__panel-shell .mega-menu__children {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .custom-category-nav .mega-menu__panel-shell .mega-menu__children > :nth-child(n+7) {
    display: none;
  }
}
