.size-table td, .size-table th {
    padding: 8px!important;

}

.header-top .header-top-right {
    padding: 0;
}

.amenu-item .amenu-link {
    font-weight: 600;
}

#header .logo {
    max-height: 85px;
}

.an_homeslider .an_homeslider-desc>.container {
    padding-right: 10%;
}

#menuC .amenu-item.active .active_color {
    text-decoration: underline; /* Dodaje podkreślenie */
    text-decoration-color: #65cb9e;
    text-decoration-thickness: 2px;
}

.block-categories .category-sub-menu li[data-depth="0"] {
    padding: 0px;
    margin: 15px;
    max-width: 30%;
    min-width: 25%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    border-radius: .3rem;
}

.breadcrumb li a {
    font-size: 12px;
}

.block-categories .category-sub-menu li[data-depth="0"] > a {
    font-size: 13px;
}


.CategoryImage img {
    margin: 0;
}

.block-categories .category-sub-menu li[data-depth="0"] .nameInCategory {
    background: #eeeeee;
    display: flex;
    text-align: left;
    align-items: stretch;
    gap: 10px;
}

.category-item.level-2 {
    padding-left: 1rem;
}

.category-item.level-1 > .h5 {
    margin-bottom: 2px;
    margin-top: 1px;
    font-weight: 600;

}

#menuC .category-item.level-1 > .h5 {
    line-height: inherit;
}


.category-item.level-2 > .h5 {
    margin-bottom: 2px;
}

.block-categories .category-sub-menu li[data-depth="0"] .nameInCategory .left{
    padding: 5px 10px;
}
.block-categories .category-sub-menu li[data-depth="0"] .nameInCategory img{
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
}
.block-categories .category-sub-menu li[data-depth="0"] .nameInCategory .right {
    display: flex;
    margin: 5px;
    align-items: center;
    width: 50px;
}
ul.category-sub-menu.IsChildren .CategoryImage img {
    width: 90%;
}
.block-categories .category-sub-menu li[data-depth="0"]>a {
    padding-bottom: 0;
}

.img-thumbnail {
    border: none;
}

.an_homeslider .owl-dots {
    visibility: hidden;
}

#header .header-top-wrapper {
    min-height: 90px;
}

.an_homeproducts-conteiner-category {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.an_homeproducts-conteiner-category a {
    padding: 0 2rem;
}

.an_homeproducts-tab-top {
    justify-content: flex-end;
}

@media (max-width: 1400px) {
    .an_homeslider.an_homeslider-responsive .an_homeslider-desc .h2 {
        margin-right: 34%;
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    #_mobile_lang {
        height: 60px;
        display: flex;
        align-items: center;
        margin-left: 12px;
        position: relative;
    }

    #_mobile_lang ul {
        height: 122px;
        width: 173px;
        color: black;
        background: white;
        padding: 0;
    }
    #_mobile_lang ul li {
        padding: 5px 10px;
        border-bottom: 1px solid #efefef;

    }

    #header .header-nav .top-logo {
        width: 128px;
    }

    #_mobile_lang ul li a {
        font-size: 16px;
    }

    .featured-products .product-title a {
        text-align: left;
    }
    .an_homeproducts-conteiner-category {
        font-size: 18px;
    }

    #header .btn-unstyle {
        color: black;
        font-weight: 600;
        font-size: 16px;
    }
    #header .btn-unstyle:hover {
        color: black;
    }
    #header .header-nav .material-icons.expand-more {
        font-size: 18px;
    }
}

.an_homeproducts-sort {
    box-shadow: rgba(149, 157, 165, 0.1) 0px 8px 24px;
    border: 1px solid #e5e5e5;
    padding-left: 5px;
}

a.an_homeproducts-category.js-an_homeproducts-category{

    text-decoration: underline;
}

#wrapper #content-wrapper, #wrapper #right-column {
    width: 100%;
}

#wrapper #social_loginizer_block_left .block_content {
    box-shadow: none;
}

#wrapper div#social_loginizer_block_left h4 {
    text-align: center;
}

#wrapper div#social_loginizer_block_left {
    margin-top: 3rem;
}


.newPoz1 {
    width: 100%;
}

.newPoz1 ul.category-sub-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-right: 0;
}

.newPoz1 ul.category-sub-menu li {
    width: 20%;
}

.CategoryImage {
    display: flex;
    align-items: center;
    justify-content: center;
}

#amegamenu .elem2 .dropdown-content.acontent-1.dd-2 > p.h5.category-title, #amegamenu .elem2 .dropdown-content.acontent-1.dd-2 .product-thumbnail,#amegamenu .elem2 .dropdown-content.acontent-1.dd-2 .product-price-and-shipping{
    display: none;
}

#amegamenu .elem2 .dropdown-content.acontent-1.dd-2 a{
    font-size: 13px;
    text-transform: uppercase;
    line-height: inherit;
    font-weight: 500;
    color:#000;
}
#amegamenu .elem2 .dropdown-content.acontent-1.dd-1 {
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 1px solid #d5d5d5;
}

#amegamenu .elem2 .dropdown-content.acontent-1.dd-2  .product-item {
    margin-bottom: 0px;
}

#amegamenu .elem2 .dropdown-content.acontent-1.dd-2 a:hover{
    color: #65cb9e;
}

ul.category-sub-menu.IsChildren i.material-icons.add {
    display: none;
}

ul.category-sub-menu.IsChildren a {
    text-align: center;
}
div#ppbs_widget {
    margin-bottom: 2.5rem;
}

div#ppbs-area-price {
    display: none!important;
}

#header .header-nav span, #header .header-nav i.material-icons.expand-more {
    color: white;
}

.product-miniature .thumbnail-container .quick-view {
    display: none;
}

/* === FIX 1: sensowna szerokość dropdownu (zamiast ~180px) === */
@media (min-width: 992px) {
    /* szerokość zależna od ekranu, ale z rozsądnymi min/max */
    #style-agrg8 {
        width: clamp(720px, 60vw, 1200px) !important;
    }
}
@media (min-width: 1200px) {
    #style-agrg8 {
        width: clamp(880px, 60vw, 1280px) !important;
    }
}

/* Opcjonalnie: jeśli poprzednie reguły wciąż wchodzą w życie, "zeruj" je globalnie */
@media (min-width: 768px)  {
    .adropdown-1 {
        width: auto !important;
    }
}
@media (min-width: 992px)  {
    .adropdown-1 {
        width: auto !important;
    }
}
@media (min-width: 1200px) {
    .adropdown-1 {
        width: auto !important;
    }
}

/* === FIX 2: poziomy układ kafelków LEVEL-2 === */
#style-agrg8 .level-2-row {
    display: flex !important;
    flex-wrap: wrap !important;
    column-gap: 1rem;
    row-gap: .5rem;
    align-items: flex-start;
}

/* każdy .level-2 jako "kafelek" w rzędzie */
#style-agrg8 .level-2-row > .category-item.level-2 {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    margin: 0 .8rem .5rem 0 !important;
    padding-left: 0 !important;          /* neutralizuje wcześniejsze wcięcie */
}

/* tytuł w kafelku bez dodatkowych marginesów/łamów */
#style-agrg8 .level-2-row > .category-item.level-2 > .h5 {
    margin: 0 !important;
    font-weight: 500;
}
#style-agrg8 .level-2-row > .category-item.level-2 > .h5 a {
    white-space: nowrap;                 /* nie łam linków w środku kafelka */
}

/* na wszelki wypadek: nie wymuszaj kolumn w level-2 na desktopie */
@media (min-width: 992px) {
    #style-agrg8 .category-item.level-2 {
        flex-direction: row !important;
    }
}

@media (max-width: 767px) {
    .an_homeslider .an_homeslider-desc>.container {
        justify-content: end;
        align-items: center;
        text-align: center;
    }
    .an_homeslider .an_homeslider-desc>.container .h2 {
        margin: 0 auto;
        width: 100%;
        background: #f4f4f4;
        padding: 0rem 0.5rem 1rem 0.5rem;
        font-size: 24px;
        text-transform: uppercase;
        color: black;
    }
    .an_homeslider.an_homeslider-responsive .an_homeslider-desc>.container {
        padding: 0;
    }
    .newPoz1 ul.category-sub-menu {
        flex-direction: column;
    }
    .block-categories .category-sub-menu li[data-depth="0"] {
        max-width: 80%;
        min-width: 64%;
    }

    .search_filters_mobile-modal .CategoryImage {
        width: 80%;
        margin: 0 auto;
    }

    .search_filters_mobile-modal .block-categories .category-sub-menu li[data-depth="0"] .nameInCategory .left {
        padding: 5px 10px;
        line-height: normal;
    }
    #search_filters_wrapper {
        min-height: auto;
    }
    .search_filters_mobile-modal .block-categories {
        padding: 0!important;

    }
    .search_filters_mobile-modal .mobile-menu-header {
        padding: 0 20px;
        margin-bottom: 20px;
    }
}

.category-item.level-1 > .h5 a {

}

.category-item.level-2 > .h5 a {
    color:#070e0b;
}

#products .product-title a, .featured-products .product-title a, .product-accessories .product-title a, .product-miniature .product-title a, .product-information-dropdown h5 a, .product-desc a, .product-name a {
    line-height: normal;
}

.featured-products .product-title a, .product-miniature .product-title a {
    line-height: 1px;
    line-height: 1.4;
    display: block;
    white-space: normal;
    min-height: 2.8em;
    text-align: left;
}

#custom-cart-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#custom-cart-popup .ccp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .25s ease;
}

#custom-cart-popup .ccp-modal {
    position: relative;
    background: #fff;
    padding: 20px 22px;
    border-radius: 12px;
    max-width: 580px;
    width: 92%;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
    text-align: center;
    transform: translateY(14px) scale(.98);
    opacity: 0;
    transition: all .28s ease;
}

#custom-cart-popup .ccp-title {
    margin: 1rem 0 2rem 0;
    font: 600 18px/1.25 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    font-size: 24px;
    font-weight: 500;
}

#custom-cart-popup .ccp-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    margin-bottom: 1rem;
}

#custom-cart-popup .btn {
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#custom-cart-popup .btn-primary {
    background: #65cb9e;
    color: #fff;
    min-height: 50px;
    text-transform: capitalize;
    padding: 0 1rem;
    min-width: 251px;
    justify-content: center;
}

#custom-cart-popup .btn-secondary {
    background: #ececec;
    color: #232323;
    min-height: 50px;
    text-transform: capitalize;
    padding: 0 1rem;
    min-width: 251px;
    justify-content: center;
}

/* Animacja wejścia */
#custom-cart-popup.ccp-enter .ccp-overlay {
    background: rgba(0, 0, 0, .6);
}
#custom-cart-popup.ccp-enter .ccp-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Animacja wyjścia */
#custom-cart-popup.ccp-exit .ccp-overlay {
    background: rgba(0, 0, 0, 0);
}
#custom-cart-popup.ccp-exit .ccp-modal {
    transform: translateY(10px) scale(.985);
    opacity: 0;
}

.disabled-option {
    opacity: 0.5;
    pointer-events: none;
}
.disabled-option .carrier-warning {
    display: block;
}
