/*
Theme Name: Recyco Theme
Template: storefront
Author: Bernardo Bär
Author URI: https://bernardo.fm
Description: Recyco custom made theme
Version: 1.0
Text Domain: recyco
*/
html {
    scroll-behavior: smooth;
}

#wpadminbar {
    position: fixed !important;
}

.hentry .entry-content a {
    text-decoration: unset;
}

.admin-bar .site-header {
    top: 32px;
}

.admin-bar .site-content {
    margin-top: 148px;
}

[id] {
    scroll-margin-top: 148px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .admin-bar .site-content {
        margin-top: 146px;
    }

    [id] {
        scroll-margin-top: 146px;
    }
}


#site-navigation-menu-toggle {
    display: none;
}

.home.blog .site-header,
.home.page:not(.page-template-template-homepage) .site-header,
.home.post-type-archive-product .site-header {
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.page .entry-title {
    display: none;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------- */

/* Sticky header */

.site-header {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 9999;

    background: #fff;
}

.site-content {
    margin-top: 116px;
}

.site-header > .col-full {
    display: flex;
    justify-content: center;
}

.site-header .col-full .site-branding {
    width: auto;
    display: inline-block;
    margin-bottom: 0;
    margin-right: 0;
}

.site-header .custom-logo-link {
    display: inline-block;
}

.site-header .site-branding img {
    max-height: 82px;
}

.site-header .col-full .main-navigation {
    width: auto;
    float: none;
    margin-right: 0;
    clear: none;
}

@media (max-width: 782px) {
    .site-content {
        margin-top: 100px;
    }
}

@media (max-width: 767px) {
    .site-header .site-branding img {
        max-height: 74px;
    }
}

/* ------------------------------------------------------------------
   Navigation
------------------------------------------------------------------- */
.main-navigation ul li a:hover, .main-navigation ul li:hover > a, .site-title a:hover, .site-header ul.menu li.current-menu-item > a {
    color: unset;
}

a:focus, input:focus, textarea:focus, button:focus {
    outline: unset;
}

.main-navigation a {
    border-bottom: 3px solid transparent;
    transition: border-color .2s ease;
}

.main-navigation a.active-section {
    border-bottom: 3px solid #4CAF50;
}

.storefront-primary-navigation {
    position: relative;
    background-color: #edf7f6;
    overflow: hidden;
}

.storefront-primary-navigation::before,
.storefront-primary-navigation::after {
    content: "";

    position: absolute;

    top: 0;

    width: 60px;
    height: 100%;

    pointer-events: none;

    opacity: 0;
    transition: opacity 0.2s ease;

    z-index: 10;
}

.storefront-primary-navigation::before {
    left: 0;

    background: linear-gradient(
            to left,
            rgba(237, 247, 246, 0),
            rgba(237, 247, 246, 1)
    );
}

.storefront-primary-navigation::after {
    right: 0;

    background: linear-gradient(
            to right,
            rgba(237, 247, 246, 0),
            rgba(237, 247, 246, 1)
    );
}

.storefront-primary-navigation.has-left-fade::before {
    opacity: 1;
}

.storefront-primary-navigation.has-right-fade::after {
    opacity: 1;
}

.primary-navigation {
    display: block !important;
}

.handheld-navigation {
    display: none !important;
}

.storefront-primary-navigation .col-full {
    max-width: none;
    width: 100%;

    margin: 0 auto;

    padding-left: 0;
    padding-right: 0;

    text-align: center;
}

/*
 * This is now the scroll container.
 */
.main-navigation {
    display: block;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

.main-navigation::-webkit-scrollbar {
    display: none;
}

.main-navigation ul.menu,
.main-navigation ul.nav-menu {
    display: inline-flex;

    flex-wrap: nowrap;

    white-space: nowrap;

    margin: 0 auto !important;
    padding: 0 !important;

    max-height: none !important;
    overflow: visible !important;

    transition: none !important;
}

.main-navigation ul.menu > li,
.main-navigation ul.nav-menu > li,
.secondary-navigation ul li {
    position: relative !important;
    display: inline-block !important;
    text-align: left !important;
    flex-shrink: 0;
}

.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
    padding: 1em;
}

@media (max-width: 768px) {

    .main-navigation ul.menu > li > a,
    .main-navigation ul.nav-menu > li > a {
        padding: 0.85em 0.75em;
    }
}

/* ------------------------------------------------------------------
   Content
------------------------------------------------------------------- */

.home .site-content > .col-full {
    padding: 0;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-image img {
    width: 100%;
}

.home .entry-content h2 {
    margin-top: 40px;
}


.single-product .wc-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.single-product .wc-category-card {
    width: 100px;
    flex: 0 0 auto;
}

.single-product .wc-category-card img {
    width: 100px;
    height: 100px;

    object-fit: cover;
    border-radius: 8px;
}

.single-product .wc-category-card h3 {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.2;
}

.price .reduced {
    display: inline-flex;
    flex-direction: column;
}

.price ins {
    font-weight: bold;
}

.price del {
    font-size: 14px;
    margin-bottom: -8px;
}

.price {
    justify-content: space-evenly;
    align-items: end;
    display: flex;
}

@media (max-width: 1100px) {
    .wp-block-paragraph, .columns-4 {
        max-width: 90%;
        margin: auto;
    }
}