/* ================= 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;
}

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

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

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


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

._nav li.current-page-item a,
._nav a:hover {
  color: var(--beige-color);
}



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

button {
    cursor: pointer;
}

._btn {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: .3s;
	height: 2.8em;
	width: 16em;
	font-weight: 600;
	text-align: center;
	padding: 0em 1em;
	box-sizing: border-box;
	background-color: var(--light-green-color);
	color: var(--white-color);
	font-family: 'Noto Sans', sans-serif;
	cursor: pointer;
	overflow: hidden;
	text-transform: lowercase;
	border-radius: 3em;
	font-size: 1em;
	border: 1px solid var(--green-color);
}

._btn span {
	font-size: 1.15em;
}

._btn:hover {
    opacity: .7;
}

._btn.--vertical {
	position: fixed;
	z-index: 2;
	right: -5.2em;
	top: 30%;
	border-radius: 2em 2em 0 0;
	transform: rotate(-90deg);
	width: 13em;
}

._btn.--ghost {
	background-color: transparent;
	color: var(--green-color);
}

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

._burger {
  display: none;
	position: relative;
	cursor: pointer;
	background-color: transparent;
	z-index: 250;
	cursor: pointer;
  margin-left: 1.5em;
	width: 3em;
	height: 26px;
}

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

._burger::before {
	top: 0;
}

._burger .__ins {
    top: 12px;
}

._burger::after {
	bottom: 0;
}

._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 .__ins {
    display: none;
}

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

@media(max-width: 600px) {
    ._burger.--cross {
        width: 2.8em;
    }
    
    ._burger {
        margin-left: 2em;
    }
}


/* +++++++++++++ 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(--green-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(--green-color);
    width: 50%;
    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: 8em .5em 3em;
    overflow: auto;
}

._aside-menu ._btn {
	font-size: 1em;
}

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

._aside-menu li {
    margin-bottom: 1em;
		color: var(--green-color);
}

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

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

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



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

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

._radio-grid label {
	margin-right: 4em;
}


._radio-grid.--horizontal {
	flex-direction: column;
}

._radio-grid.--horizontal label {
	margin-right: 0em;
}

._radio-grid.--horizontal label:not(:first-child) {
	margin-top: 1em;
}


._radio-checkbox {
	display: flex;
	position: relative;
	align-items: center;
	margin-right: 1.5em;
	cursor: pointer;
}


._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: 30px;
	width: 30px;
	height: 30px;
	border: 1px solid var(--green-color);
	margin-right: .5em;
	cursor: pointer;
	border-radius: 50%;
}

._radio-checkbox input[type="checkbox"] + ._custom ._content,
._radio-checkbox input[type="radio"] + ._custom ._content {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	bottom: 10px;
	border-radius: 50%;
}

._radio-checkbox input[type="checkbox"]:checked + ._custom ._content,
._radio-checkbox input[type="radio"]:checked + ._custom ._content {
	background-color: var(--green-color);
	/* background-position: center;
	background-repeat: no-repeat; */
}



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

._select {
	background-color: transparent;
	font-size: 1em;
	cursor: pointer;
	position: relative;
	box-sizing: border-box;
}

._select img {
    transition: .3s;
	width: 3em;
	margin-left: 0.75em;
}

._select img:hover {
    transform: scale(1.1);
}

._select .__selected {
    height: 100%;
    border-radius: inherit;
    z-index: 2;
    box-sizing: border-box;
    margin-bottom: 1em;
	
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}

._select .__selected > div{
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
		margin-right: 1em;
}

._select .__options {
    position: relative;
    top: 100%;
    z-index: 1;
    overflow: hidden;
		border: 2px solid var(--green-color);
		padding: 1em;
		border-radius: 1.5em;
}

._select.--catalog .__options {
    display: none;
}

._select .__options .__item-select {
    transition: .3s;
    padding: .5em 0;
}

._select.--catalog.active .__options {
    display: block;
}

._select.active img {
    transform: rotate(180deg);
}


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

._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-color);
    border-radius: 1.5em;
    position: relative;
    z-index: 300;
    padding: 2.5em;
    transition: .3s;
    transform: translateY(-10%) scale(1) scaleY(1.15);
    margin-top: 5em;
    margin-bottom: 5em;
}

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

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

._modal .__heading {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--green-color);
}

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

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

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

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

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

._form .__form-field input,
._form .__form-field textarea {
	font-size: 1em;
	width: 100%;
	padding: 1em 1.4em;
	background-color: transparent;
	resize: none;
	height: 3.2em;
	color: var(--green-color);
	border: 2px solid var(--green-color);
	border-radius: 1.6em;
	font-family: 'Noto Sans', sans-serif;
}

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

._form ::placeholder {
	color: var(--green-color);
}

._form ._btn {
	text-transform: none;
	height: 3.2em;
}
/* ================= cartquantity ============== */

._cartquantity{
	/* display: inline-block; */
	box-sizing: border-box;
	vertical-align: middle;
	transition: background 0.2s ease-out;
	display: flex;
}

/* 
._cartquantity.mod_cart{
	display: inline-block;
	box-sizing: border-box;
	transition: background 0.2s ease-out;
}

._cartquantity.active{

} */

._cartquantity > input{
	font-size: 1em;
	display: inline-block;
	box-sizing: border-box;
	vertical-align: middle;
	text-align: center;
	background-color: transparent;
	border: 0;
	transition: background 0.2s ease-out;
}

._cartquantity > input[name="quantity"]{
	width: 1.7em;
	font-size: 1.5em;
	color: var(--green-color);
	font-weight: 600;
}

@media(max-width: 600px) {
    ._cartquantity > input[name="quantity"]{
        width: 2em;
    }
}

.__product ._cartquantity > input[name="minus"]{
	background-image: url('/wp-content/themes/afina/assets/images/icons/minus-white.svg');
}

.__product ._cartquantity > input[name="plus"]{
	background-image: url('/wp-content/themes/afina/assets/images/icons/plus-white.svg');
}

.__product ._cartquantity > input[name="minus"]:hover{
	background-image: url('/wp-content/themes/afina/assets/images/icons/minus-green.svg');
}

.__product ._cartquantity > input[name="plus"]:hover {
	background-image: url('/wp-content/themes/afina/assets/images/icons/plus-green.svg');
}

._cartquantity > input[name="minus"]{
	background-image: url('/wp-content/themes/afina/assets/images/icons/minus.svg');
}

._cartquantity > input[name="plus"]{
	background-image: url('/wp-content/themes/afina/assets/images/icons/plus.svg');
}

._cartquantity > input[name="minus"],
._cartquantity > input[name="plus"],
._cartquantity > input[name="clean"], 
._cartquantity > input[name="remove"]{
	cursor: pointer;
    box-sizing: border-box;
    width: 2.4em;
    height: 2.4em;
    border: 0;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    transition: .3s;
		background-size: contain;
}

._cartquantity > input[name="clean"],
._cartquantity > input[name="remove"]{
    background-color: var(--rose-color);
    background-image: url('/wp-content/themes/afina/assets/images/icons/cross.svg');
}

/* =============== map ================== */
._map iframe {
    width: 100%;
    height: calc(100vh - 6.5em);
}

/* =============== 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-top: 2em;
}

._the_content ul li{
	list-style: disc;
	margin-bottom: 1.5em;
}

._the_content a{
	text-decoration: underline;
}

._the_content a:hover{
	text-decoration: none;
}


.__paginate .page-numbers{
	font-weight: 800;
	display: inline-block;
	box-sizing: border-box;
	vertical-align: middle;
	margin: 0em 0.1em;
}

.__paginate a.page-numbers:hover{
	opacity: 0.75;
}

.__paginate .page-numbers.current{
	background-color: var(--light-green-color);
    color: var(--white-color);
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    text-align: center;
    font-weight: 400;
    border-radius: 50%;
}


.__link.--underline:not(:hover){
	text-decoration: underline;
}