.hm-woo-cart-icon {
    position: relative;
}

.hm-woo-cart-item-count {
    border-radius: 1em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: .875em;
    font-weight: 600;
    height: 1.4285714286em;
    text-align: center;
    left: 100%;
    margin-left: -44%;
    min-width: 1.4285714286em;
    padding: 0 .25em;
    position: absolute;
    transform: translateY(-32%);
    white-space: nowrap;
    z-index: 1;
    background-color: #333;
    color: #fff;
}

.hm-site-header-cart {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.hm-woo-header-cart-link {
    padding: 0 5px;
}

.hm-h-de .hm-site-header-cart {
    height: 50px;
}

.hm-site-header-cart .woocommerce-mini-cart__buttons.buttons {
    margin-bottom: 20px;
    padding: 0 20px;
}

.hm-site-header-cart .widget.widget_shopping_cart {
    margin-bottom: 0;
}

.hm-site-header-cart .hm-svg-icon {
    font-size: 1.1rem;
    margin-top: 7px;
}

.hm-header-cart-expand {
    display: none;
    position: absolute;
    top: 100%;
    right: -1.5em;
    background: #f2f2f2;
    width: 300px;
    box-shadow: var(--hybridmag-global-box-shadow);
    z-index: 100;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    border-bottom: 1px solid var(--hybridmag-color-border);
}

.hm-dark .hm-header-cart-expand {
    background: #333;
}

.hm-site-header-cart:hover .hm-header-cart-expand {
    display: block;
}

.hm-site-header-cart.hmh-cart-open .hm-header-cart-expand {
    display: block;
}

.woocommerce-cart .hm-site-header-cart:hover .hm-header-cart-expand,
.woocommerce-checkout .hm-site-header-cart:hover .hm-header-cart-expand {
    display: none;
}

.hm-site-header-cart .woocommerce ul.cart_list, 
.hm-site-header-cart .woocommerce ul.product_list_widget {
    border-top: 1px solid var(--hybridmag-color-border);
    border-bottom: 1px solid var(--hybridmag-color-border);
    padding: 10px 0;
}

.hm-dark .hm-site-header-cart .woocommerce ul.cart_list, 
.hm-dark .hm-site-header-cart .woocommerce ul.product_list_widget {
    border-top: 1px solid #4f4f4f;
    border-bottom: 1px solid #4f4f4f;
}

.hm-site-header-cart .woocommerce .widget_shopping_cart .cart_list li, 
.hm-site-header-cart .woocommerce.widget_shopping_cart .cart_list li {
    padding: 9px 18px;
}

.hm-site-header-cart .woocommerce .widget_shopping_cart .cart_list li:hover, 
.hm-site-header-cart .woocommerce.widget_shopping_cart .cart_list li:hover {
    background: #fafafa;
}

.hm-dark .hm-site-header-cart .woocommerce .widget_shopping_cart .cart_list li:hover, 
.hm-dark .hm-site-header-cart .woocommerce.widget_shopping_cart .cart_list li:hover {
    background: #111111;
}

.hm-site-header-cart .woocommerce .widget_shopping_cart .buttons a, 
.hm-site-header-cart .woocommerce.widget_shopping_cart .buttons a {
    width: 48%;
    text-align: center;
}

.hm-site-header-cart .woocommerce ul.cart_list li img, 
.hm-site-header-cart .woocommerce ul.product_list_widget li img, 
.woocommerce-page .hm-site-header-cart ul.cart_list li img, 
.woocommerce-page .hm-site-header-cart ul.product_list_widget li img {
    width: 55px;
    float: left !important;
    margin: 0 12px 0 0;
    border-radius: var(--hybridmag-global-border-radius);
}

.hm-site-header-cart .woocommerce.widget_shopping_cart .quantity {
    display: block;
    font-size: 14px;
}

.hm-site-header-cart .woocommerce ul.cart_list li a {
    font-weight: 600;
}

.hm-site-header-cart .woocommerce .widget_shopping_cart .cart_list li a.remove, 
.hm-site-header-cart .woocommerce.widget_shopping_cart .cart_list li a.remove {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    left: auto;
}

.hm-site-header-cart .woocommerce .widget_shopping_cart .cart_list li:hover .remove, 
.hm-site-header-cart .woocommerce.widget_shopping_cart .cart_list li:hover .remove {
    opacity: 1;
}

.hm-site-header-cart .woocommerce-mini-cart__total .woocommerce-Price-amount {
    float: right;
    font-weight: 600;
}

.hm-site-header-cart .woocommerce .widget_shopping_cart .total, 
.hm-site-header-cart .woocommerce.widget_shopping_cart .total {
    border-bottom: 1px solid var(--hybridmag-color-border);
    border-top: 0;
    padding: 10px 18px;
    margin: 0 0 15px;
    background: #fafafa;
}

.hm-dark .hm-site-header-cart .woocommerce .widget_shopping_cart .total, 
.hm-dark .hm-site-header-cart .woocommerce.widget_shopping_cart .total {
    background: #111111;
}

.hm-dark .hm-site-header-cart .woocommerce .widget_shopping_cart .total, 
.hm-dark .hm-site-header-cart .woocommerce.widget_shopping_cart .total {
    border-bottom: 1px solid #4f4f4f;
}

.hm-site-header-cart .woocommerce-mini-cart__empty-message {
    padding: 20px;
    margin: 0;
}

.wc-block-grid__product-rating .star-rating span:before, 
.wc-block-grid__product-rating .wc-block-grid__product-rating__stars span:before, 
.wc-block-grid__product-rating .wc-block-product-review-rating__stars span:before, 
.wp-block-woocommerce-product-review-rating .star-rating span:before, 
.wp-block-woocommerce-product-review-rating .wc-block-grid__product-rating__stars span:before, 
.wp-block-woocommerce-product-review-rating .wc-block-product-review-rating__stars span:before,
.woocommerce .star-rating span::before {
    color: #FF9529;
}

.wc-block-product-filter-price-slider__range .range-bar,
.wc-block-product-filter-price-slider__range {
    height: 2px;
}

.wc-block-product-filter-price-slider__range input[type=range] {
    top: -2px;
}

.woocommerce-ordering select,
.wc-block-product-filter-price-slider .text input[type=text],
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-form .wc-block-components-text-input input[type=email], 
.wc-block-components-form .wc-block-components-text-input input[type=number], 
.wc-block-components-form .wc-block-components-text-input input[type=password], 
.wc-block-components-form .wc-block-components-text-input input[type=tel], 
.wc-block-components-form .wc-block-components-text-input input[type=text], 
.wc-block-components-form .wc-block-components-text-input input[type=url], 
.wc-block-components-text-input input[type=email], 
.wc-block-components-text-input input[type=number], 
.wc-block-components-text-input input[type=password], 
.wc-block-components-text-input input[type=tel], 
.wc-block-components-text-input input[type=text], 
.wc-block-components-text-input input[type=url] {
    color: var(--hybridmag-color-input);
	background-color: var(--hybridmag-color-input-background);
	border-color: var(--hybridmag-color-input-border);
}

.wc-block-product-filter-price-slider .text input[type=text]:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-components-form .wc-block-components-text-input input[type=email]:focus, 
.wc-block-components-form .wc-block-components-text-input input[type=number]:focus, 
.wc-block-components-form .wc-block-components-text-input input[type=password]:focus, 
.wc-block-components-form .wc-block-components-text-input input[type=tel]:focus, 
.wc-block-components-form .wc-block-components-text-input input[type=text]:focus, 
.wc-block-components-form .wc-block-components-text-input input[type=url]:focus, 
.wc-block-components-text-input input[type=email]:focus, 
.wc-block-components-text-input input[type=number]:focus, 
.wc-block-components-text-input input[type=password]:focus, 
.wc-block-components-text-input input[type=tel]:focus, 
.wc-block-components-text-input input[type=text]:focus, 
.wc-block-components-text-input input[type=url]:focus {
    color: var(--hybridmag-color-input);
	background-color: var(--hybridmag-color-input-background);
}

.wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout-order-summary-block {
    border-color: var(--hybridmag-color-input-border);
}

.wp-block-woocommerce-product-filter-rating .wc-block-product-filter-checkbox-list__text svg {
    color: #b5b5b5;
}

.woocommerce div.product div.images.woocommerce-product-gallery img,
.wc-block-grid__products .wc-block-grid__product-image img,
.woocommerce ul.products li.product a img {
    border-radius: var(--hybridmag-global-border-radius);
}

.woocommerce ul.products li.product a img {
    margin-bottom: 10px;
}

.woocommerce div.product div.images.woocommerce-product-gallery .flex-viewport img {
    border-radius: 0;
}

.woocommerce div.product .flex-viewport {
    border-top-left-radius: var(--hybridmag-global-border-radius);
    border-top-right-radius: var(--hybridmag-global-border-radius);
}

.woocommerce div.product .flex-control-nav.flex-control-thumbs li {
    overflow: hidden;
}

.woocommerce div.product .flex-control-nav.flex-control-thumbs li:first-child img {
    border-bottom-left-radius: var(--hybridmag-global-border-radius);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.woocommerce div.product .flex-control-nav.flex-control-thumbs li:last-child img {
    border-bottom-right-radius: var(--hybridmag-global-border-radius);
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-category__title, 
.woocommerce ul.products li.product .woocommerce-loop-product__title, 
.woocommerce ul.products li.product h3 {
    padding: 0 0 .4em 0;
}

/* Default */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    background: var(--hybridmag-color-button-background);
	color: var(--hybridmag-color-button-text);
    font-weight: 600;
}

/* Default : HOVER */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:hover {
    color: var(--hybridmag-color-button-hover-text);
    background: var(--hybridmag-color-button-hover-background);
}

/* ALT */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
    background: var(--hybridmag-color-button-background);
	color: var(--hybridmag-color-button-text);
}

/* ALT : HOVER */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, 
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover, 
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:hover {
    color: var(--hybridmag-color-button-hover-text);
    background: var(--hybridmag-color-button-hover-background);
}

/* Cart Proceed to checkout */
.woocommerce-page .entry-content .wc-block-cart__submit-button, 
.woocommerce-page .wc-block-cart__submit-button {
    background-color: var(--hybridmag-color-button-background);
    color: var(--hybridmag-color-button-text);
}

/* Cart Proceed to checkout : HOVER */
.woocommerce-page .entry-content .wc-block-cart__submit-button:hover,
.woocommerce-page .wc-block-cart__submit-button:hover {
    background-color: var(--hybridmag-color-button-background);
    color: var(--hybridmag-color-button-text);
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, 
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .stock {
    color: var(--hybridmag-color-text-main);
}

.wc-block-grid .wc-block-grid__product-onsale, 
.wc-block-grid__product-image .wc-block-grid__product-onsale,
.woocommerce span.onsale {
    top: 10px;
    left: 10px;
    right: auto;
    min-height: auto;
    line-height: 1.5;
    border-radius: 3px;
    background-color: var(--hybridmag-color-primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
}

.wc-block-grid .wc-block-grid__product-onsale, 
.wc-block-grid__product-image .wc-block-grid__product-onsale,
.woocommerce ul.products li.product .onsale {
    margin: 5px 5px 0 0;
    font-size: 0.8rem;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    border: 1px solid var(--hybridmag-color-border);
    border-radius: var(--hybridmag-global-border-radius);
    overflow: hidden;
}

.woocommerce-MyAccount-navigation ul li {
    border-top: 1px solid var(--hybridmag-color-border);
}

.woocommerce-MyAccount-navigation ul li:first-child {
    border-top: none;
}
    
.woocommerce-MyAccount-navigation ul li a {
    padding: 0.7em 1em;
    text-decoration: none;
    display: block;
    background-color: #f5f5f5; 
    color: var(--hybridmag-color-text-main);
    font-weight: 600;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #ffffff; 
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 28%;
}

/* Empty Cart - Products Grid */
.wc-block-grid__product .wc-block-grid__product-title {
    font-size: 1rem;
    margin: 0;
    padding: 0 0 .4em 0;
    line-height: 1.3;
}

.wc-block-grid__product .wc-block-grid__product-image:not(.wc-block-components-product-image) {
    margin: 0 0 10px;
}

.wc-block-grid__product .wc-block-grid__product-link {
    text-decoration: none;
    color: var(--hybridmag-color-text-headings);
}

.wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link {
    font-size: 0.938rem;
    font-weight: 600;
}

.wc-block-grid__product .wc-block-grid__product-rating,
.wc-block-grid__product .wc-block-grid__product-price {
    margin-bottom: 5px;
}

.wc-block-grid__product .wc-block-grid__product-add-to-cart {
    margin-top: 15px;
}

/* DARK MODE */

.hm-dark .woocommerce-MyAccount-navigation ul li a {
    background-color: #1c1c1c; 
}

.hm-dark .woocommerce-MyAccount-navigation ul li.is-active a {
    background-color: #000000; 
}

.hm-dark .woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
    color: #cccccc;
}

.hm-dark .woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb a {
    color: #eeeeee;
}

.hm-dark .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background-color: #222222;
    border-bottom-color: #222222;
}

.hm-dark .woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #ffffff;
}

.hm-dark .woocommerce div.product .woocommerce-tabs ul.tabs li {
    background-color: #111111;
}

.hm-dark .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #f5f5f5;
} 