/*
Theme Name: Koś-met
Theme URI: 
Author: Foxstudio
Author URI: foxstudio.info
Description: Szablon strony Koś-met
Requires at least: 6.0
Tested up to: 6.4.3
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kos-met
Tags: 
*/

/* var(--wp--preset--{type}--{slug}) */

/* colors */
/* var(--wp--preset--color--greyish-brown) */

/* body {
    //fonts
	var(--wp--preset--font-family--primary)
	var(--wp--preset--font-family--secondary)
} */

/* width */
::-webkit-scrollbar {
    width: 10px;
}
  
/* Track */
::-webkit-scrollbar-track {
    background: var(--wp--preset--color--light-green);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--primary);
    border-radius: 20px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--wp--preset--color--dark-text);
}

:where(.wp-site-blocks) > *,
:where(body .is-layout-flow) > * {
    margin-top: 0 !important;
}

:where(body .is-layout-flex) {
    gap: 0 24px;
}

:where(.is-layout-flex) {
  gap: 0 !important;
}

html.lenis, html.lenis body {
    height: auto;
}
  
.lenis.lenis-smooth {
scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
overscroll-behavior: contain;
}

.lenis.lenis-stopped {
overflow: hidden;
}

.lenis.lenis-scrolling iframe {
pointer-events: none;
}


a[href^="tel"],
a[href^="mailto"],
a[href^="sms"],
a[x-apple-data-detectors] {
color: inherit; /* Dziedziczy kolor z rodzica */
text-decoration: none; /* Usuwa podkreślenie */
}  

body {
	overflow-x: hidden;

    a {
        transition: all .4s ease-in-out !important;
    }
}

.block-editor-block-list__block.wp-block-buttons,
.wp-block-buttons {
    gap: 24px;
}

.wp-block-button .has-primary-color:hover {
    background-color: var(--wp--preset--color--light-green) !important;
}

.wp-block-button__link {
    display: flex; 
    align-items: center;
    gap: 16px;
}

.wp-block-button.is-style-outline a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border-width: 1px !important;
    padding: 15px 30px !important;
}

.wp-block-button a, 
.wp-block-button a img {
    transition: all .4s ease-in-out;
    transform-origin: center;

    &:hover {
        transform: scale(1.02);

        img {
            transform: translateX(5px);
        }
    }
}

/* only for frontend */
.wp-lightbox-overlay .lightbox-image-container {
    width: 70vw;
    height: 60vh;    
    overflow: visible !important;
}

.wp-lightbox-overlay .lightbox-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;    
}

.wp-block-cb-carousel .wp-block-image>img {
    width: 100%;
}

.btns {
    gap: 24px !important;
}

.btn.is-style-outline a {
    border-width: 1px;
}

.btn {
    transform-origin: center;
    transition: all .4s ease-in-out;
    font-weight: 600;
}

.btn a {
    display: flex;
    gap: 10px;
    align-items: center;

}

.btn a img {
    transform-origin: center;
    transition: all .4s ease-in-out;
}

/* .btn:hover {
    transform: scale(1.05);
}

.btn a:hover img {
    transform: rotate(45deg);
} */

.btn-primary {
    background-color: var(--wp--preset--color--primary);
    padding: 16px 32px;
    color: var(--wp--preset--color--white-text);
    border-radius: 64px;
}

.search-result__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

details * {
    line-height: 150%;
}

details summary {
    padding-bottom: 16px;
    font-weight: 700;
}

/* details {
    padding-top: 64px;
    padding-left: clamp(24px, 5.7vw, 110px);
	padding-right: clamp(24px, 5.7vw, 110px);
}

details .wp-block-group {
    padding: 0;
}

.details-btns {
    padding-left: clamp(24px, 5.7vw, 110px);
} */

.wp-block-button a {
    font-family: var(--wp--preset--font-family--third);
}

.wp-block-button.is-style-outline a {
    transition: all .4s ease-in-out;
}

.wp-block-button.is-style-outline:hover a {
    background-color: var(--wp--preset--color--primary);
}
.wp-block-button.is-style-dark a {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white-text);
    transition: all .4s ease-in-out;
    border: 1px solid transparent !important;
}
.wp-block-button.is-style-dark a:hover {
    background-color: var(--wp--preset--color--white-text);
    color: var(--wp--preset--color--primary);
    border: 1px solid var(--wp--preset--color--primary) !important;
}

section > .wp-block-group {
    width: 100%;
}

a.wp-block-button__link.has-red-gradient-gradient-background {
    padding: 4px;
    padding-right: 24px;

    &::before {
        display: block;
        content: "";
        background-image: url("./assets/images/white-circle-arrow.svg");
        width: 48px;
        height: 48px;
        background-size: contain;
        background-position: center;
        transition: all .4s ease-in-out;
    }

    &:hover::before {
        transform: rotate(45deg);
    }
}

a.wp-block-button__link.has-primary-color {
    padding: 4px;
    padding-right: 24px;
    
    &::before {
        display: block;
        content: "";
        background-image: url("./assets/images/black-circle-arrow.svg");
        width: 48px;
        height: 48px;
        background-size: contain;
        background-position: center;
        transition: all .4s ease-in-out;
    }

    &:hover::before {
        transform: rotate(45deg);
    }
}

/* pill */
.pill {
    width: fit-content;
    padding: 14px 18px;
    border-radius: 32px;
    align-items: center;
    gap: 12px !important;
    font-weight: 500;
    display: flex;

    p {
        margin: 0;
    }

    &::before {
        content: '';
        display: block;
        min-width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: var(--wp--preset--color--accent);
    }
}

/* breadcrumb */
.yoast-breadcrumbs {
    padding-bottom: clamp(32px, 4.17vw, 80px);
}

.yoast-breadcrumbs * {
   font-size: 14px;
}

.yoast-breadcrumbs a {
    text-decoration: none;
    color: var(--wp--preset--color--primary);
    transition: all .4s ease-in-out;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}

.yoast-breadcrumbs span {
    padding: 0 8px;
}

.yoast-breadcrumbs > span {
    padding-left: 0;
}

.yoast-breadcrumbs > span span:first-child {
    padding-left: 0;
}

.yoast-breadcrumbs a:hover {
    border-color: var(--wp--preset--color--primary);
}

.yoast-breadcrumbs .breadcrumb_last {
    color: var(--wp--preset--color--dark-green);
}

.yoast-breadcrumbs a:hover {
    border-color: var(--wp--preset--color--primary);
}

.block-editor-block-list__block.wp-block-yoast-seo-breadcrumbs {
    padding-left: 5%;
}


/* carousel */
.slick-dots {

    li {
        button:before {
            font-size: 15px;
        }
    }
}

/* blog */
.fox__pagination {
    justify-content: center;
    padding-top: 32px;

    a {
        color: var(--wp--preset--color--primary);
    }
}

.fox__pagination * {
    text-decoration: none;
}

.fox__pagination .wp-block-query-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fox__pagination .current {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white-text);
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 64px;
    width: 19px;
    text-align: center;
    display: inline-block;
}

.fox__pagination .wp-block-query-pagination-next, 
.fox__pagination .wp-block-query-pagination-previous {
    padding: 12px;
    border-radius: 64px;
    font-weight: bold;
}

/* search */
.search-result {
    padding: 64px 24px;
}

.search-result h1 {
    padding-bottom: 24px;
}

.search-result__loop ul {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.search-result__loop ul li {
    width: 100%;
}

.search-result__card {
    padding: 24px;
    border-radius: 24px;
}

.search-result__card .wp-block-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 32px;
}

.search-result .yoast-breadcrumbs * {
    color: var(--wp--preset--color--white-text);
}

.search-result__card .taxonomy-category,
.search-result__card .taxonomy-post_tag {
    display: flex; 
    flex-wrap: wrap;
    gap: 8px;
}

.search-result__card .taxonomy-category a,
.search-result__card .taxonomy-post_tag a {
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 32px;
    color: var(--wp--preset--color--dark-green);
    background-color: var(--wp--preset--color--light-green);
    font-weight: 700;
    font-size: 12px;
}

.search-result__card .taxonomy-post_tag a {
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--light-green);
}

.search-result__card .taxonomy-category .wp-block-post-terms__separator {
    display: none;
}

.change__contrast {
    cursor: pointer;
    transition: all .4s ease-in-out;
}

.change__contrast:hover {
    filter: grayscale(1);
}

/* pages */

/* single */

.post__content {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 48px;
}

.post__content .btns {
    padding-top: 32px;
    padding-bottom: 24px;
    display: flex;
    gap: 16px;

    .has-primary-background-color {
        color: var(--wp--preset--color--white-text);
    }
}

.post__hr {
    border-top: 1px solid var(--wp--preset--color--light-green);
}

.post__tags {
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding-left: 0;
}

.post__tags a {
    padding: 12px 16px;
    border-radius: 64px;
    border: 1px solid #BEBEBE;
    text-decoration: none;
    color: var(--wp--preset--color--black-text);
}

.post__others {
    padding: 24px 0 ;
    
    .post__others-header {
        padding-bottom: 24px;

        figure {
            display: flex;
            align-items: center;
        }

    }
    
    .news-block-loop {
        width: 100%; 

        .btn-primary {
            margin-left: 16px;
        }
    }
}

/* default */
.default-page {
    padding: 80px 24px 64px;
}

button {
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: none;
}

/* default page */
.post__header {
    .blog__header__content {
        left: 24px !important;

        figure {
            position: relative;
            max-width: 1280px;

            img {
                position: relative;
                border-radius: 30px;
                aspect-ratio: 4/1;
                object-position: 50% 75%;
            }
        }
    }

    h2 {
        position: absolute;
    }
}

/* global */
.container-fullhd {
    max-width: 1920px !important;
    padding-left: 60px;
    padding-right: 60px;
}

.outline-text {
    color: transparent !important;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: white;
}

.bold-text {
    font-weight: bold;
}

.wp-block-query-pagination {
    margin: 24px 0;
}

.pagination-top {
    min-height: 40px;
    margin-bottom: 24px;
}

.wp-block-query-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;

    .current,
    a {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px;
        border-radius: 8px;
        min-width: 44px;
        min-height: 44px;
        font-weight: 500;
        color: var(--wp--preset--color--dark-text);
        text-decoration: none;
        transition: all .4s ease-in-out;
    }    

    a:hover {
        background-color: var(--wp--preset--color--white-text);
    }

    .current {
        background-color: #E4E4E4;
    }
}

.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
    background-color: var(--wp--preset--color--white-text);
    padding: 10px 16px;
    border-radius: 48px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--wp--preset--color--dark-text);
    transition: all .4s ease-in-out;

    span {
        position: relative;
        top: -2px;
    }

    &:hover {
        background-color: var(--wp--preset--color--dark-text);
        color: var(--wp--preset--color--white-text);
    }
}

.toTop,
.previous-page {
    cursor: pointer;
}

.previous-page {
    margin-left: 0 !important;
    gap: 12px;
    margin-bottom: 24px;

    figure {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
 
.woocommerce-breadcrumb {
    a {
        text-decoration: none;
        color: var(--wp--preset--color--primary);
    }
}

.wc-block-mini-cart__drawer {

    h2.wc-block-mini-cart__title {
        font-size: 20px;
    }

    .wc-block-cart-item__product {
        a {
            color: var(--wp--preset--color--dark-text);
            text-decoration: none;
            font-weight: 600;
        }
    }

    .wc-block-mini-cart__footer {
        a {
            border-radius: 32px;
        }

        .wc-block-mini-cart__footer-checkout {
            background-color: var(--wp--preset--color--primary);

            &:hover {
                background-color: var(--wp--preset--color--dark-text);
            }
        }
    }
}

.single-cats {    

    a {
        text-decoration: none;
    }
}

/* map */

#map-pin-data {
    height: 700px;
    overflow-y: scroll;
}

.pin-data {
    display: flex;
    gap: 24px;
    margin-bottom: 56px;

    .pin-data__icon {

        img {
            width: 64px;
            height: auto;
        }
    }

    .pin-data__title {
        margin-top: 0;
        font-size: 20px;
        text-transform: uppercase;
        font-weight: 600;
    }

    p {
        font-size: 20px;
        color: var(--wp--preset--color--grey);
    }

    .pin-data__phone {
        a {
            text-decoration: underline;
            color: var(--wp--preset--color--primary);
        }
    }

    .pin-data__mail {
        padding-bottom: 32px;
        color: var(--wp--preset--color--dark-text);

        a {
            text-decoration: underline;
        }
    }

    .pin-data__btn {
        margin-top: 32px;
        background-color: var(--wp--preset--color--primary);
        color: var(--wp--preset--color--white-text);
        font-weight: 600;
        padding: 16px 40px;
        border-radius: 40px;
        text-decoration: none;
    
        &:hover {
            background-color: var(--wp--preset--color--dark-text);
        }
    }
}

.custom-page {

    padding-left: clamp(32px, 4.9vw, 96px);
    padding-right: clamp(32px, 4.9vw, 96px);

    .esab__expand svg,
    .esab__collapse svg {
        & > path:nth-child(1) {
            fill: white !important;
        }
    }
}

/* HIDE WOO */
.none {
    display: none !important;
}

@media only screen and (max-width: 576px) {
    .content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .short {
        img {
            width: 45px !important;
        }
    }

    /* map */
    .map {
        padding-left: 24px;
        padding-right: 24px;

        .pin-data {
            flex-direction: column;
        }
    }

    #map-pin-data {
        height: 500px !important;
    }

    .post-related {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* page */
    .custom-page {
        padding-top: 220px;
        padding-left: 16px;
        padding-right: 16px;

        .esab__expand svg,
        .esab__collapse svg {
            & > path:nth-child(1) {
                fill: white !important;
            }
        }

    }

    .post__header {
        .blog__header__content {
            left: 24px !important;
            
            figure {
                height: 100%;

                img {
                    height: 100%;
                }
            }
        }
    }
}

@media only screen and (max-width: 756px) {

    .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
        max-width: 100% !important;
    }

    .subpage-invest__intro {
        figure {
            display: none;
        }

        h2 {
            br {
                display: none;
            }
        }
    }

    .container-fullhd {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media only screen and (min-width: 756px) {
    /* search */
    .search-result__loop ul li {
        width: calc(50% - 16px);
    }

    .search-result__card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .search-result__card .wp-block-group {
        flex: 1;
    }

    .fox__pagination {
        padding-top: 24px;
    }

    /* post */

    .post__content {
        padding-left: 48px;
        padding-right: 48px;
        padding-bottom: 64px;
    }

    .post-related {
        .news__content__post {
            & > figure {
                padding: 16px !important;
            }
        }
    }

    .custom-page {
        padding-top: 200px;
    }
}

@media only screen and (min-width: 1000px) {
    .yoast-breadcrumbs * {
        font-size: 14px;
    }

    /* single */
    .post-header {
        h1 {
            padding-left: 48px;
        }
    }

}

@media only screen and (max-width: 1100px) {
    .container-fullhd {
        padding-left: 24px;
        padding-right: 24px;
        padding-top: 110px !important;
    }

    /* map */
    #map-pin-data {
        height: 400px;
    }

    .map {
        flex-direction: column-reverse;
        gap: 24px;

        .map__col2 {
            width: 100%;
            aspect-ratio: 1/1;
        }
    }

    /* post */
    .post-related {
        .news__content__post {
            & > figure {
                padding: 16px;
                padding-bottom: 8px;
            }
        }

        .news__content ul {
            padding-top: 0 !important;
        }
    }
}


@media only screen and (min-width: 1200px) {

    .woocommerce-breadcrumb {
        &, a {
            font-size: 16px;
        }
    }

    .yoast-breadcrumbs * {
        font-size: 18px;
    }

    /* search */
    .search-result {
        padding: 116px clamp(24px, 5.7vw, 100px) 64px;
    }

    .search-result__loop ul li {
        width: 28vw;
    }

    /* pagination */
    .fox__pagination {
        a {
            padding: 4px 15px;
            border-radius: 64px;
            transition: all .4s ease-in-out;

            &:hover {
                background-color: var(--wp--preset--color--light-blue);
            }
        }
    }

    /* post */
    .post__content > div,
    .post__hr {
        max-width: 1120px;
    }
   
    .post__others {
        padding-bottom: 64px;

        .post__others-header {
            padding-bottom: 48px;
        }
        
        .news-block-loop {

            .news-block-loop__card {
                width: 31%;
            }
        }
    }


    /* default page */
    /* default */
    .default-page > div {
        max-width: 1120px;
        margin: auto;
    }

    .custom-page {
        padding-top: 18vw;
    }
}


@media only screen and (min-width: 1536px) {

    .post__others {
        padding-bottom: 64px;

        .post__others-header {
            padding-bottom: 48px;

            figure {
                display: flex;
                align-items: center;
            }

        }
    }

    /* map */
    .pin-data {
        .pin-data__title,
        p {
            font-size: 24px;
        }

        .pin-data__icon {
            img {
                width: 80px;
                height: auto;
            }
        }

    }
}

@media only screen and (min-width: 1800px) {

    .yoast-breadcrumbs * {
        font-size: 18px;
    }

    /* search */
    .search-result__card .taxonomy-category a, 
    .search-result__card .taxonomy-post_tag a {
        font-size: 16px;
    }

}

@media only screen and (min-width: 1921px) {
    .container-fullhd {
        margin: auto;
    }
}