/*
Theme Name: slovakiafarma
Version: 1.0
Description: A child theme of Twenty Twenty
Template: twentytwenty
Author: Administrator
*/
@import url("../twentytwenty/style.css");
@import url("../slovakiafarma/assets/css/slovakiafarma.css");

:root {
    --admin-bar: 32px;
    --header: 177px;
    --header-scrolled: 135px;
}

/*--------------------------------------------------ANIMACE*/

#top a,
#top a::after,
#top a::before,
#top h2,
#top button,
#top button::after,
#top button:before,
#top span,
#top span::after,
#top span::before,
#top img,
#top:not(.showing-modal) ul,
#top:not(.showing-modal) li,
#top:not(.showing-modal) li::after,
#top:not(.showing-modal) li::before,
header#site-header,
.header-topbar-wrapper {
    transition: all 0.3s linear;
    -webkit-transition: all 0.3s -webkit-filter ease-in-out;
    -moz-transition: all 0.3s -moz-filter ease-in-out;
    -ms-transition: all 0.3s -ms-filter ease-in-out;
    -o-transition: all 0.3s -o-filter ease-in-out;
}


/*----------------------------------------------------------------------------------------------------TYPOGRAFIE*/

#top * {
    letter-spacing: unset;
}

body#top,
.entry-content,
.price,
.onsale,
.entry-content cite,
.entry-content figcaption,
.entry-content table,
.entry-content address,
.entry-content .wp-caption-text,
.entry-content .wp-block-file,
.woocommerce table.shop_table tbody tr,
.woocommerce-page table.shop_table tbody tr,
.woocommerce-error,
.woocommerce-info,
.woocommerce-message.woocommerce-message,
#site-content .woocommerce-error,
#site-content .woocommerce-info,
.entry-content p,
.entry-content li,
.entry-header p,
button {
    font-family: var(--font);
    font-size: 16px;
    line-height: 24px;
    color: var(--n70);
}

#top .entry-content .has-large-font-size {
    font-size: 20px !important;
}

.entry-content p {
    margin-bottom: 16px;
}

.color-accent,
.color-accent-hover:hover,
.color-accent-hover:focus,
:root .has-accent-color,
.has-drop-cap:not(:focus):first-letter,
.wp-block-button.is-style-outline,
body a {
    color: var(--n100);
}

/*--------------------------------------------------ELLIPSIS*/
.item-title,
.item-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*--------------------------------------------------IKONY*/
.ikona a::before {
    content: "";
    width: 24px;
    height: 24px;
    display: inline-block;
    margin: 0 8px -6px 0;
    background-color: currentColor;
    mask-size: 24px;
    mask-position: 0 0;
    mask-repeat: no-repeat;
    -webkit-mask-size: 24px;
    -webkit-mask-position: 0 0;
    -webkit-mask-repeat: no-repeat;
    mask-image: url(/wp-content/themes/slovakiafarma/assets/img/slovakiafarma_ikony.svg);
    -webkit-mask-image: url(/wp-content/themes/slovakiafarma/assets/img/slovakiafarma_ikony.svg);
}

.ikona.primary a::before {
    background-color: var(--p-100);
}

.ikona.secondary a::before {
    background-color: var(--s-100);
}

.ikona.black a::before {
    background-color: black;
}

.ikona.white a::before {
    background-color: white;
}

.ikona.mail a::before {
    mask-position: 0 -24px;
    -webkit-mask-position: 0 -24px;
}

.ikona.user a::before {
    mask-position: 0 -48px;
    -webkit-mask-position: 0 -48px;
}

.ikona.pin a::before {
    mask-position: 0 -72px;
    -webkit-mask-position: 0 -72px;
}

.ikona.search a::before {
    mask-position: 0 -96px;
    -webkit-mask-position: 0 -96px;
}

.ikona.calendar a::before {
    mask-position: 0 -120px;
    -webkit-mask-position: 0 -120px;
}

.ikona.home a::before {
    mask-position: 0 -168px;
    -webkit-mask-position: 0 -168px;
}

.ikona.web a::before {
    mask-position: 0 -192px;
    -webkit-mask-position: 0 -192px;
}

.ikona.recenze a::before {
    background-color: var(--p-100);
    mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_recenze.svg);
    -webkit-mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_recenze.svg);
}

.ikona.krmiva a::before {
    background-color: var(--s-100-blue);
    mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_krmiva.svg);
    -webkit-mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_krmiva.svg);
}

.ikona.poradna a::before {
    background-color: var(--s-100-green);
    mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_poradna.svg);
    -webkit-mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_poradna.svg);
}

.ikona.videoblog a::before {
    background-color: var(--s-100-purple);
    mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_videoblog.svg);
    -webkit-mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_videoblog.svg);
}

.ikona.vyrobci a::before {
    background-color: black;
    mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_vyrobci.svg);
    -webkit-mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_vyrobci.svg);
}

/*--------------------------------------------------NADPISY*/
#top .wp-block-heading:first-child {
    margin-top: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
    color: var(--black);
    line-height: normal;
    font-weight: 700;
}

h1,
.heading-size-1 {
    font-size: 42px;
}

h2,
.heading-size-2 {
    font-size: 36px;
}

h3,
.heading-size-3 {
    font-size: 32px;
}

h4,
.heading-size-4 {
    font-size: 28px;
}

h5,
.heading-size-5 {
    font-size: 24px;
}

h6,
.heading-size-6 {
    font-size: 20px;
}

/*----------------------------------------------------------------------------------------------------GENERAL*/


/*--------------------------------------------------HIDE*/

.site-description,
p.powered-by-wordpress,
.home .entry-header,
.entry-content hr::before,
.entry-content hr::after,
.post-meta-wrapper.post-meta-edit-link-wrapper,
.toggle svg.svg-icon,
.home div#breadcrumbs,
nav.pagination-single hr {
    display: none;
}


/*--------------------------------------------------ZÁKLADNÍ HTML*/




/*--------------------------------------------------LAYOUT*/
#top .section-inner,
.entry-content>.alignwide,
.wp-block-cover.alignfull .alignwide,
.wp-block-group.alignfull .alignwide,
#breadcrumbs,
.woocommerce .content-area #main>*:not(header),
.woocommerce .entry-content>*:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.is-style-wide) {
    width: calc(100% - 40px);
    max-width: 1248px;
    margin: 0 auto;
}

.home #site-content {
    margin-top: var(--header);
}

/*body#top::before {
    content: "";
    display: block;
    width: 400px;
    height: 800px;
    background: url(/wp-content/themes/slovakiafarma/assets/img/pes.png);
    position: absolute;
    z-index: 99;
    top: 24px;
    mix-blend-mode: luminosity;
    left: -100px;
}
body#top::after {
    content: "";
    display: block;
    width: 400px;
    height: 800px;
    background: url(/wp-content/themes/slovakiafarma/assets/img/kocka.png);
    position: absolute;
    z-index: 99;
    top: 24px;
    mix-blend-mode: luminosity;
        right: 100px;
}*/
/*margins*/
.primary-menu>li,
ul.primary-menu,
.header-titles .site-logo,
.header-titles,
#top .wp-block-image {
    margin: 0;
}

#top .entry-content>.alignwide:first-child,
.wp-block-columns.alignfull+.wp-block-columns.alignfull,
#top .wp-block-heading:first-child,
#top .footer-widgets .wp-block-group,
#top .footer-widgets .wp-block-columns {
    margin-top: 0;
}

/*paddings*/
#top .af-submit {
    padding: 0;
}

/*--------------------------------------------------CLASSY*/
.mb-0 {
    margin-bottom: 0 !important;
}

.mt-0 {
    margin-top: 0 !important;
}

/*--------------------------------------------------HOVERY*/
.item-categories a:hover {
    background: black;
    color: white !important;
    border-color: black;
}

/*----------------------------------------------------------------------------------------------------DEFAULT BLOCKS*/
/*--------------------------------------------------BUTTONS*/
body button,
body .button,
body .faux-button,
body .wp-block-button__link,
body .wp-block-file .wp-block-file__button,
body input[type="button"],
body input[type="reset"],
body input[type="submit"],
body .bg-accent,
body .bg-accent-hover:hover,
body .bg-accent-hover:focus,
:root .has-accent-background-color,
body .comment-reply-link,
.single-product#top .woocommerce-variation-add-to-cart .button {
    background: var(--n100);
    border: 1px solid var(--p100);
    color: white;
    text-transform: none;
    font-weight: 400;
    line-height: normal;
    padding: 10px 15px;
    border-radius: 8px;
}

.wp-block-buttons {
    margin: 20px auto;
}


/*--------------------------------------------------FORMY*/
#top .acf-fields>.acf-field {
    padding: 0;
    border: none;
}

::placeholder {
    color: var(--n-50);
}

#top input,
#top textarea,
#top select {
    background: white;
    box-shadow: 0px 8px 24px 0px rgba(1, 30, 86, 0.05);
    font-size: 16px;
    padding: 16px;
    line-height: 26px;
    border-radius: 80px;
    border: none;
}

/*radio a checkbox*/
.frm_checkbox label,
.frm_radio label {
    display: flex;
    gap: 8px;
    cursor: pointer;
}

#top input[type="checkbox"],
#top input[type="radio"] {
    margin: 0 8px 0 0;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    position: relative;
    top: 2px;
}

#top input[type="checkbox"]::before,
#top input[type="radio"]::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: white;
    border: 1px solid var(--n-20);
    border-radius: 4px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'dashicons';
}

#top input[type="radio"]::before {
    border-radius: 100%;
}

#top input[type="checkbox"]:checked::before {
    content: "\f15e";

}

#top input[type="checkbox"]:checked::before,
#top input[type="radio"]:checked::before {
    background: var(--p-100);
}

/*--------------------------------------------------TABULKY*/
/*--------------------------------------------------ODDĚLOVAČ*/#top hr.wp-block-separator {
    color: var(--n-40);
}
hr.wp-block-separator::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    transform: none;
    mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_tlapka.svg);
    -webkit-mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_tlapka.svg);
    left: 50%;
    transform: translate(-50%);
}
/*----------------------------------------------------------------------------------------------------CUSTOM BLOCKS*/
#top .loader {
    width: 50px;
    height: 50px;
    margin: 100px auto;
    background: url(/wp-content/themes/sweet-pain/assets/css/ajax-loader.gif)no-repeat;
}

#top .slider {
    transform: none;
    z-index: 1;
}

#top .slider:not(.slick-initialized) {
    transform: translateY(-200%);
    transform-origin: top;
}

/*--------------------------------------------------POST GRID*/
.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;

}.item-link {
    cursor: pointer;
}

.post-grid.display-grid_highlight {
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-flow: dense;
}

.post-grid.display-grid_highlight .post-grid-item:first-child {
    grid-column: 1;
    grid-row: span 2;
}

.post-grid.display-list {
    grid-template-columns: 1fr;

}
.display-list .item-link {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 24px;
}



.item-meta {
    font-size: 12px;
    color: var(--n-40);
    margin-bottom: 16px;
}

.item-meta a {
    text-decoration: underline;
}

.item-thumb img {
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: 16px;
}
.display-list .item-thumb img {
    border-radius: 24px;
    height: 100%;
    object-fit: cover;
}
.item-taxonomies {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 16px 0 12px 0;
}

.item-taxonomies a {
    font-size: 12px;
    line-height: 16px;
    padding: 2px 4px;
    display: block;
    color: var(--n-60);

}

.item-tags {
    display: flex;
}

.item-tags a {
    text-transform: lowercase;
}

.item-categories a {
    text-transform: uppercase;
    border: 1px solid var(--n-20);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    padding: 2px 8px;
}

#top .item-title {
    margin: 0 0 8px 0;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    height: 56px;
    font-size: 24px;
}
#top .display-grid_highlight .post-grid-item:first-child .item-title {
    font-size: 32px;
    height: 84px;
}
#top .display-list  .item-title {
    height: auto;
}
.post-grid.display-grid_highlight .post-grid-item:not(:first-child) .item-content {
    display: none;
}

.item-content {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    height: 72px;
    margin-bottom: 8px;
}
.display-list .item-content {
    -webkit-line-clamp: 32;
    line-clamp: 2;
    height: 48px;
}
.item-content p {
    color: var(--n-80);
    margin: 0;
}

.read-more {
    color: var(--p-100);
    text-decoration: underline;
}



@media (max-width: 782px) {
    .post-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

/*----------------------------------------------------------------------------------------------------HEADER*/

header#site-header {
    position: fixed;
    width: 100%;
    z-index: 4;
    top: 0;
    background: none;
    background: #F6F8FF;
}


.admin-bar header#site-header {
    top: var(--admin-bar);
}

.header-inner {
    flex-direction: column;
    padding: 0;
}

.header-topbar-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 16px 0;
}

.scrolled .header-topbar-wrapper {
    padding: 8px
}

/*--------------------------------------------------SEARCH*/
.wp-block-search__inside-wrapper {
    position: relative;
}

.wp-block-search__button {
    color: var(--s-100-blue);
    background: white;
    position: absolute;
    right: 0;
    border-radius: 80px;
    padding: 16px;
    line-height: 26px;
}

.wp-block-search__inside-wrapper::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background: black;
    mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_lupa.svg);
    -webkit-mask-image: url(/wp-content/themes/slovakiafarma/assets/img/i_lupa.svg);
    position: absolute;
    top: 16px;
    left: 16px;
}

#top .wp-block-search__input {
    padding-right: 80px;
    padding-left: 50px;
    min-width: 480px;
}

input[type="search"]:focus {
    outline-offset: 4px;
    outline: 2px solid var(--s-100-blue);
}

/*--------------------------------------------------LOGO*/
.site-logo img {
    max-height: 87px;
}

.scrolled .site-logo img {
    max-height: 58px;
}

/*--------------------------------------------------MENU*/
.header-navigation-wrapper {
    border-top: 1px solid var(--n-20);
    border-bottom: 1px solid var(--n-20);
    width: 100%;
    padding: 8px 0;
}

#top .primary-menu {
    justify-content: center;
}

body#top .primary-menu>li>a {
    color: var(--n-100);
    font-weight: 700;
    font-size: 16px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

#top .primary-menu>li>a::before {
    margin: 0 8px 0px 0;
}

body#top .primary-menu>li.cta>a {
    border: 1px solid var(--p100);
}

/* menu efekt */

.slideUp {
    -webkit-transform: translateY(-135px);
    transform: translateY(-135px);
    transition: transform .5s ease-out;
}

.slideDown {
    transition: transform .5s ease-out;
}

/*--------------------SUBMENU*/


/*--------------------------------------------------BURGERMENU*/
body:not(.enable-search-modal) .header-titles-wrapper {
    justify-content: space-between;
    padding: 0;
}

.header-inner .toggle {
    position: relative;
    margin-left: auto;
    left: 0;
    padding-right: 0;
    padding-left: 0;
}

button.toggle.close-nav-toggle.fill-children-current-color {
    outline: none !important;
}

span.toggle-icon {
    background: black;
}

span.toggle-icon svg.svg-icon path,
span.toggle-text {
    display: none;
}

span.toggle-icon::before,
span.toggle-icon::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    display: block;
    background: black;
    position: absolute;
}

span.toggle-icon::before {
    top: -3px;
}

span.toggle-icon::after {
    bottom: 0px;
    right: 0;
}

.nav-toggle .toggle-icon,
.nav-toggle svg {
    height: 3px;
    width: 4rem;
}


/*modal*/

.menu-modal-inner.modal-inner,
.menu-modal.active {
    background: none;
}

#top .toggle.active span.toggle-icon {
    background: transparent;
}

.toggle.active span.toggle-icon::before {
    transform: rotate(-45deg) translate(-7px, 10px);
}

.toggle.active span.toggle-icon::after {
    transform: rotate(45deg) translate(-6px, -10px);
}

/*----------------------------------------------------------------------------------------------------MAIN CONTENT*/
.post-inner {
    padding-top: 48px;
}
/*--------------------------------------------------TITLE*/
.singular .entry-header,
.archive-header {
    background: none;
}

/*----------------------------------------------------------------------------------------------------MAIN CONTENT - BLOG*/
/*--------------------------------------------------SINGLE POST*/

#top .pagination-single {
    width: 100%;
    padding: 20px 0;
    font-size: 16px;
    border-top: 1px solid var(--neutral-10);
    margin-top: 40px;
}

/*----------------------------------------------------------------------------------------------------MAIN CONTENT - PAGE*/
.singular .entry-header {
    padding: 40px 0;
}

/*--------------------------------------------------TITLE*/


/*--------------------BREADCRUMBY*/
div#breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
    margin-top: var(--header);
}



/*--------------------------------------------------SIDEBAR*/


/*----------------------------------------------------------------------------------------------------FOOTER*/


/*--------------------------------------------------SOCKET*/

/*----------------------------------------------------------------------------------------------------RESPONZE*/
/*malé notebooky*/
@media (max-width: 1000px) {
    .header-topbar-wrapper {
        gap: 40px;
    }

    .header-topbar-wrapper {
        display: grid;
        grid-template-columns: 196px auto 40px;
    }

    .wp-block-search__inside-wrapper {
        justify-content: flex-end;
    }

    #top .wp-block-search__input {
        max-width: 480px;
    }

    .wp-block-search__inside-wrapper::before {
        left: unset;
        right: 440px;
    }
}

/*tablety*/
@media (max-width: 782px) {
    :root {
        --admin-bar: 46px;
    }

    h1,
    .heading-size-1,
    .woocommerce-products-header__title.page-title {
        font-size: 30px;
    }

    #top h2,
    #top .heading-size-2 {
        font-size: 26px;
    }

    h3,
    .heading-size-3 {
        font-size: 24px;
    }

    h4,
    .heading-size-4 {
        font-size: 22px;
    }

    h5,
    .heading-size-5,
    #top .woocommerce-loop-product__title,
    .cart_item .product-name a,
    #top .sidebar .wp-block-heading,
    #top h2.tab-title,
    #top h3.item-title {
        font-size: 20px;
    }

    h6,
    .heading-size-6,
    #top .tab-content h3 {
        font-size: 18px;
    }

    .header-topbar-wrapper {
        gap: 20px;
    }
}

/*mobily*/
@media (max-width: 500px) {}