.col,.gallery-item,.columns{
	margin:0px auto !important;
	padding: 0px !important;
}
.logo-slider, .slider-wrapper, .qemix-partner-slider {
	margin-top:1px !important;
}
/*
Theme Name: Cake
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/*
Bạn có thể thêm CSS ở đây.

Nhấp chuột vào biểu tượng trợ giúp phía trên để tìm hiểu thêm.
*/
.product_meta>span{
    padding-top: 10px;
}


.row-sp-them .icon-box{
        align-items: center;
}
.row-sp-them .icon-box h4{
    font-size: 14px;
    font-weight: normal;
}
.flex-right .account-link .icon-user {
    color: #990303;
}

a.button.success{
        border-radius: 4px;
    color: #2f4858;
    font-size: 14px;
    font-weight: normal;
    margin-right: 0px;
}
.html_topbar_left a{
    font-weight: bold;
    font-size: 110%;
}
.wpcf7-spinner{
    display: none;
}
#masthead .html_topbar_left::before {
        content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-right: 15px;
    background-position: center center;
    opacity: 1;
    background-image: url(/wp-content/themes/flatsome-child/assets/img/phone-icon.png);
    position: absolute;
    left: -50px;
    top: 5px;
}
.html_topbar_left{
        margin-top: -17px !important;
}
.title-home{
    text-transform: uppercase;
    font-size: 24px;
}
.nav-vertical>li+li, .nav-vertical-fly-out>li+li{
    border-top: none;
}
.section-danh-muc{
    padding-top: 0px !important;
}
.div-banner{
    padding: 0px;
}
.header-vertical-menu__fly-out .nav-vertical-fly-out>li.menu-item>a{
    padding: 6px 15px;
    font-size: 14px;
}
.header-bottom .header-vertical-menu__opener{
        width: 275px;
    	margin-right: 20px;
}
.header-vertical-menu__fly-out{
        width: 275px;
}
.button-dieu-kien{
	font-size: 12px;
    color: #2E72D2;
    cursor: pointer;
    margin-bottom: 3px;
    background: transparent !important;
    border: none;
    box-shadow: none;
}
.mfp-content button{
	margin-bottom: 0px !important;
}
.ma-uu-dai-inner p.action{
	margin-bottom: 4px;
}
.ma-uu-dai-inner p.excerpt{
	font-size: 11px;
}
.ma-uu-dai-inner:before {
	    color: #fff !important;
    content: "";
    position: absolute;
    top: 0;
    left: -5px;
    height: 100%;
    width: 10px;
    color: var(--coupon-code-background);
    background-clip: padding-box;
    background: repeating-linear-gradient(#e5e5e5,#e5e5e5 5px,transparent 0,transparent 9px,#e5e5e5 0,#e5e5e5 10px) 0/1px 100% no-repeat,radial-gradient(circle at 0 7px,transparent,transparent 2px,#e5e5e5ee 0,#e5e5e5 3px,currentColor 0) 1px 0/100% 10px repeat-y;
}
.ma-uu-dai-item{
	padding-left: 5px !important;
	padding-right: 5px !important;  
}
.ma-uu-dai-inner{
	padding: 5px;
	    background: rgb(255, 255, 255);
    filter: drop-shadow(rgba(0, 0, 0, 0.15) 0px 0px 3px);

    border-radius: 5px;
}
a.sao_chep{
	border: none;
    padding: 2px 15px;
    border-radius: 999px;
    margin-bottom: 3px;
    background: #cd3344 !important;
    font-weight: normal;
    font-size: 12px;
}
.div-voucher{
	margin-bottom: 10px;
}
.div-voucher .button-dieu-kien:hover{
	    color: #2E72D2;
	    box-shadow: none;
	background: transparent !important; 
}
.div-voucher > .col-inner{
	    background: #ECECEC;
    padding: 10px 20px;
}
.div-voucher .flickity-page-dots{
	display: none;
}
.buy_now_button{
	border-radius: 50px;
}
.div-voucher .flickity-prev-next-button {
    display: none;
}

.product-tabs li a:before{
display: none;

}

.mfp-close{
	    color: white !important;
    mix-blend-mode: unset !important;
    opacity: 1 !important;
}
p.form-row-first, p.form-row-last{
	width: 100%;
}
.header-main .nav > li > a {
    line-height: 100px !important;
}
.html_topbar_left .d-block {
	    display: block;
    font-size: 14px;
    font-weight: normal;
}
.html_topbar_left .d-block img{
	    position: absolute;
    left: 23px;
}
.flex-right .account-link .icon-user{
	    position: absolute;
    top: 12px;
    left: 13px;
}
.flex-right .header-cart-title,.flex-right .header-account-title{
	    font-size: 14px;
    font-weight: normal;
}
.flex-right .header-cart-icon{
	    position: absolute;
    top: -15px;
}
.flex-right .header-cart-icon:after{
	    top: 16px !important;
}
.div-chi-tiet-phai .widget-title{
background-color: #a50a06;
    color: #ffffff;
    display: block;
    border-radius: 6px 6px 0 0;
    padding: 11px;
    text-align: center;
    font-size: 20px;
}
.product-tabs li a{
	text-transform: uppercase !important;
font-size: 16px !important;
}
p.p-khuyen-mai{
    float: left;
    margin-bottom: 0px;
    margin-top: 8px;
}
.single_add_to_cart_button{
    margin-right: 10px !important;
}
.product-tabs{
	    border-bottom: 1px solid #a50a06;
}
.product-promotion {
    background-color: white;
    padding: 10px;
    margin-bottom: 10px;
}

.product-promotion__heading img{
	    margin-right: 0.5rem!important;
	    margin-top: -6px;
}
.product-promotion__heading {
display: inline;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 7px 10px;
    background: #f33828;
    color: #fff;
    border-radius: 4px;
}
.product-section{
	border-top:none;
}
.product-promotion > ul, .product-promotion > div {
    margin-bottom: 0;
    border-radius: 4px;
    padding: 8px 8px 8px 15px;
    list-style-position: inside;
    background: #fff;
}
.product-promotion ul li, .product-promotion > div > * {
    padding: 3px 0;
    margin: 0;
}
.section-khuyen-mai .km .c{
	color: white;
}
.section-khuyen-mai .km .a{
	border: none !important;
    border-radius: 100px;
    position: relative;
    margin-top: 15px;
    background: #FFAAAF !important;
}
.section-khuyen-mai .km{
	display: block !important;
}
.section-khuyen-mai .ux-timer-wrapper{
	max-width: 200px !important
}
.section-khuyen-mai .countdown-item:last-child:after{
    display: none !important;
}
.section-khuyen-mai  .countdown-item:after {
      content: ':';
    position: absolute;
    color: wheat;
    right: -3px;
    top: 4px;
    font-weight: bold;
    color: #FFD234;
    font-size: 20px;
}
.section-danh-muc .product-category{
	padding-bottom: 0px !important;
}
.section-danh-muc .product-category h5{
	    text-transform: inherit;
    font-weight: normal;
    font-size: 15px;
}
.section-danh-muc .product-category .box-text{
	padding-left: 0px;
	padding-right: 0px;
}
.span-text{
	    font-size: 10px;
}
.count-day{
	display: none;
}
.section-khuyen-mai .ux-timer-wrapper .col-inner{
	    line-height: 17px;
	        font-size: 13px;
	    background: #FFD234;
	    border: none !important;
	        padding: 4px !important;
	        border-radius: 5px;
} 
.section-khuyen-mai .ux-timer-wrapper .col-inner h3{
	font-weight: normal;
	margin-bottom: 0px;
}
.home #main #content .section-khuyen-mai{
	    padding: 10px !important;
    border-radius: 10px;
}
.product-breadcrumb-container{
	margin-bottom: 10px;
}
.single_add_to_cart_button{
	border-radius: 999px;
}
#custom_html-5 span.widget-title:before{
	      content: "\f0c9";
    font-family: fontawesome;
    position: absolute;
    margin-left: -23px;
    font-weight: normal;
}
aside .is-divider {
	display: none;
}
	.post-item .post-title {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}
.mega_main_menu li.default_dropdown > .mega_dropdown > li > .item_link span{
		font-size: 14px !important;
}
.mega_main_menu li.default_dropdown > .mega_dropdown > li > .item_link{
	font-size: 14px;
	    padding: 9px 12px;
}
#main_ul-mega_main_sidebar_menu .mega_dropdown{
	min-width: 250px;
}
#main_ul-mega_main_sidebar_menu{
	border: 1px solid #e1e1e1;

}
#main_ul-mega_main_sidebar_menu > li > a span{
		font-size: 15px;
}
#main_ul-mega_main_sidebar_menu > li > a{
	font-size: 15px;
	border-bottom: 1px solid #e1e1e1;
}
#main_ul-mega_main_sidebar_menu a:before{
	display: none !important;
}
#custom_html-5 span.widget-title{
	    display: block;
    background: #A50A06;
    color: white;
    padding: 15px;
    border-top-left-radius: 5px;
    border-top-right-radius: 7px;
    padding-left: 40px;
}
.FixedWidget__fixed_widget{
	z-index: 22;
}
.header-search-form-wrapper input {
    border: 1px solid #c8d1ff;
    border-right: none;
    font-size: 14px;
    height: 40px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: none;
}
.row-giao-hang .icon-box {
	align-items: center;
}
.searchform .button.icon {
     height: 40px;
    width: 62px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    background: #990303 !important;
}
.product-small .product-small{
	    background: white;
	    border-radius: 6px;
    border: 1px solid #EBEBEB;
    padding: 10px;
}

.div-no-padding{
	padding-bottom: 0px !important;
}
.box-title{
	    background: #212121;
    color: white;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}
.box-title h3{
	color: white;
}
#mega-menu-wrap{background: #744c29; height: 50px;}
#mega-menu-title{padding: 13px 0 10px 15px;}
#mega_menu > li > a{padding-left:10px}
.menu-item img._before{margin-right: 10px}
#mega_menu > li >a>span{color:black}
#mega_menu li a{padding: 11px 15px;}
.header:not(.transparent) .header-bottom-nav.nav > li > a {
    color: #424242;
    font-weight: normal;}
#mega-menu-title{    font-family: "Roboto", sans-serif;}
.slider .tin-tuc .box-text h5{font-weight: normal;
    color: #464646;}
.box-blog-post .is-divider{display:none}
.slider .tin-tuc .col{    padding: 0 15px 0px;}
.slider .tin-tuc .box-vertical .box-text{padding-right:0; padding-left:10px;     vertical-align: top;    padding-top: .7em;    padding-bottom: 17px; text-align: justify}
.slider .tin-tuc .box-vertical{    padding-bottom: 1px}
 .price-wrapper .product-page-price span {
	font-size: 25px !important;
}
.section-footer-1 form{
	    margin-bottom: 0px;
    margin-top: 9px;
}
.section-footer-1 .wpcf7-submit{
	    background: #fabd0d !important;
    color: black !important;
  
}
.section-footer-1 .ml-half{
	margin-left: 0px ;
}
.section-footer-1 .wpcf7-spinner{
	display: none;
}
.absolute-footer{
	display: none;
}
.title-wrapper{
    margin-bottom: 15px;
}
.nav-dark .form-flat input:not([type="submit"]){    background-color: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255,255,255,0.09);
    color: #FFF;
    height: 35px;
    border-radius: 6px;
    margin-left: 3px;}
.sp-noi-bat .title .col{    padding: 0 15px 10px;}
 .badge-container{margin:5px}
 .badge-inner.on-sale {
    background-color: #00A502;
    border-radius: 99px;}

.price-wrapper .price ins span{color:#ed3324}
.price-wrapper del span{color:gray; font-size:15px}

.title-wrapper a{color: black}
.title-wrapper a:hover{color:#fac100}
#footer .widget_nav_menu{
	padding-left: 0px ;
	padding-right: 0px;
}
.header-vertical-menu__opener{
    color: var(--primary-color);
    height:60px;   
    font-size: 15px;
}
.product-small .box-text-products .price-wrapper .price ins span {
    font-size: 16px;
    font-weight: 500;
}
 span.amount{    font-size: 16px;color:#ed3324}

.sp-noi-bat .product .box-text{padding-bottom: 0;}
.sp-noi-bat .product .flickity-prev-next-button.next, .sp-noi-bat .product .flickity-prev-next-button.previous {top:20px}
.sp-noi-bat .product .flickity-viewport>.flickity-slider>.col{padding: 10px; background: white}
.sp-noi-bat .product .banner-image {padding:0}
.catelogy .row .col{    padding: 0 9.8px 0px;}
.catelogy .row .sidebar{border: 1px solid  #ececec; padding:0px}
.catelogy .row .sidebar a{color: black}
.catelogy .row .sidebar ul.menu>li>a{padding: 8px 0}
.catelogy .row .sidebar ul.menu>li{margin-left:10px; margin-right:10px}
.catelogy .row .sidebar .col-inner ul li{margin-left:10px;}
.catelogy .row .product{border-top: 1px solid  #ececec;border-right: 1px solid  #ececec;border-bottom: 1px solid  #ececec;padding-top:10px}
.catelogy .row .product .col{border:none;padding-top:0px}
.cam-ket .row-large>.col{    padding: 0 30px 10px;}
.footer .row .thong-tin-chung a, .footer .row .danh-muc a{color:#474747}
.footer .row .danh-muc a:hover{color:#FEB041}
.footer .row .danh-muc .col-inner ul li{margin-left:0;    border-bottom: 1px dotted #d4d4d4;}
.footer .row .san-pham .row-small>.col{padding: 0 9.8px 0px;}
.footer .row .san-pham .title-wrapper a{font-size:14px}
.footer .row-small>.col{padding: 0 9.8px 0px;}
.footer .row .san-pham .badge-container{display:none}
.footer .row p{margin-bottom:0}
.breadcrumbs{text-transform: none;}
.breadcrumb a{color:rgb(250, 193, 0)}
.product-main .price-wrapper span.amount{font-size:25px}

.product-footer .woocommerce-tabs {
    padding: 30px 0;
    border-top: none;
    margin-top: 20px;
}
.note-san-pham{border: 1px solid #dadada;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;}
.product-main{padding: 0px 0;}
.product-main .col{padding: 0 15px 10px;}
span.widget-title{font-size: 18px;
    letter-spacing: 0;
    color: black;}
#product-sidebar .adress-sidebar{border: 1px solid #dadada; padding:10px; border-radius: 10px}
.article-inner .entry-image img,  footer.entry-meta{display:none}
.article-inner .badge.post-date{display:none}

.qemix-product-info{
    margin: 15px 0;
    padding: 14px 16px;
    border: 1px solid #d8e6f3;
    border-radius: 8px;
    background: #f8fbff;
    font-size: 15px;
    line-height: 1.8;
}

.qemix-info-title{
    font-weight: 700;
    color: #0b3d70;
    margin-bottom: 6px;
    font-size: 16px;
}

.qemix-product-info strong{
    color: #0b3d70;
}
/* Ẩn giá biến thể mặc định nằm dưới quy cách */
.single_variation_wrap .woocommerce-variation-price {
    display: none !important;
}

/* Giữ giá custom phía trên quy cách */
.qemix-current-variation-price,
.qemix-selected-price {
    display: block !important;
    color: #e8241d;
    font-size: 22px;
    font-weight: 700;
    margin: 14px 0 8px;
}

.woocommerce-Price-amount.amount {
    color: #e53935;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}

.woocommerce-Price-currencySymbol {
    font-size: 14px;
    font-weight: 600;
    margin-left: 2px;
}


.product-small .woocommerce-Price-amount.amount {
	display: block !important;
    color: #e8241d;
    font-size: 20px;
    font-weight: 700;
}

.qemix-sku-title{
    color:#0B3A66;
    font-weight:700;
    font-size:13px;
}

.product-small .name{
    line-height:1.5;
}
.qemix-sku-inline{
    color:#0B3A66;
    font-weight:700;
    font-size:12px;
}

/* ===============================
   QEMIX GLOBAL STYLE
================================ */
:root {
  --qemix-navy: #07112f;
  --qemix-blue: #1268d6;
  --qemix-cyan: #28d6c5;
  --qemix-green: #22c55e;
  --qemix-orange: #f58220;
  --qemix-bg: #f5f7fb;
  --qemix-card: #ffffff;
  --qemix-text: #0f172a;
  --qemix-muted: #64748b;
  --qemix-border: #e5eaf2;
  --qemix-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  --qemix-radius: 18px;
}

body {
  background: #fff;
  color: var(--qemix-text);
}

.qemix-section {
  padding: 55px 15px;
}

.qemix-container {
  max-width: 1200px;
  margin: 0 auto;
}

.qemix-eyebrow {
  display: block;
  color: var(--qemix-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.qemix-title {
  font-size: 32px;
  line-height: 1.2;
  color: var(--qemix-navy);
  font-weight: 800;
  margin-bottom: 10px;
}

.qemix-title span {
  color: var(--qemix-cyan);
}

.qemix-desc {
  color: var(--qemix-muted);
  font-size: 15px;
  line-height: 1.7;
}

.qemix-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.25s ease;
}

.qemix-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--qemix-blue), var(--qemix-cyan));
  box-shadow: 0 8px 20px rgba(18, 104, 214, 0.25);
}

.qemix-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 104, 214, 0.35);
}

.qemix-btn-light {
  color: var(--qemix-navy) !important;
  background: #fff;
  border: 1px solid var(--qemix-border);
}

.qemix-card {
  background: #fff;
  border: 1px solid var(--qemix-border);
  border-radius: var(--qemix-radius);
  box-shadow: var(--qemix-shadow);
}

@media (max-width: 768px) {
  .qemix-section {
    padding: 38px 12px;
  }

  .qemix-title {
    font-size: 25px;
  }
}
.qemix-topbar {
  background: var(--qemix-navy);
  color: #dbeafe;
  font-size: 12px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.qemix-topbar span,
.qemix-topbar a {
  color: #dbeafe;
  margin-right: 18px;
  text-decoration: none;
}

.qemix-topbar a:hover {
  color: var(--qemix-cyan);
}

@media (max-width: 768px) {
  .qemix-topbar {
    display: none;
  }
}

.header-search-form input.search-field {
  border-radius: 999px !important;
  height: 42px;
  border: 1px solid #dbe4f0 !important;
  background: #f8fafc !important;
  padding-left: 18px !important;
  font-size: 14px;
}

.header-search-form .ux-search-submit {
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--qemix-blue), var(--qemix-cyan)) !important;
  color: #fff !important;
}

@media(max-width: 855px){
     #footer form .wpcf7-submit{
        width: 100%;
     }
    #footer form .ml-half{
        margin-left: 0px !important;
    }
    .flex-right .header-cart-icon{
        position: relative;
        top: unset !important;
    }
    .header-main .nav > li > a {
    line-height: 29px !important;
}
	.section-footer-1 .ml-half{
		    position: absolute;
	}
	.section-footer-1 .wpcf7-submit{
		    position: absolute;
    right: -18px;
	}
	.box-vertical .box-image {
    width: 62% !important;
}
.box-vertical .box-image img{
	border-radius: 10px;
}
	.box-vertical{
		display: flex;
	}
	.box-vertical .box-text{
		padding-left: 10px;
	}
	.box-vertical .from_the_blog_excerpt {
		display: none;
	}
}

.variations_form table.variations {
    margin-bottom: 15px;
}

.variations_form table.variations th.label {
    width: 90px;
    font-weight: 600;
    color: #222;
}

.variations_form table.variations select {
    height: 42px;
    border-radius: 6px;
    border: 1px solid #d5dde5;
    padding: 0 12px;
    font-size: 14px;
}

.woocommerce-variation-price {
    margin: 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #006838;
}

.qemix-selected-price {
    font-size: 24px;
    font-weight: 700;
    color: #e22b20;
    margin: 15px 0 8px;
}

/* Ẩn giá khoảng phía trên */
.single-product .product-type-variable .product-page-price{
	display:none !important;
}

/* Chỉ giữ 1 giá biến thể */
.woocommerce-variation-price{
    margin:14px 0 10px!important;
}

.woocommerce-variation-price .price{
    color:#e8241d!important;
    font-size:22px!important;
    font-weight:700!important;
}

/* Quy cách dạng nút */
.variable-items-wrapper .variable-item,
.qemix-var-btn{
    border-radius:6px!important;
    font-weight:600!important;
}

/* Mô tả ngắn sau nút mua */
.woocommerce-product-details__short-description{
    margin-top:22px;
    padding:18px 20px;
    background:#f7fafc;
    border:1px solid #dde8f0;
    border-radius:10px;
    font-size:14px;
    line-height:1.7;
}

.woocommerce-product-details__short-description ul{
    margin:0;
    padding-left:18px;
}

.woocommerce-product-details__short-description li{
    margin-bottom:8px;
}

.woocommerce-product-details__short-description strong{
    color:#0b3a66;
    font-weight:700;
}

.qemix-loop-sku{
    font-size:10px;
    color:#6b7280;
    margin:4px 0 8px;
    font-weight:500;
}
/* Tiêu đề quy cách */
.variations label,
.label label {
    font-weight: 600;
    font-size: 15px;
    color: #222;
}

/* Nhóm quy cách */
.variations_form .variable-items-wrapper,
.variations_form .button-variable-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

/* Nút quy cách */
.variable-item,
.button-variable-item {
    min-width: 80px;
    height: 46px;
    border: 2px solid #1E73BE !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 15px;
    font-weight: 600;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover */
.variable-item:hover,
.button-variable-item:hover {
    border-color: #1E73BE !important;
    background: white !important;
    color: #00a63f !important;
}

/* Đang chọn */
.variable-item.selected,
.button-variable-item.selected,
.variable-item-radio input:checked + label {
    background: #1E73BE !important;
    border-color: #1E73BE !important;
    color: #fff !important;

}

/* Hết hàng */
.variable-item.disabled,
.button-variable-item.disabled {
    opacity: .4;
    cursor: not-allowed;
}



/* Mobile */
@media (max-width: 768px){
    .variable-item,
    .button-variable-item{
        min-width: 70px;
        height: 42px;
        font-size: 14px;
    }
}



@media(min-width: 1023px){
    .section-banner .div-menu {
            max-width: 22%;
    flex-basis: 22%;
    }
     .section-banner .div-banner {
            max-width: 78%;
    flex-basis: 78%;
    }
}

@media (max-width: 549px){.header-top{display:none} .slider .tin-tuc{display:none !important}}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

}



/* =====================================================
   QEMIX SINGLE PRODUCT DETAIL - CUSTOM LAYOUT
===================================================== */

/* Ẩn layout mặc định phía trên của Flatsome/WooCommerce */
body.single-product.qemix-custom-single-product .product-container .product-main {
    display: none !important;
}

body.single-product.qemix-custom-single-product div.product > .woocommerce-product-gallery,
body.single-product.qemix-custom-single-product div.product > .summary.entry-summary {
    display: none !important;
}

.product-container .product-footer .container{
	width: 1270px !important;
}

/* Layout chính */
.qemix-single-product-wrap {
    max-width: 1270px;
    margin: 0 auto 40px;
    padding: 10px 10px;
    background: #fff;
}

.qemix-single-product-grid {
    display: grid;
    grid-template-columns: 32% 43% 25%;
    gap: 18px;
    align-items: start;
}

/* Cột ảnh */
.qemix-product-image-col {
    min-width: 0;
}

.qemix-product-image-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;   
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qemix-product-image-card .woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    opacity: 1 !important;
}

.qemix-product-image-card .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* Cột thông tin */
.qemix-product-info-col {
    min-width: 0;
    padding: 4px 6px;
}

.qemix-product-category {
    color: #006fd6;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.qemix-product-category a {
    color: #006fd6;
    text-decoration: none;
}

.qemix-product-code-brand {
    font-size: 14px;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.5;
}

.qemix-product-code-brand span {
    color: #444;
    font-weight: 400;
}

.qemix-product-title {
    font-size: 25px !important;
    line-height: 1.25 !important;
    color: #111827;
    font-weight: 800 !important;
    margin: 4px 0 7px !important;
}

.qemix-product-meta-line {
    color: #111827;
    font-size: 15px;
    margin-bottom: 7px;
}

.qemix-product-rating-line {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    margin-bottom: 8px;
}

.qemix-product-rating-line span {
    color: #111827;
}

.qemix-product-rating-line .star-rating {
    float: none !important;
    margin: 0 !important;
    color: #f58220 !important;
    letter-spacing: 1px;
}

.qemix-product-rating-line .star-rating:before,
.qemix-product-rating-line .star-rating span:before {
    color: #f58220 !important;
}

.qemix-product-rating-line small {
    color: #555;
    font-size: 13px;
}

.qemix-product-synonyms,
.qemix-product-brand-line {
    color: #111827;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 7px;
}

.qemix-product-brand-line span {
    color: #006fd6;
    font-weight: 700;
	font-size:16px;
}

/* Bảng quy cách */
.qemix-variant-box {
    margin-top: 22px;
    background: #f3f4f6;
    border-radius: 5px;
    padding: 2px;
}

.qemix-variant-box h2,
.qemix-technical-box h2 {
    font-size: 17px !important;
    color: #111827;
    font-weight: 800 !important;
    margin: 0 0 12px !important;
}

.qemix-variant-table-wrap {
    overflow-x: auto;

}

.qemix-variant-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    margin-left:-5px;
		margin-bottom:0px !important;
}

.qemix-variant-table th {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #d1d5db;
    white-space: nowrap;
}

.qemix-variant-table td {
    color: #111827;
    font-size: 15px;
    padding: 9px 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}
.qemix-variant-table td .amount{
	 font-size: 15px !important;
	
}

.qemix-variant-table td .qemix-price-request {
    display: block !important;
    color: #428cdb !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}


.qemix-variant-table tr:last-child td {
    border-bottom: 0;
}

.qemix-variant-table .amount {   
    font-weight: 700;
}

.qemix-contact-price {
    color: #f58220;
    font-weight: 800;
}

/* Thông tin kỹ thuật */
.qemix-technical-box {
    margin-top: 28px;
    padding: 0;
}

.qemix-technical-list {
    display: grid;
    gap: 7px;
}

.qemix-technical-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 10px;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
}

.qemix-technical-item span {
    color: #111827;
    font-weight: 500;
}

.qemix-technical-item strong {
    color: #111827;
    font-weight: 700;
}

.qemix-technical-empty {
    color: #6b7280;
    font-size: 14px;
}

/* =====================================================
   QEMIX - FIX RIGHT BUY BOX SINGLE PRODUCT
===================================================== */

.qemix-buy-card {
    background: #f3f4f6 !important;
    padding: 15px 15px !important;
    border-radius: 0 !important;
    color: #111827;
}

/* SKU */
.qemix-buy-sku {
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    color: #000 !important;
    margin-bottom: 10px !important;
}

/* Giá */
.qemix-buy-price {
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    color: #e53935 !important;
    margin-bottom: 0px !important;
}

.qemix-buy-price .amount,
.qemix-buy-price bdi {
    color: #e53935 !important;
    font-weight: 900 !important;
	font-size: 20px !important;
}
.qemix-buy-price .qemix-price-request{	
	display: block !important;
    color: #428cdb !important;
    font-size: 20px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

/* Tình trạng */
.qemix-buy-stock {
    font-size: 16px !important;
    color: #111827 !important;
    margin-bottom: 20px !important;
}

/* Form mua hàng */
.qemix-buy-form form.cart {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ẩn text stock bị WooCommerce tự sinh trong form */
.qemix-buy-form .stock {
    display: none !important;
}

/* Box số lượng */
.qemix-buy-form .quantity.qemix-qty-ready {
    width: 100% !important;
    height: 58px !important;
    margin: 0 auto 16px !important;
    display: grid !important;
    grid-template-columns: 54px 1fr 54px !important;
    align-items: center !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

/* Xóa pseudo của theme */
.qemix-buy-form .quantity::before,
.qemix-buy-form .quantity::after {
    display: none !important;
    content: none !important;
}

/* Nút cộng trừ custom */
.qemix-buy-form .qemix-qty-btn {
    width: 54px !important;
    height: 58px !important;
    border: 0 !important;
    background: transparent !important;
    color: #07152f !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}

.qemix-buy-form .qemix-qty-btn:hover {
    color: #f58220 !important;
    background: #f7f7f7 !important;
}

/* Input số lượng */
.qemix-buy-form .quantity input.qty {
    width: 100% !important;
    min-width: 0 !important;
    height: 58px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #07152f !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield !important;
}

.qemix-buy-form .quantity input.qty::-webkit-outer-spin-button,
.qemix-buy-form .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Ẩn nút cộng trừ mặc định của Flatsome/plugin */
.qemix-buy-form .quantity .plus,
.qemix-buy-form .quantity .minus,
.qemix-buy-form button.plus,
.qemix-buy-form button.minus {
    display: none !important;
}

/* Nút thêm vào đơn hàng */
.qemix-buy-form .single_add_to_cart_button {
    width: 100% !important;
    min-height: 46px !important;
    background: #f58220 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-transform: none !important;
    margin: 0 0 16px !important;
    padding: 0 15px !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.qemix-buy-form .single_add_to_cart_button:hover {
    background: #d96d12 !important;
    color: #fff !important;
}

/* Ẩn nút xanh Mua ngay */
.qemix-buy-form form.cart > .button:not(.single_add_to_cart_button),
.qemix-buy-form .buy-now,
.qemix-buy-form .buy_now_button,
.qemix-buy-form .ux-buy-now-button,
.qemix-buy-form .wc-buy-now-button,
.qemix-buy-form .single_buy_now_button,
.qemix-buy-form button[name="buy_now"],
.qemix-buy-form a.button:not(.single_add_to_cart_button) {
    display: none !important;
}

/* Liên hệ mua số lượng lớn */
.qemix-bulk-link {
    display: flex !important;
    width: 100% !important;  
    align-items: center !important;
    justify-content: center !important; 
	background:none !important;
    color: #006fd6 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    text-align: center !important;
    text-decoration: none !important;
    padding: 0px !important;
    margin-top: 0 !important;
    border: 0 !important;
}

.qemix-bulk-link:hover {
    color: #f58220 !important;
}

/* Box hỗ trợ */
.qemix-support-card {
    background: #f3f4f6;
    margin-top: 22px;
    padding: 15px 15px;
    color: #111827;
}

.qemix-support-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 18px;
}

.qemix-support-card p {
    color: #111827;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.qemix-support-card a {
    display: inline-block;
    color: #006fd6 ;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.qemix-support-card a:hover {
    color: #f58220;
}

.qemix-support-contact{	
	font-size:16px;
	font-weight: 800;
	background: #f3f4f6;
    margin-top: 22px;
    padding: 5px 5px;
  
}
.qemix-support-contact .contact_phone{
	margin-left:10px;
}
.qemix-support-contact .contact_email{
	margin-left:10px;
	color:#006fd6;
}

/* Responsive */
@media (max-width: 1024px) {
    .qemix-single-product-grid {
        grid-template-columns: 38% 62%;
    }

    .qemix-product-buy-col {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .qemix-support-card {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .qemix-single-product-wrap {
        padding: 15px 10px;
    }

    .qemix-single-product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .qemix-product-buy-col {
        grid-template-columns: 1fr;
    }

    .qemix-product-title {
        font-size: 22px !important;
    }

    .qemix-product-image-card {
        min-height: auto;
    }

    .qemix-technical-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .qemix-buy-sku {
        font-size: 21px;
    }
}

/* ===== ẢNH SẢN PHẨM ===== */
.qemix-product-image-card {
    background: #fff;    
    border-radius: 14px;
	border:none !important;
    min-height: 460px;
}

.qemix-custom-gallery {
    width: 100%;
	margin-bottom:100px !important;
}

.qemix-image-main {
    width: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.qemix-image-main img,
.qemix-main-product-image {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
	border: 1px solid #dcdfe4;
	border-radius:10px;
}

.qemix-image-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
}

.qemix-thumb-btn {
    width: 68px;
    height: 68px;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: #fff;
    padding: 5px;
    cursor: pointer;
    transition: all .2s ease;
}

.qemix-thumb-btn:hover,
.qemix-thumb-btn.is-active {
    border-color: #f58220;
    box-shadow: 0 0 0 1px #f58220 inset;
}

.qemix-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== CATEGORY ===== */
.qemix-product-category {
    color: #006fd6;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* ===== ẨN STOCK LẶP TRONG FORM ===== */
.qemix-buy-form .stock {
    display: none !important;
}

/* ===== BOX SỐ LƯỢNG ===== */
.qemix-buy-form .quantity.qemix-qty-ready {
    width: 180px !important;
    height: 42px;
    margin: 18px auto 16px !important;
    display: grid !important;
    grid-template-columns: 46px 1fr 46px;
    align-items: center;
    background: #fff;
    border: 1px solid #cfd4dc;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: none;
}

.qemix-buy-form .quantity::before,
.qemix-buy-form .quantity::after {
    display: none !important;
}

.qemix-qty-btn {
    width: 46px;
    height: 42px;
    border: 0;
    background: #fff;
    color: #111827;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qemix-qty-btn:hover {
    background: #f7f7f7;
    color: #f58220;
}

.qemix-buy-form .quantity input.qty {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    -moz-appearance: textfield;
}

.qemix-buy-form .quantity input.qty::-webkit-outer-spin-button,
.qemix-buy-form .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ẩn nút +/- mặc định của plugin/theme nếu có */
.qemix-buy-form .plus,
.qemix-buy-form .minus,
.qemix-buy-form button.plus,
.qemix-buy-form button.minus {
    display: none !important;
}

.qemix-buy-card {
    background: #d9d9d9;
    padding: 20px 16px 18px;
    border-radius: 0;
}

.qemix-buy-sku {
    font-size: 22px;
    font-weight: 900;
    color: #000;
    margin-bottom: 6px;
}

.qemix-buy-price {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 28px;
}

.qemix-buy-stock {
    font-size: 15px;
    color: #111827;
    margin-bottom: 10px;
}

.qemix-buy-form .single_add_to_cart_button {
    width: 100%;
    min-height: 46px;
    background: #ef3b2d !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

.qemix-buy-form .single_add_to_cart_button:hover {
    background: #d93025 !important;
}

.qemix-bulk-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    background: #fff;
    color: #111827;
    font-weight: 700;
    padding: 12px 10px;
    text-decoration: none;
}


/* =====================================================
   QEMIX - MAIN BUY FORM FIX
===================================================== */

body.single-product #qemix-product-buy-box .qemix-buy-form {
    display: block !important;
    width: 100% !important;
    margin-top: 20px !important;
}

body.single-product #qemix-product-buy-box form.cart {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ẩn nút số lượng custom cũ */
body.single-product #qemix-product-buy-box .qemix-qty-btn,
body.single-product .sticky-add-to-cart .qemix-qty-btn {
    display: none !important;
}
/* =====================================================
   QEMIX - CĂN GIỮA Ô SỐ LƯỢNG
===================================================== */

body.single-product #qemix-product-buy-box .quantity {
    width: 100% !important;
    height: 54px !important;

    display: grid !important;
    grid-template-columns: 54px 72px 54px !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 auto 16px !important;

    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 5px !important;
    overflow: hidden !important;
}

/* Nút trừ và cộng */
body.single-product #qemix-product-buy-box .quantity .minus,
body.single-product #qemix-product-buy-box .quantity .plus {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 54px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 54px !important;
    text-align: center !important;
}

/* Ô nhập số lượng */
body.single-product #qemix-product-buy-box .quantity input.input-text.qty.text,
body.single-product #qemix-product-buy-box .quantity input.qty {
    display: block !important;

    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 54px !important;

    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;

    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;

    color: #07152f !important;
    font-size: 16px !important;
    font-weight: 800 !important;

    line-height: 54px !important;
    text-align: center !important;
    vertical-align: middle !important;

    appearance: textfield !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

/* Ẩn nút tăng giảm mặc định của input number */
body.single-product #qemix-product-buy-box .quantity input.qty::-webkit-inner-spin-button,
body.single-product #qemix-product-buy-box .quantity input.qty::-webkit-outer-spin-button {
    margin: 0 !important;
    -webkit-appearance: none !important;
}

/* Nút thêm vào đơn hàng */
body.single-product #qemix-product-buy-box .single_add_to_cart_button {
    display: flex !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;

    align-items: center !important;
    justify-content: center !important;

    background: #e07b22 !important;
    color: #fff !important;

    border: 0 !important;
    border-radius: 5px !important;

    font-size: 16px !important;
    font-weight: 900 !important;
    text-transform: none !important;

    padding: 0 15px !important;
    margin: 0 0 16px !important;

    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
}

body.single-product #qemix-product-buy-box .single_add_to_cart_button:hover {
    background: #d96d12 !important;
    color: #fff !important;
}

/* Thông báo khi sản phẩm không mua trực tuyến được */
.qemix-product-unavailable {
    background: #fff3e8;
    color: #b45309;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* =====================================================
   QEMIX - PRODUCT BREADCRUMB TOP BAR
===================================================== */

.qemix-product-topbar {
    width: 100%;
    min-height: 50px;
    margin-bottom: 18px;
    padding: 0 16px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: center;

    background: #f1f1f1;
    border-radius: 4px;
}

/* Đường dẫn */
.qemix-product-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    color: #111827;
    font-size: 14px;
    line-height: 1.5;
}

.qemix-product-breadcrumb a {
    color: #374151;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
}

.qemix-product-breadcrumb a:hover {
    color: #f58220;
}

.qemix-breadcrumb-separator {
    color: #9ca3af;
    font-size: 15px;
}

/* Danh mục cuối cùng */
.qemix-product-breadcrumb a:last-child {
    color: #006fd6;
    font-weight: 700;
}

/* Vị trí banner nhỏ */
.qemix-product-mini-banner {
    width: 100%;
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.qemix-product-mini-banner img {
    display: block;
    width: 100%;
    height: 50px;
    object-fit: cover;
}

/* Tablet và mobile */
@media (max-width: 767px) {
    .qemix-product-topbar {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 14px;
    }

    .qemix-product-mini-banner:empty {
        display: none;
    }

    .qemix-product-breadcrumb {
        font-size: 13px;
    }

    .qemix-product-breadcrumb a {
        font-size: 13px;
    }
}
/* =====================================================
   QEMIX - CĂN LẠI PRODUCT HEADER BANNER
===================================================== */

/* Bỏ khoảng trống phía trên nội dung sản phẩm */
body.single-product .qemix-single-product-wrap {
    padding-top: 0 !important;
}

/* Kéo banner sát menu chính hơn */
body.single-product .qemix-product-header-banner {
    width: 100vw !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    /* Điều chỉnh khoảng trắng giữa menu và banner */
    margin-top: -16px !important;
    margin-bottom: 26px !important;

    min-height: 92px !important;
}

/* Căn toàn bộ nội dung banner vào giữa */
body.single-product .qemix-product-header-inner {  
    max-width: 1270px !important;
    min-height: 92px !important;

    margin: 0 auto !important;
    padding: 14px 20px !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 285px !important;
    gap: 40px !important;
    align-items: center !important;
}

/* Breadcrumb không nằm quá sát bên trái */
body.single-product .qemix-product-breadcrumb {
    padding-left: 0 !important;
    margin: 0 !important;
}

/* Đưa khối thương hiệu vào trung tâm hơn */
body.single-product .qemix-header-brand {
    width: 285px !important;
    min-width: 285px !important;

    display: grid !important;
    grid-template-columns: 135px 1fr !important;
    gap: 14px !important;
    align-items: center !important;
    justify-content: start !important;

    margin-right: 25px !important;
}

/* Logo thương hiệu */
body.single-product .qemix-header-brand-logo {
    width: 135px !important;
    max-width: 135px !important;
    height: 56px !important;

    object-fit: contain !important;

    padding: 7px 10px !important;
    margin: 0 !important;

    background: #fff !important;
    border-radius: 7px !important;
}

/* Tên thương hiệu */
body.single-product .qemix-header-brand-name {
    margin: 0 !important;
    padding: 0 !important;

    color: rgba(255,255,255,.75) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

body.single-product .qemix-header-brand-name strong {
    display: block !important;
    margin-top: 2px !important;

    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
}

/* Ảnh thương hiệu chìm bên phải không sát mép */
body.single-product .qemix-product-header-banner::before {
    width: 38% !important;
    right: 55px !important;

    background-position: right 40px center !important;
    background-size: contain !important;

    opacity: .09 !important;
}

/* Tablet */
@media (max-width: 1024px) {
    body.single-product .qemix-product-header-inner {
        width: calc(100% - 30px) !important;
        grid-template-columns: minmax(0, 1fr) 245px !important;
        gap: 24px !important;
    }

    body.single-product .qemix-header-brand {
        width: 245px !important;
        min-width: 245px !important;
        grid-template-columns: 115px 1fr !important;
        margin-right: 0 !important;
    }

    body.single-product .qemix-header-brand-logo {
        width: 115px !important;
        max-width: 115px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    body.single-product .qemix-product-header-banner {
        margin-top: -8px !important;
        margin-bottom: 18px !important;
        min-height: 88px !important;
    }

    body.single-product .qemix-product-header-inner {
        width: 100% !important;
        min-height: 88px !important;

        grid-template-columns: minmax(0, 1fr) 88px !important;
        gap: 10px !important;

        padding: 12px 15px !important;
    }

    body.single-product .qemix-header-brand {
        width: 88px !important;
        min-width: 88px !important;

        display: block !important;
        margin: 0 !important;
    }

    body.single-product .qemix-header-brand-logo {
        width: 88px !important;
        max-width: 88px !important;
        height: 44px !important;
    }

    body.single-product .qemix-header-brand-name {
        display: none !important;
    }

    body.single-product .qemix-product-header-banner::before {
        right: 0 !important;
        width: 55% !important;
    }
}


/* =====================================================
   QEMIX - TÍNH CHẤT VÀ MÔ TẢ 2 CỘT
===================================================== */

.qemix-product-info-columns {
    width: 100%;
    margin: 35px 0 0;
    padding: 0;
    clear: both;
}

.qemix-product-info-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    border-top: 1px solid #e2e5e9;
    border-bottom: 1px solid #e2e5e9;
}

.qemix-product-info-box {
    min-width: 0;
    padding: 0 30px 30px;
    background: #fff;
}

/* Đường phân cách ở giữa */
.qemix-product-info-box:first-child {
    border-right: 1px solid #e2e5e9;
}

.qemix-product-info-title {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e5e9;
}

.qemix-product-info-title::after {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 85px;
    height: 2px;
    background: #e31e24;
    content: "";
}

.qemix-product-info-title span {
    color: #111827;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.qemix-product-info-content {
    color: #30343b;
    font-size: 15px;
    line-height: 1.75;
}

.qemix-product-info-content h1,
.qemix-product-info-content h2,
.qemix-product-info-content h3,
.qemix-product-info-content h4 {
    margin-top: 0;
    color: #111827;
    font-weight: 800;
}

.qemix-product-info-content p:last-child {
    margin-bottom: 0;
}

.qemix-product-info-content ul,
.qemix-product-info-content ol {
    margin-left: 20px;
}

.qemix-product-info-content table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.qemix-product-info-content table td,
.qemix-product-info-content table th {
    padding: 10px 12px;
    border: 1px solid #e1e5ea;
}

.qemix-empty-content {
    color: #8a9099;
    font-style: italic;
}

/* Đảm bảo sản phẩm tương tự nằm bên dưới */
.qemix-related-products {
    width: 1270px !important;
    margin: 0px auto !important;
    padding: 10px 10px !important;
    background: #f7f8fc !important;
}


/* Tablet và điện thoại chuyển thành 1 cột */
@media screen and (max-width: 849px) {

    .qemix-product-info-inner {
        grid-template-columns: 1fr;
    }

    .qemix-product-info-box {
        padding: 0 20px 25px;
    }

    .qemix-product-info-box:first-child {
        border-right: 0;
        border-bottom: 1px solid #e2e5e9;
    }

    .qemix-product-info-title span {
        font-size: 20px;
    }
}




/* =====================================================
   QEMIX - KHUNG ĐÁNH GIÁ SẢN PHẨM
===================================================== */

#review_form_wrapper {
    width: 100%;
    margin-top: 30px;
    padding-top: 28px;   
}

#review_form_wrapper #review_form {
    width: 100%;
}
.has-border{
	border:none !important;
}
#review_form_wrapper #respond {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Tiêu đề */
#review_form_wrapper #reply-title {
    display: none;
    margin: 0 0 22px;
    color: #111;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

#review_form_wrapper #reply-title::before {
    content: "ĐÁNH GIÁ";
}

/* Form chính */
#review_form_wrapper .comment-form {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 10px;
    max-width: 60%;
}

/* Avatar giả lập */
#review_form_wrapper .comment-form::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 3;

    width: 42px;
    height: 42px;   
    border-radius: 50%;
	margin-left:18px;
    background-color: #f2f4f8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='22' r='11' fill='%233b8cff'/%3E%3Cpath d='M12 55c2-12 10-18 20-18s18 6 20 18c-5 5-12 8-20 8s-15-3-20-8z' fill='%233b8cff'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 38px;
}

/* Khu vực chọn sao */
#review_form_wrapper .comment-form-rating {
    grid-column: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;

    margin: 0 !important;
}

/* Label */
#review_form_wrapper .comment-form-rating > label {
    display: inline-block;
    margin: 0 !important;

    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

#review_form_wrapper .comment-form-rating > label::before {
    content: "Bạn đánh giá sản phẩm: ";
    font-weight: 700;
}

#review_form_wrapper .comment-form-rating > label {
    font-size: 0;
}

/* Dấu sao bắt buộc */
#review_form_wrapper .comment-form-rating > label .required {
    display: none;
}

/* Hàng 5 sao */
#review_form_wrapper p.stars {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;

    width: auto !important;
    margin: 0 !important;
    line-height: 1;
}

#review_form_wrapper p.stars span {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}

/* Sao */
#review_form_wrapper p.stars a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 23px !important;
    height: 23px !important;
    margin: 0 !important;

    overflow: visible !important;
    text-indent: -9999px !important;

    color: #f47c2c !important;
    text-decoration: none !important;
}

/* Tắt sao mặc định */
#review_form_wrapper p.stars a::before,
#review_form_wrapper p.stars a::after {
    display: none !important;
    content: none !important;
}

/* Tạo sao mới */
#review_form_wrapper p.stars a {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='64 64 896 896' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23f47c2c' d='M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.single-product #review_form_wrapper .comment-form-comment > label {
    display: none !important;
}
/* Ô nhập nội dung */
#review_form_wrapper .comment-form-comment,
#review_form_wrapper .qemix-review-content {
    grid-column: 2;
    width: 100%;
    margin: 0 !important;
}

#review_form_wrapper textarea#comment {
    display: block;
    width: 100%;
    height: 100px;
    min-height: 100px;
    padding: 10px 12px;

    color: #333;
    font-size: 14px;
    line-height: 1.5;

    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 9px;
    box-shadow: none;

    resize: vertical;
    outline: none;
}

#review_form_wrapper textarea#comment::placeholder {
    color: #b8b8b8;
}

#review_form_wrapper textarea#comment:focus {
    border-color: #f47c2c;
}

/* Nút gửi */
#review_form_wrapper .form-submit {
    grid-column: 2;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 0 !important;
}



#review_form_wrapper .qemix-review-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 96px;
    height: 44px;
    padding: 0 20px !important;

    color: #fff !important;
    font-size: 15px;
    font-weight: 700;

    background: #f47c2c !important;
    border: none !important;
    border-radius: 9px !important;
    box-shadow: none !important;

    cursor: pointer;
}

#review_form_wrapper .qemix-review-submit:hover {
    background: #dc681d !important;
}

#review_form_wrapper .qemix-send-icon {
    display: inline-block;
    font-size: 18px;
    transform: rotate(-35deg);
}

/* Ẩn các dòng không cần thiết */
#review_form_wrapper .comment-notes,
#review_form_wrapper .logged-in-as,
#review_form_wrapper .comment-form-author,
#review_form_wrapper .comment-form-email,
#review_form_wrapper .comment-form-cookies-consent {
    display: none !important;
}

/* Mobile */
@media (max-width: 600px) {
    #review_form_wrapper .comment-form {
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 10px;
    }

    #review_form_wrapper .comment-form::before {
        width: 36px;
        height: 36px;
        background-size: 32px;
    }

    #review_form_wrapper .comment-form-rating {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    #review_form_wrapper #reply-title {
        font-size: 22px;
    }
}
/* =====================================================
   QEMIX REVIEW STARS - HIỂN THỊ 5 SAO SVG
===================================================== */

/* Khu vực label và sao */
#review_form .comment-form-rating {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin: 0 0 12px !important;
}

/* Label */
#review_form .comment-form-rating > label {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* Ẩn select gốc nhưng vẫn giữ để gửi dữ liệu */
#review_form select#rating {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Hàng sao mới */
#review_form .qemix-review-stars {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 135px !important;
    min-height: 28px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Nút sao */
#review_form .qemix-review-star {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: #d9dde3 !important;
    cursor: pointer !important;
    appearance: none !important;
}

/* SVG */
#review_form .qemix-review-star-svg {
    display: block !important;
    width: 23px !important;
    height: 23px !important;
    overflow: visible !important;
    fill: currentColor !important;
    pointer-events: none !important;
}

/* Path nhận màu */
#review_form .qemix-review-star-svg path {
    fill: currentColor !important;
}

/* Sao được chọn */
#review_form .qemix-review-star.is-active {
    color: #f47c2c !important;
}

/* Hover */
#review_form .qemix-review-star:hover {
    transform: scale(1.12);
}

/* Không cho CSS Flatsome ẩn sao */
#review_form .comment-form-rating,
#review_form .qemix-review-stars,
#review_form .qemix-review-star,
#review_form .qemix-review-star-svg {
    visibility: visible !important;
    opacity: 1 !important;
}

/* =====================================================
   FIX TRÙNG SAO VÀ TRÙNG TIÊU ĐỀ ĐÁNH GIÁ
===================================================== */

/* Ẩn hoàn toàn bộ sao mặc định WooCommerce */
#review_form .comment-form-rating > p.stars,
#review_form .comment-form-rating p.stars {
    display: none !important;
}

/* Chỉ hiển thị bộ sao SVG tùy chỉnh */
#review_form .qemix-review-stars {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

/* Chỉ hiện đúng 5 nút sao */
#review_form .qemix-review-star {
    display: inline-flex !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Sửa nhãn bị lặp */
#review_form .comment-form-rating > label {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 0 !important;
    font-weight: 700 !important;
}

/* Tạo đúng một nội dung nhãn */
#review_form .comment-form-rating > label::before {
    content: "Bạn đánh giá sản phẩm:";
    display: inline-block;
    color: #111;
    font-size: 15px;
    font-weight: 700;
}

/* Ẩn dấu * mặc định nếu không cần */
#review_form .comment-form-rating > label .required {
    display: none !important;
}

/* Căn nhãn và sao trên cùng một hàng */
#review_form .comment-form-rating {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    margin: 0 0 12px !important;
}


/* =====================================================
   QEMIX - KHUNG ĐÁNH GIÁ NẰM TRÊN LỊCH SỬ ĐÁNH GIÁ
===================================================== */

/* Khối chứa toàn bộ phần đánh giá */
.single-product #reviews {
    display: block !important;
    width: 100% !important;
	margin:0px !important;
}

/* Bỏ bố cục 2 cột mặc định của Flatsome */
.single-product #reviews > .row {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Khung gửi đánh giá */
.single-product #review_form_wrapper {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;       
    background: #ffffff !important;    
    border-radius: 14px !important;
    box-sizing: border-box !important;
}

/* Lịch sử đánh giá */
.single-product #comments {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Xử lý các cột của Flatsome */
.single-product #reviews .col,
.single-product #reviews .large-5,
.single-product #reviews .large-7,
.single-product #reviews .large-6 {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
}

/* Tiêu đề khung gửi đánh giá */
.single-product #review_form_wrapper .comment-reply-title {
    display: none !important;
    margin: 0 0 20px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #172033 !important;
}

/* Hàng chọn sao */
.single-product #review_form_wrapper .comment-form-rating {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  
}

/* Ô nhập nội dung */
.single-product #review_form_wrapper textarea {
    width: 100% !important;
    min-height: 110px !important;
    padding: 14px 16px !important;
    border: 1px solid #d7dde6 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    resize: vertical !important;
}

/* Nút gửi */
.single-product #review_form_wrapper input[type="submit"] {
    float: right !important;
    min-height: 42px !important;
	min-width: 120px !important;
	margin-top: -10px !important;
    background: #f58220 !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

/* Tiêu đề lịch sử đánh giá */
.single-product #comments .woocommerce-Reviews-title {
    margin: 0 0 22px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-size: 19px !important;
    font-weight: 700 !important;
}

/* Xóa float cũ */
.single-product #reviews::after,
.single-product #review_form_wrapper::after {
    content: "";
    display: table;
    clear: both;
}