/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

input:focus {
  outline: 1px solid #222222; /* twój kolor */
  outline-offset: 1px;
}

#brx-header {
    position: fixed;
    z-index: 2;
    top: 0;
    transition: all 0.3s ease-in-out;
    z-index: 900;

    #brxe-eawirp,
    #brxe-nlrgzm,
    .brxe-section {
        transition: all 0.3s ease-in-out;
    }

    .wpml-ls__dash {
        color: #222222;
    }

    .nav-white {
        .wpml-ls__dash {
            color: #ffffff;
        }
    }

    .bricks-mobile-menu::after {
        content: "";
        background-image: url("./assets/images/menu-img.webp");
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 65vw;
        height: auto;
    }

    &.scrolled {
        background-color: white;
        padding: 8px 0;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);

        .brxe-section {
            margin-bottom: 0;
        }

        #brxe-f37cf7,
        #brxe-b16bd2,
        #brxe-6420ce,
        #brxe-be80b2,
        #brxe-f441f8 {
            top: 0;
        }

        a {
            color: #222222;
        }

        .nav-white {
            .bricks-site-logo {
                filter: invert(1);
            }
        }

        .wpml-ls__dash {
            color: #222222;
        }
       
    }

    .wpml-ls-item {
        a {
            text-transform: uppercase;
        }
    }

 
}

.bricks-button {
    transition: all 0.5s linear;
    transform-origin: center;
    padding: 10px 20px !important;
}

.bricks-background-primary:hover,
.bricks-background-secondary:hover,
.bricks-background-light:hover {
    transform: scale(1.05);
}

.bricks-background-primary:hover,
.bricks-background-light:hover {
    background-color: #0e1011 !important;
    color: white !important;
}

.bricks-background-secondary:hover {
    background-color: white !important;
    color: #0e1011 !important;
}

/* hero homepage */
#hero-animation {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100vw - 40px);
    height: calc(100vh - 24px);
    z-index: 1;
    background-color: black;
    border-radius: 12px;
}

.social-icons {
    a i {
        transition: all 0.3s ease-in-out;
    }

    a i.fa-facebook-f:hover {
        color: #1877F2	!important;
    }

    a i.fa-instagram:hover {
        color: #E4405F	!important;
    }

    a i.fa-pinterest-p:hover {
        color: #E60023	!important;
    }

    a i.fa-youtube:hover {
        color: #FF0000	!important;
    }

    a i.fa-linkedin-in:hover {
        color: #0A66C2	!important;
    }

}

/* inspiration secion - homepage */
#inspiration {
    perspective: 1000px;
}

.floating-img.floating {
	animation: float 6s ease-in-out infinite;
    will-change: transform;
}

/* posts */
.post-content {
    .brxe-post-author {
        display: none;
    }
}


/*fabrics select*/
.fabrics-filter--select {
    background-color: rgba(241, 241, 241, 0.54);
    padding: 12px 24px;
    border-radius: 32px;

    ul {
        border-bottom-right-radius: 16px;
        border-bottom-left-radius: 16px;
        box-shadow: 0 4px 16px 0 rgba(97, 97, 97, 0.44);
        padding: 12px;
        left: 0px;
    }

    .menu-item {
        margin-bottom: 12px;

        div {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer !important;

            label {
                margin-bottom: 0;
                color: #363636;
            }

            input {
                min-height: 24px;
                min-width: 24px;
            }
        }
    }
}

.fabrics-filter--checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(241, 241, 241, 0.54);
    padding: 12px 24px;
    border-radius: 32px;
    color: #363636;

    input {
        min-width: 20px;
        min-height: 20px;
    }
}

.searchFabric {
    display: flex;
    align-items: center;
    background-color: rgba(241, 241, 241, 0.54);
    padding: 6px 24px;
    border-radius: 32px;
    
    input {
        background-color: transparent;
        border: none;
        padding-left: 0;
        width: 120px;

        &::placeholder {
            color: #36363681;
        }
    }
}

/* fabrics block */
.fabrics-block {
    padding-top: 96px;
    display: grid;
    align-items: initial;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 2vw;

    .fabrics-block__loop {
        .fabrics-block__loop__element {
            position: relative;
            border-radius: 12px;

            .fabrics-block__loop__element__title {
                position: absolute;
                z-index: 2;
                background-color: var(--bricks-color-ecdgkm);
                display: flex;
                flex-direction: row;
                align-items: center;
                column-gap: 8px;
                row-gap: 8px;
                padding-top: 8px;
                padding-right: 16px;
                padding-bottom: 8px;
                padding-left: 16px;
                border-bottom-right-radius: 20px;

                svg {
                    position: relative;
                    left: 0;
                    transition: all 0.4s ease-in-out;
                }

                &::before {
                    position: absolute;
                    left: 0;
                    bottom: -20px;
                    display: block;
                    content: "";
                    width: 20px;
                    height: 20px;
                    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0L0 20C0 8.95431 8.95431 0 20 0L0 0Z" fill="white"/></svg>');
                    background-size: contain;
                    background-repeat: no-repeat;
                    background-position: left bottom;
                }

                &::after {
                    position: absolute;
                    right: -20px;
                    top: 0;
                    display: block;
                    content: "";
                    width: 20px;
                    height: 20px;
                    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0L0 20C0 8.95431 8.95431 0 20 0L0 0Z" fill="white"/></svg>');
                    background-size: contain;
                    background-repeat: no-repeat;
                    background-position: left bottom;
                }

                .brxe-text-basic { 
                    width: 100%;
                }
            }

            &:hover {
                .fabrics-block__loop__element__title {
                    svg {
                        left: 6px !important;
                    }
                }
            }

            .fabrics-block__loop__element__info {
                position: absolute;
                z-index: 2;
                background-color: var(--bricks-color-ecdgkm);
                display: flex;
                flex-direction: row;
                align-items: center;
                column-gap: 8px;
                row-gap: 8px;
                padding-top: 8px;
                padding-right: 16px;
                padding-bottom: 8px;
                padding-left: 16px;
                bottom: 0px;
                right: 0px;
                border-top-left-radius: 20px;
                border-bottom-right-radius: 0;

                &::before {
                    position: absolute;
                    left: -20px;
                    bottom: 0;
                    display: block;
                    content: "";
                    width: 20px;
                    height: 20px;
                    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 20L20 1.74846e-06C20 11.0457 11.0457 20 -1.74846e-06 20L20 20Z" fill="white"/></svg>');
                    background-size: contain;
                    background-repeat: no-repeat;
                    background-position: left bottom;
                }

                &::after {
                    position: absolute;
                    right: 0;
                    top: -20px;
                    display: block;
                    content: "";
                    width: 20px;
                    height: 20px;
                    background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 20L20 1.74846e-06C20 11.0457 11.0457 20 -1.74846e-06 20L20 20Z" fill="white"/></svg>');
                    background-size: contain;
                    background-repeat: no-repeat;
                    background-position: left bottom;
                }
            }

            .fabrics-block__loop__element__img,
            .fabrics-block__loop__element__video {
                aspect-ratio: 4.6 / 4.3;
                border-radius: 12px;

                figcaption {
                    display: none;
                }

                img {
                    object-fit: cover;
                    width: 100%;
                    height: 100%;
                    display: block;
                }
            }

        }
    }
}

.technologies-list-container {
    border-bottom: 1px solid rgba(14, 16, 17, 0.12);
}

.technologies-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;

    li {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    p {
        font-size: 18px;
        
        span {
            font-weight: 600;
        }
    }
}

.my-gallery-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 16px;

    .my-gallery-grid__image {
        position: relative;

        .my-gallery-grid__image__caption {
            position: absolute;
            z-index: 2;
            background-color: white;
            padding: 2px 12px;
            border-bottom-right-radius: 20px;

            &::after {
                position: absolute;
                right: -20px;
                top: 0;
                display: block;
                content: "";
                width: 20px;
                height: 20px;
                background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0L0 20C0 8.95431 8.95431 0 20 0L0 0Z" fill="white"/></svg>');
                background-size:contain;
                background-repeat: no-repeat;
                background-position: left bottom;
            }
            
            &::before {
                position: absolute;
                left: 0;
                bottom: -20px;
                display: block;
                content: "";
                width: 20px;
                height: 20px;
                background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0L0 20C0 8.95431 8.95431 0 20 0L0 0Z" fill="white"/></svg>');
                background-size:contain;
                background-repeat: no-repeat;
                background-position: left bottom;
            }             
        }

        img {
            aspect-ratio: 1/1;
            border-radius: 8px;
        }
    }
}

/* custom img bg */
.custom-bg {
    width: 100vw;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease; /* fade effect */

    .custom-bg__layer {
        position: absolute;
        top:0; 
        left:0; 
        width:100%; 
        height:100%;
        background-size: cover;
        background-position: center;
        transition: opacity 0.5s ease-in-out; /* fade effect */
        z-index: 1;
    }

    .custom-bg__layer--top {
        opacity: 0;
    }

    .custom-bg__content {
        background-color: white;
        border-radius: 20px;
        padding: 12px;
        padding-right: 4.15vw;
        display: flex;
        align-items: center;
        gap: 32px;
        z-index:2;

        .custom-bg__content__img {
            width: 20vw;
            height: 20vw;
            border-radius: 16px;
        }

        .custom-bg__content__title {
            font-size: var(--h1-size);
            line-height: 100%;
            margin-bottom: 32px;
        }

        .custom-bg__content__num {
            font-size: var(--h3-size);
        }

        .custom-bg__content__colors {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            padding-top: 40px;
            max-width: 508px;

            .custom-bg__content__colors__item {
                content: "";
                width: 40px;
                height: 40px;
                border-radius: 20px;
                transition: all 0.3s ease-in-out;
                border: 6px solid transparent;

                &:hover {
                    border-color: #D5D5D0;
                }
            }
        }
    }
}

/* halfpeek */
.halfpeek-swiper {
    padding-bottom: 64px !important;

    .swiper-slide {
        width: 60%; /* szerokość środkowego slajdu w procentach */
        opacity: 1;
        transition: all 0.3s;
        
        img {
            width: 100%;
            display: block;
            border-radius: 14px;
        }
    }
    
    .swiper-pagination {
        justify-content: center;
    
        .swiper-pagination-bullet {
            width: 32px;
            height: 32px;
            border-radius: 32px;
            border: 1px solid transparent;
            background-color: transparent;
            position: relative;
            opacity: 1 !important;

            &::after {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                content: "";
                width: 8px;
                height: 8px;
                border-radius: 16px;
                background-color: #1e1e1e;
            }
        
            &.swiper-pagination-bullet-active {
                border-color: #1E1E1E;
            }
        }
    }

}


.contact-map {
    path {
        transition: all 0.3s ease-in-out;
        cursor: pointer;

        &:hover {
            fill: #6d7972;
            cursor: pointer;
        }
    }
}

/* map-pl */
#map-pl {
    width: 560px;
    height: 560px;
    border-radius: 32px;
    filter: grayscale(1);
    margin-bottom: 40px;

    path {
        transition: all 0.3s ease-in-out;
        cursor: pointer;

        &:hover {
            stroke-width: 3;
        }
    }
    
}

#MapaHurtowni {
    cursor: pointer;
}

.map-shortcode.map--active {
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
}

.employee {
    display: flex;
    align-items: flex-end;
    gap: 2vw;
    padding-bottom: 3vw;

    .employee__img {
        img {
            width: 11vw;
            height: 100%;
            object-fit: cover;
            -webkit-mask-image: url("./assets/images/shape.png");
            -webkit-mask-repeat: no-repeat;
            -webkit-mask-size: contain;
            -webkit-mask-position: center;
            mask-image: url("./assets/images/shape.png");
            mask-repeat: no-repeat;
            mask-size: contain;
            mask-position: left;
        }
    }

    .employee__img--seller {
        img {
            width: 11vw;
            height: 100%;
            object-fit: cover;
        }
    }

    .employee__info {
        .employee__info__name {
            font-size: var(--h3-size);
            max-width: 20vw;
        }

        .employee__info__name-seller {
            font-size: var(--h4-size);
            width: 30vw;
            margin-bottom: 24px;
        }

        .employee__info__position {
            font-size: var(--h6-size);
            color: var(--bricks-color-vugxfu);
            padding-top: 8px;
            padding-bottom: 16px;
            max-width: 22vw;
        }
    
        .employee__info__contact {
            display: flex;
            align-items: center;
            column-gap: 12px;
            row-gap: 12px;
            padding-bottom: 8px;

            svg {
                width: 40px;
                height: 40px;
            }

            a {
                text-decoration: underline;
            }

        }
    }
}

.lightbox {
    height: 100% !important;
    top: 0 !important;
    position: fixed !important;

    .lb-outerContainer {
        /* width: 95% !important;
        height: calc(100vh - 60px) !important; */
        width: 100% !important;
        height: 100vh !important;

        img {
            width: 100% !important;
            /* height: calc(100vh - 60px) !important; */
            height: 100vh !important;
            object-fit: cover !important;
        }
    }

    .lb-dataContainer {
        position: absolute;
        top: 24px;

        .lb-data {

            .lb-details {
                margin-top: 16px;
            }
            
            .lb-caption,
            .lb-close {
                background-color: #0E1011;
                color: white;
                border-radius: 40px;
                padding: 19px;
            }
            
            .lb-number {
                display: none !important; 
            }      
            
            .lb-caption {
                margin-left: 24px;
                margin-top: 16px;
            }

            .lb-close {
                margin-right: 24px;
                width: 56px;
                height: 56px;
                padding: 0;
                background-position: 50% 47%;
                background-size: 20px;
                opacity: 1;
                z-index: 1000;
                position: relative;
            }

        }
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1601px) {
    .floating-img {
        margin-left: 8vw !important;
    }
}

@media only screen and (max-width: 1370px) {
    .my-gallery-grid {
        gap: 12px;

        .my-gallery-grid__image {
            .my-gallery-grid__image__caption {
                font-size: 14px;
                padding-left: 8px;
                padding-right: 8px;
            }
        }
    }

}

@media only screen and (max-width: 1100px) {
    .my-gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .technologies-list {
        gap: 20px;

        li {
            gap: 12px;
        }

        p {
            font-size: 16px;
            
            span {
                font-weight: 600;
            }
        }
    }

    .custom-bg {
        & .custom-bg__content {
            padding: 16px;
            flex-direction: column;
            align-items: flex-start;

            .custom-bg__content__img {
                width: 100%;
                height: 100%;
                max-width: 265px;
            }

            .custom-bg__content__title {
                margin-bottom: 16px;
            }

            .custom-bg__content__colors {
                max-width: 265px;
            }
        }
    }
        
    .halfpeek-swiper {
        
        .swiper-wrapper {
            left: 24px;
        }

        .swiper-slide {
            width: 70%;
        }
    }

    .employee {
        gap: 32px;

        .employee__img,
        .employee__img--seller {
            img {
                width: 24vw;
            }
        }

        .employee__info {
            .employee__info__name,
            .employee__info__name-seller {
                max-width: 100%;
            }

            .employee__info__name-seller {
                width: 100%;    
            }

            .employee__info__position {
                max-width: 100%;
            }
    
        }
    }

}

@media only screen and (max-width: 991px) {
    .fabrics-block {
        grid-template-columns: 1fr 1fr;
    }
}


@media only screen and (max-width: 576px) {
    .my-gallery-grid {
        grid-template-columns: repeat(3, 1fr);

        .my-gallery-grid__image {
            .my-gallery-grid__image__caption {
                font-size: 12px;
            }
        }
    }

    .fabrics-block {
        grid-template-columns: 1fr;
    }

    .technologies-list {
        gap: 16px;

        li {
            gap: 12px;

            svg {
                width: 40px;
                height: 40px;
            }
        }

    }

    .custom-bg {
        .custom-bg__content {
            flex-direction: column;
        }
    }

    .halfpeek-swiper {
        
        .swiper-wrapper {
            left: 12px;
        }

        .swiper-slide {
            width: 320px;
        }
    }

    #map-pl {
        width: 290px;
        height: 290px;
        border-radius: 16px;
        margin-bottom: 32px !important;
    }

    .employee {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;

        .employee__img,
        .employee__img--seller {
            img {
                width: 160px;
            }
        }

        .employee__info {
            .employee__info__name {
                max-width: 100%;
                font-size: 22px;
            }

            .employee__info__position {
                max-width: 100%;
                font-size: 16px;
                padding-top: 4px;
            }
    
        }
    }

    .lightbox {

        .lb-dataContainer {
            top: 16px;

            .lb-data {

                .lb-details {
                    margin-top: 16px;
                }
                 
                .lb-caption {
                    margin-left: 16px;
                    margin-top: 16px;
                }

                .lb-close {
                    margin-right: 16px;
                    top: -36px;
                }

            }
        }
    }

}

@keyframes float {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-20px);
	}
	100% {
		transform: translateY(0);
	}
}