/* Trang chi tiết sản phẩm, sidebar bộ lọc, trang kết quả */
.woocommerce-breadcrumb{overflow-wrap:anywhere}
.single-product .woocommerce-breadcrumb{color:var(--gia);font-weight:600}
.single-product .woocommerce-breadcrumb a{font-weight:400}
.woocommerce-breadcrumb .hv-crumb-sep{color:var(--phu);font-weight:400}
.woocommerce-breadcrumb>a:first-child::before{content:"";display:inline-block;width:16px;height:16px;margin-right:6px;vertical-align:-2px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v9h5v-6h4v6h5v-9h3Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v9h5v-6h4v6h5v-9h3Z'/%3E%3C/svg%3E") center/contain no-repeat}

.hv-pd,.hv-arc{display:grid;grid-template-columns:272px minmax(0,1fr);gap:24px;align-items:start}
.hv-side__panel{display:grid;gap:20px}
.hv-side__head,.hv-side__veil,.hv-side-open{display:none}
.hv-box{background:#fff;border:1px solid var(--vien);border-radius:18px;padding:16px;box-shadow:var(--bong)}
.hv-box__title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px;padding:0 4px 12px;border-bottom:1px solid var(--vien);color:var(--cam-dat);font-size:19px}
.hv-box__title .hv-i{width:22px;height:22px}
.hv-sidecats{list-style:none;margin:0;padding:0}
.hv-sidecats li+li{border-top:1px solid #F8EADF}
.hv-sidecats a{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 8px;border-radius:12px;color:var(--chu);text-decoration:none;font-size:15.5px;font-weight:500}
.hv-sidecats a>.hv-i:first-child{width:26px;height:26px;color:var(--cam-dam);stroke-width:1.4}
.hv-sidecats a span{flex:1}
.hv-sidecats__go{width:16px;height:16px;color:var(--phu)}
.hv-sidecats a:hover{background:var(--kem);color:var(--cam-dam)}
.hv-sidecats a.is-on{background:var(--cam-nhat);color:var(--cam-dat);font-weight:600}
.hv-fgroup{border-bottom:1px solid var(--vien);padding:4px 4px 10px}
.hv-fgroup>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;list-style:none;color:var(--cam-dat);font-size:16px;font-weight:600}
summary::-webkit-details-marker{display:none}
.hv-fgroup>summary .hv-i{width:18px;height:18px;transition:transform var(--t)}
.hv-fgroup[open]>summary .hv-i{transform:rotate(180deg)}
.hv-filter fieldset{border:0;margin:0;padding:0;min-width:0}
.hv-check{display:flex;align-items:center;gap:10px;min-height:36px;cursor:pointer;font-size:15px}
.hv-check input{width:20px;height:20px;margin:0;accent-color:var(--cam-dam);flex:none}
.hv-check:hover{color:var(--cam-dam)}
.hv-fmore>summary{cursor:pointer;min-height:40px;display:flex;align-items:center;color:var(--cam-dat);font-size:15px;text-decoration:underline;text-underline-offset:3px;list-style:none}
.hv-price{--a:0%;--b:100%;padding-top:4px}
.hv-range{position:relative;height:36px}
.hv-range__bar{position:absolute;left:10px;right:10px;top:16px;height:4px;border-radius:4px;background:linear-gradient(90deg,var(--cam-nhat) var(--a),var(--cam-dam) var(--a),var(--cam-dam) var(--b),var(--cam-nhat) var(--b))}
.hv-range input{position:absolute;inset:0;width:100%;height:36px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
.hv-range input::-webkit-slider-runnable-track{background:none;height:36px}
.hv-range input::-moz-range-track{background:none}
.hv-range input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:22px;height:22px;margin-top:7px;border-radius:50%;border:2px solid var(--cam-dam);background:#fff;cursor:grab}
.hv-range input::-moz-range-thumb{pointer-events:auto;width:18px;height:18px;border-radius:50%;border:2px solid var(--cam-dam);background:#fff;cursor:grab}
.hv-range input:focus-visible{outline:0}
.hv-range input:focus-visible::-webkit-slider-thumb{outline:3px solid #1F5FBF;outline-offset:2px}
.hv-range input:focus-visible::-moz-range-thumb{outline:3px solid #1F5FBF;outline-offset:2px}
.hv-price__in{display:flex;align-items:center;gap:8px;margin-top:6px}
.hv-price__in input{flex:1;min-width:0;width:100%;height:44px;border:1px solid #B9ACA1;border-radius:10px;padding:0 10px;text-align:center;background:#fff;font-size:15px}
.hv-price__in input[aria-invalid=true]{border-color:#A3210B}
.hv-price__err{margin:8px 0 0;color:#A3210B;font-size:14px}
.hv-filter__act{display:flex;flex-direction:column;align-items:center;gap:4px;padding-top:16px}
.hv-filter__act .hv-btn{width:100%;min-height:48px;font-size:16px}
.hv-filter__clear{display:inline-flex;align-items:center;min-height:44px;border:0;background:none;color:var(--cam-dat);text-decoration:underline;text-underline-offset:3px;font-size:15px}

/* Kết quả lọc */
.hv-active{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-bottom:16px;font-size:15px}
.hv-active ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.hv-active li a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:4px 12px;border-radius:999px;background:var(--cam-nhat);color:var(--cam-dat);font-weight:600;text-decoration:none}
.hv-active li a .hv-i{width:15px;height:15px}
.hv-active li a:hover{background:var(--cam-dam);color:#fff}
.hv-active__clear{display:inline-flex;align-items:center;min-height:40px}
.hv-arc .woocommerce-result-count{margin:0 0 12px!important}
.woocommerce .hv-arc ul.products,.woocommerce-page .hv-arc ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (min-width:1280px){
	.woocommerce .hv-arc ul.products,.woocommerce-page .hv-arc ul.products{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
	.hv-arc .hv-card__media{aspect-ratio:1/1}
	.hv-arc .hv-card__body{padding:14px 14px 16px}
	.woocommerce .hv-arc ul.products li.product .hv-card__name{font-size:16px}
	.hv-arc .hv-card__foot{flex-direction:column;align-items:stretch}
	.hv-arc .hv-card__foot .hv-btn{padding-inline:8px;white-space:nowrap}
}

/* Chi tiết: bố cục */
.woocommerce div.product.hv-product{display:block}
.hv-pd__top{display:grid;grid-template-columns:minmax(0,54fr) minmax(0,46fr);gap:0 30px;align-items:start;position:relative}
.woocommerce div.product.hv-product div.images,.woocommerce #content div.product.hv-product div.images{grid-column:1;width:100%;float:none;margin:0 0 28px}
.woocommerce div.product.hv-product div.summary,.woocommerce #content div.product.hv-product div.summary{grid-column:2;width:100%;float:none;margin:0 0 28px}
.hv-pd__top>span.onsale{grid-row:1;grid-column:1;justify-self:start}
.hv-product .woocommerce-product-gallery__wrapper,.hv-product .flex-viewport{border-radius:20px;overflow:hidden;background:var(--kem)}
.woocommerce div.product.hv-product div.images .woocommerce-product-gallery__image img{border-radius:0;width:100%;aspect-ratio:1/1;object-fit:contain}
.woocommerce div.product.hv-product div.images .woocommerce-product-gallery__trigger{top:14px;right:14px;width:44px;height:44px;background:#fff;box-shadow:0 2px 8px rgba(80,40,10,.15);text-indent:-9999px;overflow:hidden}
.woocommerce div.product.hv-product div.images .woocommerce-product-gallery__trigger::before{border-color:var(--cam-dam);top:12px;left:12px;width:12px;height:12px}
.woocommerce div.product.hv-product div.images .woocommerce-product-gallery__trigger::after{background:var(--cam-dam);top:25px;left:26px}
.woocommerce div.product.hv-product div.images .flex-control-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}
.woocommerce div.product.hv-product div.images .flex-control-thumbs li{width:auto!important}
.woocommerce div.product.hv-product div.images .flex-control-thumbs img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;border:2px solid transparent;opacity:1;background:var(--kem)}
.woocommerce div.product.hv-product div.images .flex-control-thumbs img.flex-active{border-color:var(--cam-dam)}
.hv-noimg--big{aspect-ratio:1/1;border-radius:20px}

/* Khối mua */
.hv-pd__brand{margin:0 0 4px;font-size:14.5px;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.hv-pd__brand a{color:var(--cam-dat);text-decoration:none}
.hv-pd__brand a:hover{text-decoration:underline}
.woocommerce div.product.hv-product .product_title{font-size:clamp(28px,2.4vw,34px);line-height:1.22;margin:0 0 6px;text-wrap:balance}
.hv-pd__sub{margin:0 0 6px;color:var(--phu)}
.woocommerce div.product.hv-product p.price{font-size:32px;line-height:1.2;margin:10px 0 0}
.hv-pd__noprice{font-size:22px}
.hv-pd__rule{border-top:1px solid var(--vien);margin:16px 0}
.hv-pd__row{display:flex;align-items:center;gap:16px;margin:0 0 16px}
.hv-pd__lab{flex:0 0 84px;font-weight:500}
.hv-pd__chip{display:inline-flex;align-items:center;min-height:40px;padding:6px 18px;border-radius:12px;border:1px solid #F3C29B;background:var(--kem);color:var(--cam-dat);font-weight:600}
.hv-product .woocommerce-product-details__short-description{font-size:15.5px;margin-bottom:16px}
.hv-product .woocommerce-product-details__short-description ul{margin:0;padding-left:20px}
.hv-product .woocommerce-product-details__short-description>:last-child{margin-bottom:0}
.hv-product .stock{margin:0 0 12px}
.woocommerce div.product.hv-product form.cart:not(.variations_form):not(.grouped_form),.hv-product .woocommerce-variation-add-to-cart{display:grid!important;grid-template-columns:84px calc(60% - 102px) minmax(0,1fr);gap:14px 12px;align-items:center;margin:0 0 20px}
.hv-product form.cart .quantity{grid-column:2/-1;display:inline-flex;justify-self:start;border:1px solid #D9C7B8;border-radius:12px;overflow:hidden;background:#fff}
.hv-product form.cart .quantity.hidden{display:none}
.hv-product form.cart .quantity.hidden .hv-qty,.hv-product form.cart .quantity:has(input[type=hidden]) .hv-qty{display:none}
.hv-qty{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border:0;background:none;color:var(--cam-dam);padding:0}
.hv-qty:hover{background:var(--kem)}
.hv-qty .hv-i{width:18px;height:18px}
.woocommerce .hv-product .quantity .qty{width:60px;height:46px;min-height:0;border:0;border-inline:1px solid #E9DACD;border-radius:0;padding:0;-moz-appearance:textfield;appearance:textfield}
.woocommerce .hv-product .quantity .qty::-webkit-inner-spin-button,.woocommerce .hv-product .quantity .qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.woocommerce div.product.hv-product form.cart .single_add_to_cart_button{min-height:50px;padding-inline:14px;font-size:16px;white-space:nowrap}
.woocommerce div.product.hv-product form.cart .single_add_to_cart_button:not(.hv-buy){grid-column:1/3;margin:0;gap:10px;background:var(--cam-dam);border-color:var(--cam-dam);color:#fff}
.woocommerce div.product.hv-product form.cart .hv-buy{grid-column:3;margin:0;background:#fff;border-color:var(--cam-dam);color:var(--cam-dam)}
.woocommerce div.product.hv-product form.cart .hv-buy:hover{background:var(--kem);color:var(--cam-dat)}
.woocommerce div.product.hv-product form.cart .single_add_to_cart_button:not(.hv-buy)::before{content:"";width:22px;height:22px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4h2.6l2.2 11h10.900l2.300-8H6'/%3E%3Ccircle cx='9' cy='19.300' r='1.500'/%3E%3Ccircle cx='17' cy='19.300' r='1.500'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4h2.6l2.2 11h10.900l2.300-8H6'/%3E%3Ccircle cx='9' cy='19.300' r='1.500'/%3E%3Ccircle cx='17' cy='19.300' r='1.500'/%3E%3C/svg%3E") center/contain no-repeat}
.hv-busy{opacity:.6;pointer-events:none}
.woocommerce div.product.hv-product form.cart .single_add_to_cart_button.disabled{opacity:.55}
.woocommerce div.product.hv-product form.variations_form{display:block}
.hv-product table.variations{width:100%;margin:0 0 8px;border:0}
.hv-product table.variations tr{display:grid;grid-template-columns:84px 1fr;gap:16px;align-items:center;margin-bottom:12px}
.woocommerce div.product.hv-product form.cart .variations th,.woocommerce div.product.hv-product form.cart .variations td{display:block;padding:0;line-height:1.4;text-align:left}
.woocommerce div.product.hv-product form.cart .variations label{font-weight:500}
.woocommerce div.product.hv-product form.cart .variations select{width:100%;min-height:46px;margin:0;border:1px solid #B9ACA1;border-radius:12px;background-color:#fff;padding:6px 12px}
.hv-product .reset_variations{display:inline-flex;min-height:36px;align-items:center}
.hv-product .woocommerce-variation-price .price{display:block;margin-bottom:10px!important}

/* Giao hàng, hỗ trợ */
.hv-pd__svc .hv-i{flex:none}
.hv-ship{margin-bottom:8px}
.hv-ship label{display:inline-flex;align-items:center;gap:8px;font-weight:500;white-space:nowrap}
.hv-ship label .hv-i,.hv-pd__link .hv-i,.hv-pd__hot .hv-i{width:20px;height:20px;color:var(--cam-dam)}
.hv-ship select{flex:1;min-width:0;min-height:46px;border:1px solid #B9ACA1;border-radius:12px;background:#fff;padding:6px 12px}
.hv-ship__note{margin:0 0 8px;padding:10px 14px;background:var(--kem);border-radius:12px;font-size:15px}
.hv-pd__link{margin:0 0 10px}
.hv-pd__link a{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--cam-dat);font-weight:600;text-decoration:none}
.hv-pd__link a:hover{text-decoration:underline}
.hv-perks{display:grid;grid-template-columns:repeat(3,1fr);list-style:none;margin:0 0 12px;padding:12px 4px;background:var(--kem);border-radius:14px;font-size:14px;line-height:1.35}
.hv-perks li{display:flex;align-items:center;justify-content:center;gap:8px;padding-inline:8px}
.hv-perks li+li{border-left:1px solid #F3C9A6}
.hv-perks .hv-i{width:28px;height:28px;color:var(--cam-dam);stroke-width:1.3}
.hv-pd__hot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.hv-pd__hot a{display:inline-flex;align-items:center;min-height:44px;color:var(--gia);font-weight:700;font-size:18px;text-decoration:none}

/* Tab */
.woocommerce div.product.hv-product .woocommerce-tabs{margin:0;border:1px solid var(--vien);border-radius:18px;background:#fff;padding:0 24px 24px}
.woocommerce div.product.hv-product .woocommerce-tabs ul.tabs{flex-wrap:nowrap;gap:0 8px;overflow-x:auto;margin:0 0 22px;border-bottom:1px solid var(--vien);scrollbar-width:thin}
.woocommerce div.product.hv-product .woocommerce-tabs ul.tabs::before{display:none}
.woocommerce div.product.hv-product .woocommerce-tabs ul.tabs li{flex:none;margin:0}
.woocommerce div.product.hv-product .woocommerce-tabs ul.tabs li a{background:none;border-radius:0;padding:16px 14px 13px;border-bottom:3px solid transparent;font-weight:500;font-size:16px;color:var(--chu)}
.woocommerce div.product.hv-product .woocommerce-tabs ul.tabs li a:hover{color:var(--cam-dam)}
.woocommerce div.product.hv-product .woocommerce-tabs ul.tabs li.active a{background:none;color:var(--cam-dat);border-color:var(--cam-dam);font-weight:600}
.woocommerce div.product.hv-product .woocommerce-tabs ul.tabs li a:focus-visible{outline-offset:-4px}
.woocommerce div.product.hv-product .woocommerce-tabs .panel{max-width:none;margin:0}
.hv-td{display:grid;grid-template-columns:minmax(0,60fr) minmax(0,40fr);gap:28px;align-items:start}
.hv-td--one{grid-template-columns:1fr}
.hv-td__txt>:first-child{margin-top:0}
.hv-td__txt h2,.hv-td__txt h3{color:var(--cam-dat);text-align:left!important}
.hv-td__txt img{border-radius:12px}
.hv-quick{background:var(--kem);border-radius:16px;padding:18px 20px}
.hv-quick h2{margin:0 0 8px!important;color:var(--cam-dat);font-size:20px!important}
.hv-quick dl{margin:0;background:#FFFAF6;border-radius:12px;padding:4px 14px}
.hv-quick dl>div{display:grid;grid-template-columns:112px 1fr;gap:12px;padding:10px 0;font-size:15px}
.hv-quick dl>div+div{border-top:1px solid var(--vien)}
.hv-quick dt{font-weight:600}
.hv-quick dd{margin:0}
.woocommerce table.shop_attributes.hv-info{border:0;margin:0}
.woocommerce table.shop_attributes.hv-info th{width:200px;text-align:left;font-weight:600}
.hv-related{margin-top:44px}
.hv-related .hv-fav__head{justify-content:space-between}
.woocommerce .hv-related ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}

@media (max-width:1199px){
	.hv-pd,.hv-arc{grid-template-columns:minmax(0,1fr)}
	.hv-side-open{display:inline-flex;margin-bottom:16px}
	.hv-side{position:fixed;inset:0;z-index:90;visibility:hidden;transition:visibility var(--t)}
	.hv-side.is-open{visibility:visible;transition-duration:0s}
	.hv-side__veil{display:block;position:absolute;inset:0;background:rgba(40,20,8,.5);opacity:0;transition:opacity var(--t)}
	.hv-side.is-open .hv-side__veil{opacity:1}
	.hv-side__panel{position:absolute;z-index:1;inset:0 auto 0 0;width:min(360px,90vw);background:var(--nen);overflow-y:auto;overscroll-behavior:contain;align-content:start;padding:0 16px calc(20px + env(safe-area-inset-bottom));transform:translateX(-100%);transition:transform var(--t)}
	.hv-side.is-open .hv-side__panel{transform:none}
	.admin-bar .hv-side__panel{padding-top:46px}
	.hv-side__head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:4;margin-inline:-16px;padding:8px 8px 8px 20px;background:var(--kem);color:var(--cam-dat);font-size:18px}
	.hv-side__close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;background:none}
	.hv-check{min-height:44px}
	.hv-filter__act{position:sticky;bottom:0;background:#fff;z-index:3;padding-bottom:4px}
	.woocommerce .hv-related ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
	.hv-td{grid-template-columns:minmax(0,1fr)}
	.hv-td .hv-quick{order:-1}
}
@media (max-width:899px){
	.woocommerce .hv-arc ul.products,.woocommerce-page .hv-arc ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
	.hv-pd__top{grid-template-columns:minmax(0,1fr)}
	.woocommerce div.product.hv-product div.images,.woocommerce div.product.hv-product div.summary,.woocommerce #content div.product.hv-product div.images,.woocommerce #content div.product.hv-product div.summary{grid-column:1}
	.woocommerce div.product.hv-product div.images{margin-bottom:20px}
}
@media (max-width:767px){
	.hv-side-open{width:100%}
	.woocommerce div.product.hv-product .product_title{font-size:26px}
	.woocommerce div.product.hv-product p.price{font-size:28px}
	.woocommerce div.product.hv-product .woocommerce-tabs{padding:0 16px 18px}
	.woocommerce div.product.hv-product .woocommerce-tabs ul.tabs li a{padding-inline:10px;font-size:15.5px}
	.hv-perks{font-size:14px}
	.hv-perks li{flex-direction:column;text-align:center;gap:4px;padding-inline:4px}
	.woocommerce table.shop_attributes.hv-info th{width:120px}
}
@media (max-width:479px){
	.woocommerce div.product.hv-product form.cart .single_add_to_cart_button:not(.hv-buy),.woocommerce div.product.hv-product form.cart .hv-buy{grid-column:1/-1}
}
/* Trước khi gallery khởi tạo: chỉ chiếm chỗ một ảnh, tránh nhảy bố cục */
.hv-product .woocommerce-product-gallery{opacity:1!important}
.hv-product .woocommerce-product-gallery>.woocommerce-product-gallery__wrapper>:not(:first-child){display:none}
/* Trong lúc FlexSlider khởi tạo (wrapper 800%), ảnh không được phình ra */
.hv-product .woocommerce-product-gallery{container-type:inline-size}
.hv-product .woocommerce-product-gallery .woocommerce-product-gallery__image{max-width:100cqw}
.hv-product .woocommerce-product-gallery .flex-viewport{max-height:100cqw}
