/*!
Theme Name: artizan
Theme URI: http://underscores.me/
Author: Evgenii
Author URI: http://Evgenii
Description: тема для сайту artizan
Version: 1.0.0
Tested up to: 8.2
Requires PHP: 5.6
*/

* {
    box-sizing: border-box;
}

:root {
    --text: #2f2f2f;
    --gray: #2f2f2f78;
    --black: #000;
    --white: #fff;
    --accent-color: #e42524;
    --blue: rgb(68, 97, 171);
    --dark-blue: #243560;

    --transparent-black: rgba(0, 0, 0, 0.7);

    --font-family-main: 'Rubik', sans-serif;
    --font-size: 14px;
    --line-height: normal;
    --font-weight: 400;
    --header-menu-font-size: 14px;
    --button-font-size: 14px;

    --h1-font-size: 36px;

    --container-width: 1267px;
}

body {
    margin: 0;
    padding: 0;
    opacity: 1;
    font-family: var(--font-family-main);
    font-size: var(--font-size);
    font-weight: var(--font-weight);
}

.container {
    width: 1267px;
    margin: 0 auto;
}

iframe {
    max-width: 100%;
}

.post-thumbnail img {
    width: 100%;
}

form.default_form {
    display: flex;
    flex-direction: column;
}

label {
    position: relative;
    display: flex;
    flex-direction: column;
}

input:not([type='radio'], [type='checkbox']) {
    width: 100%;
    padding: 0;
    display: inline-block;
    box-sizing: border-box;
    font-family: var(--font-family-main);
    color: var(--text);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    height: 53px;
    border: none;
    border-bottom: 1px solid rgba(47, 47, 47, 0.32);
    background: rgb(255, 255, 255);

    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.double-line p {
    display: flex;
    align-items: center;
    gap: 36px;
}

.double-line label {
    width: 50%;
}

label.has-error input:not([type='radio'], [type='checkbox']) {
    border: 1px dashed var(--accent-color);
}

input[type='radio'],
input[type='checkbox'] {
    accent-color: var(--accent-color);
}

input[type='checkbox'] {
    width: 20px;
    height: 20px;

    border: 1px solid var(--accent-color);
    border-radius: 3px;

    -webkit-appearance: none;
    appearance: none;
    margin: 0 30px 0 0;
    flex: 0 0 auto;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
}
input[type='checkbox']:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Pro';
    font-weight: var(--font-weight);
    background-color: transparent;
    color: var(--accent-color);
    font-size: var(--font-size);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -2px;
    top: -2px;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-color);
    border-radius: 3px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-sizing: border-box;
    transition: 120ms transform ease-in-out;
}
input[type='checkbox']:checked:before {
    transform: scale(1);
}

textarea {
    width: 100%;
    color: var(--text);
    font-family: var(--font-family-main);
    outline: none !important;
    font-weight: var(--font-weight);
    font-size: var(--font-size);
    padding: 17px 0;
    height: 140px;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid rgba(47, 47, 47, 0.32);
    background: rgb(255, 255, 255);
}

input::-webkit-input-placeholder {
    font-family: var(--font-family-main);
    color: var(--text);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
}
input::-moz-placeholder {
    font-family: var(--font-family-main);
    color: var(--text);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
}
input:-ms-input-placeholder {
    font-family: var(--font-family-main);
    color: var(--text);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
}
input:-moz-placeholder {
    font-family: var(--font-family-main);
    color: var(--text) !important;
    font-weight: var(--font-weight);
    font-size: var(--font-size);
}

textarea::placeholder {
    /* Modern browsers */
    font-family: var(--font-family-main);
    color: var(--text);
    font-weight: var(--font-weight);
    font-size: var(--font-size);
}

label.has-error input:not(:focus) {
    color: transparent;
}

label.has-error input::-webkit-input-placeholder {
    color: transparent;
}

.result {
    font-weight: var(--font-weight);
    color: var(--accent-color);
}

.help-block.form-error {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size);
    color: var(--red);
}

.wpcf7-not-valid-tip {
    font-size: 10px;
    position: absolute;
    right: 5px;
    top: 50%;

    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 73px;
}

/* ===============================Style================================ */
header#masthead header {
    width: 1267px;
    max-width: 100%;
    position: fixed;
    top: 30px;
    margin: 0 auto;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 9999;
    overflow: visible;

    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
header#masthead header.active {
    width: 100%;
    background-color: var(--white);
    top: 0;
    left: 0;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}
.hfe-flyout-content.push {
    overflow: visible;
    height: 100vh;
}
form.wpcf7-form {
    width: 100%;
}
body .wpcf7 form .wpcf7-response-output {
    border-radius: 12px;
    margin: 15px 0 0 0;
}
form.wpcf7-form h1,
form.wpcf7-form h2,
form.wpcf7-form h3 {
    color: var(--black);
}

.elementor-image-box-wrapper {
    height: 100%;
    border-radius: 12px;
    border: 1px solid rgba(68, 97, 171, 0.19);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.elementor-image-box-wrapper figure,
.elementor-image-box-wrapper figure img {
    width: 100%;
}
.elementor-image-box-content {
    padding: 17px 30px 34px;
}
body:not(.home) .elementor-image-box-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
body:not(.home) .elementor-image-box-title {
    padding: 17px 30px 0;
}
body .elementor-image-box-title a {
    font-size: 16px;
}
body:not(.home) p.elementor-image-box-description {
    padding: 0 30px 34px;
}
body:not(.home) .elementor-image-box-content p:not(.elementor-image-box-description) {
    display: none;
}
.hfe-breadcrumbs,
.hfe-breadcrumbs a {
    color: rgba(47, 47, 47, 0.47);
    font-family: var(--font-family-main);
}
.hfe-breadcrumbs a:hover {
    text-decoration: underline;
}
.button-link {
    margin-top: auto;
}
.button-link a {
    padding: 17px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 19px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--blue);
    border-radius: 0px 0px 12px 12px;
    border-bottom: 5px solid var(--dark-blue);

    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
.button-link a:hover {
    border-bottom: 5px solid transparent;
}

.elementor-widget-n-accordion .e-n-accordion .e-n-accordion-item-title {
    justify-content: space-between;
}
.elementor-widget-n-accordion .e-n-accordion .e-child p {
    font-size: var(--font-size);
    font-weight: var(--font-weight);
}
.projects .elementor-widget-image-box .elementor-image-box-wrapper {
    border: none;
}
.projects .elementor-widget-image-box {
    border-radius: 12px;
    overflow: hidden;
}

.projects .elementor-widget-image-box .elementor-image-box-img:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;

    background: linear-gradient(0deg, rgb(0, 0, 0), rgba(102, 102, 102, 0) 100%);
    pointer-events: none;
}

.projects .elementor-widget-image-box .elementor-image-box-content {
    position: absolute;
    bottom: 30px;
    justify-content: flex-end;
    pointer-events: none;
}

.projects .elementor-widget-image-box .elementor-image-box-title a {
    font-size: 16px;
    line-height: 19px;
    font-weight: 500;
}

.flexslider .flex-direction-nav {
    display: flex;
    top: 50%;
    position: absolute;
    width: 100%;
    top: 200px;
}

.elementor-image-gallery .gallery {
    display: grid;
    width: 100%;
    gap: 30px;
    grid-template-columns: repeat(4, 1fr);
}

.elementor-image-gallery .gallery .gallery-item {
    padding: 0 !important;
    max-width: 100% !important;
}
.elementor-image-gallery .gallery .gallery-item img {
    object-fit: cover;
    width: 100%;
    height: 220px;
}

body.parent-pageid-44 .metaslider .flexslider .flex-direction-nav .flex-prev {
    background: transparent
        url(https://www.artizan.com.ua/wp-content/uploads/2025/05/arrow_left.png) 0 0 no-repeat;
}
body.parent-pageid-44 .metaslider .flexslider .flex-direction-nav .flex-next {
    background: transparent
        url(https://www.artizan.com.ua/wp-content/uploads/2025/05/arrow_right.png) 0 0 no-repeat;
}

body .elementor-element.elementor-widget-hfe-breadcrumbs-widget ul.hfe-breadcrumbs {
    padding-left: 10px;
}

.hfe-breadcrumbs-home-icon {
    display: none;
}

body .metaslider.has-thumbs-responsive,
body .metaslider.has-thumbs-responsive * {
    border-radius: 12px;
    gap: 19.4px;
}

body .metaslider.has-thumbs-responsive ol.flex-control-thumbs {
    margin-top: 18px !important;
}

body .metaslider.has-thumbs-responsive .flex-control-thumbs li {
    padding: 0;
}

ul.sub-menu li a {
    font-size: 12px !important;
    line-height: 18px !important;
    padding: 10px 0 10px 10px !important;
}

.page-header {
    height: 393px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-sizing: border-box;

    padding-bottom: 95px;
}

.page-header h1.page-title {
    color: var(--white);
    font-size: var(--h1-font-size);
    line-height: 49px;
    font-weight: 600;
    position: relative;
}

.page-header h1.page-title:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -30px;
    width: 92px;
    height: 3px;
    background-color: var(--blue);

    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

.breadcrumbs {
    margin: 40px 0;
    font-weight: 400;
    font-size: 14px;
    color: rgba(47, 47, 47, 0.47);
}

.breadcrumbs a {
    font-size: 14px;
    font-weight: 600;
    color: rgba(47, 47, 47, 0.47);
    text-decoration: none;
}

.breadcrumbs .delimiter {
    margin: 0 7px;
}

.products-wrap {
    padding-bottom: 80px;
}

a.product-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.product-item-img {
    border-radius: 12px;
    overflow: hidden;
    height: 196px;
}

.product-item-img img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

h2.product-title {
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    color: var(--text);
    margin: 20px 0;
}

.product-info {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.product-info-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--blue);
}

.product-details-link {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 600;
}

@media screen and (min-width: 1024px) {
    header li.product-menu {
        overflow: hidden !important;

        -webkit-transition: overflow 0.5s ease;
        -moz-transition: overflow 0.5s ease;
        -o-transition: overflow 0.5s ease;
        transition: overflow 0.5s ease;
    }
    header li.product-menu:hover {
        overflow: visible !important;
    }
    header li.product-menu > ul.sub-menu {
        min-width: 440px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        padding: 16px 0 0;
        gap: 0;
        background-color: transparent !important;
        top: 100% !important;
    }

    header li.product-menu ul.sub-menu > li {
        background-color: rgba(255, 255, 255, 0.8) !important;
        border: none !important;
        display: flex;
        flex-direction: column;
        padding: 10px 15px;
    }
    body.fixed-header header li.product-menu > ul.sub-menu > li {
        background-color: var(--white) !important;
    }
    header li.product-menu ul.sub-menu > li > .hfe-has-submenu-container > a {
        font-size: 14px !important;
        font-weight: 500 !important;
        color: var(--text);
        padding: 5px 0 !important;
    }
    header li.product-menu ul.sub-menu .sub-arrow {
        display: none;
    }

    header li.product-menu ul.sub-menu ul.sub-menu {
        visibility: visible;
        opacity: 1;
        position: static;
        padding: 0;
        display: flex;
        flex-direction: column;
        background-color: transparent !important;
        box-shadow: none;
    }
    header li.product-menu ul.sub-menu ul.sub-menu li {
        background-color: transparent !important;
        padding: 0;
    }
    header li.product-menu ul.sub-menu ul.sub-menu a {
        color: var(--black);
        font-size: 12px;
        padding: 5px 0 !important;
    }

    header li.product-menu ul.sub-menu > li {
        width: 100%;
    }
}

@media screen and (max-width: 1297px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}
@media screen and (max-width: 992px) {
    .grid-4 {
        gap: 38px;
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 768px) {
    .elementor-image-gallery .gallery {
        gap: 30px;
        grid-template-columns: repeat(2, 1fr);
    }
    .elementor-image-gallery .gallery .gallery-item {
        padding: 0 !important;
        max-width: 100% !important;
    }
    body .elementor-widget-icon-box.elementor-position-left .elementor-icon-box-icon {
        display: flex;
        align-items: center;
    }
    body .elementor-element.elementor-widget-hfe-breadcrumbs-widget ul.hfe-breadcrumbs {
        padding-left: 15px;
    }
}
@media screen and (max-width: 580px) {
    .grid-4 {
        gap: 38px;
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 480px) {
    .grid-4 {
        gap: 30px;
        grid-template-columns: repeat(1, 1fr);
    }
    .wpcf7-not-valid-tip {
        top: inherit;
        transform: none;
        right: inherit;
        left: 0;
    }
    /* video {
        object-fit: cover;
        height: 100%;
    }
    .e-hosted-video.elementor-wrapper {
        --video-aspect-ratio: 0.5 !important;
    } */
    .double-line p {
        flex-direction: column;
        gap: 20px;
    }
    .double-line label {
        width: 100%;
    }
    body .elementor-shortcode .metaslider .flexslider .flex-direction-nav .flex-prev,
    body .elementor-shortcode .metaslider .flexslider .flex-direction-nav .flex-next {
        width: 30px;
        height: 30px;
        background-size: contain;
        right: 20px;
    }
    body .elementor-shortcode .metaslider .flexslider .flex-direction-nav .flex-prev {
        left: 20px;
        right: inherit;
    }
    body .elementor-shortcode .metaslider .flex-control-thumbs li {
        max-width: inherit !important;
        min-width: inherit !important;
        flex: 1 0 20%;
    }
    body .elementor-shortcode .flexslider .flex-direction-nav {
        top: 140px;
    }
    .elementor-image-gallery .gallery {
        gap: 20px;
        grid-template-columns: repeat(1, 1fr);
    }
    body .metaslider.has-thumbs-responsive,
    body .metaslider.has-thumbs-responsive * {
        gap: 15px;
        margin-bottom: 10px;
    }
}
@media screen and (max-width: 420px) {
    /* .flexslider .flex-direction-nav {
        -webkit-transform: translateY(-60px);
        transform: translateY(-60px);
    } */
}
/* ===============================Style end================================ */
