/*
 * Theme name:      Rozetka
 * Author:          Rozetka
 * Author URI:      https://rozetka.com.ua
 * Requires PHP:    7.4
 * Text Domain:     RED
 * Version:         1.0
 * Description:     Тема для Rozetka
 */

@font-face {
    font-family: "Rozetka";
    src: url("assets/fonts/RozetkaWeb-Regular.woff2") format("woff2");
    font-weight: normal;
}

@font-face {
    font-family: "Rozetka Bold";
    src: url("assets/fonts/RozetkaWeb-Bold.woff2") format("woff2");
    font-weight: bold;
}

html {
    font: var(--common-font-size) var(--main-font-family);
}

body {
    margin: 0;
}

.rztk-header {
    background: var(--header-color);
    font: var(--menu-font-size) var(--brand-font-family-bold);
    min-height: var(--height-min-header);
    height: auto;
    max-height: var(--max-header-height);
    width: 100%;
    padding: 10px;
    z-index: 2000;
}

.rztk-header__fixed {
    height: var(--max-header-height);
}

.rztk-header.fixed {
    position: fixed;
    margin-top: calc(-1 * var(--max-header-height));
}

.rztk-header .rztk-header__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 1300px;
    margin: 0 auto;
}

.rztk-header .rztk-header__menu {
    display: flex;
    justify-content: space-evenly;
    margin: 0 !important;
    align-items: flex-start;
}

.rztk-header .rztk-header__menu .menu__sublist{
    z-index: 2000;
}

.rztk-header .rztk-header__menu .menu__sublist li.menu-item {
    min-height: 36px;
}

.rztk-header .rztk-header__menu-mobile {
    display: none;
}

.rztk-header .rztk-header__menu-mobile .burger {
    color: white;
    position: relative;
    border: none;
    background: none;
    display: block;
}

.rztk-header .rztk-header__menu-mobile button {
    background:none !important;
}

.rztk-header .rztk-header__menu-mobile .burger:active {
    border: none;
    text-decoration: none;
}

.rztk-header .rztk-header__menu-mobile__content {
    display: none;
    position: absolute;
    background: var(--header-color);
    right: 0;
    top: calc(var(--max-header-height) - 10px);
    width: 80vw;
    z-index: 2000;
    height: calc(100vh - 60px);
}

.rztk-header .rztk-header__menu .menu {
    list-style: none;
    height: inherit;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
}

.rztk-header .rztk-header__menu-mobile__content .menu {
    flex-direction: column;
    align-content: flex-start;
    list-style: none;
    flex-wrap: wrap;
}


.rztk-header .rztk-header__menu .menu .menu__sublist,
.rztk-header .rztk-header__menu-mobile__content .menu .menu__sublist {
    list-style: none;
    display: none;
    background: var(--header-color);
    padding: 20px;
}

.rztk-header .rztk-header__menu-mobile__content .menu-item-has-children::after {
    content: '▼';
    color: var(--menu-item-color);
}

.rztk-header .rztk-header__menu-mobile__content .menu-item-has-children[class~="show-submenu"]::after {
    content: '▲';
    color: var(--menu-item-color);
}

.rztk-header .rztk-header__menu-mobile .menu .menu__sublist {
    list-style: none;
    background: var(--header-color);
    padding: 10px;
}

.rztk-header .rztk-header__menu .menu .menu-item {
    height: inherit;
}

.rztk-header .rztk-header__menu-mobile__content .menu .menu-item {
    margin-bottom: 10px;
}

.rztk-header .rztk-header__menu .menu .menu-item a,
.rztk-header .rztk-header__menu-mobile .menu .menu-item a,
.rztk-header .rztk-header__menu-mobile__content .menu .menu-item a {
    color: var(--menu-item-color);
    text-decoration: none;
    height: inherit;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
}

.rztk-header .rztk-header__menu-mobile__content .menu .menu-item a {
    padding: 0;
}

.rztk-header .rztk-header__menu .menu .menu-item a:hover,
.rztk-header .rztk-header__menu-mobile .menu .menu-item a:hover {
    border-bottom: 3px solid var(--global-green);
}

.rztk-header .rztk-header__part {
    justify-content: right;
}

.rztk-main {

}

.rztk-main__content,
.rztk-archive__content {
    min-height: calc(100vh - var(--height-min-header));
    padding-bottom: 10px;
}

.rztk-footer {
    min-height: var(--height-min-footer);
    height: auto;
    background: var(--global-black);
    color: white;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.rztk-main__single {

}
.rztk-main__single__header {
    max-width: 1240px;
    margin: 0 auto;
}

.rztk-footer__row {
    width: 100%;
}

.rztk-footer__copyright {
    text-align: center;
}

#goToTop {
    height: 45px;
    width: 45px;
    border: 1px solid var(--global-black);
    position: fixed;
    right: 30px;
    bottom: 50px;
    z-index: 9999;
    background: rgba(255, 255, 255, .5);
    text-align: center;
    color: var(--global-black);
    text-decoration: none;
    font-size: 32px;
}

#goToTop:hover {
    background-color: var(--global-black-40);
}

.breadcrumb {
    font-size: 16px;
    font-family: "Rozetka", serif;
    padding-top: 10px;
    margin-bottom: 20px;
    color: var(--link-color);
}

.breadcrumb a {
    text-decoration: none;
    color: var(--link-color);
}

.breadcrumb a:hover {
    color: var(--link-hover-color);
}

.show {
    display: block !important;
    position: absolute;
}

.rztk-btn{
    display: inline-block;
    width: 100%;
    height: 40px;
    text-align: center;
    padding: 10px 0;
    text-decoration: none;
}

.rztk-btn:hover{
    text-decoration: none;
}

.rztk-btn-block{
    display: block;
}

.green-bg{
    background: var(--global-green);
    color: white;
}

.green-bg:hover{
    background: var(--global-green-80);
    color: white;
}

@media screen and (max-width: 960px) {
    .rztk-header {
        min-height: 60px;
    }

    .rztk-header .rztk-header__menu {
        display: none;
    }

    .rztk-header .rztk-header__menu-mobile {
        display: block;
        z-index: 20002;
    }
}

@media screen and (max-width: 768px) {
    .rztk-header .rztk-header__menu-mobile__content {
        width: 100vw;
        padding-left: 20px;
    }
}

/**
Admin
 */

.adminbar__top {
    display: none;
    height: 32px;
}


/**
    Archive
 */

.rztk-archive__content {
    max-width: 1240px;
    margin: 0 auto;
}

.rztk-archive__content .rztk-archive__header .archive_title {
    text-align: center;
    font-size: 36px;
}

.rztk-archive__content .rztk-archive__content__posts {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 40px;

}
.rztk-archive__content .rztk-archive__content__posts .rztk-card{
    width: 100%;
    max-width: 360px;
    max-height: 480px;
}
.rztk-archive__content .rztk-archive__content__posts .rztk-card__header{
    max-height: 240px;
}

.rztk-archive__content .rztk-archive__content__posts .rztk-card__content{
    min-height: 200px;
    max-height: 200px;
}


/**
    Cards
 */

.rztk-card{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    border-radius: 4px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.rztk-card__header{
    /*padding: 10px 0;*/
    min-height: 80px;
}

.rztk-card h2{
    margin-top: 0;
}
.rztk-card h2 a{
    color: black;
    text-decoration: none;
    font-size: 21px;
}

.rztk-card__content{
    min-height: 200px;
    max-height: 200px;
    padding: 10px 20px;
}

.rztk-card__content__img{
    min-height: 240px;
    height: 100%;
    max-height: 240px;
}

.rztk-card__content__img img{
    display: block;
    width: 100%;
    height: auto;
    max-height: inherit;
}

.rztk-card__content__text{
    padding: 0 0;
    color: var(--global-black-60);
    font-size: 14px;
}

.rztk-card__content__tags ul.post-categories{
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
}
.rztk-card__content__tags ul.post-categories li{
    margin-bottom: 10px;
}
.rztk-card__content__tags ul.post-categories li a{
    border: 1px solid var(--global-green);
    color: var(--global-green);
    text-decoration: none;
    border-radius: 20px;
    padding: 5px 10px;
}

.rztk-card__content__tags ul.post-categories li a:hover{
    border-color: var(--link-hover-color);
    color: var(--link-hover-color);
}



.rztk-card__footer{
    min-height: 40px;
}

.rztk-card__footer{

}

/**
Accordion
 */

.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
}

.active-accordion, .accordion:hover {
    background-color: #ccc;
}

.panel {
    padding: 0 18px;
    background-color: white;
    display: none;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.accordion:after {
    content: '\02795'; /* Unicode character for "plus" sign (+) */
    font-size: 13px;
    color: #777;
    float: right;
    margin-left: 5px;
}

.active-accordion:after {
    content: "\2796"; /* Unicode character for "minus" sign (-) */
}

.rztk-single__columns{
    justify-content: center;
}

.rztk-single__columns .rztk-single__columns_column{
    max-width: 360px;
    border-radius: 20px;
}

.text-white{
    color: white !important;
}

.rztk-header .rztk-header__content .rztk-header__account{
    width: 40px;
    text-align: right;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    align-self: center;
    margin: 0 0 0 15px;
}

.rztk-header .rztk-header__content .rztk-header__menu-mobile__content__account{

}

@media screen and (max-width: 960px){
    .rztk-header .rztk-header__content .rztk-header__account{
        display: none;
    }
}

.logout-link, .login-link{
    color: rgba(255,255,255,0.5);
}
.logout-link:hover, .login-link{
    color: rgba(255,255,255,1);
    text-decoration: none;
}

button, button[type="button"], input[type="button"], input[type="submit"]{
    border-radius: 0 !important;
}
button:hover, button[type="button"]:hover{
    color: white;
    background: var(--global-green-80);
}

.error-404{
    margin: 0 auto;
    text-align: center;
}

.rztk-search__content {
    display: flex;
    flex-wrap: nowrap;
    align-content: stretch;
    justify-content: flex-start;
    align-items: stretch;
    max-width: 1248px;
    margin: 0 auto;
    flex-direction: column;
    min-height: 80vh;
}
.rztk-search__content .rztk-search__content__header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.rztk-search__content .rztk-search__content__body {

}

.rztk-search__content .rztk-search__content__body .navigation {
    margin: 10px 0;
    font-weight: 400;
    padding: 15px 0;
    border-top: 2px solid var(--global-green);
}
.rztk-search__content .rztk-search__content__body .navigation .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
}

.rztk-search__content .rztk-search__content__footer {

}
