/* Italwax: compact visible navigation and catalogue search. */

@media (min-width: 768px) {
    .site-header-shell .top-header-area-scrollable {
        display: block !important;
        overflow: visible;
    }

    .site-header-shell .mobile-header {
        display: none !important;
    }

    .site-header-shell .site-header > .row {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 14px;
        min-height: 88px;
        margin: 0;
        padding: 12px 0;
    }

    .site-header-shell .site-header > .row > .header-brand {
        order: 1;
        flex: 0 0 172px;
        width: 172px;
        min-width: 0;
    }

    .site-header-shell .site-header > .row > .catalogue-toggle {
        order: 2;
        flex: 0 0 auto;
        width: auto;
        min-width: 122px;
    }

    .site-header-shell .header-navigation {
        display: block !important;
        order: 3;
        flex: 1 1 440px !important;
        width: auto !important;
        min-width: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .site-header-shell .header-navigation .main-menu {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .site-header-shell .header-navigation .main-menu > li {
        display: inline-flex !important;
        flex: 0 0 auto;
    }

    .site-header-shell .header-navigation .main-menu a {
        padding: 8px 4px;
        font-size: 14px;
        white-space: nowrap;
    }

    .site-header-shell .header-search-inline {
        display: block;
        order: 4;
        flex: 0 0 220px;
        width: 220px;
        min-width: 220px;
        max-width: 220px;
    }

    .site-header-shell .site-header > .row > .header-right-menu {
        order: 5;
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
    }

    .site-header-shell .header-search-inline .aws-container {
        display: block !important;
        width: 100%;
        height: 44px;
        margin: 0;
        color: #302116;
        opacity: 1 !important;
    }

    .site-header-shell .header-search-inline .aws-search-form,
    .site-header-shell .header-search-inline .woocommerce-product-search {
        display: flex;
        width: 100%;
        height: 44px;
        margin: 0;
    }

    .site-header-shell .header-search-inline .aws-search-field,
    .site-header-shell .header-search-inline .search-field {
        flex: 1 1 auto;
        min-width: 0;
        height: 44px;
        padding: 0 14px;
        border: 1px solid #d9d1c7 !important;
        border-right: 0 !important;
        border-radius: 7px 0 0 7px !important;
        background: #fff;
        color: #302116;
        font-size: 14px;
        box-shadow: none !important;
    }

    .site-header-shell .header-search-inline .aws-form-btn,
    .site-header-shell .header-search-inline .woocommerce-product-search button {
        position: relative;
        flex: 0 0 46px;
        width: 46px;
        height: 44px;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid #d9d1c7 !important;
        border-left: 0 !important;
        border-radius: 0 7px 7px 0 !important;
        background: #fff !important;
        color: #302116 !important;
        font-size: 0 !important;
        line-height: 1;
        box-shadow: none !important;
    }

    .site-header-shell .header-search-inline .aws-form-btn::before,
    .site-header-shell .header-search-inline .woocommerce-product-search button::before {
        content: "";
        position: absolute;
        top: 12px;
        left: 13px;
        width: 14px;
        height: 14px;
        border: 2px solid currentColor;
        border-radius: 50%;
    }

    .site-header-shell .header-search-inline .aws-form-btn::after,
    .site-header-shell .header-search-inline .woocommerce-product-search button::after {
        content: "" !important;
        position: absolute;
        top: 23px;
        left: 25px;
        width: 8px;
        height: 2px;
        background: currentColor;
        transform: rotate(45deg);
        transform-origin: left center;
    }

    .site-header-shell .header-search-inline .aws-form-btn:hover,
    .site-header-shell .header-search-inline .woocommerce-product-search button:hover {
        color: #a77e17 !important;
        background: #fff !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .site-header-shell .site-header > .row {
        gap: 8px;
    }

    .site-header-shell .site-header > .row > .header-brand {
        flex-basis: 105px;
        width: 105px;
    }

    .site-header-shell .site-header > .row > .catalogue-toggle {
        min-width: 98px;
        padding-right: 13px;
        padding-left: 13px;
    }

    .site-header-shell .header-navigation .main-menu {
        gap: 3px;
    }

    .site-header-shell .header-navigation .main-menu a {
        padding-right: 1px;
        padding-left: 1px;
        font-size: 13px;
    }

    .site-header-shell .header-search-inline {
        flex-basis: 165px;
        width: 165px;
        min-width: 165px;
        max-width: 165px;
    }

    .site-header-shell .header-account span,
    .site-header-shell .basket-btn__label {
        display: none;
    }
}

@media (max-width: 767px) {
    .site-header-shell .top-header-area-scrollable {
        display: none !important;
    }

    .site-header-shell .mobile-header {
        display: flex !important;
    }

    #mobile-menu {
        padding-top: 20px;
    }

    #mobile-menu-close {
        top: 10px;
        right: 14px;
        width: 38px;
        height: 38px;
        padding: 0;
        line-height: 36px;
    }

    #mobile-menu .mobile-search {
        margin-top: 43px;
    }

    #mobile-menu .mobile-search .aws-container {
        display: block !important;
        height: 44px;
        margin: 0 0 18px !important;
        opacity: 1 !important;
    }

    #mobile-menu .mobile-search .aws-search-form,
    #mobile-menu .mobile-search .woocommerce-product-search {
        display: flex;
        height: 44px;
        margin: 0;
    }

    #mobile-menu .mobile-search .aws-search-field,
    #mobile-menu .mobile-search .search-field {
        flex: 1 1 auto;
        min-width: 0;
        height: 44px;
        padding: 0 13px;
        border: 1px solid #d9d1c7 !important;
        border-right: 0 !important;
        border-radius: 7px 0 0 7px !important;
        background: #fff;
        font-size: 14px;
        box-shadow: none !important;
    }

    #mobile-menu .mobile-search .aws-form-btn,
    #mobile-menu .mobile-search .woocommerce-product-search button {
        position: relative;
        flex: 0 0 46px;
        width: 46px !important;
        height: 44px;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid #d9d1c7 !important;
        border-left: 0 !important;
        border-radius: 0 7px 7px 0 !important;
        background: #fff !important;
        color: #302116 !important;
        font-size: 0 !important;
        box-shadow: none !important;
    }

    #mobile-menu .mobile-search .aws-form-btn::before,
    #mobile-menu .mobile-search .woocommerce-product-search button::before {
        content: "";
        position: absolute;
        top: 12px;
        left: 13px;
        width: 14px;
        height: 14px;
        border: 2px solid currentColor;
        border-radius: 50%;
    }

    #mobile-menu .mobile-search .aws-form-btn::after,
    #mobile-menu .mobile-search .woocommerce-product-search button::after {
        content: "" !important;
        position: absolute;
        top: 23px;
        left: 24px;
        width: 8px;
        height: 2px;
        background: currentColor;
        transform: rotate(45deg);
        transform-origin: left center;
    }
}

/* Exact selected variation price replaces the range in the main price area. */
.single-product .summary.entry-summary .price.is-selected-variation-price {
    color: #a77e17;
}

.single-product .woocommerce-variation-price {
    display: none;
}

/* One geometry for every catalogue-card CTA. */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.added_to_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 174px;
    max-width: 100% !important;
    height: 40px !important;
    min-height: 40px;
    margin-top: 10px;
    padding: 0 20px !important;
    border: 1px solid #302116;
    border-radius: 7px !important;
    background: transparent !important;
    color: #302116 !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.2 !important;
    letter-spacing: .035em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Shared corner radius for the site's primary action buttons. */
.catalogue-toggle,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
    border-radius: 7px !important;
}

.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.added_to_cart:hover {
    border-color: #a77e17;
    background: #a77e17 !important;
    color: #fff !important;
}
