/* 
Theme Name: Macrolife
Theme URI: https://macrolife.gr
Description: Macrolife theme is a child theme of Storefront, created by Kostas Arvanitidis
Author: Kostas Arvanitidis
Author URI: https://binarymedia.gr
Version: 1.1.017
Template: storefront
Text Domain: macrolife
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Variables */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');

:root {
    --darkblue: #0b2734;
    --lightgray: #f7f7f7;
    --medgreen: #0e8085;
    --midgray: #727983;
    --red: #AD1317;
    --midred: #e42c00;
    --macrolife-blue: #49b9e8;
    --macrolife-orange: #76b828;
    --main-text: 'Open Sans';
    --secondary-text: 'Roboto';
}

body {
    color: #303030;
    font-family: var(--main-text);
}

body,
.site,
.single-product div.product {
    overflow-x: unset;
    overflow: unset;
}

a {
    color: #000;
}

a:focus,
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

.onsale {
    display: none;
}

.go-up i {
    font-size: 1.8em;
    position: fixed;
    bottom: 80px;
    right: 20px;
    color: #fff;
    background-color: var(--medgreen);
    padding: 5px 15px;
    border-radius: 10px;
    -webkit-box-shadow: 4px 4px 5px #00000047;
    box-shadow: 4px 4px 5px #00000047
}

/** Category Loop Grid Images */

.woocommerce-loop-category__title .count {
    display: none;
}

ul.products li.product {
    margin-bottom: 8px;
}


.product-category img {
    position: relative;
    width: 380px;
    height: 60px;
    margin-bottom: 0 !important;
}

ul.products li.product .woocommerce-loop-category__title {
    position: absolute;
    font-weight: 800;
    font-size: 0.9em;
    text-shadow: 6px 8px 10px #00000063;
    -webkit-text-stroke-width: 0;
    -webkit-text-stroke-color: #fff;
    color: #fff;
    margin-bottom: 0;
    width: 100%;
    height: 100%;
    top: 35%;
}

/* Perfect Brands CSS */

.pwb-all-brands .pwb-brands-cols-outer .pwb-brands-col3 {
    width: 100px;
    border: 1px solid #ddd7d7;
    height: 60px;
    margin: 2px;
    background: #fff;
    overflow: hidden;
}

.pwb-brands-col3 img {
    width: 100%;
}

.pwb-brands-cols-outer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
}

/* Handheld header */

.site-header-cart {
    display: none;
}

button.menu-toggle,
button.menu-toggle::after,
button.menu-toggle::before {
    background-color: #000;
    color: #fff;
    border: none;
}

.handheld-navigation a,
.handheld-navigation .dropdown-toggle {
    color: #fff !important;
}

.storefront-handheld-footer-bar ul li.search .site-search {
    max-width: 100vw;
    width: 100vw !important;
}

.main-navigation.toggled .handheld-navigation {
    overflow: scroll;
}

/* Taxonomy Styling */

.bapf_body {
    max-height: 185px;
    overflow: scroll;
}

.woocommerce-products-header img {
    display: none;
}

.macro-archive-description h1 {
    font-size: 1.8em;
}

.products img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    height: 270px;
    width: 100%;
    object-fit: contain;
}

.woocommerce-product-details__short-description h3 {
    font-size: 0.9rem;
    font-weight: 600;
}

.term-description {
    font-size: 0.9em;
}

@media (min-width: 1023px) {

    .col-full {
        max-width: 100vw;
    }

    .page-narrow {
        max-width: 65vw;
        margin: 0 auto;
    }

    .page-macro-wc-endpoint {
        max-width: 85vw;
        margin: 0 auto;
    }

    .site-header .col-full {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 10px;
    }

    #content .col-full {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 22vh;
    }

    #primary {
        order: 2;
        flex: 1;
    }

    #secondary {
        order: 1;
        flex: 0 15vw;
    }

    .woocommerce {
        flex: 1 100%;
    }

    .woocommerce-active .site-header .site-branding {
        flex: 1 230px;
        margin: 0;
    }

    .site-header .site-branding img {
        margin: 0 auto;
    }
}

.contact-form label span {
    opacity: 1 !important;
}

.site-content {
    background-color: var(--lightgray);
}

.hentry .entry-content .home-header.has-huge-font-size {
    font-size: 1.5rem;
}

.site-header {
    margin-bottom: 40px;
    position: sticky;
    top: 0;
}

.site-search {
    max-width: 30vw;
    margin-bottom: 0;
    width: 20vw !important;
}

.widget_product_search form:not(.wp-block-search) input[type=search] {
    background-color: #000;
    transition: all 0.3s;
}

.widget_product_search form:not(.wp-block-search) input[type=search]:hover,
.widget_product_search form:not(.wp-block-search) input[type=search]:active,
.widget_product_search form:not(.wp-block-search) input[type=search]:focus {
    background-color: #fff;
}

.widget_product_search {
    margin: 0;
}

.bottom-header .site-branding {
    text-align: center;
}

input[type=text],
input[type=number],
input[type=email],
input[type=tel],
input[type=url],
input[type=password],
input[type=search],
textarea,
.input-text {
    background-color: #f7f7f7;
}

.custom-logo {
    width: 400px;
}

.site-header {
    text-align: center;
    margin-top: 0;
    padding: 10px 0 0 0;
    margin-bottom: 50px;
    background-color: #000;
    border-bottom: 1px solid #bfbfbf;
}

.site-title a {
    text-decoration: none;
}

#menu-login-menu {
    list-style: none;
    margin: 0;
    text-align: left;
    padding-inline-start: 0;
}

#menu-login-menu li a {
    text-decoration: none;
    color: var(--lightgray);
}

/* Social Icons */

.secondary-navigation a[href*="facebook.com"],
.secondary-navigation a[href*="instagram.com"],
.secondary-navigation a[href*="linkedin.com"],
.secondary-navigation a[href*="twitter.com"],
.secondary-navigation a[href*="youtube.com"],
.secondary-navigation a[href*="mailto:"],
.account-link a[href*="http"],
.wishlist-link a[href*="https"] {

    text-indent: -9999px;
}

.secondary-navigation a:after {
    text-indent: 0;
    display: block;
    float: left;
    color: #fff;
    font-family: "Font Awesome 5 Brands";
    font-weight: 400;
    font-size: 1.7em;
}

.secondary-navigation a[href*="mailto:"]:after {
    font-family: "Font Awesome 5 Free";
    content: "\f0e0";
    font-weight: 900;
}

.account-link a[href*="http"]:after {
    font-family: "Font Awesome 5 Free";
    content: "\f007";
}


.wishlist-link a[href*="https"]:after {
    font-family: "Font Awesome 5 Free";
    content: "\f004";
}

.storefront-handheld-footer-bar ul li.wishlist>a:before {
    content: "\f004";
}

.secondary-navigation a[href*="youtube.com"]:after {
    content: "\f167";
}

.secondary-navigation a[href*="twitter.com"]:after {
    content: "\f099";
}

.secondary-navigation a[href*="facebook.com"]:after {
    content: "\f09a";
}

.secondary-navigation a[href*="instagram.com"]:after {
    content: "\f16d";
}

/* Footer styling */

.site-footer {
    border-top: 1px solid #a0a0a04b;
    background-color: #faf2e5;
    padding: 1.618em 0 0 0;
}

.footer-widgets {
    margin-bottom: 6em;
}

.site-footer h1,
.site-footer h2,
.site-footer a:not(.button):not(.components-button) {
    color: #101010;
}

.site-footer h2 {
    font-weight: 400;
    margin-bottom: 10px;
}

.site-footer .widget_nav_menu ul li::before {
    content: none;
}

.site-footer .widget_nav_menu ul li {
    padding-left: 0;
    margin-bottom: 0.5em;
}

.site-footer .widget_nav_menu ul li a {
    text-decoration: none;
}

/* Archive */

.archive .site-main {
    display: flex;
    flex-wrap: wrap;
}

.archive header.woocommerce-products-header {
    order: 1;
}

.archive .storefront-sorting {
    flex: 1 100%;
    order: 2;
}

.archive .widget.widget_block {
    order: 1;
    margin: 0;
}

.archive #secondary {
    order: 1;
    flex: 1 15%;
}

.archive .macrol_products {
    order: 2;
    flex: 1 84%;
}

.woocommerce-ordering {
    max-width: 45%;
    float: left
}

.form-wppp-select.products-per-page {
    max-width: 45%;
    float: right;
}

/* Breadcrumbs */

.woocommerce-breadcrumb {
    text-align: center;
    background: var(--lightgray);
    padding: 5px 30px;
    border-radius: 80px;
    width: max-content;
    margin: 0 auto;
}

.storefront-breadcrumb {
    margin: 0;
}

.single_add_to_cart_button.alt,
.checkout-button.alt,
#payment .place-order .button {
    background-color: #1d1d1d;
    color: var(--lightgray);
    font-weight: 700;
}

.checkout-button.alt,
#payment .place-order .button {
    width: 100%;
    margin: 0 auto;
    padding: 4px;
}

.checkout-button.alt::after {
    content: none;
}

ul.products li.product .button {
    display: block;
    background-color: var(--midgray);
    color: var(--lightgray);
    text-decoration: none;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

ul.products li.product .button:hover {
    background-color: var(--darkblue);
}

button:disabled, 
.button:disabled {
    opacity: 0.7!important;
}

.tagged_as,
.posted_in,
.sku_wrapper {
    display: block;
    font-weight: 700;
}

.tagged_as a,
.posted_in a,
.sku {
    font-weight: 400;
}

.woocommerce-product-gallery img {
    height: 40vh;
    object-fit: contain;
}

h1.product_title.entry-title {
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 600;
}

.common-products {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    gap: 5px;
}

.common-products a {
    flex: 0 30%;
}

.common-products h2 {
    font-size: 0.7em;
}

form.cart .qib-container+button[type='submit']:not(#qib_id):not(#qib_id) {
    margin-left: 0 !important;
}

.single-product div.product .product_meta {
    padding: 2em 0;
}

.single-product div.product .product_meta a {
    text-decoration: none;
}

.stock.in-stock {
    display: none;
}

p+h2,
p+header h2,
p+h3,
p+h4,
ul+h2,
ul+header h2,
ul+h3,
ul+h4,
ol+h2,
ol+header h2,
ol+h3,
ol+h4,
table+h2,
table+header h2,
table+h3,
table+h4,
blockquote+h2,
blockquote+header h2,
blockquote+h3,
blockquote+h4,
form+h2,
form+header h2,
form+h3,
form+h4 {
    margin: 0.5em 0;
    line-height: 1.3;
    font-weight: 400;
}

.single-product div.product p.price {
    margin: 0;
}

.tagged_as a {
    background-color: var(--midgray);
    padding: 1px 15px;
    border-radius: 75px;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
}

.tagged_as a:hover {
    background-color: var(--darkblue);
    color: #fff;
}

.pshop-product-details .summary {
    font-size: 0.9em;
}

.pshop-product-details .summary ul {
    margin: 0 0 0 1.1em;
    font-size: 0.9em;
}

.primashop-table td {
    border: 1px solid #04040430;
}

.primashop-table td,
.primashop-table th {
    padding: 0.4em;
}

.primashop-table thead th {
    background-color: #0b2734;
    color: #fafafa;
    border-right: 1px solid #fff;
    padding: 5px;
    line-height: 1.2;
}

.related>h2:first-child {
	font-size: 1.5em;
	font-weight: 600;
    text-align: center;
}

/* Accordion */
.title {
    background-color: transparent;
    color: #444;
    cursor: pointer;
    padding: 18px 18px 18px 2px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
    position: relative;
}

.active,
.title:hover {
    background-color: var(--midgray);
    color: #fff;
}

.content {
    display: none;
}

.container .title i {
    position: absolute;
    top: 10px;
    right: 40%;
    font-style: normal;
    font-size: 1.625em;
    font-family: var(--main-text);
    color: #0079c1;
}

/* Blog Styling */

.box-title {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    padding: 10px 5px;
    background-color: var(--medgreen);
    color: #fff;
}

.small-box img {
    height: 300px;
    object-fit: cover;
    object-position: top;
    margin-bottom: 20px;
}

/* Cart Styling */

.page-macro-wc-endpoint .entry-header h1,
.page-narrow h1.entry-title,
.page-macro-wc-endpoint .cart_totals h2 {
    text-align: center;
    font-weight: 400;
    background-color: var(--macrolife-blue);
    color: #fff;
    font-size: 1.7rem;
    padding: 5px;
}

tr.woocommerce-cart-form__cart-item.cart_item {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid;
    padding-bottom: 15px;
}

table.shop_table_responsive tr td.product-name::before {
    display: none;
}

table.cart {
    margin-bottom: 1em;
}

table.cart td,
table.cart th {
    padding: 5px;
}

table.cart td.product-thumbnail {
    flex: 0 20%;
}

table.cart td.product-name {
    flex: 1 72%;
    text-align: left;
}

table.cart td.product-quantity {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 33%;
}

table.cart td.product-price,
table.cart td.product-subtotal {
    flex: 1 20%;
    text-align: center;
}

table.cart td.product-quantity {
    flex: 1 43%;
}

table.shop_table_responsive tr td.product-price::before,
table.shop_table_responsive tr td.product-subtotal::before {
    display: block;
    width: 100%;
    text-align: center;
}

/* Checkout styling */

form.checkout {
    width: 100%;
}

#payment .payment_methods li input[type=radio]:first-child:checked+label:before {
    color: #f31515;
}

.woocommerce-billing-fields input,
.woocommerce-billing-fields textarea,
.woocommerce-billing-fields .input-text,
.woocommerce-shipping-fields input,
.woocommerce-shipping-fields textarea,
.woocommerce-shipping-fields .input-text,
#order_comments {
    background-color: #fff;
    box-shadow: none;
    border: 1px solid #a5a5a5;
    border-radius: 5px;
    padding: 4px 10px;
}

.woocommerce-billing-fields__field-wrapper p,
.woocommerce-shipping-fields__field-wrapper p {
    margin: 0 0 0.61575em;
}

.macro-review-order,
.payment_box {
    position: relative;
    border: 1px solid #c9c7c7;
    padding: 30px;
    background-color: #e2ccba;
    z-index: 0;
}

.macro-checkout-review-order::after {
    content: ' ';
    background-image: url(/wp-content/uploads/2023/02/shipping-5.webp);
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: right;
    background-size: contain;
    z-index: -1;
}


table.woocommerce-checkout-review-order-table .product-name,
table.woocommerce-checkout-review-order-table .product-name:nth-child(2n) td,
table.woocommerce-checkout-review-order-table .product-total,
table.woocommerce-checkout-review-order-table .product-total:nth-child(2n),
table.woocommerce-checkout-review-order-table .cart-subtotal th,
table.woocommerce-checkout-review-order-table .order-total th,
.cart-subtotal td,
.order-total td,
table.cart td.product-subtotal,
.woocommerce-shipping-totals.shipping th,
.woocommerce-shipping-totals.shipping td,
#payment .payment_methods>li:not(.woocommerce-notice),
#payment .payment_methods>li .payment_box,
#payment .place-order {
	display: block;
    background: transparent !important;
    vertical-align: middle;
    padding: 0.4em;
}

table.woocommerce-checkout-review-order-table .product-total,
table.woocommerce-checkout-review-order-table .product-total:nth-child(2n),
table.woocommerce-checkout-review-order-table .cart-subtotal th,
table.woocommerce-checkout-review-order-table .order-total th,
table.woocommerce-checkout-review-order-table .woocommerce-shipping-totals.shipping th {
    text-align: right;
}

.woocommerce-checkout-review-order-table a.remove {
    display: inline;
    margin-right: 15px;
}

#customer_details {
    position: relative;
    margin-right: 0;
    width: 100%;
    background-color: #c4d0e1;
    padding: 15px;
    border: 1px solid #00000042;
    box-shadow: 8px 8px 9px #14141478;
}

#order_review_heading {
    display: none;
}

#order_review {
    margin-top: 30px;
    width: 100%;
    background-color: var(--lightgray);
}

table.woocommerce-checkout-review-order-table .product-name {
    width: 60%;
}

.macrolife-message .button {
    background-color: #919191;
    border-top: 1px solid #fff;
    color: #fff;
}

/*******************************************
 ************ MEDIA QUERIES ****************
 *******************************************/

@media (min-width: 768px) {

    .flex-container {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Header Styling */

    .storefront-breadcrumb {
        display: block;
    }

    .col-full {
        max-width: 100vw;
    }

    .page-narrow {
        max-width: 95vw;
        margin: 0 auto;
    }

    .page-macro-wc-endpoint {
        max-width: 85vw;
        margin: 0 auto;
    }

    .site-header .col-full {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 10px;
    }

    #content .col-full {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 22vh;
    }

    .woocommerce {
        flex: 1 100%;
    }

    .woocommerce-active .site-header .site-branding {
        flex: 1 230px;
        margin: 0;
    }

    .site-header .site-branding img {
        margin: 0 auto;
    }

    .top-header .left-section,
    .top-header .right-section {
        flex: 1 20%;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .home.blog .site-header {
        margin-bottom: 1.2em;
    }

    .top-header .center-section {
        flex: 1 60%;
    }

    .bottom-header .site-branding {
        flex: 1 100%;
    }

    .woocommerce-active .site-header .main-navigation {
        flex: 1;
        margin: 0;
    }

    .site-header-cart {
        display: block;
    }

    .woocommerce-active .site-header .site-header-cart {
        width: 4%;
    }

    .site-header-cart .cart-content {
        position: relative;
        color: #fff;
        padding: 0;
        float: right;
    }

    .site-header-cart .cart-content .count {
        position: absolute;
        background-color: #fff;
        border-radius: 20px;
        padding: 3px 10px;
        color: var(--medorange);
        top: -18px;
        left: -16px;
        font-size: 0.9em;
        opacity: 0.8;
        font-weight: 500;
    }

    .site-header-cart .cart-content::after {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        display: inline-block;
        font-style: normal;
        font-variant: normal;
        font-weight: normal;
        line-height: 1;
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        line-height: inherit;
        vertical-align: baseline;
        content: "";
        height: 0em;
        float: none;
        line-height: 0;
        font-size: 1.3em;
    }

    .site-header-cart:hover .widget_shopping_cart,
    .site-header-cart.focus .widget_shopping_cart {
        left: -310px;
    }

    .site-header-cart .widget_shopping_cart {
        width: 410px;
    }

    .storefront-primary-navigation {
        background-color: #fff;
    }

    .storefront-primary-navigation .col-full {
        padding: 0;
    }

    .storefront-secondary-navigation.woocommerce-active .site-header .secondary-navigation {
        flex: 0 25%;
        margin: 0;
        margin-right: 0;
    }

    .secondary-navigation .menu {
        float: unset;
        width: 100%;
        font-size: 0.775em;
        display: flex;
        flex-wrap: no-wrap;
        justify-content: flex-start;
    }

    .secondary-navigation .menu a {
        padding: 0em .675em;
    }

    .telephone {
        width: max-content;
    }

    .secondary-navigation .telephone a {
        font-size: 1.5em;
        font-weight: 700;
        color: #fff !important;
    }

    .main-navigation ul.menu>li.menu-item-has-children>a::after,
    .main-navigation ul.menu>li.page_item_has_children>a::after,
    .main-navigation ul.nav-menu>li.menu-item-has-children>a::after,
    .main-navigation ul.nav-menu>li.page_item_has_children>a::after {
        content: none;
    }

    .main-navigation ul.menu ul.sub-menu,
    .main-navigation ul.nav-menu ul.children,
    .main-navigation ul.menu ul a:hover,
    .main-navigation ul.menu ul li:hover>a,
    .main-navigation ul.menu ul li.focus,
    .main-navigation ul.nav-menu ul a:hover,
    .main-navigation ul.nav-menu ul li:hover>a,
    .main-navigation ul.nav-menu ul li.focus {
        background-color: unset;
    }

    .main-navigation a {
        font-family: var(--main-text);
        font-weight: 600;
    }

    .main-navigation ul li {
        position: static;
        text-align: center;
    }

    .main-navigation ul.menu>li>a,
    .main-navigation ul.nav-menu>li>a {
        padding: 10px 20px;
    }

    .main-navigation ul li a:hover,
    .main-navigation ul li:hover>a,
    .site-header ul.menu>li.current-menu-item>a,
    .site-header ul.menu .current-product_cat-ancestor.menu-item-has-children>a,
    .site-header ul.menu .current-product-ancestor.menu-item-has-children>a {
        color: #fff;
        background-color: var(--medorange);
    }

    .main-navigation ul li ul li a:hover,
    .main-navigation ul li ul.sub-menu li:hover>a,
    .site-header ul.menu li.current-menu-item ul.sub-menu li.current-menu-item>a,
    .site-header ul.menu li.current-product-ancestor.menu-item-has-children ul.sub-menu li.current-menu-item>a {
        color: var(--darkblue);
        font-weight: 600;
    }

    .main-navigation ul.menu ul.sub-menu {
        position: absolute;
        left: 0;
        width: 100%;
        background-color: #fff;
        display: none;
        justify-content: center;
    }

    .main-navigation ul.menu .current-menu-item.menu-item-has-children ul.sub-menu,
    .main-navigation ul.menu .current-product_cat-ancestor.current-menu-ancestor ul.sub-menu,
    .main-navigation ul.menu .current-product-ancestor.menu-item-has-children ul.sub-menu {
        display: flex;
        z-index: 1;
    }

    .main-navigation ul.menu li:hover ul.sub-menu {
        display: flex;
        z-index: 2;
    }

    .main-navigation ul ul li a {
        width: auto;
        font-size: 0.975em;
    }

    .hentry .entry-content .home-header.has-huge-font-size {
        font-size: 2rem;
    }

    .left-sidebar .content-area {
        width: 100%;
        float: none;
    }
	
	.macro-post-loop ul.columns-4.wp-block-post-template.is-layout-grid.wp-container-core-post-template-is-layout-e7fd85f5.wp-block-post-template-is-layout-grid {
		display: grid;
		gap: 1.25em;
		margin: 0;
	}

    /** Archive Style */

    .archive .site-main ul.products {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .archive .site-main ul.products.columns-4 li.product,
    .home .site-main ul.products.columns-4 li.product {
        margin: 5px;
        flex: 0 24%;
    }

    ul.products li.product .woocommerce-LoopProduct-link {
        display: flex;
        flex-flow: column;
        justify-content: flex-start;
    }

    .products a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
        height: 390px;
    }

    .archive #secondary {
        order: 1;
        flex: 1 100%;
    }

    /* Cart Styling */

    tr.woocommerce-cart-form__cart-item.cart_item {
        display: table-row;
        border-bottom: none;
    }

    table.cart td.product-quantity {
        display: table-cell;
        width: initial;
    }

    table.cart td,
    table.cart th {
        padding: .875em .875em 0;
    }

    table.shop_table_responsive tr td.product-price::before,
    table.shop_table_responsive tr td.product-subtotal::before {
        display: none;
    }

    /* Product Grid */

    ul.products li.product .button {
        display: none;
    }
}


@media (min-width: 1023px) {

    .flex-container {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Header Styling */

    .top-header .left-section,
    .top-header .right-section {
        flex: 1 20%;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .home.blog .site-header {
        margin-bottom: 1.2em;
    }

    .top-header .center-section {
        flex: 1 60%;
    }

    .bottom-header .site-branding {
        flex: 1 100%;
    }

    .woocommerce-active .site-header .main-navigation {
        flex: 1;
        margin: 0;
    }

    .site-header-cart {
        display: block;
    }

    .woocommerce-active .site-header .site-header-cart {
        width: 4%;
    }

    .site-header-cart .cart-content {
        position: relative;
        color: #fff;
        padding: 0;
        float: right;
    }

    .site-header-cart .cart-content .count {
        position: absolute;
        background-color: var(--macrolife-blue);
        border-radius: 20px;
        padding: 3px 10px;
        color: #fff;
        top: -18px;
        left: -16px;
        font-size: 0.9em;
        opacity: 0.8;
        font-weight: 500;
    }

    .site-header-cart .cart-content::after {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        display: inline-block;
        font-style: normal;
        font-variant: normal;
        font-weight: normal;
        line-height: 1;
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        line-height: inherit;
        vertical-align: baseline;
        content: "";
        height: 0em;
        float: none;
        line-height: 0;
        font-size: 1.3em;
    }

    .site-header-cart:hover .widget_shopping_cart,
    .site-header-cart.focus .widget_shopping_cart {
        left: -310px;
    }

    .site-header-cart .widget_shopping_cart {
        width: 410px;
    }

    .storefront-primary-navigation {
        background-color: #fff;
    }

    .storefront-primary-navigation .col-full {
        padding: 0;
    }

    .storefront-secondary-navigation.woocommerce-active .site-header .secondary-navigation {
        flex: 0 25%;
        margin: 0;
        margin-right: 0;
    }

    .secondary-navigation .menu {
        float: unset;
        width: 100%;
        font-size: 0.775em;
        display: flex;
        flex-wrap: no-wrap;
        justify-content: flex-start;
    }

    .secondary-navigation .menu a {
        padding: 0em .675em;
    }

    .telephone {
        width: max-content;
    }

    .secondary-navigation .telephone a {
        font-size: 1.5em;
        font-weight: 700;
        color: #fff !important;
    }

    .main-navigation ul.menu>li.menu-item-has-children>a::after,
    .main-navigation ul.menu>li.page_item_has_children>a::after,
    .main-navigation ul.nav-menu>li.menu-item-has-children>a::after,
    .main-navigation ul.nav-menu>li.page_item_has_children>a::after {
        content: none;
    }

    .main-navigation ul.menu ul.sub-menu,
    .main-navigation ul.nav-menu ul.children,
    .main-navigation ul.menu ul a:hover,
    .main-navigation ul.menu ul li:hover>a,
    .main-navigation ul.menu ul li.focus,
    .main-navigation ul.nav-menu ul a:hover,
    .main-navigation ul.nav-menu ul li:hover>a,
    .main-navigation ul.nav-menu ul li.focus {
        background-color: unset;
    }

    .main-navigation a {
        font-family: var(--main-text);
        font-weight: 600;
    }

    .main-navigation ul li {
        position: static;
        text-align: center;
    }

    .main-navigation ul.menu>li>a,
    .main-navigation ul.nav-menu>li>a {
        padding: 10px 20px;
    }

    .main-navigation ul li a:hover,
    .main-navigation ul li:hover>a,
    .site-header ul.menu>li.current-menu-item>a,
    .site-header ul.menu .current-product_cat-ancestor.menu-item-has-children>a,
    .site-header ul.menu .current-product-ancestor.menu-item-has-children>a {
        color: #fff;
        background-color: #000;
    }

    .main-navigation ul li ul li a:hover,
    .main-navigation ul li ul.sub-menu li:hover>a,
    .site-header ul.menu li.current-menu-item ul.sub-menu li.current-menu-item>a,
    .site-header ul.menu li.current-product-ancestor.menu-item-has-children ul.sub-menu li.current-menu-item>a {
        color: var(--darkblue);
        font-weight: 600;
    }

    .main-navigation ul.menu ul.sub-menu {
        position: absolute;
        left: 0;
        width: 100%;
        background-color: #fff;
        display: none;
        justify-content: center;
    }

    .main-navigation ul.menu .current-menu-item.menu-item-has-children ul.sub-menu,
    .main-navigation ul.menu .current-product_cat-ancestor.current-menu-ancestor ul.sub-menu,
    .main-navigation ul.menu .current-product-ancestor.menu-item-has-children ul.sub-menu {
        display: flex;
        z-index: 1;
    }

    .main-navigation ul.menu li:hover ul.sub-menu {
        display: flex;
        z-index: 2;
    }

    .main-navigation ul ul li a {
        width: auto;
        font-size: 0.975em;
    }

    .hentry .entry-content .home-header.has-huge-font-size {
        font-size: 2rem;
    }

    /* Category Loop grid Images */

    .product-category img {
        width: 380px;
        height: 140px;
    }

    ul.products li.product .woocommerce-loop-category__title {
        font-size: 1.6em;
    }

    /* Footer Styling */

    .site-footer .col-full {
        max-width: 75vw;
    }

    .footer-widgets {
        padding-top: 1em;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        margin-bottom: 1em;
    }

    .item-count {
        position: absolute;
        color: #fff;
        top: 0;
        right: 0;
        background-color: red;
        border-radius: 50%;
        padding: 0 25%;
    }

    .count,
    .amount {
        color: #000;
        font-size: 1.2rem;
        font-weight: bold;
        font-family: var(--secondary-text);
    }

    .login-link {
        position: relative;
        cursor: pointer;
    }

    .login-form,
    .login-menu {
        display: none;
        position: absolute;
        background-color: #000;
        z-index: 1;
        left: -100px;
        padding: 20px;
        width: auto;
        transition: all 0.3s;
    }

    .show {
        display: block;
    }

    .menu-login-menu-container {
        left: -60px;
        line-height: 2;
    }

    /* Special Pages styling */

    /* Blog Styling */

    .blog .col-full {
        justify-content: space-between;
        gap: 10px;
    }

    .small-box {
        flex: 0 32%;
    }

    .box-title {
        height: 70px;
    }

    .macro-single-post-wrapper .entry-header h1 {
        font-size: 2em;
    }

    /* Taxonomy Styling */

    .bapf_body {
        max-height: 500px;
    }

    .page-narrow .entry-content {
        background-color: #f9f9f9;
        padding: 20px 0;
    }

    .woocommerce-edit-account .page-narrow .entry-content {
        background-color: #f9f9f9;
        padding: 20px 30px;
    }

    .col2-set#customer_login .col-2 {
        border-left: 1px solid #000;
        padding-left: 25px;
    }

    .woocommerce-form-login input[type=text],
    input[type=number],
    input[type=email],
    input[type=tel],
    input[type=url],
    input[type=password],
    input[type=search],
    textarea,
    .input-text,
    .woocommerce-form-register input[type=text],
    input[type=number],
    input[type=email],
    input[type=tel],
    input[type=url],
    input[type=password],
    input[type=search],
    textarea,
    .input-text {
        background-color: #fff;
    }

    .woocommerce-form-login__submit {
        background-color: var(--macrolife-blue);
        color: #fff;
    }

    .woocommerce-form-register__submit {
        background-color: var(--midred);
        color: #fff;
    }

    .legal-menu {
        margin-right: 20px !important;
    }

    .legal-menu a.wp-block-navigation-item__content {
        text-decoration: none;
        padding: 10px 20px;
        border-radius: 7px;
        color: #000;
        font-weight: 400;
    }

    .legal-menu .current-menu-item a.wp-block-navigation-item__content {
        font-weight: 700;
        background-color: #f9f9f9;
        box-shadow: 2px 2px 4px #000;
    }

    .page-narrow .entry-header {
        display: flex;
        align-items: center;
        max-height: 60vh;
        overflow: hidden;
    }

    .page-narrow .entry-title {
        order: 1;
        max-width: 20%;
        position: absolute;
        font-weight: 500;
        background: #fff;
        padding: 10px 30px;
        border-radius: 20px;
        box-shadow: 5px 4px 5px #00000073;
        font-size: 2.3em;
        word-wrap: initial;
        white-space: break-spaces;
    }

    .page-narrow .entry-header img {
        order: 2;
        max-width: 79%;
        object-fit: cover;
        object-position: bottom;
        margin-left: auto;
        margin-right: 0;
    }

    .is-layout-flow.wp-block-column p {
        font-size: 1.2em;
        padding-right: 25%;
    }

    .is-layout-flow.wp-block-column strong {
        font-weight: 700;
    }

    /* Perfect Brands CSS */

    .pwb-all-brands .pwb-brands-cols-outer .pwb-brands-col3 {
        width: 200px;
        height: 130px;
    }

    .pwb-all-brands .pwb-brands-cols-outer .pwb-brands-col3 {
        width: 11%;
    }

    .pwb-brands-col3 {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .pwb-brands-col3>div {
        flex: 1;
    }

    /* Fix width for sidebar-content and non-sidebar*/

    .col-full .content-area,
    .single-product .content-area,
    .woocommerce-cart .content-area {
        width: 85vw;
        float: none;
        margin: 0 auto;
    }

    .left-sidebar .widget-area {
        width: 19%;
        margin-right: 5px;
    }

    .archive .storefront-sorting {
        order: 1;
    }

    .archive #secondary {
        flex: 1 15%;
    }

    .macrol-parent-products {
        flex: 1 84%;
    }

    .left-sidebar .content-area {
        width: 80%;
    }

    /* Fix Category grid images */

    .page-template-template-fullwidth-php .site-main ul.products.columns-5 li.product {
        margin: 5px;
        flex: 1 19%;
        margin-bottom: 0.8em;
    }

    .page-template-template-fullwidth-php .site-main .ul.products li.product.product-category img {
        margin: 0;
    }

    .page-template-template-fullwidth-php .site-main ul.products {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .storefront-sorting {
        margin-bottom: 0 !important;
    }

    /* Fix Product Gallery boxes height */

    .products a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
        height: 410px;
        position: relative;
    }

    .products img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
        height: 270px;
    }


    ul.products li.product .woocommerce-LoopProduct-link {
        display: flex;
        flex-flow: column;
        justify-content: flex-start;
    }

    .woocommerce-tabs ul.tabs li.active a,
    ul.products li.product .price {
        margin-top: auto;
    }

    .tall .products a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
        height: 600px;
    }

    .tall img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
        height: 490px;
        width: 100%;
    }

    ul.products li.product,
    ul.products .wc-block-grid__product,
    .wc-block-grid__products li.product,
    .wc-block-grid__products .wc-block-grid__product {
        margin-bottom: 4.5em;
        border: 1px solid #d9d9d9;
        padding: 5px;
        background-color: #fff;
        transition: all 0.3s ease-out;
    }

    ul.products li.product:hover,
    ul.products .wc-block-grid__product:hover,
    .wc-block-grid__products li.product:hover,
    .wc-block-grid__products .wc-block-grid__product:hover {
        box-shadow: 3px 4px 5px #00000038;
    }

    /* Quick View hover */

    .products li #sp-wqv-view-button.sp-wqv-view-button.button.after_add_to_cart,
    .products li #wps-slider-section .sp-wqv-view-button.button.after_add_to_cart,
    .products li #wpsp-slider-section .sp-wqv-view-button.button.after_add_to_cart {
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s, opacity 0.3s linear;
        position: absolute;
        top: 55%;
        left: 25%;
        margin: 0;
        padding: 10px;
        width: 50%;
    }

    .products li:hover #sp-wqv-view-button.sp-wqv-view-button.button.after_add_to_cart,
    .products li:hover #wps-slider-section .sp-wqv-view-button.button.after_add_to_cart,
    .products li:hover #wpsp-slider-section .sp-wqv-view-button.button.after_add_to_cart {
        visibility: visible;
        opacity: 1;
        font-size: 1.3em;
    }

    .wqv-product-images-slider img {
        max-height: 450px;
        object-fit: contain;
    }


    /* Parent Taxonomy Styling */

    ul.products {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    li.product-category {
        flex: 0 49%;
    }

    .term-description {
        font-size: 1.1em;
        text-align: justify;
    }

    .woocommerce-products-header {
        display: flex;
        align-items: flex-start;
    }

    .woocommerce-products-header img {
        display: block;
        width: 1000px;
        height: 400px;
        object-fit: cover;
        object-position: 0% 10%;
        margin-right: 45px;
    }

    .macro-archive-description {
        flex: 1 60%;
    }

    .macro-archive-description h1 {
        font-size: 2.4em;
    }

    /* Child Taxonomy Styling */

    .macrol-child-products.woocommerce-products-header {
        padding: 30px 0;
        margin: 0 auto;
    }

    .macrol-child-products h1.woocommerce-products-header__title.page-title {
        padding: 0 20px 20px 0;
        font-size: 2em;
        line-height: 1;
        margin: -8px 25px 0 0;
        white-space: nowrap;
    }

    .macrol-child-products .term-description {
        padding: 0px 20px 0 15px;
        font-size: 0.9em;
        border-left: 10px solid #707070;
    }

    .macrol-child-products .term-description p {
        line-height: 1.5;
        margin: 0;
    }

    /* SINGLE PRODUCT */

    .pshop-product-details {
        display: inline-block;
    }

    .woocommerce-product-gallery__wrapper {
        width: 100%;
    }

    .woocommerce-product-gallery {
        width: 45vw;
        display: flex;
        margin-right: 30px;
    }

    .woocommerce-product-gallery img {
        width: 100%;
        object-fit: contain;
        max-height: 60vh;
        height: unset;
    }

    .single_variation_wrap {
        width: 100%;
    }

    .summary.entry-summary h4 {
        margin: 1.5em 0 0 0;
        font-weight: 400;
        text-decoration: overline;
    }

    .woocommerce-product-details__short-description h3 {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .single-product div.product .woocommerce-product-gallery {
        width: 34%;
        position: sticky;
        top: 160px;
        margin-right: 10px;
        margin-bottom: 0;
    }

    .single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
        overflow-x: hidden;
        max-height: 60vh;
        overflow-y: scroll;
        display: flex;
        flex-direction: column;
        flex: 0 50%;
    }

    .single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
        width: 100% !important;
    }

    .single-product div.product .woocommerce-product-gallery .flex-viewport {
        flex: 0 100vw;
        order: 2;
    }

    .single-product div.product .summary {
        font-size: 1em;
        width: 65%;
    }

    .macro-product-details {
        display: flex;
        max-width: 80vw;
        margin: 0 auto;
    }

    .woocommerce-variation-add-to-cart,
    form.cart {
        display: flex;
        flex-wrap: wrap;
    }

    h1.product_title.entry-title {
        font-family: var(--main-text);
        font-size: 2rem;
        line-height: 1.2;
    }

    .single-product p.price .amount {
        font-size: 1.2em;
    }

    .product_meta {
        margin-bottom: 25px;
    }

    .qib-container {
        margin-right: 1em;
    }

    form.cart .qib-container+button[type='submit']:not(#qib_id):not(#qib_id) {
        margin-left: 1em;
    }

    .storefront-sticky-add-to-cart__content-button.button.alt {
        background-color: var(--midred);
    }

    .common-products {
        gap: 10px;
    }

    .common-products a {
        flex: 0 8%;
    }

    .common-products h2 {
        font-size: 0.7em;
    }

    /* Mini Cart & Cart Page */

    .page-macro-wc-endpoint .entry-header h1 {
        text-align: center;
        font-weight: 400;
        background-color: var(--midgray);
        color: #fff;
        font-size: 2rem;
    }

    .page-macro-wc-endpoint .woocommerce {
        display: flex;
        flex-wrap: wrap;
    }

    .page-macro-wc-endpoint .woocommerce-cart-form {
        flex: 1 72%;
        margin-right: 2%;
    }

    .page-macro-wc-endpoint .cart-collaterals {
        flex: 1 14%;
    }

    .cart-collaterals h2 {
        text-align: center;
        font-weight: 400;
    }

    .cart-collaterals .cart_totals {
        width: 100%;
        float: none;
        position: sticky;
        top: 110px;
        background: #fdfdfd;
        box-shadow: 4px 5px 9px #00000061;
        padding: 15px;
        border-radius: 20px;
    }

    table.shop_table_responsive tbody tr th,
    table.shop_table_responsive tbody tr td,
    .woocommerce-shipping-totals.shipping tr td,
    .woocommerce-shipping-totals.shipping th,
    .woocommerce-shipping-totals.shipping td {
        background-color: transparent !important;
        color: #000000;
        font-weight: 300;
        vertical-align: middle;
    }

    .cart-collaterals h2,
    .macro-cart-subtotal .count,
    .macro-cart-subtotal .amount,
    .macro-order-total .count,
    .shipping .count,
    .shipping .amount,
    .shipping-calculator-button,
    .woocommerce-shipping-methods .amount {
        color: #000000;
        font-size: 1rem;
        font-weight: 600;
        flex: 1 94%;
    }

    .macro-order-total .amount {
        font-size: 1.4rem;
        font-weight: 600;
    }

    .macro-cart-subtotal,
    .order-total {
        display: flex;
        align-items: baseline;
    }

    .macro-cart-subtotal p,
    .order-total p {
        flex: 1 18%;
    }

    .order-total strong {
        flex: 1 94%;
    }


    .product-subtotal {
        text-align: right;
    }

    .product-subtotal .amount,
    .product-price .amount {
        font-size: 1rem;
    }

    .woocommerce-shipping-totals.shipping td {
        text-align: right;
    }

    .shop_table.shop_table_responsive tr td {
        text-align: right;
        padding: 0 5px;
    }

    table.cart td.product-quantity .qty {
        padding: .326em 1.326em 0.326em .326em;
        width: 5em;
    }

    .cart_item .product-name a {
        text-decoration: none;
        color: #000;
    }

    .shop_table.shop_table_responsive tr th {
        font-size: 1rem;
        padding: 0 5px;
    }

    .amount {
        font-weight: 400;
    }

    table.cart td.product-remove {
        width: 15px;
    }

    table.cart th,
    table.cart td {
        padding: 15px;
    }

    .cart_item td {
        border-bottom: 1px solid #009ddf26;
    }

    table.cart td.product-name {
        text-decoration: none;
        font-size: 1rem;
    }

    .shop_table_responsive tr td {
        vertical-align: middle;
    }

    table.cart .product-thumbnail img {
        max-width: 8em;
        height: 4.5em;
        width: auto;
    }

    .actions button {
        background-color: var(--medgreen);
        color: #fff;
        font-size: 1rem;
    }

    .actions #coupon_code {
        background-color: #fff;
        border: 1px solid #0000000d;
        margin-right: 20px;
        padding: 14px;
        font-size: 1.2em;
        text-align: center;
    }

    .wc-proceed-to-checkout .button.checkout-button {
        font-size: 1rem !important;
        padding: 10px;
    }

    .wc-proceed-to-checkout {
        margin-bottom: 0;
    }

    #mailpoet_form_1,
    #mailpoet_form_2 {
        margin: -25vh auto 7vh auto;
        width: 75% !important;
    }

    .wp-block-jetpack-contact-form {
        padding-left: 0;
    }

    /* Checkout Page */

    .macro-checkout-review-order::after {
        left: 0;
        width: 100%;
    }

    #order_review {
        margin-top: 0;
        width: 60%;
        padding-left: 30px;
    }

    #customer_details {
        padding: 20px;
    }

    #customer_details {
        width: 40%;
        padding: 40px;
    }


    /* Account page */

    .woocommerce-account .woocommerce {
        display: flex;
    }

    .woocommerce-MyAccount-navigation {
        flex: 1 20%;
        padding: 0 10px;
    }

    .woocommerce-MyAccount-navigation ul li a {
        color: #000;
    }

    .woocommerce-MyAccount-content {
        flex: 1 80%;
        padding: 0 10px;
        ;
    }

    .wc_payment_method {
        flex: 0 33%;
    }

    .woocommerce-EditAccountForm.edit-account,
    .woocommerce-MyAccount-content {
        padding: 0 20px;
        background-color: #fff;
        margin-right: 0;
    }

    .woocommerce-EditAccountForm.edit-account fieldset {
        padding: 0;
    }

    /* Order final page */

    .woocommerce-order {
        margin: 0 auto;
        display: grid;
        column-gap: 3em;
        grid-template-areas:
            "title title"
            "order-number order-details"
            "address address";
        grid-template-columns: 1fr 1fr;
    }

    .woocommerce-thankyou-order-received {
        grid-area: title;
        justify-self: center;
    }

    table.woocommerce-table--order-details td,
    table.woocommerce-table--order-details th {
        padding: 0.5em 1.41575em;
    }

    .woocommerce-thankyou-order-details,
    .woocommerce-thankyou-order-details+p {
        grid-area: order-number;
    }

    .woocommerce-order-details {
        grid-area: order-details;
    }

    .woocommerce-table--order-details .product-total,
    .woocommerce-table--order-details tfoot td {
        text-align: right;
    }

    .woocommerce-customer-details {
        grid-area: address;
    }

    address {
        font-size: 1.2em;

    }

    .cart-notice {
        background: black;
        color: #fff;
        text-align: center;
        font-weight: 700;
        font-size: 1em;
        padding: 9px;
    }

    .woocommerce-notices-wrapper {
        flex: 1 100%;
    }

    .woocommerce-edit-account .woocommerce-notices-wrapper {
        display: none;
    }

    .qib-button:not(#qib_id):not(#qib_id) {
        background: #727983 !important;
    }

    /** Single Post */

    .macro-single-post-wrapper {
        max-width: 50vw;
        margin: 0 auto;
    }

}


/** Animate go to cart button */
a.added_to_cart.wc-forward,
a.added_to_cart.wc-forward::after {
    animation: hideAnimation 0.2s ease-in 4s;
    animation-fill-mode: forwards;
}

@keyframes hideAnimation {
    to {
        opacity: 0;
        transform: scale(1, 0);
    }
}

/** Post single and loop stylings */

ul.is-layout-flow.is-flex-container.columns-4.wp-block-post-template {
    margin: 0;
}

.macro-post-loop .hentry {
    background-color: var(--medgreen);
}

.macro-post-loop .hentry .wp-block-post-title a {
    text-decoration: none;
    color: #fff;
}

.hentry .entry-content .macro-post-loop .has-medium-font-size {
    padding: 0 20px 10px 20px;
    font-size: 1em;
    line-height: 1.4;
    text-align: center;
}

.macro-post-loop .hentry .wp-post-image {
    margin-bottom: 1.2em;
    border-bottom: 1px solid #fff;
}

.macro-single-post-wrapper .entry-content img {
    height: 50vh;
    object-fit: cover;
    object-position: 0 30%;
}

.macro-single-post-wrapper .hentry .entry-header {
    margin-bottom: 0.5em;
    background-color: var(--medgreen);
    text-align: center;
}

.macro-single-post-wrapper .entry-header h1 {
    color: #fff;
    line-height: 1.3;
    margin: 0;
    padding: 20px;
    font-size: 1.2em;
    letter-spacing: 0;
}