/** Product infor **/
.product-detail-left {
	border-top-left-radius: 0.25rem;
	border-bottom-left-radius: 0.25rem;
}
.details-product .details-pro {
	--block-spacing: 10px;
	border-top-right-radius: 0.25rem;
	border-bottom-right-radius: 0.25rem;
}
.title-product, .title-product a {
	font-weight: 700;
	font-size: 20px;
	color: var(--text-color)
}
@media (max-width: 767px) {
	.title-product {
		font-size: 1.2rem;
	}
}
.details-pro .group-status .line {
	color: #999;
}
.details-pro .group-status {
	font-size: 14px;
}
@media (max-width: 575px) {
	.details-pro .group-status .line {
		display: none;
	}
}
.status_name, .status_name a {
	color: #007bff;
}
.details-product .details-pro .price-box {
	position: relative;
	margin: 15px 0 10px;
	background: #f1f1f1;
	border-radius: 4px;
	display: block;
}
.details-product .details-pro .product-badge {
	display: block;
}
.details-product .details-pro .product-price {
	font-size: 26px;
	color: var(--price-color);
	line-height: 24px;
	font-family: inherit;
	font-weight: 900;
}
.details-product .details-pro .product-price-old {
	font-size: 16px;
}

.button_actions .btn_base {
	width: 100%;
}
.button_actions {
	display: flex;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.button_actions .btn {
	transition: all 0.3s ease;
	font-weight: 700;
	text-decoration: none;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	flex-flow: column;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	height: 55px;
	font-size: 14px;
	line-height: 20px;
	padding: 5px 10px;
}
.button_actions .btn span {
	font-weight: 400;
	font-size: small;
}
.buynow, .quick-view-product .button_actions .btn-cart {
	grid-column: 1 / -1;
	background-color: var(--buynow-bg);
	color: var(--buynow-text-color);
}
.buynow:hover {
	color: var(--buynow-text-color);
	opacity: .8;
}
.button_actions .btn-cart, .btn-installment {
	background-color: #fff;
	color: var(--buynow-bg);
	border: 1px solid var(--buynow-bg);
	margin-top: 10px;
	width: calc(50% - 5px);
}
.button_actions .btn-cart:hover, .btn-installment:hover {
	background-color: var(--buynow-bg);
	color: #fff;
}
.button_actions .btn-cart {
	margin-right: 5px;
}
.btn-installment {
	margin-left: 5px;
}
.button_actions .btn:only-child, .button_actions .btn.is-full {
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}
.button_actions .btn-cart strong {
	font-size: 16px;
}
.button_actions .btn-cart:hover, .btn-installment:hover {
	filter: brightness(1.2);
}
@media (max-width: 575px) {
	.button_actions .btn {
		min-width: 100%;
		margin-left: 0;
		margin-right: 0;
		width: 100%;
	}
}
.soluong.show {
	display: grid;
}
.soluong {
	align-items: center;
	grid-template-columns: 115px 1fr;
	margin-bottom: 0px;
}
.soluong label {
	margin: 0;
	font-weight: bold;
}
#ega-sticky-addcart .soluong {
	margin-bottom: 0;
}
.soluong label {
	color: #727272;
	justify-content: flex-start;
}
.input_number_product, .custom-btn-number {
	border: none;
	display: flex;
	height: 36px;
	margin-bottom: 0;
	margin-top: 0;
	align-items: center;
}
button.btn.btn_num {
	border-radius: 0;
	padding: 4px;
	width: 30px;
	border: 1px solid #ced4da;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8c9196;
}
button.btn.btn_num.num_1 {
	border-right: none;
	border-radius: 4px 0 0 4px;
}
button.btn.btn_num.num_2 {
	border-radius: 0 4px 4px 0;
	border-left: none;
}
.prd_quantity {
	border: 0;
	width: 55px !important;
	text-align: center;
	border-top: 1px solid #ced4da;
	border-bottom: 1px solid #ced4da;
	border-radius: 0;
	height: 30px;
}
.details-product .details-pro .price-box, #ega-sticky-addcart .price-box {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	background: transparent;
	padding-left: 0;
	padding-right: 0;
	margin-top: calc(var(--block-spacing));
	column-gap: 4px;
}
#ega-sticky-addcart .price-box {
	border-top: none;
}
.details-product .price-box .label_product, #ega-sticky-addcart .label_product {
	border-radius: 4px;
	background: var(--label-background);
	color: var(--label-color);
	display: inline-flex;
	justify-content: center;
	align-items: center;
	font-size: 14px;
	padding: 3px 8px;
	font-weight: bold;
	margin-left: 10px;
}
.product-price-old {
	color: #979797 !important;
	margin-left: 5px;
	font-size: 14px;
	font-weight: 600;
}
.details-product .quickview-info .price-box {
	margin-top: var(--block-spacing);
	padding-top: var(--block-spacing);
	padding-top: var(--block-spacing);
}
.quick-view-product .product-summary {
	padding: var(--block-spacing) 0;
}

.icon-button-play {
	width: 20px !important;
}
.product-promotion {
	background-color: var(--body-background);
	padding: 10px;
	margin-bottom: 10px;
}
.product-promotion__heading {
	color: #fff;
	margin-bottom: 8px;
	background-color: var(--primary-color);
	font-size: 14px;
	font-weight: 700;
	padding: 5px 10px;
}
.product-promotion ul {
	margin-bottom: 0;
	border-radius: 4px;
	padding: 8px 8px 8px 28px;
	background: #fff
}
.product-promotion ul li {
	padding: 3px 0;
}
.product-specifications table {
	border-collapse: unset;
	border-spacing: 0;
}
.product-specifications table td {
	padding: 8px;
	border-right: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}
.product-specifications table tr:nth-of-type(odd) {
	background-color: var(--body-background);
}
.product-specifications table tr:first-child td {
	border-top: 1px solid var(--border-color);
}
.product-specifications table tr td:first-child {
	border-left: 1px solid var(--border-color);
	width: 40%;
}
.product-specifications table tr:first-child td:first-child {
	border-top-left-radius: 8px;
}
.product-specifications table tr:first-child td:last-child {
	border-top-right-radius: 8px;
}
.product-specifications table tr:last-child td:last-child {
	border-bottom-right-radius: 8px;
}
.product-specifications table tr:last-child td:first-child {
	border-bottom-left-radius: 8px;
}
.product-hotline a {
	font-weight: bold;
	color: var(--primary-color);
}
.details-product .product-promo-tag {
	margin-top: 5px;
	margin-bottom: 5px;
}





/* -------------------CUSTOM-------------------- */

#policy-box{
	margin-bottom: 0px;
	border: 1px solid #e7e7e7;
}
#policy-box,
#policy-box * {
	font-size: 13px;
}
#product-policises li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: transparent;
}
#policy-box ul {
	padding: 0px;
}

#product-policises li svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
.product-promotion ul{
	background-color: transparent;
	padding: 0px 0px 0px 30px;
}
#ega-uti-editable-content p {
	font-size: 14px;
	text-align: justify;
	line-height: 1.5;
	color: #363636;
}
#ega-uti-editable-content h3 {
	font-size: 1.2rem;
	font-weight: 600;
}

#tskt p {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
}

.product_getcontent > table {
	width: 100%;
	border-collapse: collapse;
}

.product_getcontent > table td {
	padding: 8px 12px;
	vertical-align: top;
}

.product_getcontent > table td:first-child {
	font-weight: 600;
}

.product_getcontent > table p {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
}


.modal-content{
	font-family: var(--font-primary);;
}

.modal-title{
	font-family: var(--font-primary);;
	font-size:1.2rem;
	font-weight:700;
}

/* Bảng thông số */
.modal-body > table{
	width:100%;
	border-collapse:collapse;
}

.modal-body > table td{
	padding:10px 14px;
	border:1px solid #e5e5e5;
	vertical-align:top;
	line-height:1.6;
}

.modal-body > table td:first-child{
	width:30%;
	font-weight:600;
	background:#fafafa;
}

.modal-body > table td:last-child{
	width:70%;
}

.modal-body > table td[colspan="2"]{
	background:#f3f4f6;
	text-align:center;
	font-weight:700;
}

.modal-body > table p{
	margin:0;
	font:inherit;
}

.modal-body{
	overflow-x:auto;
}
#content iframe, #content video, #content img{
	border-radius: 5px;
	width: 100%
}

#content p img {
	display: block;
	width: 99% !important;
	height: auto !important;
	max-height: 70vh;
	object-fit: cover;
	object-position: center;
	margin: 20px auto;
	box-shadow: 0px 0px 0px 1px rgb(0 0 0 / 10%);
	background-color: #ffffff;
}

.promotion-box li::marker {
	content: "✓  ";
	color: #e84118;
	font-weight: bold;
}

.product-name-main {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
}

.product-name-sub {
	display: block;
	margin-top: 1px;
	font-size: 15px;
	font-weight: 450;
	line-height: 1.3;
	color: #3f3f3f;
}
/* Ghi chú sản phẩm */
.product-note {
	font-size: 14px;
	line-height: 1.3;
}

.product-note__title {
	color: #e14210;
	font-weight: 700;
}

.product-note__list {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.product-note__list li {
	position: relative;
	padding-left: 14px;
	color: #363636;
}

.product-note__list li::before {
	content: "*";
	position: absolute;
	left: 0;
	top: 0;
	color: #e14210;
	font-weight: 700;
}


@media (max-width: 767px) {

	#gallery_1 {
		height: 30vh;
		max-height: 320px;
		min-height: 240px;
		overflow: hidden;
	}

	#gallery_1 .slick-list,
	#gallery_1 .slick-track,
	#gallery_1 .slick-slide,
	#gallery_1 .item {
		height: 100% !important;
	}

	#gallery_1 .embed-responsive-1by1 {
		height: 100% !important;
		padding: 0 !important;
	}

	#gallery_1 .embed-responsive-1by1::before {
		display: none !important;
	}

	#gallery_1 img {
		width: 100% !important;
		height: 100% !important;
		object-fit: contain;
		object-position: center;
	}

	#gallery_02 .slick-slide {
		padding: 0 3px;
	}

	#gallery_02 .slick-slide img {
		width: 100%;
		height: 58px;
		object-fit: contain;
		border-radius: 5px;
	}
}

@media (min-width: 992px) {

	.details-product > .row {
		align-items: flex-start;
	}
}

.product-detail-tabs-section .product-detail-tabs {
	display: flex;
	flex-direction: row !important;
	align-items: center;
	gap: 28px;

	margin: 0;
	padding: 0;

	border-bottom: 1px solid #e5e5e5;
}

.product-detail-tabs-section .product-detail-tabs .nav-item {
	margin: 0;
	padding: 0;
}
.product-detail-tabs-section .product-detail-tabs .nav-link {
	position: relative;

	display: block;

	padding: 14px 2px;

	border: 0;
	border-radius: 0;

	background: transparent;

	color: #777;

	font-size: 16px;
	font-weight: 600;

	line-height: 1.4;

	cursor: pointer;
}

.product-detail-tabs-section .product-detail-tabs .nav-link:hover {
	border: 0;
	color: #222;
}

.product-detail-tabs-section .product-detail-tabs .nav-link.active {
	border: 0;
	background: transparent;

	color: #222;
	font-weight: 700;
}

.product-detail-tabs-section .product-detail-tabs .nav-link.active::after {
	content: "";

	position: absolute;

	left: 0;
	right: 0;
	bottom: -1px;

	height: 3px;

	background: currentColor;

	border-radius: 3px 3px 0 0;
}

.product-detail-tabs-section .product-detail-tab-content {
	padding-top: 20px;
}

.product-detail-tabs-section
#product-specifications
.product-specifications {
	width: 100%;
}

.product-detail-tabs-section .tab-content {
	display: block !important;
}
.product-detail-tabs-section
.product-detail-tab-content
> .tab-pane {
	display: none !important;
}

.product-detail-tabs-section
.product-detail-tab-content
> .tab-pane.active {
	display: block !important;
}

@media (max-width: 767px) {

	.product-detail-tabs-section .product-detail-tabs {
		gap: 20px;

		overflow-x: auto;
		overflow-y: hidden;

		flex-wrap: nowrap;

		white-space: nowrap;

		-webkit-overflow-scrolling: touch;
	}

	.product-detail-tabs-section .product-detail-tabs .nav-link {
		padding: 12px 0;

		font-size: 14px;
	}

	.product-detail-tabs-section .product-detail-tab-content {
		padding-top: 15px;
	}

}
.col_large_default.large-image{
	overflow: hidden;
	border: 0px solid #e7e7e7;
}

.collection-banner-pd-link {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 4px;
}


.collection-banner-pd-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;

	padding: 7px 10px;

	border: 0px;

	background: #fff;
	color: #333;

	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;

	white-space: nowrap;
	cursor: pointer;

	transition:
		background-color .2s ease,
		border-color .2s ease,
		color .2s ease,
		transform .2s ease;
}

.shortdes-spec {
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}

.shortdes-spec-header{
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.collection-banner-pd-more img {
	display: block;

	width: 18px;
	height: 18px;

	object-fit: contain;

	transition: transform .2s ease;
}

.collection-banner-pd-link {
	position: relative;
	display: block;
	overflow: hidden;
}

.collection-banner-pd-more {
	position: absolute;
	right: 0;
	bottom: -50px;
	z-index: 2;
	visibility: hidden;
    transition: 0.1s ease;
}
.collection-banner-pd-link:hover .collection-banner-pd-more {
	bottom: 0px;           /* Hiện rõ */
  	visibility: visible;     /* Bật lại trạng thái tương tác */
}

@media (max-width: 575px) {

	.collection-banner-pd-more {
		padding: 7px 9px;
		font-size: 12px;
		gap: 6px;
	}

	.shortdes-spec-detail-btn img,
	.collection-banner-pd-more img {
		width: 16px;
		height: 16px;
	}

	.collection-banner-pd-more {
		right: 10px;
		bottom: 10px;
	}
}


/* =========================================
COMMON UI BOX
========================================= */

.ui-box {
	width: 100%;
	border: 1px solid #dedede;
	border-radius: 5px;
	background: #fff;
	color: var(--text-box);
	overflow: hidden;
}


/* =========================================
HEADER
========================================= */

.ui-box__header {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 12px;
	min-height: 35px;
	padding: 9px 12px;

	/* trắng bạc */
	background: #f5f6f7;

	color: var(--text-box);

	/* đường phân cách header / content */
	border-bottom: 1px solid #dedede;
}


/* =========================================
TITLE
========================================= */

.ui-box__title-wrap {
	display: flex;
	align-items: center;

	gap: 7px;

	min-width: 0;
}

.ui-box__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;

	color: var(--text-box);
}


/* =========================================
ICON TRƯỚC TITLE
========================================= */

.ui-box__icon {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 20px;
	height: 20px;

	flex: 0 0 20px;
}

.ui-box__icon img {
	display: block;

	width: 18px;
	height: 18px;

	object-fit: contain;
}


/* =========================================
HEADER ACTION
========================================= */

.ui-box__action {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 7px;
	font-size: 12px;
	line-height: 1.2;

	color: var(--text-box);
}


/* =========================================
CONTENT
========================================= */

.ui-box__content {
	padding: 10px;
	color: var(--text-box);
}

.shortdes-promotion>.ui-box__header{
	background: var(--primary-color);

}
.shortdes-promotion .ui-box__title{
	color: #fff;
}

.ui-box__content>ul{
	padding-inline-start: 25px;
}
.ui-box__content>ul>li{
	margin-bottom: 5px;
}
.ui-box__content>ul>li:last-child{
	margin-bottom: 0px;
}

.ui-box_footer {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 1px;
	column-rule: 1px solid var(--border-strong);
	background: #fff;
	border-top: 1px solid #dedede;
	
}

.ui-box_footer-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;

	width: 100%;
	min-width: 0;
	min-height: 30px;
	padding: 5px 5px;

	border-radius: 0;

	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;

	cursor: pointer;

	transition:
		background-color .2s ease,
		border-color .2s ease,
		color .2s ease;
}


/* Xem thêm */
.ui-box_footer-btn--outline {
	background: #fff;
	border: 0px solid var(--primary-color, #d70018);
	color: var(--primary-color, #d70018);
}

.ui-box_footer-btn--outline:hover {
	background: #ff0000;
	color: white;
}


/* So sánh */
.ui-box_footer-btn--primary {
	background: var(--primary-color, #d70018);
	border: 0px solid var(--primary-color, #d70018);
	color: #fff;
}

.ui-box_footer-btn--primary:hover {
	filter: brightness(.92);
}

@media (min-width: 992px) {
  .details-product {
    --product-sticky-top-gap: 16px;
    --product-sticky-bottom-gap: 16px;
  }

  /* Cột ngoài kéo dài theo hàng để khối bên trong có vùng sticky */
  .details-product > .row > .sticky-bottom-div {
    position: relative !important;
    inset: auto !important;
    align-self: stretch !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Div có sẵn, bao quanh toàn bộ nội dung cột ảnh */
  .details-product > .row > .sticky-bottom-div > div {
    display: flow-root;
    position: sticky !important;
    top: var(
      --product-sticky-offset,
      var(--product-sticky-top-gap)
    ) !important;
    bottom: auto !important;
    height: auto;
    overflow: visible;
  }

  /* Tắt sticky riêng của gallery để tránh hai lớp sticky */
  .details-product .sticky-bottom-div .product-detail-left {
    position: static !important;
    inset: auto !important;
  }
}

/* ----------------- Hình ảnh tin cậy ------------------*/
/* ========================================
   CỘT ẢNH THỰC TẾ CỬA HÀNG
   ======================================== */

.product-store-trust {
  min-width: 0;
}

.product-store-trust .store-trust-box {
  min-width: 0;
  background: #fff;
  border-radius: 6px;
}

.product-store-trust .store-trust-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
	padding: 14px 0 0 0;
}

.product-store-trust .store-trust-intro {
  margin: 0 0 14px;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

/* ========================================
   SLIDER — SLICK ĐIỀU KHIỂN CHUYỂN ẢNH
   ======================================== */

.store-trust-slider {
  position: relative;
  width: 100%;
  min-width: 0;
}

.store-trust-slider .store-trust-track {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: visible;
  scroll-snap-type: none;
}

/* Tránh hiện cả ba ảnh trước khi Slick khởi tạo */
.store-trust-slider
  .store-trust-track:not(.slick-initialized)
  > .store-trust-slide:not(:first-child) {
  display: none;
}

.store-trust-slider .slick-list {
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 6px;
}

.store-trust-slider .store-trust-slide {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  scroll-snap-align: none;
}

.store-trust-slider .store-trust-slide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.store-trust-slider .store-trust-slide figcaption {
  margin: 0;
  padding: 10px 4px 0;
  color: #444;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ========================================
   NÚT CHUYỂN ẢNH
   Giữ giao diện .slick-arrow có sẵn của theme
   ======================================== */

.store-trust-slider .slick-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    opacity 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.store-trust-slider .slick-prev {
  left: 8px;
  right: auto;
}

.store-trust-slider .slick-next {
  right: 8px;
  left: auto;
}

.store-trust-slider .slick-arrow.slick-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.store-trust-slider .slick-arrow.slick-hidden {
  display: none;
}

.store-trust-slider .slick-arrow:focus-visible {
  outline: 2px solid #1463ff;
  outline-offset: 3px;
}

/* ========================================
   SỐ THỨ TỰ ẢNH
   ======================================== */

.store-trust-slider .store-trust-pagination {
  margin-top: 12px;
  color: #555;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.store-trust-slider [data-trust-count] {
  display: inline-block;
  min-width: 48px;
}

.store-trust-slider .store-trust-pagination[hidden] {
  display: none;
}

/* ========================================
   GIẢM CHUYỂN ĐỘNG
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .store-trust-slider .slick-arrow {
    transition: none;
  }
}
/* ========================================
   BỘ NÚT MUA HÀNG
   ======================================== */

.button_actions.purchase-actions-v2 {
  --purchase-red: #f5222d;
  --purchase-red-hover: #dc1721;
  --purchase-blue: #0756ff;
  --purchase-height: 56px;

  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;

  width: 100%;
  min-width: 0;
  margin-top: 12px;
  padding-top: 0px;
}

/* Kích thước chung */
.button_actions.purchase-actions-v2 > .purchase-cart,
.button_actions.purchase-actions-v2 > .purchase-buy,
.button_actions.purchase-actions-v2 > .purchase-soldout {
  box-sizing: border-box;
  float: none;
  height: var(--purchase-height);
  min-height: var(--purchase-height);
  margin: 0;
  border-radius: 6px;
  box-shadow: none;
  text-transform: none;
  white-space: normal;
  line-height: 1.3;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

/* ========================================
   THÊM VÀO GIỎ HÀNG
   ======================================== */

.button_actions.purchase-actions-v2 > .purchase-cart {
  display: inline-flex;
  flex: 0 0 64px;
  align-items: center;
  justify-content: center;

  width: 64px;
  min-width: 64px;
  max-width: 64px;
  padding: 0;

  border: 2px solid var(--purchase-red);
  background: #fff;
  color: var(--purchase-red);
}

.purchase-actions-v2 .purchase-cart-icon {
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
}

.button_actions.purchase-actions-v2 > .purchase-cart:hover {
  border-color: var(--purchase-red-hover);
  background: #fff1f2;
  color: var(--purchase-red-hover);
}

/* ========================================
   MUA NGAY
   ======================================== */

.button_actions.purchase-actions-v2 > .purchase-buy {
  display: flex;
  flex: 1 1 170px;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: auto;
  min-width: 170px;
  max-width: 100%;
  padding: 6px 10px;

  border: 1px solid var(--purchase-red);
  background: var(--purchase-red);
  color: #fff;

  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.purchase-actions-v2 .purchase-buy span {
  display: block;
  margin-top: 3px;
  color: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.button_actions.purchase-actions-v2 > .purchase-buy:hover {
  border-color: var(--purchase-red-hover);
  background: var(--purchase-red-hover);
  color: #fff;
}

/* ========================================
   HẾT HÀNG
   ======================================== */

.button_actions.purchase-actions-v2 > .purchase-soldout {
  flex: 1 1 170px;
  width: auto;
  padding: 8px 12px;

  border: 1px solid #ddd;
  background: #eee;
  color: #777;
  cursor: not-allowed;
}

/* ========================================
   LIÊN HỆ TƯ VẤN
   ======================================== */

.purchase-actions-v2 .purchase-consult {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;

  box-sizing: border-box;
  height: var(--purchase-height);
  padding: 3px 6px;

  border: 2px solid var(--purchase-blue);
  border-radius: 5px;
  background: #fff;
}

/* Nhãn phía trên */
.purchase-actions-v2 .purchase-consult-label {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 7px;

  box-sizing: border-box;
  display: block;
  padding: 6px 9px;

  border: 1px solid var(--purchase-red);
  background: #fff;
  color: var(--purchase-red);

  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

/* Đuôi bong bóng */
.purchase-actions-v2 .purchase-consult-label::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 6px;

  width: 0;
  height: 0;
  border-top: 8px solid var(--purchase-red);
  border-right: 9px solid transparent;
}

.purchase-actions-v2 .purchase-consult-label::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 7px;

  width: 0;
  height: 0;
  border-top: 6px solid #fff;
  border-right: 7px solid transparent;
}

/* Liên kết Zalo / Messenger */
.purchase-actions-v2 .purchase-consult-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;

  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 2px;

  border-radius: 4px;
  color: #0639ce;
  text-align: center;
  text-decoration: none;

  transition: background-color 180ms ease;
}

.purchase-actions-v2 .purchase-consult-link:hover {
  background: #edf4ff;
  color: #0639ce;
  text-decoration: none;
}

.purchase-actions-v2 .purchase-consult-text {
  font-size: 7px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

/* SVG từ Assets được tô xanh bằng mask */
.purchase-actions-v2 .purchase-social-icon.purchase-social-mask {
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;

  background-color: #0068ff;

  -webkit-mask-image: var(--social-icon-url);
  mask-image: var(--social-icon-url);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;
}

.purchase-actions-v2
  .purchase-consult-messenger
  .purchase-social-mask {
  background-color: #0866ff;
}

/* ========================================
   TRẠNG THÁI NÚT
   ======================================== */

/* Giữ trạng thái ẩn, bao gồm sản phẩm giá 0 */
.button_actions.purchase-actions-v2 > .hidden,
.button_actions.purchase-actions-v2 > [hidden] {
  display: none !important;
}

.purchase-actions-v2 > button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.purchase-actions-v2 > button:focus-visible,
.purchase-actions-v2 .purchase-consult-link:focus-visible {
  outline: 2px solid #0756ff;
  outline-offset: 3px;
}

/* ========================================
   DI ĐỘNG
   Chỉ hiển thị giỏ hàng và mua ngay
   ======================================== */

@media (max-width: 767.98px) {
  .button_actions.purchase-actions-v2 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    padding-top: 0;
  }

  .button_actions.purchase-actions-v2 > .purchase-cart {
    flex: 0 0 60px;
    width: 60px;
    min-width: 60px;
    max-width: 60px;
  }

  .button_actions.purchase-actions-v2 > .purchase-buy {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    padding: 6px 8px;
  }

  .purchase-actions-v2 .purchase-buy span {
    font-size: 11px;
    line-height: 1.35;
  }

  .button_actions.purchase-actions-v2 .purchase-consult {
    display: none !important;
  }
}

/* Giảm chuyển động theo thiết lập thiết bị */
@media (prefers-reduced-motion: reduce) {
  .purchase-actions-v2 > button,
  .purchase-actions-v2 .purchase-consult-link {
    transition: none;
  }
}
/* Tái sử dụng giao diện bộ nút mua hàng */
.button_actions.purchase-actions-v2.purchase-contact-actions {
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.button_actions.purchase-contact-actions > a {
  height: auto;
  min-height: var(--purchase-height);
  text-decoration: none;
}

/* Nút tìm sản phẩm khác: mở rộng nút icon cũ */
.button_actions.purchase-contact-actions > .purchase-cart {
  flex: 0 0 32%;
  gap: 6px;
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 6px;

  font-size: 12px;
  font-weight: 800;
  text-align: center;
	flex-direction: row;
}

.purchase-contact-actions .purchase-cart svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

/* Nút liên hệ: icon và chữ nằm ngang */
.button_actions.purchase-contact-actions > .purchase-buy {
  flex: 1 1 0%;
  flex-direction: row;
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
}

.purchase-contact-actions .purchase-buy img {
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Ghi đè kiểu chữ phụ của nút mua ngay */
.purchase-contact-actions .purchase-buy > span {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.purchase-contact-actions > a:focus-visible {
  outline: 2px solid #0756ff;
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  .button_actions.purchase-contact-actions > .purchase-cart {
    gap: 4px;
    font-size: 10px;
  }

  .purchase-contact-actions .purchase-cart svg {
    width: 18px;
    height: 18px;
  }

  .button_actions.purchase-contact-actions > .purchase-buy {
    gap: 6px;
  }

  .purchase-contact-actions .purchase-buy img {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .purchase-contact-actions .purchase-buy > span {
    font-size: 13px;
  }
}
.price-box__main{
	width: 100%
}
.purchase-cart span{
	font-weight: 700 !important;
}
/* Cân lại bộ nút tìm sản phẩm / liên hệ */
.button_actions.purchase-actions-v2.purchase-contact-actions {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: stretch;
  gap: 10px;
}

/* Kích thước và kiểu chữ chung */
.button_actions.purchase-contact-actions > .purchase-cart,
.button_actions.purchase-contact-actions > .purchase-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 8px;

  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 60px;
  padding: 10px;

  border-width: 1.5px;
  border-radius: 6px;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

/* Bỏ ngắt dòng cưỡng bức trong nhãn tìm sản phẩm */
.purchase-contact-actions .purchase-cart > span br {
  display: none;
}

.purchase-contact-actions .purchase-cart > span br::after {
  content: none;
}

/* Hai nhãn dùng cùng hệ chữ */
.purchase-contact-actions .purchase-cart > span,
.purchase-contact-actions .purchase-buy > span {
  min-width: 0;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  white-space: normal;
  text-wrap: balance;
}

/* Icon gọn hơn */
.purchase-contact-actions .purchase-cart svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.purchase-contact-actions .purchase-buy img {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Di động */
@media (max-width: 767.98px) {
  .button_actions.purchase-actions-v2.purchase-contact-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 8px;
  }

  .button_actions.purchase-contact-actions > .purchase-cart,
  .button_actions.purchase-contact-actions > .purchase-buy {
    min-height: 58px;
    padding: 8px;
    gap: 6px;
    font-size: 12px;
  }

  .purchase-contact-actions .purchase-cart svg {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
  }

  .purchase-contact-actions .purchase-buy img {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }
}

.btn-custom-pc {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    min-height: 52px;
    padding: 8px 14px;

    border: 1px solid #c7c7c7;
    border-radius: 6px;
    background: #fff;

    color: #d70018;
    text-decoration: none;

    transition: all .2s ease;
}

.btn-custom-pc__icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
}

.btn-custom-pc__content {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.btn-custom-pc__content strong {
    font-size: 15px;
    font-weight: 600;
}

.btn-custom-pc__content small {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

.btn-custom-pc:hover {
    background: #d70018;
    color: #fff;
    text-decoration: none;
}

.btn-custom-pc:hover .btn-custom-pc__content small {
    color: rgba(255, 255, 255, .85);
}

@media (max-width: 767px) {
    .btn-custom-pc {
        min-height: 48px;
        padding: 7px 12px;
    }

    .btn-custom-pc__icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .btn-custom-pc__content strong {
        font-size: 14px;
    }
}
/* Purchase CTA: full-width buy row and three secondary actions. */
.button_actions.purchase-actions-v2.purchase-actions-v3 { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2.5fr) minmax(0,1fr); gap:8px; align-items:stretch; overflow:visible;}
.button_actions.purchase-actions-v3 > .purchase-buy { grid-column:1/-1; grid-row:1; width:100%; min-width:0; max-width:none; height:56px; }
.button_actions.purchase-actions-v3 > .purchase-cart { grid-column:1; grid-row:2; width:100%; min-width:0; max-width:none; height:48px; position:relative; z-index:1; }
.button_actions.purchase-actions-v3 > .purchase-installment { grid-column:2; grid-row:2; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-width:0; height:48px; margin:0; padding:4px; border:1px solid #0756ff; border-radius:5px; background:#0756ff; color:#fff; font-size:13px; line-height:1.3; }
.purchase-actions-v3 .purchase-installment span { font-size:11px; }
.button_actions.purchase-actions-v3 > .purchase-consult { grid-column:3; grid-row:2; display:flex; width:100%; height:48px; min-width:0; margin:0; padding:2px; border-width:1px; z-index:1; }
.purchase-actions-v3 .purchase-consult-text { display:none; }
.purchase-actions-v3 .purchase-consult-link { min-width:0; min-height:38px; padding:2px; flex:1; }
.purchase-actions-v3 .purchase-social-icon.purchase-social-mask { width:28px; height:28px; flex-basis:28px; }
.purchase-actions-v3 .purchase-consult-label,
.purchase-actions-v3 > .purchase-cart::after { position:absolute; top:100%; bottom:auto; left:0; right:0; width:100%; margin:0; padding:3px 0; border:0; border-radius:0 0 3px 3px; color:#fff; background:#0756ff; font-size:10px; font-weight:500; line-height:1.2; text-align:center; white-space:nowrap; opacity:0; transform:translateY(-100%); transition:transform .2s ease,opacity .2s ease; z-index:-1; pointer-events:none; }
.purchase-actions-v3 > .purchase-cart::after { content:'Thêm vào giỏ'; background:var(--purchase-red); }
.purchase-actions-v3 .purchase-consult-label::before,
.purchase-actions-v3 .purchase-consult-label::after { content:none; }
@media(hover:hover) {
 .purchase-actions-v3 > .purchase-cart:hover::after,
 .purchase-actions-v3 .purchase-consult:hover .purchase-consult-label { opacity:1; transform:translateY(0); }
}
.button_actions.purchase-actions-v3 > .purchase-soldout { grid-column:1/-1; grid-row:1; width:100%; min-width:0; max-width:none; }
@media(prefers-reduced-motion:reduce) { .purchase-actions-v3 .purchase-consult-label,.purchase-actions-v3 > .purchase-cart::after { transition:none; } }

/* Equal secondary CTA height and labels revealed behind the button face. */
.button_actions.purchase-actions-v2.purchase-actions-v3 > .purchase-cart,
.button_actions.purchase-actions-v2.purchase-actions-v3 > .purchase-installment,
.button_actions.purchase-actions-v2.purchase-actions-v3 > .purchase-consult {
 box-sizing:border-box; height:48px; min-height:48px; max-height:48px; align-self:stretch; margin:0; overflow:visible;
}
.button_actions.purchase-actions-v2.purchase-actions-v3 > .purchase-consult { display:flex!important; }
.button_actions.purchase-actions-v2.purchase-actions-v3 > .purchase-consult[hidden] { display:none!important; }
.purchase-actions-v3 > .purchase-cart,
.purchase-actions-v3 > .purchase-consult { position:relative; isolation:isolate; }
.purchase-actions-v3 > .purchase-cart::before,
.purchase-actions-v3 > .purchase-consult::before {
 content:''; position:absolute; inset:0; border-radius:inherit; background:#fff; z-index:0; pointer-events:none;
}
.purchase-actions-v3 > .purchase-cart:hover::before { background:#fff; }
.purchase-actions-v3 > .purchase-cart .purchase-cart-icon,
.purchase-actions-v3 .purchase-consult-link { position:relative; z-index:1; }
.purchase-actions-v3 > .purchase-cart::after,
.purchase-actions-v3 .purchase-consult-label { z-index:-1; opacity:0; transform:translateY(-100%); }
@media(hover:hover) {
 .purchase-actions-v3 > .purchase-cart:hover::after,
 .purchase-actions-v3 > .purchase-consult:hover .purchase-consult-label { opacity:1; transform:translateY(0); }
}

/* Both hover labels use the same pseudo-element and border-inclusive width. */
.purchase-actions-v3 > .purchase-cart { --purchase-label-edge:2px; --purchase-label-color:var(--purchase-red); }
.purchase-actions-v3 > .purchase-consult { --purchase-label-edge:1px; --purchase-label-color:#0756ff; }
.purchase-actions-v3 > .purchase-consult .purchase-consult-label { display:none!important; }
.purchase-actions-v3 > .purchase-cart::after,
.purchase-actions-v3 > .purchase-consult::after {
 display:flex; align-items:center; justify-content:center; box-sizing:border-box;
 position:absolute; top:calc(100% + var(--purchase-label-edge)); bottom:auto;
 left:calc(0px - var(--purchase-label-edge)); right:auto;
 width:calc(100% + var(--purchase-label-edge) + var(--purchase-label-edge));
 height:18px; min-height:18px; margin:0; padding:0 2px; border:0; border-radius:0 0 3px 3px;
 background:var(--purchase-label-color); color:#fff; font-size:10px; font-weight:500;
 line-height:18px; text-align:center; white-space:nowrap; pointer-events:none; z-index:-1;
 opacity:0; transform:translateY(-100%); transition:transform .22s ease,opacity .22s ease;
}
.purchase-actions-v3 > .purchase-cart::after { content:'Thêm vào giỏ'; }
.purchase-actions-v3 > .purchase-consult::after { content:'Liên hệ tư vấn'; }
@media(hover:hover) {
 .purchase-actions-v3 > .purchase-cart:hover::after,
 .purchase-actions-v3 > .purchase-consult:hover::after { opacity:1; transform:translateY(0); }
}
@media(prefers-reduced-motion:reduce) {
 .purchase-actions-v3 > .purchase-cart::after,.purchase-actions-v3 > .purchase-consult::after { transition:none; }
}