/* ================= flex ===================== */

._flex {
    display: flex;
}

.--al-it-center {
    align-items: center;
}

.--just-center {
    justify-content: center;
}

.--just-beet {
    justify-content: space-between;
}

.--just-end {
    justify-content: flex-end;
}

.--just-around {
    justify-content: space-around;
}

.--al-it-start {
    align-items: flex-start;
}

.--al-it-end {
    align-items: flex-end;
}

.--al-it-str {
    align-items: stretch;
}

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

.--al-it-start {
    align-items: flex-start;
}

/* ============================ */

@media (max-width: 1200px) {
    h2.--mobile {
        display: block;
    }

    h2.--desktop {
        display: none;
    }
}


/* +++++++++++++++ nav +++++++++++++++++ */

._aside ._nav a {
    display: inline-block;
}

header ._nav {
    margin-left: -1em;
}

header ._nav li {
    padding: 1em;
    display: inline-block;
}

._nav a,
._contacts a {
    display: inline-block;
    transition: .3s;
    position: relative;
    color: black;
}

._nav {
    margin-left: 2em;
}

._nav a::after,
._contacts a::after {
    content: "";
    background-color: var(--green-color);
    opacity: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    top: calc(50% - 6px);
    left: -20px;
    transition: .3s;
}

._nav a:hover::after,
._contacts a:hover::after,
._nav li.current_page_item a::after  {
    opacity: 1;
}

/* ++++++++++++++++++ button +++++++++++++++++++ */

button {
    cursor: pointer;
}

._btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: .3s;
    padding: 1.1em;
    text-align: center;
    background-color: var(--grey-color);
    color: var(--white-color);
    border: 0;
    border-radius: 10em;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 1em;
    cursor: pointer;
    overflow: hidden;
    flex-wrap: nowrap;
}

._btn.--simple {
    width: 14em;
}

._btn.--simple:hover {
    background-color: var(--light-grey-color);
    color: black;
}

._btn.--iconic {
    justify-content: center;
    background-color: var(--green-color);
    width: 16em;
}

._btn.--iconic::before {
    content: "";
    border-radius: 10em;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background-color: var(--white-color);
    opacity: .2;
    transition: .3s cubic-bezier(0.39, 0.575, 0.565, 1);
}

._btn.--iconic.--white::before {
    background-color: var(--green-color);
}

._btn.--iconic:hover::before {
    width: 100%;
}

._btn.--iconic.--white {
    background-color: var(--white-color);
    color: var(--green-color);
}

._btn.--iconic img {
    position: absolute;
    left: .5em;
    width: 2.2em;
    height: 2.2em;
    transition: .4s;
}

._btn.--iconic:hover img {
    position: absolute;
    left: calc(100% - 2.7em);
}

._btn.--iconic span {
    margin-left: 2em;
    transition: .4s;
}

._btn.--iconic:hover span {
    margin-left: -2em;
}


._btn.--form {
    background-color: var(--green-color);
    width: 8em;
    height: 2.2em;
}

._btn.--form:hover {
    background-color: var(--light-grey-color);
    color: black;
}

@media(max-width: 600px) {
    ._btn.--iconic {
        width: 22em;
    }
}



._label ._btn{
	min-width: 3.5em;
	background-color: var(--light-grey-color);
	color: black;
}

._label input[type="radio"]:checked + ._btn{
	background-color: var(--green-color);
	color: var(--white-color);
}


/* ==================== burger ===================== */

._burger {
    display: none;
	position: relative;
	cursor: pointer;
	background-color: transparent;
	z-index: 250;
	cursor: pointer;
    margin-right: 1em;
}

._burger.--cross {
	width: 2.2em;
	height: 30px;
	left: 0;
    border: 0px;
    display: block;
}

._burger.--cross::before,
._burger.--cross::after,
._burger.--cross .__ins {
	content: '';
	position: absolute;
	height: 2px;
	left: 0;
	width: inherit;
	transition: all .3s;
    border-radius: 20px;
	background-color: var(--black-color);
}

._burger::before {
	top: .3em
}

._burger.--cross .__ins {
    top: 1em;
}

._burger::after {
	top: 1.7em;
}

._burger.--active {
	animation: popbars .5s 1 cubic-bezier(0.7, 0, 0.3, 1);
}

._burger.--active:before {
	top: 1em;
	transform: rotate(45deg);
}

._burger.--active::after {
	top: 1em;
	transform: rotate(-45deg);
}

._burger.--active.--cross .__ins {
    display: none;
}

@media(max-width: 900px) {
    ._burger {
        display: inline-block;
    }
}

/* +++++++++++++ cross ++++++++++++++ */

._cross {
	width: 1.5em;
	height: 1.5em;
	right: .3em;
	z-index: 250;
	cursor: pointer;
    position: relative;
}

._cross::before,
._cross::after {
	content: '';
	position: absolute;
	height: .15em;
    border-radius: 2px;
	width: 2em;
    top:  .75em;
	transition: all .3s;
	background-color: var(--dark-blue-color);
	transform: rotate(45deg);
}

._cross::after {
	transform: rotate(-45deg);
}

/* +++++++++++++++++ aside-menu ++++++++++++++++ */

._aside-menu {
	display: flex;
    position: fixed;
    flex-direction: column;
    background-color: var(--white-color);
    color: var(--dark-blue-color);
    width: 40%;
    font-size: 1.2em;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    overflow: auto;
    transition: all .3s;
    box-sizing: border-box;
    padding: 7em 1.5em 3em;
    overflow: auto;
}

._aside-menu.--active {
    opacity: 1;
    visibility: visible;
}

._aside-menu ._flex.--column.--just-beet,
._aside-menu ._nav,
._aside-menu .__menu {
    height: 100%;
}

._aside-menu li {
    margin-bottom: 1em;
}

._aside-menu a {
    display: inline-block;
}

._aside-menu li ul li{
    margin-bottom: calc(var(--index) * .4);
}

._aside-menu ._nav {
	margin-top: calc(var(--index) * .7);
}

._aside-menu a {
    display: inline-block;
    align-items: center;
    margin-bottom: calc(var(--index) * .3);
    font-weight: 500;
}

._aside-menu ._contacts {
    margin-left: .5em;
}

body.dark_theme ._aside-menu {
    background-color: var(--brown-color);
}

body.dark_theme ._aside-menu a {
    color: var(--beige-color);
}

@media(max-width: 900px) {
    ._aside-menu {
        width: 100%;
    }

    ._aside-menu a {
        font-size: 1.3em;
    }
}

/* +++++++++++++++radio-button+++++++++++++++ */

._radio-grid {
    display: flex;
    position: relative;
}

/* ._radio-grid label:first-child {
    margin-right: 2rem;
} */

._radio-checkbox {
    display: flex;
    position: relative;
    align-items: center;
}


._radio-checkbox input[type="checkbox"],
._radio-checkbox input[type="radio"] {
    display: none;
}

._radio-checkbox [type="checkbox"] + ._custom,
._radio-checkbox [type="radio"] + ._custom {
    display: block;
    position: relative;
    min-width: 14px;
    width: 14px;
    height: 14px;
    border: 1px solid var(--black-color);
    cursor: pointer;
    border-radius: 50%;
    margin-right: .3em;
}


/* ._radio-checkbox input[type="checkbox"] + ._custom {
    border-radius: 0.3rem;
}

._radio-checkbox input[type="radio"] + ._custom {
    border-radius: 50%;
} */


._radio-checkbox input[type="checkbox"]:checked + ._custom,
._radio-checkbox input[type="radio"]:checked + ._custom {
    background-image: url(/wp-content/themes/afina/assets/images/icons/check.svg);
    background-position: center;
    background-repeat: no-repeat;
}

/* ._radio-checkbox input[type="checkbox"] + ._custom::after,
._radio-checkbox input[type="checkbox"] + ._custom::before, 
._radio-checkbox input[type="radio"] + ._custom::after,
._radio-checkbox input[type="radio"] + ._custom::before {
/* ._radio-checkbox input[type="radio"] + ._custom::after { 
    content: " ";
    position: absolute;
    top: 9px;
    left: 0px;
    width: 10px;
    height: 1px;
    border-radius: inherit;
    cursor: pointer;
}

._radio-checkbox input[type="radio"] + ._custom::after {
    top: 9px;
    left: 0px;
    width: 7px;
}

._radio-checkbox input[type="checkbox"]:checked + ._custom::after,
._radio-checkbox input[type="checkbox"]:checked + ._custom::before,
._radio-checkbox input[type="radio"]:checked + ._custom::after,
._radio-checkbox input[type="radio"]:checked + ._custom::before {
/* ._radio-checkbox input[type="radio"]:checked + ._custom::after { 
    background-color: var(--green-color);
    transform: rotate(45deg);
}

._radio-checkbox input[type="checkbox"]:checked + ._custom::after,
._radio-checkbox input[type="radio"]:checked + ._custom::before {
    transform: rotate(-45deg);
}


@media(max-width: 600px) {
    ._radio-checkbox input[type="checkbox"] + ._custom,
    ._radio-checkbox input[type="radio"] + ._custom {
        min-width: 16px;
        width: 16px;
        height: 16px;
    }

    ._radio-checkbox input[type="checkbox"] + ._custom::after,
    ._radio-checkbox input[type="checkbox"] + ._custom::before,
    ._radio-checkbox input[type="radio"] + ._custom::after,
    ._radio-checkbox input[type="radio"] + ._custom::before {
     ._radio-checkbox input[type="radio"] + ._custom::after { 
        top: 7px;
        left: -4px;
        width: 25px;
    }
}

/* ++++++++++++++ modal ++++++++++++++++++++++ */

._modal {
    display: flex;
    align-items: flex-start;
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 5;
    transition: .3s;
    opacity: 0;
    visibility: hidden
}

._modal.show {
    opacity: 1;
    visibility: visible;
    z-index: 260;
    overflow-y: auto;
}

._modal ._fade {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 6;
    background-color: rgba(36, 36, 36, 0.4);
    backdrop-filter: blur(0.35rem);
    position: fixed;
}

._modal ._item-modal {
	position: fixed;
	width: 100%;
	height: 100%;
	z-index: 202;
	overflow-y: auto;
}

._modal ._body {
    display: block;
    width: 25em;
    margin: 0 auto;
    background-color: var(--white-blue-color);
    border-radius: 2em;
    position: relative;
    z-index: 300;
    padding: 2.5em;
    transition: .3s;
    transform: translateY(-10%) scale(1) scaleY(1.15);
    margin-top: 5em;
    margin-bottom: 5em;
    box-sizing: border-box;
}

._modal.--calc ._body {
    width: 45em;
}


._modal.show ._body {
    transform: translateY(0) scale(1) scaleY(1);
}

._modal.--regions input {
    display: none;
}

._modal .__heading {
    font-size: 1.5em;
    font-weight: 700;
}

/* ===============form========================= */

._form {
	position: relative;
    width: 100%;
}

._form .__label-name {
    color: var(--black-color);
    font-weight: 500;
    font-size: 1.1em;
}

._form.--modal {
    display: flex;
    flex-direction: column;
    align-items: center;
}

._form .__form-field {
    width: 100%;
}

._form .__form-field input,
._form .__form-field textarea {
    width: 100%;
    padding: 1.1em;
	background-color: transparent;
	resize: none;
    color: var(--dark-grey-color);
    border: 2px solid var(--light-grey-color);
    border-radius: 10em;
    font-size: 1em;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 1em;
}

._form .__form-field textarea {
    height: 8em;
}

._form p {
    color: var(--grey-color);
}
/* +++++++++++++++++ btn-play ++++++++++++++++++ */

._btn-play {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--beige-color);
    border-radius: 50%;
    height: 120px;
    width: 120px;
    background-color: transparent;  
    transition: .3s;
    cursor: pointer;
}

._btn-play:hover {
    transform: scale(1.1);
}

._ins-play {
    height: 39px;
    right: 10px;
    position: relative;
    border-right: 3px solid var(--beige-color);
    border-radius: 2px;
}

._ins-play::before,
._ins-play::after {
    content: "";
    border-radius: 2px;
    height: 3px;
    width: 35px;
    position: absolute;
    background-color: var(--beige-color);
    transform: rotate(-33deg);
    bottom: 9px;
    left: -2px;
}

._ins-play::before {
    transform: rotate(33deg);
    top: 9px;
}

@media (max-width: 900px) {
    ._btn-play {
        height: 90px;
        width: 90px;
    }
}

/* ================= cartquantity ============== */

._cartquantity,
._select-view {
    position: relative;
	display: inline-block;
	box-sizing: border-box;
	vertical-align: middle;
	width: 5em;
    background-color: transparent;
	transition: background 0.2s ease-out;
}

@media (max-width: 900px) {
    ._cartquantity,
    ._select-view {
        width: 4em;
    }
}

._btn.--filter {
    display: none;
}

.js-filters.active ._btn.--filter {
    display: flex;
}

._select-view {
    background-image: url(/wp-content/themes/afina/assets/images/icons/arrow-bottom.svg);
    background-repeat: no-repeat;
    background-position: top 50% right 1.5vw;
    background-size: .8em;
    font-weight: 500;
    height: 1.8em;
    font-family: "Montserrat", sans-serif;
	text-align: center;
}

._cartquantity > input {
    height: 1.2em;
	display: inline-block;
	box-sizing: border-box;
	vertical-align: middle;
	text-align: center;
	border: 0;
    font-size: 1em;
	padding: 0em 0em;
    font-family: "Montserrat", sans-serif;
	color: inherit;
	background-color: transparent;
	transition: background 0.2s ease-out;
}

._cartquantity > input[name="quantity"]{
    width: 33%;
}

._cartquantity > input[name="minus"],
._cartquantity > input[name="plus"] {
	width: 33%;
    font-size: 1.5em;
}

._cartquantity > input[name="minus"], ._cartquantity > input[name="plus"]{
	cursor: pointer;
	background-color: transparent;
}

/* ._cartquantity > input[name="minus"]:hover, ._cartquantity > input[name="plus"]:hover{
	background-color: rgb(0 0 0 / 8%);
} */

/* =============== map ================== */
._map iframe {
    width: 100%;
    height: 100%;
}

/* =============== label ================== */
._label input[type=radio] {
    display: none;
}

/* =============== the_content  ================== */
._the_content > *:first-child{
    margin-top: 0em;
}
._the_content > *:last-child{
    margin-bottom: 0em;
}

._the_content h1, ._the_content h2, ._the_content h3, ._the_content h4, ._the_content h5, ._the_content h6{
    margin: 1.5em 0em 1.0em;
}

._the_content p{
    margin: 0.8em 0em;
}

/* ._the_content p:not(:first-of-type){ */
    /* margin-top: 1em; */
/* } */

._the_content ul{
    margin: 0.5em 0em 1em 1.2em;
    list-style: disc;
}

._the_content ul li{
    /* margin-bottom: 1.5em; */
}

._the_content table{
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0em;
}

._the_content table tr td{
	border: 1px solid #e7e7e7;
	padding: 0.5em 1em;
}



._tags > *{
	margin: 0.5em 1em 0em 0em;
}

._link.--hover-underline:hover{
	text-decoration: underline;
}


