header.wp-block-template-part {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

body #wpadminbar {
    position: sticky;
    top: 0;
}

html {
    margin-top: 0 !important;
}

body.admin-bar header.wp-block-template-part {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar header.wp-block-template-part {
        top: 46px;
    }
}

.has-global-padding {
    padding-inline: clamp(1rem, 4vw, 2.5rem) !important;
}

.has-global-padding > .alignfull {
    margin-left: calc(clamp(1rem, 4vw, 2.5rem) * -1) !important;
    margin-right: calc(clamp(1rem, 4vw, 2.5rem) * -1) !important;
}

.button-w-100 button {
    width: 100% !important;
}

.footer-menu .wp-block-button__link {
    text-align: left;
}

.footer-menu {
    grid-template-columns: 1.5fr repeat(4, 1fr);
    align-items: start;
}

@media (max-width: 1080px) {
    .footer-menu {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .footer-menu > div:first-of-type {
        grid-column: 1 / -1;
    }
}

.hover-bg-surface {
    transition: background-color 0.2s ease;
}

.hover-bg-surface:hover {
    background-color: var(--wp--preset--color--custom-surface);
}

@media (min-width: 783px) {
    .gdn-panel-inner {
        box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.12);
    }

    .menu-dropdown .gdn-panel-inner {
        border-radius: 16px;
        border: 1px solid var(--wp--preset--color--custom-surface);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
        padding: 0.5rem;
    }
}

@media (max-width: 782px) {
    .menu-dropdown .gdn-panel-inner {
        padding: 0;
    }
}

.gdn-drawer {
    padding: unset;
}

.gdn-drawer-header {
    padding: 1rem;
    border-color: var(--wp--preset--color--custom-surface);
    margin-bottom: 0.25rem;
}

.gdn-items {
    padding: 0 1rem;
}

.search-form {
    border-bottom: 2px solid var(--wp--preset--color--custom-ink);
    padding: 1rem 0 !important;
}

.search-form form {
    flex-grow: 1;
}

.search-form input {
    padding: 0;
    border-radius: 0;
}

.search-form input:focus {
    outline: none;
}

.td-none,
.td-none a {
    text-decoration: none;
}

.product-category-grid {
    align-items: stretch;
    grid-auto-flow: column;
    grid-auto-columns: 124px;
    overflow-x: auto;
    grid-template-columns: unset !important;
}

.product-category-grid > a {
    border-radius: 16px;
    border: 2px solid transparent;
}

.product-category-grid > a[data-active='true'] {
    border-color: var(--wp--preset--color--custom-ink);
}

.search-page-form {
    max-width: 520px;
    width: 100%;
}

.search-page-form .wp-block-search__input {
    color: black !important;
    font-size: 18px !important;
}

.post-grid li {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wp--preset--color--custom-line);
    border-radius: 16px;
    overflow: hidden;
    transition:
        box-shadow 0.25s,
        transform 0.25s,
        border-color 0.25s;
}

.post-grid li:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
    border-color: transparent;
}

.home-product-grid ul {
    grid-auto-flow: column;
    grid-auto-columns: 320px;
    overflow-x: auto;
}

.home-product-grid li {
    margin-top: 0;
    background-color: white;
}

.pbc-product-tag-badge {
    border-radius: inherit;
}

footer {
    margin-block-start: 0;
}
