/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */


@media (max-width: 1199px) {
    .mm_menus_ul>.mm_menus_li {
        display: block;
    }

    .l-header .ets_mm_megamenu .ets_mm_megamenu_content>.container .mm_menus_ul .mm_menus_li a .mm_menu_content_title {
        padding: 5px 13px;
    }
}

.selected {
    font-weight: 700 !important;
}


.home-about-section:before, .home-about-section:after {
    z-index: -1;
}

#shop-description {
    max-height: 220px;
    overflow: hidden;
}

#category-description {
    max-height: 200px;
    overflow: hidden;
}

.more {
    max-height: 100% !important;
}

.readmore, .readless {
    font-size: 16px;
    font-weight: 600;
    color: #141414;
    letter-spacing: .8px;
    cursor: pointer;
    max-width: max-content;
    border-bottom: 1px solid #fff;
    transition: .3s all;

    i {
        font-size: 13px;
        margin-left: 10px;
    }

    &:hover {
        border-bottom: 1px solid #476B40;
    }
}

.readless {
    display: none;
}

.show {
    display: block;
}

.hide {
    display: none !important;
}


.fpp_searchers .searcher-content .filter-options-content .checkbox input.hidden {
    display: none !important;
}

.fpp_searchers .searcher-content .filter-options-content .checkbox .checkmark {
    display: inline-block !important;
    background-size: cover;
    width: 32px !important;
    height: 33px !important;
    border: none;
}

/* Układ produktów w siatce */
#js-product-list .products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 -10px !important;
}

/* RWD */
@media (max-width: 991px) {
    #js-product-list .products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 767px) {
    #js-product-list .products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

#js-product-list .product-miniature.js-product-miniature {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 10px !important;
    margin-bottom: 0 !important;
}

/* Formatowanie kart produktów */
.card.card-product {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-img-top.product__card-img {
    aspect-ratio: 1;
    position: relative;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-description.product__card-desc {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    min-height: 3em;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    #js-product-list .products {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

@media screen and (max-width: 767px) {
    /* Kontener główny */
    #js-product-list {
        width: 100% !important;
        padding: 0 10px !important;
    }

    /* Lista produktów */
    #js-product-list .products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin: 0 !important;
    }

    /* Pojedynczy produkt */
    .product-miniature {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Karta produktu */
    .card-product {
        margin: 0 !important;
    }

    /* Obrazek produktu */
    .product-thumbnail img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Tytuł produktu */
    .product-title {
        font-size: 14px !important;
        line-height: 1.2 !important;
        margin: 5px 0 !important;
    }
}

.x13favoriteproduct__btn span i {
    font-size: 1.25rem !important; /* dostosuj tę wartość do rozmiaru ikony koszyka */ 
    vertical-align: middle !important;
}

/* Ukryj przycisk "Pokaż więcej" */
.p24-more-stuff {
    display: none !important;
}

/* Pokaż wszystkie metody płatności od razu */
.p24-payment-methods-group {
    max-height: none !important;
    overflow: visible !important;
}

/* Zachowaj grid layout dla metod płatności */
.p24-payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 15px;
}

/* Style dla pojedynczej metody płatności */
.bank-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bank-box:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ============== KALINOVA MENU FIX v2 (2026-06-04) ============== */
/* Moduł: ets_megamenu — selektory: .menu-catalog, .ets_mm_url, .arrow.closed */
/* Inline style wymaga body- prefiks dla wyższej specificity */

/* 1. Ukryj kropkę (.arrow.closed) obok KATALOG i innych top-menu items */
body .ets_mm_megamenu .arrow,
body .ets_mm_megamenu .arrow.closed,
body .ets_mm_megamenu .arrow.opened,
body .menu-catalog .arrow,
body .menu-catalog > .arrow,
body .tab > .arrow,
body .mm_menus_li > .arrow,
body span.arrow.closed,
body span.arrow.opened {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

/* 2. KATALOG default state - przebij inline style ze specificity */
body .menu-catalog > a.ets_mm_url,
body .menu-catalog > a.ets_mm_url:link,
body .menu-catalog > a.ets_mm_url:visited,
body .ets_mm_megamenu .tab > a.ets_mm_url,
body .ets_mm_megamenu li.menu-catalog > a {
  background-color: #476B40 !important;
  color: #ffffff !important;
  transition: background-color .2s ease !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 8px !important;
}

/* 3. KATALOG hover - ciemniejszy zielony, tekst BIAŁY widoczny */
body .menu-catalog > a.ets_mm_url:hover,
body .menu-catalog > a.ets_mm_url:focus,
body .menu-catalog:hover > a.ets_mm_url,
body .menu-catalog.tab:hover > a,
body .ets_mm_megamenu .tab:hover > a.ets_mm_url,
body .ets_mm_megamenu .mm_has_sub:hover > a.ets_mm_url,
body .ets_mm_megamenu li.menu-catalog:hover > a {
  background-color: #3a5732 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* 4. Wewnatrz przycisku - tytul + ikona zawsze biale i widoczne */
body .menu-catalog .mm_menu_content_title,
body .menu-catalog:hover .mm_menu_content_title,
body .menu-catalog > a:hover .mm_menu_content_title,
body .menu-catalog .mm_menu_content_title i,
body .menu-catalog:hover .mm_menu_content_title i,
body .menu-catalog > a:hover .mm_menu_content_title i,
body .ets_mm_megamenu .tab:hover .mm_menu_content_title,
body .ets_mm_megamenu .tab:hover .mm_menu_content_title * {
  color: #ffffff !important;
  visibility: visible !important;
  opacity: 1 !important;
}
/* ============================================================== */
