/**
 * Theme Name: Astra Child
 * Template:   astra
 * ...other header fields
 */

.header-container {
    background-color: #222d35;
    z-index: 99;
}

.header-container {
    position: sticky;
    top: -100px;
}

.site-header.top {
    padding: 1rem 0;
    z-index: 99999;
}

.header-inner.ast-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-inner.ast-container .logo {
    flex-basis: 25%;
}

.header-inner.ast-container form {
    flex-grow: 1;
}

.header-inner.ast-container .options {
    display: flex;
    height: 100%;
    gap: 0.5rem;
}


.header-inner.ast-container .options a {
    color: #fff;
    border-left: 1px solid #eee;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-inner.ast-container .options a .icon-wrapper {
    height: 28px;
    width: 28px;
}

.menu-home-main-container {
    width: 100%;
}

.menu-home-main-container>ul {
    display: flex;
    list-style-type: none;
    justify-content: space-between;
    margin: 0;
}

.menu-home-main-container>ul a {
    color: #000;
}


.menu-home-main-container>ul>li:has(ul.sub-menu)>a:after {
    display: inline-block;
    position: relative;
    top: 1px;
    margin-left: 6px;
    width: 12px;
    height: 12px;
    content: "";
    background-color: #232d35;
    ;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 9L12 16L5 9' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 9L12 16L5 9' stroke='%234A5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    transition: transform 0.25s ease-in-out;
}

.menu-home-main-container>ul>li:has(ul.sub-menu):hover>a:after {
    transform: rotate(180deg);
}

.menu-home-main-container>ul>li>ul.sub-menu {
    display: none;
}

header .custom-logo-link img {
    max-width: inherit;
}


header {
    position: relative;
}

header#masthead {
    position: sticky;
    top: 0px;
    z-index: 999;
}

.menu-home-main-container>ul>li:hover>ul.sub-menu {
    display: flex;
    position: absolute;
    z-index: 999;
    background-color: #fff;
    width: 100%;
    left: 0;
    padding: 1rem 2rem;
    list-style-type: none;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
}

.menu-home-main-container>ul>li:hover>ul.sub-menu>li {
    border-left: 1px solid#eee;
    padding: 1rem;
}

.menu-home-main-container>ul>li:hover>ul.sub-menu>li>a.menu-link {
    font-weight: bold;
    color: #14452F;
}

.menu-home-main-container>ul>li>ul.sub-menu ul {
    margin: 0;
}

.menu-home-main-container>ul>li>ul.sub-menu li {
    list-style-type: none;
    padding: 0;
}


header#masthead .site-header-primary-section-left img {
    width: 0;
    transition: width 0.1s ease-in-out;
}

header#masthead [data-section="title_tagline"] {
    width: 0;
    padding: 0;
}

header#masthead.is-pinned [data-section="title_tagline"] {
    width: auto;
    padding: inherit;
}

header#masthead.is-pinned .site-header-primary-section-left img {
    width: 150px;
}

@media screen and (max-width:720px) {
    header#masthead .site-header-primary-section-left img {
        width: 150px;
    }
}


/**Footer**/
footer .footer-top {
    display: flex;
    flex-wrap: wrap;
    max-width: min(1200px, 80%);
    margin: auto;
    justify-content: space-between;
    padding: 2rem 2rem;
}

footer .footer-top div.section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer .footer-top>div.section svg {
    height: 28px;
    width: 28px;
}

footer .footer-top div.section>div {
    display: flex;
    flex-direction: column;
}

footer .footer-bottom {
    height: 3rem;
    background-color: #111;
}


/**
 *   Collapsible Nav
**/
nav.accordian-menu li {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
}

nav.accordian-menu li button {
    width: 100%;
    padding: 1rem;
}

nav.accordian-menu li ul {
    position: relative !important;
    display: flex !important;
    flex-basis: 100%;
}

@media screen and (max-width: 720px) {
    .site-header.top {
        display: none;
    }
}

/**
* Product list
**/
ul.products li.product-type-simple {
    display: flex;
    flex-direction: column;
}

ul.products li.product-type-simple .astra-shop-summary-wrap {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

ul.products li.product-type-simple .astra-shop-summary-wrap .price,
ul.products li.product-type-simple .astra-shop-summary-wrap .ast-loop-product__link {
    flex-grow: 1;
}


/** Woocommerce **/
.woocommerce-js div.product div.images img {
    aspect-ratio: 1;
    object-fit: contain;
}


/** Ripping commercekit search **/
/* HTML: <div class="loader"></div> */

/* HTML: <div class="loader"></div> */
.autocomplete-loader {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid;
  border-color: #000 #0000;
  animation: l1 1s infinite;
}
@keyframes l1 {to{transform: rotate(.5turn)}}

.autocomplete-loader {
    position: absolute;
    top: 5%;
    right:5%;
    width: auto;
    height: 90%;
}


form:has(div#autocomplete-options) {
    position: relative;
}

div#autocomplete-options {
    position: absolute;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    background-color: #eee;
    width: 100%;
}
div#autocomplete-loader.hidden {
    display: none !important;
}

div#autocomplete-options.hidden{
    display: none !important;
}

.widget_product_search.commercekit-ajs-active,
.widget_search.commercekit-ajs-active {
    overflow: visible
}

.commercekit-ajs-results {
    position: absolute;
    overflow: hidden
}

.commercekit-ajs-suggestions {
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d6d6d6
}

.commercekit-ajs-suggestions>.autocomplete-suggestion {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    cursor: pointer;
    border-bottom: 1px solid #d6d6d6;
    background: 0 0;
    display: flex;
    transition: .2s all
}

.commercekit-ajs-suggestions>.autocomplete-suggestion:hover,
.commercekit-ajs-suggestions>.autocomplete-suggestion.active {
    background-color: #F8F8F8
}

.commercekit-ajs-suggestions>.autocomplete-suggestion:last-child {
    border-bottom: none;
    margin-bottom: 10px
}

.commercekit-ajs-suggestions>.autocomplete-suggestion.autocomplete-selected>a {
    background-color: #f8f8f8
}

.commercekit-ajs-suggestions>.autocomplete-no-suggestion {
    line-height: 40px;
    text-align: center
}

.commercekit-ajs-results.has-viewall-button {
    padding-bottom: 30px
}

.commercekit-ajs-results.has-viewall-button .commercekit-ajs-suggestions {
    bottom: 30px
}

.commercekit-ajs-view-all-holder {
    width: 100%;
    display: flex;
}

.commercekit-ajs-view-all-holder>a {
    flex-grow: 1;
    display: block;
    line-height: 40px;
    background: #373636;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .02em
}

.commercekit-ajs-view-all-holder>a:hover {
    color: #fff
}

.commercekit-ajs-other-result {
    height: 33px;
    line-height: 33px;
    background: #f5f3f3;
    text-align: left;
    color: #8b8888;
    text-transform: uppercase;
    padding-left: 10px;
    width: 100%;
    font-size: 12px;
    letter-spacing: .02em
}

.commercekit-ajs-hide .commercekit-ajs-suggestions,
.commercekit-ajs-hide .commercekit-ajs-view-all-holder {
    display: none !important
}

.commercekit-ajs-suggestions .commercekit-ajs-post,
.commercekit-ajs-suggestions .commercekit-ajs-product {
    width: 100%;
    color: #323232
}

.commercekit-ajs-post .commercekit-ajs-post-image,
.commercekit-ajs-product .commercekit-ajs-product-image {
    display: inline-block;
    max-width: 60px;
    vertical-align: top;
    flex-shrink: 0
}

.commercekit-ajs-post .commercekit-ajs-post-image img,
.commercekit-ajs-product .commercekit-ajs-product-image img {
    padding: 5px 5px 5px 0;
    margin: 0
}

.commercekit-ajs-post .commercekit-ajs-post-title,
.commercekit-ajs-product .commercekit-ajs-product-desc {
    display: inline-block;
    padding: 0 10px;
    vertical-align: top
}

.commercekit-ajs-post .commercekit-ajs-post-title {
    padding: 0;
    display: flex;
    align-items: center
}

.autocomplete-suggestion a {
    display: flex;
    padding: 10px;
    transition: .2s all
}

.commercekit-ajs-product-title {
    font-size: 14px
}

.commercekit-ajs-product-price {
    font-size: 13px
}

.commercekit-ajs-post .commercekit-ajs-post-title {
    font-size: 13px;
    line-height: 1.4;
    width: 100%
}

.commercekit-ajs-post .commercekit-ajs-post-title span.post-type {
    text-transform: uppercase;
    color: #999;
    font-size: 11px;
    margin-left: auto;
    padding-left: 10px
}

.commercekit-ajs-other-result-wrap {
    cursor: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none
}

.commercekit-ajs-product-price,
.commercekit-ajs-product-price ins {
    color: #de9915;
    font-weight: 600
}

.commercekit-ajs-product-price del {
    margin-right: 5px;
    color: #999;
    font-weight: 400
}

.commercekit-ajs-results span.match-text {
    text-decoration: underline;
    display: contents
}

/** Woocommerce**/
li.wc-block-product.type-product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

li.wc-block-product.type-product a {
    text-decoration: none !important;
}

.woocommerce-js ul.products li.product a img, .woocommerce-page ul.products li.product a img {
    object-fit: contain;
    aspect-ratio: 1;
}

.woocommerce-js div.product div.images img {
    max-height: 50vh;
    margin: auto;
}