.loop-item--product .ajax_add_to_cart:after {
    font-family: WooCommerce;
    position: absolute;
    right: 10px;
}

.loop-item--product .ajax_add_to_cart.loading {
    opacity: 0.2;
}

.loop-item--product .ajax_add_to_cart.loading:after {
    content: "\e01c";
    vertical-align: top;
    font-weight: 400;
    top: .718em;
    right: 1em;
    animation: spin 2s linear infinite;
}

.cat-desc{
	margin-bottom: 40px;
}

.loop-item--product .ajax_add_to_cart.added:after {
    content: "\e017";
    margin-left: .53em;
    vertical-align: bottom;
}

.added_to_cart.wc-forward {
    padding-top: 0 !important;
	color: #fff;
    padding-right: 10px;
}


.modifier-selection {
    margin-bottom: 50px;
}

.modifier-group {
    margin-bottom: 15px;
}

.modifier-group h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.selection-limit {
    margin: 0 0 10px;
    font-size: 12px;
    color: #666;
}

.modifier-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


#special_request,
.modifier-label {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    text-align: center;
    margin-left: 0 !important;
}

#special_request{
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.woocommerce ul.products li.product .add_to_cart_button {
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 10px;
    background: #fff;

}


.modifier-option.selected {
    border-color: var(--e-global-color-primary) !important;
    color: #000 !important;
}

.modifier-price {
    margin-left: 5px;
    color: #000;
    font-weight: bold;
}

.woocommerce div.product form.cart {
    display: block !important;
}

.modifier-option input {
    display: none;
}

.modifier-option input:checked+.modifier-label {
    border-color: #ff6200;
    outline: 2px solid #ff6200;
    outline-offset: -2px;
}


/*.woocommerce div.product form.cart button.single_add_to_cart_button {
    background-color: var(--e-global-color-primary) !important;
    border-color: var(--e-global-color-primary) !important;
    color: #fff !important;
    width: 70%;
    border-radius: 10px !important;
}
*/
.woocommerce div.product form.cart div.quantity {
    width: 28%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.woocommerce div.product form.cart div.quantity input[type="number"] {
    padding: 8px;
    border: 1px solid #4d4d4d;
    border-radius: 10px;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    flex-grow: 1;
    height: 37.75px;

}

.woocommerce div.product form.cart div.quantity button {
    height: 37.75px;
    width: 37.75px;
    border-radius: 10px;
    border-color: #4d4d4d;
    margin: 0;
}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-mini-cart__template-part .wc-block-components-button:not(.is-link) {
    min-height: 1em;
    border-radius: 10px;
}

:root :where(.wp-element-button, .wp-block-button__link) {
    background-color: var(--e-global-color-primary);
    border-radius: 10px;
}


.wc-block-mini-cart__template-part h2.wc-block-mini-cart__title {
    font-size: 1.5em;
}

.pswp__bg {
    background: rgb(0 0 0 / 70%);
}

dl.variation {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    font-weight: 400;
    width: max-content;
    font-size: 14px;
}

dl.variation p {
    margin-top: 0;
}


.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-color: var(--e-global-color-primary);
}

.wc-block-components-product-metadata__description {
    display: none;
}

table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img {
    border-radius: 7xp
}

.elementor-widget-theme-site-logo img {
    height: 64px !important;
    transition: height ease 0.5s;

}

.main-header.header-fixed .elementor-widget-theme-site-logo img {
    height: 50px !important;
}

#quickview-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

#quickview-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#quickview-popup .quickview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(2px);
}

.quickview-content {
    position: relative;
    background: #fff;
    width: min(720px, 92%);
    max-height: calc(100vh - 100px);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 48px -6px rgba(0, 0, 0, .28);
    overflow: hidden;
    animation: scaleIn .25s ease;
}

.quickview-body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 4px 50px 20px;
}

.quickview-body .product-summary {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 28px;
}

.qv-left {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qv-left img {
    width: 100%;
    border-radius: 10px;
    display: block;
    height: auto;
    object-fit: cover
}


.qv-right {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.qv-right p{
    margin-top: 0;
}

.qv-right h2 {
    font-size: 1.5rem;
    margin: 0 0 12px;
    line-height: 1.25;
}

.qv-description {
    font-size: .95rem;
    line-height: 1.55;
    margin: 0 0 18px;
}

.qv-right form.cart {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #eee;
}

#quickview-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, .06);
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

#quickview-close:hover {
    background: rgba(0, 0, 0, .12);
}

@keyframes scaleIn {
    from {
        transform: translateY(10px) scale(.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Scroll lock không làm “jump to top” */
body[data-scroll-locked] {
    overflow: hidden !important;
    overscroll-behavior: contain;
    position: relative !important;
    padding-right: var(--removed-body-scroll-bar-size, 15px) !important;
}

/* Skeleton / Loading */
.qv-loading {
    display: flex;
    width: 100%;
    gap: 24px;
}

.qv-loading .ph {
    background: linear-gradient(110deg, #f3f3f3 8%, #e3e3e3 18%, #f3f3f3 33%);
    background-size: 200% 100%;
    animation: phAnim 1.1s linear infinite;
    border-radius: 8px;
}

.qv-loading .ph.img {
    flex: 0 0 40%;
    height: 260px;
}

.qv-loading .ph.lines {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qv-loading .ph.lines span {
    display: block;
    height: 16px;
    background: inherit;
    border-radius: 6px;
}

.qv-loading .ph.lines span.w40 {
    width: 40%;
}

.qv-loading .ph.lines span.w60 {
    width: 60%;
}

.qv-loading .ph.lines span.w80 {
    width: 80%;
}

.qv-loading .ph.lines span.w30 {
    width: 30%;
}

body.woocommerce-cart .elementor-widget__width-auto.wc-custom-cart,
body.woocommerce-checkout .elementor-widget__width-auto.wc-custom-cart{
    display: none;
}

@keyframes phAnim {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 640px) {
    .quickview-body {
        flex-direction: column;
        gap: 18px;
    }

    .qv-left,
    .qv-right {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .qv-loading {
        flex-direction: column;
    }

    .qv-loading .ph.img {
        width: 100%;
        height: 190px;
    }
	
	.quickview-content{
		    max-width: 100%;
		max-height: 100%;
		width: 100%;
		border-radius: 0;
	}
	
	.quickview-body .product-summary{
		flex-direction: column;
	}
	
	.wc-block-cart table.wc-block-cart-items td{
		margin-bottom: 0!important
	}
	
	.elementor-widget-theme-site-logo img {
		height: 47px !important;
	}
	
	.main-header.header-fixed .elementor-widget-theme-site-logo img{
		height: 37px!important;
	}
}

.product-item {
    cursor: pointer;
}

.button-action--wrapper {
    position: absolute;
    bottom: 0;
    display: flex;
    width: 100%;
    left: 0;
    background-color: var(--e-global-color-primary);
    justify-content: space-between;
    z-index: 2;
    align-items: center;
}

.button-action--wrapper .item-quantity {
    display: flex;
    padding: 0 15px;
}

.button-action--wrapper button,
.button-action--wrapper input {
    border: 0;
    background-color: transparent;
    text-align: center;
    color: #fff;
    height: 40px;
    font-size: 17px;
}

.button-action--wrapper button {
    cursor: pointer;
}

.button-action--wrapper .single_add_to_cart_button {
    margin-left: auto!important;
    margin-right: 15px;
    margin-top: 0!important;
}

.button-action--wrapper .main-product--price{
 color: #fff;
 padding-right: 10px;
 font-weight: bold;
}

.button-action--wrapper input.input-text.qty {
    width: 50px;
    -moz-appearance: textfield;
    -webkit-appearance: textfield;
    text-align: center;
}