/* Header of product term archives (module/woo/term-header.php) */
#top .mm-term-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 420px;
    padding: 60px 0;
    overflow: hidden;
    box-sizing: border-box;
    background: linear-gradient(120deg, #0d2f3f 0%, #123f4a 55%, #7d1512 100%);
}
#top .mm-term-hero .mm-term-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
}
#top .mm-term-hero.has-image:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .4);
}
#top .mm-term-hero .container {
    position: relative;
    z-index: 1;
    float: none;
    width: 100%;
    text-align: center;
}
#top #wrap_all .mm-term-hero .mm-term-title {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(34px, 4.6vw, 64px);
    line-height: 1.15;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .75);
    overflow-wrap: break-word;
}

/* Breadcrumb */
#top .mm-term-breadcrumb {
    background: #f7f5f3;
    border-bottom: 1px solid var(--enfold-main-color-border, #e1e1e1);
}
#top .mm-term-breadcrumb .container,
#top .mm-term-intro .container {
    float: none;
}
#top .mm-term-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 12px 0;
    list-style: none;
    font-size: 15px;
    line-height: 24px;
}
#top .mm-term-breadcrumb li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
#top .mm-term-breadcrumb li + li:before {
    content: '';
    width: 6px;
    height: 6px;
    margin: 0 12px 0 8px;
    border: solid #8a8a8a;
    border-width: 1.5px 1.5px 0 0;
    transform: rotate(45deg);
}
#top .mm-term-breadcrumb a {
    color: var(--enfold-main-color-primary);
    text-decoration: none;
}
#top .mm-term-breadcrumb a:hover {
    text-decoration: underline;
}
#top .mm-term-breadcrumb span {
    color: #222;
    font-weight: 600;
}

/* Intro */
#top .mm-term-intro {
    padding: 40px 0 0;
}
#top .mm-term-intro p,
#top .mm-term-intro li {
    font-size: 17px;
    line-height: 1.7;
}
#top .mm-term-intro .container > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
#top .mm-term-intro p {
    margin-top: 0;
    margin-bottom: 14px;
}
#top .mm-term-intro .container > p:only-child {
    text-align: center;
}
#top.mm-term-header-page .template-shop .content {
    padding-top: 30px;
}
#top.mm-term-header-page #main > .container_wrap_first.template-shop {
    border-top: 0;
}
/* An unused default header must not leave a gap */
#top.mm-term-header-page .woocommerce-products-header:empty {
    display: none;
}

/* Product grid: equal images and equal cards */
#top.mm-term-header-page #main ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}
#top.mm-term-header-page #main ul.products:before,
#top.mm-term-header-page #main ul.products:after {
    display: none;
}
#top.mm-term-header-page #main ul.products li.product {
    display: flex;
    float: none;
    width: auto;
    margin: 0;
}
#top.mm-term-header-page ul.products .inner_product {
    display: flex;
    flex: 1;
    min-width: 0;
    width: 100%;
}
#top.mm-term-header-page ul.products .inner_product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
#top.mm-term-header-page ul.products .thumbnail_container {
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;
}
#top.mm-term-header-page ul.products .thumbnail_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#top.mm-term-header-page ul.products .avia_cart_buttons {
    margin-top: auto;
}
@media only screen and (max-width: 989px) {
    #top.mm-term-header-page #main ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media only screen and (max-width: 767px) {
    #top .mm-term-hero {
        min-height: 260px;
        padding: 40px 0;
    }
    #top .mm-term-intro {
        padding-top: 28px;
    }
    #top .mm-term-intro p,
    #top .mm-term-intro li {
        font-size: 16px;
    }
    #top .mm-term-intro .container > p:only-child {
        text-align: left;
    }
}
@media only screen and (max-width: 599px) {
    #top.mm-term-header-page #main ul.products {
        grid-template-columns: minmax(0, 1fr);
    }
}
