/**
 * Theme Name: Sweets Child
 * Template: sweets
 *
 * Description: Дочерняя тема для темы sweets
 */

@import url('../sweets/style.css');

:root {
    --color-braun: #C28C74;
    --color-braun-dark: #99635C;
    --color-beige: #F6EBE6;
    --color-beige-light: #FCF7F6;
}


@font-face {
    font-family: 'Montserrat' !important;
    src: url('assets/fonts/Montserrat-Regular.ttf');
    font-weight: 400;
}
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat-Medium.ttf');
    font-weight: 500;
}
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat-SemiBold.ttf');
    font-weight: 600;
}
@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/Montserrat-Bold.ttf');
    font-weight: 700;
}


body {
    font-family: "Montserrat";
    font-size: 15px;
    background-color: #fff;
}
a {
    font-family: "Montserrat" !important;
    text-decoration: none;
}
p {
    font-family: "Montserrat";
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat";
}

.wrap {
    max-width: 1300px !important;
    width: 100% !important;
    padding: 0 15px;
}

.brands-categories__item > .bg {
    height: 100%;
}
.brands-categories__item::after {
    background: none;
}
#home {
    min-height: 1px;
}
#home > .wrap > aside {
    padding-top: 0;
}
#home .brand-logo {
    height: 80px;
}
#home > .wrap > aside, .page-intro > .wrap > aside {
    max-width: 250px;
}
.brands-categories__item > .box {
    width: 100% !important;
    height: auto !important;
    background-color: var(--color-braun);
    left: 0 !important;
    bottom: 70px !important;
}
.brands-categories__item .more-button {
    display: none;
}
/*.brands-categories .swiper-button-prev, .brands-categories .swiper-button-next {*/
/*    color: var(--color-braun) !important;*/
/*}*/
#home .brand-logo > img {
    width: auto !important;
}
#home::before, .page-intro::before  {
    width: calc(50% - 290px);
    background-color: var(--color-beige);
}
#home .logo, .page-intro .logo {
    max-width: 180px;
    margin-top: 150px;
    margin-bottom: 165px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
}
.page-title {
    font-family: 'Montserrat';
    font-size: 24px;
    font-weight: 600;
    color: var(--color-braun-dark);
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    display: block;
}

.site-header {
    margin: 30px 0 !important;
}
.page-intro > .wrap > aside {
    width: 28%;
    margin-right: 30px;
}
.page-intro .site-header {
    max-width: 100%;
    justify-content: flex-end;
}
.page-intro-banner {
    img {
        width: 100%;
        height: auto;
    }
}
.page-intro > .wrap {
    height: auto;
    min-height: 1px;
}
.page-intro > .wrap > aside > .row:nth-child(2) {
    padding-bottom: 0;
    margin-bottom: 50px;
}
.site-header__menu a {
    font-size: 15px;
    font-weight: 500;
    color: #000;
}
.lang-choose > a, .lang-choose > span {
    font-size: 18px;
    margin-left: 5px;
}
.site-header__menu {
    align-items: center;
}
.site-header__menu > li {
    margin: 0 20px 0 0;
}
.site-header__menu > li:last-child {
    margin-right: 0;
}
.site-header__menu {
    margin: 0;
}
.section {
    padding-bottom: 100px;
}
.section-title {
    font-size: 38px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    color: var(--color-braun);
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-title::before {
    content: '';
    display: block;
    width: 50%;
    height: 1px;
    background-color: var(--color-braun);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
}
.section-title-row {
    display: flex;
    justify-content: center;
}
.section-row {
    display: flex;
    justify-content: space-between;
}

.section-row-item {
    width: 47%;
}

.section-image {
    max-width: 600px;
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-braun);
    aspect-ratio: 1/1;
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
.brands-list {
    margin: 0;
}
.brand-subtitle {
    font-weight: 700;
    margin-bottom: 15px;
}
.page-intro--products::after {
    display: none;
}
.product-types-nav {
    max-width: 100%;
    ul {
        justify-content: center;
    }
}
.product-types-nav  {
    display: flex;
    justify-content: center;
    padding-top: 0;
    ul {
        width: 90%;
        padding-top: 0;
    }
    li {
        padding: 0 !important;
        margin-right: 10px;
    }
   a {
       font-size: 13px;
   }
}
.product-types-nav li:not(:last-child)::after {
    margin: 0 0 0 10px !important;
}
.product-item-links  {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 50px;
   a {
       max-width: 100px;
       display: block;
       margin-right: 25px;
       display: flex;
       align-items: center;
   }
}
.hover-animation {
    transition: 0.5s;
    transform: translateY(0);
}

.hover-animation:hover {
    transform: translateY(-5px);
    transition: 0.5s;
}
.product-item:nth-child(2n) {
    background-color: var(--color-beige-light);
}
.product-item {
    padding-top: 100px;
    padding-bottom: 100px;
}
.product-item:nth-child(2n) .section-row {
    flex-direction: row-reverse;
}
.product-item img.brand-logo-bonday {
    max-width: 70px;
}
img.brand-logo-mimi {
    transform: translateY(-5px);
}
.product-item#cakes .product-item-links a {
    max-width: 80px;
}
#about-quality::before {
    top: 0;
}
#about-quality figure > .box::before {
    display: none;
}
#about-quality figure > .box {
    background-color: transparent;
    padding: 0;
    margin: 0;
    display: block;
}
#about-quality figure > .box img {
    max-width: 375px;
    width: 100%;
}
#about-quality .column:first-child {
    height: auto;
}
.benefits-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    img {
        width: 100px;
    }
}

.footer {
    background-color: var(--color-braun);
    padding: 100px 0;
    color: #fff;
    a {
        color: #fff;
        text-decoration: none;
    }

}
.footer-row {
    display: flex;
    justify-content: space-between;
}

.footer-item-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
}

.footer-item {
    padding: 15px 20px;
}

.footer-item.menu-item a:hover {
    text-decoration: underline;
}


.footer-item:first-child {
    padding-left: 0;
}

.footer-item:last-child {
    padding-right: 0;
}


.footer-separator {
    height: 100%;
    width: 1px;
    background-color: #F6EBE6;

}

.footer {

    .catalog-item-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        .item {
            background-color: #F6EBE6;
            color: var(--color-braun);
            font-size: 14px;
            font-weight: 500;
            padding: 15px 15px 15px 40px;
            position: relative;
        }

        .item::before {
            content: '';
            display: block;
            width: 15px;
            height: 15px;
            background-image: url('assets/img/download.svg');
            background-size: cover;
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
        }

    }

    li,
    .contacts-row {
        max-width: 300px;
        margin-bottom: 15px;
    }
    .contacts-row.phone {
        font-weight: 600;
    }
}

.modal__bg {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    display: none;
}

.modal {
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    background-color: #fff;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 50px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 90;
    display: none;
}

.modal.active,
.modal__bg.active {
    display: block;
}

.modal-body {
    width: 100%;
    height: 100%;
    padding: 30px;
    position: relative;
}

.modal-title {
    font-size: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
}

.modal-body {
    padding-top: 45px;
}

.modal-title {
    margin-bottom: 5px;
    color: var(--color-braun);
    font-weight: 700;
    text-transform: uppercase;
}

.modal-subtitle {
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
}

.modal {
    background-color: #f6ebe6;

    label {
        display: block;
        font-size: 14px;
        margin-bottom: 3px;
        .required {
            position: relative;
        }
        .required::after {
            content: '*';
            display: block;
            color: red;
            position: absolute;
            top: 0;
            right: -10px;
        }
    }

    .btn-row {
        display: flex;
        justify-content: center;
        margin-top: 35px;
    }
}

body.show-modal {
    overflow: hidden;
}

.close {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.close .inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.close .inner::before,
.close .inner::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #000;
    position: absolute;
    top: 50%;
    left: 0;
}

.close .inner::before {
    -webkit-transform: translateY(-50%) rotate(45deg);
    -ms-transform: translateY(-50%) rotate(45deg);
    transform: translateY(-50%) rotate(45deg);
}

.close .inner::after {
    -webkit-transform: translateY(-50%) rotate(-45deg);
    -ms-transform: translateY(-50%) rotate(-45deg);
    transform: translateY(-50%) rotate(-45deg);
}

input:not([type=checkbox], [type=radio]),
input:not([type=checkbox], [type=radio]):focus,
textarea,
textarea:focus,
select,
select:focus {
    outline: none !important;
    -webkit-appearance: none;
}

.form-group {
    margin-bottom: 15px;
}

input:not([type="submit"]),
textarea {
    width: 100%;
    background-color: #fff;
    padding: 15px 15px;
    border: 1px solid transparent;
}

input:not([type="submit"]):focus,
textarea:focus {
    border: 1px solid var(--color-braun);
}

input[type="submit"] {
    width: 235px;
    line-height: 45px;
    background-color: var(--color-braun);
    border: none;
    color: #fff;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}
input[type="submit"]:hover {
    background-color: #884E46;
}

.animation__element {
    opacity: 0;
}
.animation__element.animation {
    -webkit-transition: 0.5s;
    transition: 1.2s;
    opacity: 1;
}

.mobile-wrap {
    max-width: 450px;
    width: 100%;
    height: 100vh;
    background-color: blue;
    -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    -webkit-transition: 0.3s;
    transition: 0.3s;
    position: fixed;
    top: 0;
    right: -100vw;
    z-index: 70;
}

.mobile-wrap.active {
    right: 0;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.mobile-body {
    width: 100%;
    height: 100%;
    padding: 70px 15px 30px 30px;
    position: relative;
}

.mobile-body .close {
    position: absolute;
    top: 25px;
    right: 25px;
}

.mobile-body .close .inner::before,
.mobile-body .close .inner::after {
    background-color: #fff;
}

.mobile-wrap {
    background-color: var(--color-beige);
}
.mobile-nav .menu  {
    a {
        color: var(--color-braun);
        font-weight: 500;
    }

    li {
        margin-bottom: 35px;
    }
    li.current-menu-item a {
        text-decoration: underline;
    }
}

.mobile-body .close .inner::before,
.mobile-body .close .inner::after {
    background-color: var(--color-braun);
}
.brands-slide {
    background-size: cover !important;
}
.mobile-wrap .lang-choose {
    margin-left: 0;
}
.mobile-page-title {
    font-size: 45px;
    font-weight: 700;
    text-align: center;
    color: var(--color-braun);
    text-transform: uppercase;
    margin-bottom: 50px;
    display: none;
}
.section:first-child, .product-item:first-child {
    padding-top: 0;
}
.contacts-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px
}

.contact-item {
    .item__title {
        font-size: 20px;
        font-weight: 500;
        margin-bottom: 10px;
        color: var(--color-braun);
    }
    .item__row {
        a {
            color: grey;
        }
    }
    .contact-element {
        margin-bottom: 10px;
        display: block;
    }
    .contact-element.cname {
        margin-top: 20px;
    }
}
form br {
    display: none;
}
.wpcf7-not-valid-tip, .wpcf7-response-output {
    font-size: 13px;
}
.lang-switcher-mobile {
    display: none;
}

.prod-menu .product-types-nav ul {
    flex-wrap: wrap;
}
.prod-menu .product-types-nav ul li {
    display: block;
    position: relative;
    padding: 7px 10px;
}
.product-types-nav li:not(:first-child):before {
    display: none;
}
.product-types-nav li:not(:last-child):after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 1px;
    height: 16px;
    background: #f2dbd0;
    margin: 0 0 0 20px;
}
.page-intro--products .prod-slider .page-intro-slider {
    width: 885px;
    position: relative;
}
.wpcf7 .brands-group input[type="checkbox"] {
    width: auto;
}
.wpcf7 .brands-group .wpcf7-list-item {
    display: block;
}
.wpcf7 .brands-group .wpcf7-list-item-label {
    font-size: 13px;
}





/* Adaptive */
@media (max-width: 1239px){
    .wrap {
        margin: 0 auto;
    }
    .page-intro .site-header {
        position: static;
    }
    .page-intro {
        background-color: transparent;
    }
    .page-intro::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: calc(50% - 290px);
        height: 100%;
        background-color: var(--color-beige);
        z-index: 0;
    }
    .page-intro .site-header__menu a {
        color: #000;
    }
    .prod-menu {
        display: none;
    }
    .page-intro::before {
        width: 30%;
    }
    .page-intro .site-header {
        width: 100%;
    }
    .footer-separator {
        display: none;
    }
}
@media (max-width: 1119px){
    #home > .wrap > aside, .page-intro > .wrap > aside {
        max-width: 100%;
        width: 100%;
        margin-bottom: 25px;
    }
    #home > .wrap > aside, .header-logo {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #home > .wrap > aside .logo, .page-intro .logo {
        margin: 0 !important;
    }
    body, p {
        font-size: 14px;
    }
    #home {
        background-color: transparent;
    }
    #home::before, .page-intro::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--color-beige);
        z-index: 0;
    }
    .page-intro .wrap {
        display: block;
    }
    .page-title {
        display: none;
    }
    .mobile-page-title {
        display: block;
    }

    #home .logo, .page-intro .logo {
        max-width: 75px;
        img {
            width: 100%;
        }
    }
    .page-intro .header-logo {
        padding-top: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .burger {
        display: block !important;
    }
    .page-intro .site-header {
        display: none;
    }
    .brands-categories {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0;
    }
    .product-item {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .section-title {
        font-size: 25px;
    }
    .section-row {
        display: block;
    }
    .section-row-item {
        width: 100%;
    }
    .section-image {
        max-width: 600px;
        margin: 0 auto;
    }
    .product-item-links {
        margin-bottom: 25px;
    }
    .lang-switcher-mobile {
        display: block;
    }
    .lang-switcher-mobile .lang-choose {
        margin-left: 0;
    }
}

@media (max-width: 960px){
    .page-intro .wrap {
        padding: 0;
    }
    .page-intro > .wrap > aside {
        max-width: 100%;
        width: 100%;
    }
    .page-intro .header-logo {
        padding: 15px 15px 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #home .logo, .page-intro .logo, .page-intro > .wrap > aside > .row:nth-child(2) {
        margin-bottom: 0;
    }
    .page-intro > .wrap > aside > .row:first-child {
        margin: 15px 0;
        padding: 0 15px;
    }
    .page-intro .logo {
        max-width: 75px;
        img {
            width: 100%;
        }
    }
    .breadcrumbs {
        margin: 35px 0;
    }
    .footer {
        padding-top: 170px;
        position: relative;
        .wrap {
            position: static;
        }
    }
    .footer-item.logo-item {
        padding: 0;
        position: absolute;
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
    }
    .benefits-list > li {
        min-height: 1px;
    }
    .high-demands {
        display: flex;
        flex-direction: column-reverse;
    }
    .contacts-list {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 800px){
    .footer {
        padding-bottom: 20px;
    }
    .footer-row {
        display: block;
    }
    .footer-item {
        padding: 0;
        margin-bottom: 35px;
    }
    #home .brand-logo {
        height: 50px;
        img {
            width: auto;
            height: 75%;
        }
    }
}

@media (max-width: 500px){
    .mobile-page-title {
        font-size: 35px;
    }
    .benefits-list .icon {
        width: 50px;
        height: 50px;
    }
    .contacts-list {
        grid-template-columns: 1fr;
    }
}







