/**
 * Win10 — Trang chi tiết sản phẩm (single product).
 */

/* ─── Summary & giá ─── */
.product-main .product-info {
	padding-top: 0.5rem;
}

.product-main .product-info .price {
	font-size: 1.35rem;
	line-height: 1.35;
	margin-bottom: 0.75rem;
}

/* Mô tả ngắn — sau KM (hook priority 35) */
.product-main .woocommerce-product-details__short-description {
	margin: 1rem 0 1.25rem;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--win10-text, #1f2937);
}

.product-main .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

.product-main .product-info .price ins {
	text-decoration: none;
	font-weight: 800;
	color: #c62828;
}

.product-main .product-info .price del {
	opacity: 1;
	color: var(--win10-muted);
	font-size: 0.95rem;
}

.product-main .single_add_to_cart_button,
.product-main .buy_now_button {
	transition: box-shadow 0.25s ease, filter 0.25s ease, transform var(--win10-transition);
}

.product-main .phakerate {
	float: none;
	text-align: left;
	margin: 0.5rem 0 1rem;
	font-size: 0.875rem;
}

/* ─── Gallery (badge → win10-products.css .badge-container) ─── */
.product-main .product-gallery,
.product-main .product-images,
.product-main .woocommerce-product-gallery {
	position: relative;
	overflow: visible;
}

.product-main .woocommerce-product-gallery .woocommerce-product-gallery__wrapper img,
.product-main .box-image img {
	border-radius: var(--win10-radius);
}

/* ─── Trust panel: giao hàng / KM / trong hộp (dưới ảnh SP) ─── */
.product-main span.giao-hang-1h,
.product-gallery .w10-product-gallery-extra span.giao-hang-1h,
.w10-cro-hero__gallery-col .w10-product-gallery-extra span.giao-hang-1h {
	border-radius: var(--win10-radius);
	line-height: 1.5;
	border: 1px solid rgba(24, 161, 95, 0.35);
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--win10-brand-dark);
	background: rgba(24, 161, 95, 0.08);
	padding: 12px 14px;
	text-transform: none;
	font-size: 0.9375rem;
	font-weight: 700;
	margin: 12px 0 16px;
}

.product-main span.giao-hang-1h::before,
.product-gallery .w10-product-gallery-extra span.giao-hang-1h::before,
.w10-cro-hero__gallery-col .w10-product-gallery-extra span.giao-hang-1h::before {
	content: "";
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	background: url(https://muabanquyen.com/wp-content/uploads/2022/03/icon-nhan-hang-1-gio.png) no-repeat center;
	background-size: contain;
	float: none;
	margin: 0;
}

/* Khuyến mãi / Trong hộp — list phẳng, khoảng cách đều */
.product-main .km-ud,
.product-gallery .w10-product-gallery-extra .km-ud,
.w10-cro-hero__gallery-col .w10-product-gallery-extra .km-ud,
.product-main .in-box {
	display: block;
	margin: 0 0 1.25rem;
	padding: 1rem 0 0;
	border: none;
	border-top: 1px solid var(--win10-border, #e8ecf0);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

/* Tiêu đề KM / trong hộp → css/win10-blocks.css */

.product-gallery .w10-product-gallery-extra {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.product-gallery .w10-product-gallery-extra .km-ud {
	padding: 0.9rem 1rem 1rem;
	background: #fff;
	border: 1px solid var(--win10-border, #e8ecf0);
	border-radius: 12px;
	border-top: none;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.product-main .km-ud__list,
.product-gallery .w10-product-gallery-extra .km-ud__list,
.w10-cro-hero__gallery-col .w10-product-gallery-extra .km-ud__list,
.product-main .in-box__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.product-main .km-ud__list li,
.product-gallery .w10-product-gallery-extra .km-ud__list li,
.w10-cro-hero__gallery-col .w10-product-gallery-extra .km-ud__list li,
.product-main .in-box__list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 0;
	color: var(--win10-text, #1f2937);
}

.product-main .km-ud__list li::before,
.product-gallery .w10-product-gallery-extra .km-ud__list li::before,
.w10-cro-hero__gallery-col .w10-product-gallery-extra .km-ud__list li::before,
.product-main .in-box__list li::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f7a47'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center;
	background-size: contain;
}

/* Legacy markup: span + br (cache cũ / chưa purge) */
.product-main .km-ud br,
.product-main .in-box br {
	display: none;
}

.product-main .km-ud span,
.product-main .in-box span {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--win10-text, #1f2937);
}

.product-main .km-ud span::before,
.product-main .in-box span::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f7a47'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center;
	background-size: contain;
	float: none;
	position: static;
}

.product-main .km-ud span {
	margin-bottom: 0.5rem;
}

.product-main .in-box span {
	margin-bottom: 0.5rem;
}

.product-main .km-ud span:last-of-type,
.product-main .in-box span:last-of-type {
	margin-bottom: 0;
}

/* ─── Nút Facebook (single) — không dùng gradient Win10 ─── */
.product-main a.btn-late01,
.product-main .btn-late01,
form.cart a.btn-late01 {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	background-color: #0d65d9 !important;
	background-image: linear-gradient(135deg, #0d65d9 0%, #0d65d9 100%) !important;
	border: 1px solid #0d65d9 !important;
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 700;
	margin-top: 8px;
	text-decoration: none !important;
}

.product-main a.btn-late01:hover,
form.cart a.btn-late01:hover {
	background-color: #fff !important;
	background-image: none !important;
	color: #0d65d9 !important;
	border-color: #0d65d9 !important;
}

/* ─── Tabs mô tả (bật lại — không ẩn nav) ─── */
.product-footer .woocommerce-tabs > .nav-line:not(.nav-vertical) {
	display: flex !important;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--win10-border);
	padding-bottom: 0;
}

.product-footer .woocommerce-tabs .nav-line li a {
	border-radius: var(--win10-radius) var(--win10-radius) 0 0;
	padding: 10px 18px;
	font-weight: 600;
	color: var(--win10-muted);
	transition: color var(--win10-transition), background var(--win10-transition);
}

.product-footer .woocommerce-tabs .nav-line li.active a,
.product-footer .woocommerce-tabs .nav-line li a:hover {
	color: var(--win10-brand-dark);
	background: rgba(24, 161, 95, 0.1);
}

.product-footer .woocommerce-tabs .nav-line li.active a {
	border-bottom: 3px solid var(--win10-brand);
}

.product-footer .woocommerce-tabs .panel {
	padding: 1.25rem 0;
	line-height: 1.65;
	color: var(--win10-text);
}

/* ─── Flash sale — legacy binlate (CRO dùng .win10-cro-flash-sale trong win10-cro-product-page.css) ─── */
.product-main .summary > .crazy-deal-details.pc,
.product-main .product-info .crazy-deal-details.pc {
	margin: 0 0 14px;
	width: 100%;
	max-width: 100%;
}

.days {
	display: none;
}

.countdown {
	display: inline;
}

.crazy-deal-details.pc {
	margin: 0 0 14px;
	height: 29px;
	overflow: hidden;
	background-image: url(https://muabanquyen.com/wp-content/uploads/2022/10/flashsale-pc.png);
	background-position: 0 0;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.crazy-deal-details-right {
	position: relative;
	margin-left: 140px;
	height: 100%;
	display: flex;
	align-items: center;
	flex-direction: row;
	justify-content: space-between;
}

time.crazy-deal-details-countdown {
	text-align: left;
	font-size: 0.98em;
}

span.crazy-deal-details-soldtext {
	color: #999;
	font-size: 14px;
	font-weight: bold;
	margin-right: 10px;
}

.crazy-deal-details.pc .crazy-deal-details-process {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	color: #999;
	font-weight: 700;
}

.crazy-deal-details.pc .crazy-deal-details-procressbar {
	width: 90px;
	height: 8px;
	background: #ffd1c2;
	border-radius: 4px;
	display: inline-block;
	margin: 0 6px;
}

.crazy-deal-details.pc .crazy-deal-details-procressbar-inner {
	background: linear-gradient(90deg, #ff8763, #ff330c);
	border-radius: 4px;
	width: 0;
	height: 100%;
}

@media screen and (max-width: 850px) {
	.crazy-deal-details.pc {
		height: 50px;
		background-image: url(https://muabanquyen.com/wp-content/uploads/2022/10/flashsale-mobile.png);
	}

	.crazy-deal-details-right {
		margin-right: 10px;
		flex-direction: column;
		justify-content: center;
		align-items: flex-end;
		color: #fff;
	}

	.crazy-deal-details.pc .crazy-deal-details-procressbar {
		width: 55px;
		background: hsla(0, 0%, 100%, 0.5);
	}

	.crazy-deal-details.pc .crazy-deal-details-procressbar-inner {
		background: #fff;
	}

	span.crazy-deal-details-soldtext {
		color: #fff !important;
		font-size: 12px;
	}
}

/* Badge / label hết hàng trên biến thể & sản phẩm riêng lẻ */
.woocommerce-variation-availability .stock.out-of-stock,
.w10-cro-hero__cta .stock.out-of-stock {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff4d4d, #ff0000);
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.35);
    animation: pulseOut 1.5s infinite;
    margin: 10px 0;
}

.woocommerce-variation-availability .stock.out-of-stock::before,
.w10-cro-hero__cta .stock.out-of-stock::before {
    content: "⛔ ";
}

@keyframes pulseOut {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, .5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

