/* ==========================================================================
   Single product redesign v2 — repositions existing content only.
   Scope: body.single-product (WooCommerce single product pages)
   ========================================================================== */

/* ---- Overall grid ---- */
.single-product .product-layout-v2 { align-items: flex-start; }
.single-product .product-layout-v2 .product-gallery { position: relative; }
.single-product .product-info { padding-top: 4px; }

/* ---- Title ---- */
.single-product .product-info .product-title {
	font-size: 24px;
	line-height: 1.35;
	font-weight: 700;
	margin-bottom: 8px;
}

/* ---- Rating row (native woocommerce_template_single_rating) ---- */
.single-product .product-info .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

/* ---- Divider under title: removed ---- */
.single-product .product-info > .is-divider.small {
	display: none !important;
}

/* ---- Price ---- */
.single-product .product-info .price-wrapper { margin-bottom: 14px; }
.single-product .product-info .price-wrapper .price {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.single-product .product-info .price-wrapper .price-label {
	display: none !important;
}
.single-product .product-info .price-wrapper ins {
	text-decoration: none;
	font-size: 36px;
	font-weight: 800;
	color: #e02424;
	line-height: 1;
}
.single-product .product-info .price-wrapper del {
	font-size: 16px;
	color: #98a2b3;
	font-weight: 400;
	line-height: 1;
}
.single-product .product-info .price-wrapper .price-discount-badge {
	display: inline-flex;
	align-items: center;
	align-self: center;
	background: #e02424;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 999px;
	line-height: 1.4;
}

/* ---- Short description → checklist when it contains a list, else styled paragraph ---- */
.single-product .product-short-description {
	margin-bottom: 16px;
	color: #475467;
	line-height: 1.6;
}
.single-product .product-short-description ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.single-product .product-short-description ul li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 8px;
}
.single-product .product-short-description ul li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 1px;
	width: 18px;
	height: 18px;
	line-height: 18px;
	text-align: center;
	background: #12b76a;
	color: #fff;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
}

/* ---- Trust badges (re-injected sidebar widget content) — compact horizontal row ---- */
.single-product .product-trust-badges {
	background: none !important;
	border: 1px solid #eef1f5;
	border-radius: 10px;
	padding: 10px 16px !important;
	margin-bottom: 18px;
}
.single-product .product-trust-badges .widget { margin: 0; }
.single-product .product-trust-badges .sidebar-product .col-inner,
.single-product .product-trust-badges .col-inner {
	border: none !important;
	padding: 0 !important;
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px 20px;
}
.single-product .product-trust-badges .icon-box {
	flex: 1 1 auto;
	min-width: 200px;
	margin: 6px 0 !important;
	display: flex;
	align-items: center;
}
.single-product .product-trust-badges .icon-box-img { width: 26px !important; }
.single-product .product-trust-badges .icon-box-img img { width: 22px !important; height: auto; }
.single-product .product-trust-badges .is-divider { display: none !important; }
.single-product .product-trust-badges .icon-box-text {
	font-size: 13px;
	line-height: 1.4;
}
.single-product .product-trust-badges .icon-box-text p { margin: 0; }
.single-product .product-trust-badges .icon-box-text ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.single-product .product-trust-badges .icon-box-text ul li {
	display: inline;
	margin-right: 8px;
}
.single-product .product-trust-badges .icon-box-text ul li:not(:last-child)::after {
	content: "\00b7";
	margin-left: 8px;
	color: #98a2b3;
}

/* ---- Quantity + Add to cart + Buy now row (blue family, matches design) ---- */
.single-product .product-info form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}
.single-product .product-info form.cart .quantity { margin: 0; }
.single-product .product-info .single_add_to_cart_button,
.single-product .product-info .buy-now-button {
	flex: 1 1 140px;
	text-align: center;
	margin: 0 !important;
	padding: 0 16px !important;
	height: 45px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	border-radius: 6px !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
	border-width: 1.5px !important;
	border-style: solid !important;
	box-shadow: none !important;
}
.single-product .product-info .single_add_to_cart_button svg,
.single-product .product-info .single_add_to_cart_button img {
	width: 15px !important;
	height: 15px !important;
}
.single-product .product-info .single_add_to_cart_button {
	background: #1b64f2 !important;
	border-color: #1b64f2 !important;
	color: #fff !important;
}
.single-product .product-info .single_add_to_cart_button:hover {
	background: #1550c9 !important;
	border-color: #1550c9 !important;
	color: #fff !important;
}
.single-product .product-info .buy-now-button {
	background: transparent !important;
	border-color: #1b64f2 !important;
	color: #1b64f2 !important;
}
.single-product .product-info .buy-now-button:hover {
	background: #1b64f2 !important;
	border-color: #1b64f2 !important;
	color: #fff !important;
}

/* ---- Contact / hotline block after share icons ---- */
/* Overrides site-wide Additional CSS (red dashed box + red/orange gradient title bar)
   to match the clean white card style. */
.single-product .product-info .section.box-tu-van {
	border: 1px solid #e4e7ec !important;
	border-radius: 10px !important;
	padding: 18px !important;
	margin: 10px 0 0 !important;
	background: #fff !important;
}
.single-product .product-info .section.box-tu-van .title-box {
	background: transparent !important;
	color: #101828 !important;
	font-weight: 700;
	font-size: 15px;
	text-align: left !important;
	padding: 0 0 12px !important;
	margin: 0 0 12px !important;
	border-bottom: 1px solid #eef1f5;
}
.single-product .product-info .section.box-tu-van .icon-box-img {
	width: 30px !important;
}
.single-product .product-info .section.box-tu-van .icon-box-text p {
	line-height: 1.4 !important;
	font-weight: 600 !important;
	color: #1d2939;
}

/* ---- Product tabs: clean underline style (site-wide) ---- */
.single-product .woocommerce-tabs.wc-tabs-wrapper {
	margin-top: 30px;
}
.single-product .woocommerce-tabs .tabs.wc-tabs {
	display: flex !important;
	justify-content: flex-start !important;
	align-items: center;
	gap: 40px;
	border-bottom: 1px solid #e4e7ec !important;
	margin: 0 0 28px !important;
	padding: 0 !important;
}
.single-product .woocommerce-tabs .tabs.wc-tabs li {
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}
.single-product .woocommerce-tabs .tabs.wc-tabs li a {
	display: block;
	padding: 0 0 16px !important;
	margin: 0 !important;
	color: #667085 !important;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.02em;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
}
.single-product .woocommerce-tabs .tabs.wc-tabs li:before,
.single-product .woocommerce-tabs .tabs.wc-tabs li a:before {
	display: none !important;
}
.single-product .woocommerce-tabs .tabs.wc-tabs li.active a,
.single-product .woocommerce-tabs .tabs.wc-tabs li a.active {
	color: #101828 !important;
	box-shadow: inset 0 -2px 0 #1b64f2 !important;
}
.single-product .woocommerce-Tabs-panel {
	font-size: 15px;
	line-height: 1.7;
	color: #344054;
}

@media (max-width: 549px) {
	.single-product .product-info .single_add_to_cart_button,
	.single-product .product-info .buy-now-button {
		flex-basis: 100%;
	}
	.single-product .product-trust-badges .icon-box {
		min-width: 100%;
	}
}

/* ---- Description collapse / "Xem thêm" (short excerpt + long description tab) ---- */
.single-product .product-short-description,
.single-product .woocommerce-Tabs-panel--description {
	position: relative;
	overflow: hidden;
	transition: max-height 0.35s ease;
}
.single-product .product-short-description.is-collapsed,
.single-product .woocommerce-Tabs-panel--description.is-collapsed {
	-webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.single-product .desc-toggle-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	background: none;
	border: none;
	padding: 6px 0 18px;
	margin: 0 auto !important;
	width: -moz-fit-content;
	width: fit-content;
	color: #1b64f2;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}
.single-product .desc-toggle-btn:hover {
	text-decoration: underline;
}
.single-product .desc-toggle-btn svg {
	transition: transform 0.2s ease;
}
.single-product .desc-toggle-btn.is-expanded svg {
	transform: rotate(180deg);
}

/* ---- Related products: align width with sections above + add spacing ---- */
.single-product .related.related-products-wrapper {
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-top: 48px !important;
	padding-top: 32px !important;
	border-top: 1px solid #eef1f5 !important;
}

/* ---- Contact box: real UX Builder 2-column layout, plain CSS ---- */
.single-product .product-info .section.box-tu-van {
	padding: 22px !important;
}
.single-product .product-info .section.box-tu-van .title-box {
	font-size: 15px !important;
	letter-spacing: 0.02em;
}
.single-product .section.box-tu-van .row.row-collapse {
	display: flex !important;
	flex-wrap: wrap;
	margin: 0 !important;
	gap: 12px 24px;
}
.single-product .section.box-tu-van .row.row-collapse > .col {
	padding: 0 !important;
	margin: 0 !important;
	flex: 1 1 calc(50% - 12px);
}
.single-product .section.box-tu-van .icon-box {
	display: flex !important;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
}
.single-product .section.box-tu-van .icon-box-img {
	width: 22px !important;
	flex-shrink: 0;
}
.single-product .section.box-tu-van .icon-box-img img {
	width: 22px !important;
	height: auto !important;
}
.single-product .section.box-tu-van .icon-box-text {
	margin: 0 !important;
}
.single-product .section.box-tu-van .icon-box-text p {
	margin: 0 !important;
	line-height: 1.4 !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	color: #1d2939 !important;
}
.single-product .section.box-tu-van .icon-box-text a {
	color: inherit !important;
	text-decoration: none !important;
}
/* The block's own markup nests an <a> inside an <a> (invalid HTML), which
   browsers auto-correct by leaving the outer <a class="plain"> empty and
   moving .icon-box out as its sibling — hide those empty husks. */
.single-product .section.box-tu-van a.plain:empty {
	display: none !important;
}

@media (max-width: 549px) {
	.single-product .section.box-tu-van .row.row-collapse > .col {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

/* ---- Quantity stepper: rounded pill, matches design ---- */
.single-product .product-info .ux-quantity {
	display: flex !important;
	align-items: center;
	background: none !important;
	border-radius: 8px !important;
	overflow: hidden;
	height: 44px;
	border: 1.5px solid #d0d5dd !important;
	box-shadow: none !important;
}
.single-product .product-info .ux-quantity__button {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	width: 38px;
	height: 44px;
	line-height: 44px;
	font-size: 18px;
	font-weight: 600;
	color: #344054;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 0 !important;
}
.single-product .product-info .ux-quantity input.qty {
	background: transparent !important;
	border-left: 1.5px solid #d0d5dd !important;
	border-top: none !important;
	border-bottom: none !important;
	border-right: 1.5px solid #d0d5dd !important;
	box-shadow: none !important;
	width: 34px;
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	height: 44px;
	padding: 0 !important;
	margin: 0 !important;
	-moz-appearance: textfield;
}
.single-product .product-info .ux-quantity input.qty::-webkit-inner-spin-button,
.single-product .product-info .ux-quantity input.qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---- Hide category line under the buttons ---- */
.single-product .product-info .product_meta {
	display: none !important;
}

/* ---- Hide social share icons ---- */
.single-product .product-info .social-icons.share-icons {
	display: none !important;
}

/* ---- Hide empty call-and-payment div ---- */
.single-product .product-info .call-and-payment {
	display: none !important;
}

/* ---- Hide "Số lượng :" pseudo-label before the quantity stepper ---- */
.single-product .product-info .quantity::before,
.single-product .product-info .ux-quantity::before {
	content: none !important;
	display: none !important;
}
