@media print {
    body {
        display: none;
    }
}

html {
    scrollbar-gutter: stable;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;

}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
}

a {
    color: inherit;
    text-decoration: none;
}

.arrow {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-left: 2px;
    fill: none;
    stroke: #000;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s ease;
}

.tobearea {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #f5f5f5;
    flex-shrink: 0;
    z-index: 10001;
}

.center {
    flex: 1;
    display: flex;
    margin-top: 160px;
    background: #fff;
}

.left,
.right {
    flex: 1;
}

.middle {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main {
    flex: 1;
    position: relative;
    z-index: 1;
    margin: 0 20px;
    background: #fff;
}

.footer {
    width: 100%;
    height: 50px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-inner {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.2px;

}

.menu-top {
    position: fixed;
    top: 70px;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    background: #fff;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    font-weight: bold;
    user-select: none;
    z-index: 10000;
}

.logo {
    flex: 1;
    display: flex;
    margin-left: 10px;
    white-space: nowrap;
}

.category {
    flex: 1;
    display: none;
    align-items: center;
    justify-content: flex-start;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    padding: 9px 6px;
    border-radius: 4px;
    cursor: pointer;
    touch-action: manipulation;
}

.hamburger:hover {
    background: #fafafa;
}

.hamburger-bar {
    width: 24px;
    height: 2px;
    background: #000;
    border-radius: 2px;
}

.hamburger.open {
    justify-content: center;
}

.hamburger.open .hamburger-bar:nth-child(1) {
    transform: translateY(1px) rotate(45deg);
}

.hamburger.open .hamburger-bar:nth-child(2) {
    display: none;
}

.hamburger.open .hamburger-bar:nth-child(3) {
    transform: translateY(-1px) rotate(-45deg);
}


.hamburger-dropdown {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 1024px;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    background: #fff;
    text-align: left;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    font-weight: bold;
    z-index: 9999;
}

.hamburger-dropdown.open {
    display: flex;
}

.hamburger-dropdown .category-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    cursor: pointer;
}

.hamburger-dropdown .menu-title,
.hamburger-dropdown .category-name > a:not(.menu-title a) {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background: #fafafa;
    border-bottom: 1px solid #fff;
}

.hamburger-dropdown .category-name > a:not(.menu-title a) {
    display: block;
    color: inherit;
}

.hamburger-dropdown .category-dropdown {
    display: block;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: #fff;
}

.hamburger-dropdown .category-dropdown a {
    display: block;
    padding: 12px 20px 12px 30px;
    font-size: 15px;
    font-weight: normal;
    color: #000;
    border-bottom: 1px solid #f2f2f2;
}

.hamburger-dropdown .category-dropdown a:last-child {
    border-bottom: none;
}

.hamburger-dropdown .category-name.touch .arrow {
    transform: rotate(-180deg);
}


.menu-bottom {
    position: fixed;
    top: 120px;
    left: 0;
    width: 100%;
    height: 40px;
    background: #fff;
    border-top: 1px solid #f2f2f2;
    z-index: 9998;
}



.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    margin-right: 12px;
    border-radius: 1px;
    color: #333;
    cursor: pointer;
    transition: background-color .15s ease, color .2s ease;
}

.search-icon svg {
    width: 33px;
    height: 33px;
}

.search-icon:hover {
    color: #000;
    background: #f2f2f2;
}

.search-icon.hide {
    display: none;
}

.search-bar {
    display: none;
    margin-left: auto;
    margin-right: 15px;
}

.search-bar.open {
    display: block;
}

.search-bar input {
    width: 160px;
    height: 34px;
    padding: 4px 10px;
    font-size: 14px;
    border: 1px solid #333;
    border-radius: 4px;
    outline: none;
    transition: border-color .2s;
}



.hamburger-search-wrapper {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #f2f2f2;
}

.hamburger-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.hamburger-search-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    font-size: 15px;
    border: 1px solid #333;
    border-radius: 4px;
    outline: none;
}

.hamburger-search-input:focus {
    border-color: #000;
}

.hamburger-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #333;
    cursor: pointer;
    transition: color .2s ease, opacity .2s ease;
}

.hamburger-search-btn:hover,
.hamburger-search-btn:active {
    color: #000;
    opacity: .7;
}

.hamburger-search-btn svg {
    width: 22px;
    height: 22px;
}


@media (min-width: 1024px) {
    .middle {
        max-width: 1024px;
    }

    .menu-top,
    .menu-bottom {
        left: 50%;
        transform: translateX(-50%);
        max-width: 1024px;
    }

    .hamburger,
    .hamburger-dropdown.open,
    .logo {
        display: none;
    }

    .category {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 60px;
        margin-left: 10px;
    }

    .category > div {
        padding: 8px 10px;
        background: #fff;
        border-radius: 4px;
        cursor: pointer;
    }

    .category-name {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .category-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        width: 130px;
        background: #fff;
        border: 1px solid #f2f2f2;
        z-index: 1000;
    }

    .category-dropdown a {
        display: block;
        padding: 12px;
        white-space: nowrap;
        text-align: left;
        color: #000;
        font-size: 14px;
        font-weight: normal;
    }

    .category-dropdown a:hover {
        background: #f2f2f2;
    }

    @media (hover: hover) and (pointer: fine) {
        body:not(.is-touch) .category > div:hover {
            background: #f2f2f2;
        }

        body:not(.is-touch) .category-name:not(.touch):hover .category-dropdown {
            display: block;
        }

        body:not(.is-touch) .category-name:not(.touch):hover .arrow {
            transform: rotate(-180deg);
        }
    }

    .category > div.touch {
        background: #fff;
    }

    .category-name.touch .category-dropdown {
        display: block;
    }

    .category-name.touch .arrow {
        transform: rotate(-180deg);
    }

    .arrow {
        margin-left: 2px;
        transition: transform .4s ease;
    }
}

.no-posts {
    padding: 50px 0; 
    color: #888; 
    text-align: center; 
    width: 100%;
}


.is-busy,
button:disabled,
.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

