/* ==========================================================================
   CATEGORY PAGE — PLUGIN ISLE
   ========================================================================== */


body#category #wrapper {
    padding-bottom: 0;
}


/* ==========================================================================
   GŁÓWNY BIAŁY KONTENER
   ========================================================================== */

body#category .columns-container.container {
    width: calc(100% - 64px);
    max-width: 1440px;

    margin-right: auto;
    margin-left: auto;
    padding: 22px 46px 90px;

    background: #fff;

    box-sizing: border-box;
}

body#category #center-column {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;
}





/* ==========================================================================
   NAGŁÓWEK KATEGORII
   ========================================================================== */

body#category .pi-category-header {
    width: 100%;

    margin: 0 0 42px;
    padding: 0;
}

body#category .pi-category-header__title {
    margin: 0 0 20px;
    padding: 0;

    font-family: 'Syne', sans-serif;
    font-size: clamp(44px, 4.5vw, 64px);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.04em;

    color: #222;
}

body#category .pi-category-header__description {
    max-width: 1040px;

    margin: 0;

    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.42;

    color: #222;
}

body#category .pi-category-header__description p {
    margin: 0 0 18px;
}

body#category .pi-category-header__description p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   PODKATEGORIE — NIEBIESKIE PRZYCISKI
   ========================================================================== */

body#category .pi-category-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 18px 20px;

    width: 100%;

    margin: 36px 0 0;
    padding: 0;
}

body#category .pi-category-links__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 30px;

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;

    color: #fff;
    background: #086cff;

    border: 1px solid #086cff;
    border-radius: 999px;

    text-align: center;
    text-decoration: none;

    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

body#category .pi-category-links__item:hover,
body#category .pi-category-links__item:focus-visible {
    color: #086cff;
    background: #fff;
    border-color: #086cff;

    transform: translateY(-2px);
}


/* ==========================================================================
   TOOLBAR I SORTOWANIE
   ========================================================================== */

body#category .pi-category-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: 100%;

    margin: 18px 0 26px;
}

body#category .pi-category-toolbar__actions {
    display: flex;
    align-items: center;

    gap: 12px;
}

body#category .pi-category-sort {
    position: relative;
}

body#category .pi-category-sort__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    width: 170px;
    min-width: 170px;
    height: 50px;

    margin: 0;
    padding: 0 22px;

    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;

    color: #222;
    background: #fff;

    border: 1px solid #086cff;
    border-radius: 999px;

    box-shadow: none;
}

body#category .pi-category-sort__button::after {
    margin-left: 18px;

    color: #086cff;
}

body#category .pi-category-sort .dropdown-menu {
    min-width: 230px;

    padding: 8px;

    border: 1px solid #e0e5eb;
    border-radius: 14px;

    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

body#category .pi-category-sort .dropdown-item {
    padding: 10px 14px;

    border-radius: 8px;
}

body#category .pi-category-sort .dropdown-item.current {
    color: #086cff;
    background: #edf5ff;
}


/* ==========================================================================
   SIATKA PRODUKTÓW
   ========================================================================== */

body#category #js-product-list .products {
    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px 24px;

    width: 100%;
}

body#category .product-miniature {
    width: 100%;
    min-width: 0;

    margin: 0;
}

body#category .product-miniature__inner {
    height: 100%;

    background: #fff;

    border: 1px solid rgba(20, 30, 45, .04);
    border-radius: 16px;

    box-shadow:
        0 4px 10px rgba(20, 30, 45, .08);

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

body#category .product-miniature__inner:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 28px rgba(20, 30, 45, .13);
}

body#category .product-miniature__top {
    position: relative;

    overflow: hidden;
}

body#category .product-miniature__top img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
}

body#category .product-miniature__bottom {
    padding: 16px 16px 18px;
}

body#category .product-miniature__title {
    display: block;

    margin: 0 0 8px;

    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.18;

    color: #171717;
    text-decoration: none;
}

body#category .product-miniature__price {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;

    color: #086cff;
}


/* ==========================================================================
   PAGINACJA
   ========================================================================== */

body#category .products__pagination {
    margin-top: 50px;
}


/* ==========================================================================
   TREŚĆ POD PRODUKTAMI
   ========================================================================== */

body#category .pi-category-after-products {
    width: 100%;

    margin-top: 90px;
}

body#category .pi-category-seo {
    width: 100%;
    max-width: 1080px;

    margin: 0 0 90px;
}

body#category .pi-category-seo h2 {
    margin: 0 0 24px;

    font-family: 'Syne', sans-serif;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.035em;

    color: #262626;
}

body#category .pi-category-seo p {
    margin: 0 0 20px;

    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.45;

    color: #222;
}

body#category .pi-category-seo p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1199px) {

    body#category .columns-container.container,
    body#category .breadcrumb {
        width: calc(100% - 40px);
        padding-right: 30px;
        padding-left: 30px;
    }

    body#category #js-product-list .products {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* ==========================================================================
   MAŁY TABLET
   ========================================================================== */

@media (max-width: 899px) {

    body#category .pi-category-header__title {
        font-size: clamp(40px, 7vw, 54px);
    }

    body#category #js-product-list .products {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px 18px;
    }
}


/* ==========================================================================
   TELEFON
   ========================================================================== */

@media (max-width: 575px) {

    body#category .columns-container.container,
    body#category .breadcrumb {
        width: 100%;

        padding-right: 18px;
        padding-left: 18px;
    }

    body#category .columns-container.container {
        padding-bottom: 60px;
    }

    body#category .pi-category-header {
        margin-bottom: 30px;
    }

    body#category .pi-category-header__title {
        font-size: clamp(38px, 12vw, 48px);
    }

    body#category .pi-category-header__description {
        font-size: 14px;
        line-height: 1.5;
    }

    body#category .pi-category-links {
        gap: 12px;
        margin-top: 28px;
    }

    body#category .pi-category-links__item {
        min-height: 44px;
        padding: 0 20px;

        font-size: 13px;
    }

    body#category .pi-category-toolbar {
        margin-top: 10px;
    }

    body#category .pi-category-sort,
    body#category .pi-category-sort__button {
        width: 100%;
    }

    body#category #js-product-list .products {
        grid-template-columns: 1fr;
    }

    body#category .pi-category-after-products {
        margin-top: 60px;
    }

    body#category .pi-category-seo {
        margin-bottom: 60px;
    }
}

/* ==========================================================================
   KATEGORIA — SORTOWANIE HUMMINGBIRD, RÓWNIEŻ PO AJAX
   ========================================================================== */

body#category #js-product-list-top .products__selection {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;

    gap: 24px !important;

    width: 100% !important;
}


/* Liczba produktów po lewej */

body#category #js-product-list-top .products__count {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}


/* Kontener sortowania po prawej */

body#category #js-product-list-top .products__sort {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;

    flex: 0 0 auto !important;

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

    margin: 0 !important;
    padding: 0 !important;
}


/* Ukrycie osobnego napisu „Sortowanie” */

body#category
#js-product-list-top
.products__sort-label {
    display: none !important;
}


/* Wrapper przycisku */

body#category
#js-product-list-top
.products__sort-dropdown {
    position: relative !important;

    display: block !important;
    flex: 0 0 230px !important;

    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Przycisk przed i po wybraniu sortowania */

body#category
#js-product-list-top
.products__sort-dropdown-button {
    position: relative !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;

    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;

    margin: 0 !important;
    padding: 0 52px 0 28px !important;

    overflow: hidden !important;

    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    color: #292929 !important;
    background-color: #fff !important;

    /*
     * Własna mała strzałka po prawej.
     */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23086cff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;

    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 16px 16px !important;

    border: 1px solid #086cff !important;
    border-radius: 999px !important;

    box-shadow: none !important;
    outline: none !important;

    white-space: nowrap !important;
    text-overflow: ellipsis !important;

    cursor: pointer !important;

    transform: none !important;
}


/* Usunięcie strzałki Bootstrapa i globalnego aftera przycisków */

body#category
#js-product-list-top
.products__sort-dropdown-button::before,

body#category
#js-product-list-top
.products__sort-dropdown-button::after {
    content: none !important;
    display: none !important;

    flex: 0 0 0 !important;

    width: 0 !important;
    height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: none !important;
    border: 0 !important;
}


/* Focus i otwarte menu */

body#category
#js-product-list-top
.products__sort-dropdown-button:hover,

body#category
#js-product-list-top
.products__sort-dropdown-button:focus,

body#category
#js-product-list-top
.products__sort-dropdown-button[aria-expanded="true"] {
    color: #292929 !important;
    background-color: #fff !important;
    border-color: #0056cb !important;

    box-shadow:
        0 0 0 3px rgba(8, 108, 255, .13) !important;

    transform: none !important;
}


/* Rozwijane opcje */

body#category
#js-product-list-top
.products__sort-dropdown
.dropdown-menu {
    right: 0 !important;
    left: auto !important;

    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;

    margin-top: 8px !important;
    padding: 8px !important;

    background: #fff !important;

    border: 1px solid #e4e8ee !important;
    border-radius: 16px !important;

    box-shadow:
        0 12px 32px rgba(20, 42, 72, .14) !important;
}


/* Opcje menu */

body#category
#js-product-list-top
.products__sort-dropdown
.dropdown-item {
    padding: 11px 14px !important;

    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;

    color: #292929 !important;
    background: transparent !important;

    border-radius: 10px !important;

    white-space: normal !important;
}

body#category
#js-product-list-top
.products__sort-dropdown
.dropdown-item:hover,

body#category
#js-product-list-top
.products__sort-dropdown
.dropdown-item.current,

body#category
#js-product-list-top
.products__sort-dropdown
.dropdown-item[aria-current="true"] {
    color: #086cff !important;
    background: rgba(8, 108, 255, .08) !important;
}


/* ==========================================================================
   TELEFON
   ========================================================================== */

@media (max-width: 767px) {

    body#category #js-product-list-top .products__selection {
        flex-direction: column !important;
        align-items: stretch !important;

        gap: 16px !important;
    }

    body#category #js-product-list-top .products__sort {
        width: 100% !important;
    }

    body#category
    #js-product-list-top
    .products__sort-dropdown {
        flex-basis: 100% !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body#category
    #js-product-list-top
    .products__sort-dropdown
    .dropdown-menu {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}