/**
 * WEBVIP WooCommerce module styles.
 */

.product-small .price-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid rgba(35 33 33 / 10%);
    margin-top: 12px;
    padding-top: 12px;
}

.product-small .price-wrapper .star-rating,
.product-small .price-wrapper .review-count {
	flex: 0 0 100%;
}

.product-small .price-wrapper .price {
	margin-right: auto;
}

.product-small .webvip-select-product {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 0.25em;
	align-items: center;
	margin-left: auto;
	font-size: 0.8em;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
}

.product-small .webvip-select-product:hover,
.product-small .webvip-select-product:focus-visible {
	color: var(--fs-color-primary);
}

.product-small .webvip-select-product:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.webvip-product-author {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
	gap: 1.5rem;
	align-items: start;
	padding: 1.5rem;
	border: 1px solid rgba(35 33 33 / 12%);
	border-radius: 12px;
	background: #fff;
}

.webvip-product-author__avatar img {
	display: block;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(35 33 33 / 15%);
	object-fit: cover;
}

.webvip-product-author__header {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.webvip-product-author__name {
	margin: 0;
	font-size: 1.35rem;
}

.webvip-product-author__verified {
	display: inline-flex;
	gap: 0.4em;
	align-items: center;
	font-size: 0.85rem;
	white-space: nowrap;
}

.webvip-product-author__verified > span {
	display: inline-grid;
	width: 1.15em;
	height: 1.15em;
	place-items: center;
	border-radius: 50%;
	background: #2dbd65;
	color: #fff;
	font-size: 0.75em;
	font-weight: 700;
}

.webvip-product-author__description > :last-child {
	margin-bottom: 0;
}

.webvip-product-author__link {
	display: inline-block;
	margin-top: 1rem;
	font-weight: 600;
}

@media (max-width: 549px) {
	.webvip-product-author {
		grid-template-columns: 1fr;
	}

	.webvip-product-author__avatar img {
		width: 120px;
		height: 120px;
	}

	.webvip-product-author__header {
		align-items: flex-start;
		flex-direction: column;
	}
}

.webvip-category-description {
	margin-top: 2rem;
	padding-top: 0.5rem;
}

.webvip-category-description__content {
	position: relative;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.webvip-category-description__content.is-collapsed {
	max-height: 260px;
}

.webvip-category-description__content.is-collapsed::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 80px;
	background: linear-gradient(to bottom, rgba(255 255 255 / 0%), #fff 85%);
	content: "";
	pointer-events: none;
}

.webvip-category-description__content.is-expanded {
	max-height: var(--webvip-category-description-height, 5000px);
}

.webvip-category-description__toggle {
	display: flex;
	gap: 0.35em;
	align-items: center;
	margin: 0.75rem auto 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--fs-color-primary);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
}

.webvip-category-description__toggle:hover,
.webvip-category-description__toggle:focus-visible {
	background: transparent;
	box-shadow: none;
	color: var(--fs-color-secondary, var(--fs-color-primary));
}

.webvip-category-description__toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.webvip-category-description__toggle-icon {
	display: inline-grid;
	width: 1.1em;
	height: 1.1em;
	place-items: center;
	border-radius: 50%;
	background: currentColor;
	color: #fff;
	font-size: 0.9em;
	line-height: 1;
}

.webvip-category-description__toggle[aria-expanded="true"] .webvip-category-description__toggle-icon {
	transform: rotate(45deg);
}

.webvip-category-description.is-short .webvip-category-description__toggle {
	display: none;
}

.webvip-category-description.is-short .webvip-category-description__content {
	max-height: none;
}

.webvip-category-description.is-short .webvip-category-description__content::after {
	display: none;
}

@media (max-width: 549px) {
	.webvip-category-description__content.is-collapsed {
		max-height: 220px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.webvip-category-description__content {
		transition: none;
	}
}

/* ================================================================
 * HỆ THỐNG GIAO DIỆN WOOCOMMERCE DÙNG CHUNG
 * Áp dụng cho shop, danh mục, thẻ sản phẩm và trang chi tiết.
 * ================================================================ */
body.woocommerce {
	--webvip-woo-bg: #fbf8f5;
	--webvip-woo-surface: #fff;
	--webvip-woo-text: #292326;
	--webvip-woo-muted: #766d70;
	--webvip-woo-line: rgba(91, 36, 56, .11);
	--webvip-woo-soft: #f9edef;
	--webvip-woo-shadow: 0 14px 38px rgba(67, 39, 49, .08);
	--webvip-woo-shadow-hover: 0 20px 48px rgba(67, 39, 49, .15);
	background: var(--webvip-woo-bg);
}

body.woocommerce .shop-page-title {
	padding: 18px 15px 0;
	border: 0;
	background: transparent;
}

body.woocommerce .shop-page-title .page-title-inner {

}

body.woocommerce .woocommerce-breadcrumb {
	color: var(--webvip-woo-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
}

body.woocommerce .woocommerce-breadcrumb a {
	color: var(--webvip-woo-text);
}

body.woocommerce .woocommerce-breadcrumb a:hover {
	color: var(--fs-color-primary);
}

body.woocommerce .woocommerce-ordering {
	margin: 0;
}

body.woocommerce .woocommerce-ordering select {
	height: 42px;
	margin: 0;
	padding: 0 38px 0 14px;
	border: 1px solid var(--webvip-woo-line);
	border-radius: 11px;
	background-color: #fff;
	box-shadow: none;
	color: var(--webvip-woo-text);
	font-size: 14px;
}

/* ================================================================
 * TRANG SHOP, DANH MỤC VÀ CÁC DANH SÁCH SẢN PHẨM
 * ================================================================ */
body.archive.woocommerce .category-page-row {
	padding-top: 30px;
}

body.archive.woocommerce .shop-container > .products,
body.woocommerce .related-products-wrapper .products,
body.woocommerce .upsells .products {
	row-gap: 24px;
}

/* Card dùng chung cho cả archive, shortcode UX Builder và sản phẩm liên quan. */
body.woocommerce .product-small.col,
.product-small.col {
	padding-bottom: 0;
}

body.woocommerce .product-small > .col-inner,
.product-small > .col-inner {
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--webvip-woo-line, rgba(91, 36, 56, .11));
	border-radius: 18px;
	background: var(--webvip-woo-surface, #fff);
	box-shadow: 0 10px 30px rgba(67, 39, 49, .07);
	transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

body.woocommerce .product-small > .col-inner:hover,
.product-small > .col-inner:hover {
	border-color: rgba(216, 140, 154, .38);
	box-shadow: var(--webvip-woo-shadow-hover, 0 20px 48px rgba(67, 39, 49, .15));
	transform: translateY(-5px);
}

body.woocommerce .product-small .box,
.product-small .box {
	display: flex;
	height: 100%;
	flex-direction: column;
}

body.woocommerce .product-small .box-image,
.product-small .box-image {
	flex: 0 0 auto;
	overflow: hidden;
	border-radius: 17px 17px 0 0;
	background: #f3efec;
	aspect-ratio: 1 / 1;
}

body.woocommerce .product-small .box-image img,
.product-small .box-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

body.woocommerce .product-small > .col-inner:hover .box-image img,
.product-small > .col-inner:hover .box-image img {
	transform: scale(1.045);
}

body.woocommerce .product-small .box-text,
.product-small .box-text {
	display: flex;
	height: auto;
	min-height: 118px;
	padding: 16px 16px 14px;
	flex: 1 1 auto;
	flex-direction: column;
	text-align: left;
}

body.woocommerce .product-small .product-title,
.product-small .product-title {
	margin-bottom: 4px;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.45;
}

body.woocommerce .product-small .product-title a,
.product-small .product-title a {
	display: -webkit-box;
	overflow: hidden;
	color: var(--webvip-woo-text, #292326);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.woocommerce .product-small .price-wrapper,
.product-small .price-wrapper {
	width: 100%;
	margin-top: auto;
	padding-top: 12px;
}

body.woocommerce .product-small .price,
.product-small .price {
	color: var(--webvip-woo-text, #292326);
	font-size: 15px;
	font-weight: 750;
}

body.woocommerce .product-small .price del,
.product-small .price del {
	color: #a39a9d;
	font-size: 12px;
	font-weight: 500;
}

body.woocommerce .product-small .webvip-contact-price,
.product-small .webvip-contact-price {
	color: var(--fs-color-primary);
}

body.woocommerce .product-small .webvip-select-product,
.product-small .webvip-select-product {
	min-height: 30px;
	padding: 7px 10px;
	border-radius: 999px;
	background: var(--webvip-woo-soft, #f9edef);
	color: var(--fs-color-primary);
	font-size: 11px;
	letter-spacing: .02em;
	transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

body.woocommerce .product-small .webvip-select-product:hover,
.product-small .webvip-select-product:hover {
	background: var(--fs-color-primary);
	color: #fff;
	transform: translateX(2px);
}

body.woocommerce .product-small .quick-view,
.product-small .quick-view {
	padding: 10px 12px;
	background: rgba(41, 35, 38, .82);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	backdrop-filter: blur(6px);
}

body.archive.woocommerce .woocommerce-pagination {
	margin: 30px 0 10px;
}

body.archive.woocommerce .woocommerce-pagination .page-number {
	border-color: var(--webvip-woo-line);
	border-radius: 50%;
}

body.archive.woocommerce #shop-sidebar > .widget,
body.single-product #product-sidebar > .widget {
	overflow: hidden;
	padding: 18px;
	border: 1px solid var(--webvip-woo-line);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(67, 39, 49, .06);
}

body.archive.woocommerce #shop-sidebar .widget-title,
body.single-product #product-sidebar .widget-title {
	color: var(--webvip-woo-text);
	font-size: 15px;
	font-weight: 750;
	letter-spacing: .04em;
}

/* Mô tả danh mục đặt dưới danh sách sản phẩm. */
body.archive.woocommerce .webvip-category-description {
	margin-top: 38px;
	padding: clamp(24px, 4vw, 44px);
	border: 1px solid var(--webvip-woo-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--webvip-woo-shadow);
}

body.archive.woocommerce .webvip-category-description__content {
	color: #4d4548;
	font-size: 15px;
	line-height: 1.8;
}

body.archive.woocommerce .webvip-category-description__content h1,
body.archive.woocommerce .webvip-category-description__content h2,
body.archive.woocommerce .webvip-category-description__content h3 {
	color: var(--webvip-woo-text);
	line-height: 1.28;
}

body.archive.woocommerce .webvip-category-description__content.is-collapsed::after {
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 86%);
}

body.archive.woocommerce .webvip-category-description__toggle {
	min-height: 38px;
	padding: 8px 14px;
	border: 1px solid rgba(216, 140, 154, .28);
	border-radius: 999px;
	background: var(--webvip-woo-soft);
}

/* ================================================================
 * TRANG CHI TIẾT SẢN PHẨM
 * ================================================================ */
body.single-product .shop-container {
	padding-top: 30px;
	padding-bottom: 70px;
}

/*
 * Flatsome dùng khoảng cách 30px cho từng cột của row-large. Thu về 15px để
 * nội dung chính và sidebar thẳng mép với container breadcrumb phía trên.
 */
body.single-product .shop-container > .product > .content-row.row-large > .col {
	padding-right: 15px;
	padding-left: 15px;
}

body.single-product .product-main {
	overflow: hidden;
	padding: clamp(18px, 0.5vw, 30px);
	border: 1px solid var(--webvip-woo-line);
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--webvip-woo-shadow);
}

body.single-product .product-main > .row {
	margin-bottom: 0;
}

body.single-product .product-gallery {
	padding-bottom: 0;
}

body.single-product .product-gallery .woocommerce-product-gallery__image,
body.single-product .product-gallery .flickity-viewport {
	overflow: hidden;
	border-radius: 18px;
	background: #f5f1ee;
}

body.single-product .product-gallery .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
}

body.single-product .product-gallery .zoom-button {
	right: 16px;
	bottom: 16px;
	border: 0;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 5px 18px rgba(41, 35, 38, .16);
}

body.single-product .product-thumbnails .col a {
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 10px;
	opacity: .72;
}

body.single-product .product-thumbnails .is-selected a {
	border-color: var(--fs-color-primary);
	opacity: 1;
}

body.single-product .product-info {

}

body.single-product .product-info .product-title {
	margin-bottom: 10px;
	color: var(--webvip-woo-text);
	font-size: clamp(27px, 3vw, 22px);
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.18;
}

body.single-product .product-info .is-divider {
	width: 52px;
	height: 3px;
	margin: 16px 0;
	background: var(--fs-color-primary);
}

body.single-product .product-info .price-wrapper {
	margin-bottom: 18px;
}

body.single-product .product-info .product-page-price {
	margin: 0;
	color: var(--fs-color-primary);
	font-size: clamp(24px, 2.5vw, 22px);
	font-weight: 750;
	line-height: 1.2;
}

body.single-product .product-info .product-short-description {
	margin-bottom: 20px;
	padding: 16px 18px;
	border: 1px solid rgba(98, 125, 71, .15);
	border-radius: 14px;
	background: #f6f9f3;
	color: #44503c;
	font-size: 14px;
	line-height: 1.75;
}

body.single-product .product-info .product-short-description > :last-child {
	margin-bottom: 0;
}

body.single-product .product-info .wvfs-product-vouchers {
	margin: 0 0 20px;
	border: 1px solid var(--webvip-woo-line);
	border-radius: 14px;
	background: #fffaf9;
	box-shadow: 0 7px 22px rgba(67, 39, 49, .05);
}

body.single-product .product-info .product_meta {
	padding: 16px 0 4px;
	border-top: 1px solid var(--webvip-woo-line);
	color: var(--webvip-woo-muted);
	font-size: 13px;
	line-height: 1.65;
}

body.single-product .product-info .product_meta > span {
	padding: 4px 0;
	border: 0;
}

body.single-product .product-info .product_meta a {
	color: var(--webvip-woo-text);
	font-weight: 600;
}

body.single-product .product-info .share-icons {
	padding-top: 10px;
}

body.single-product .product-info .share-icons .button {
	border-color: var(--webvip-woo-line);
	color: var(--webvip-woo-muted);
}

body.single-product .product-footer {
	margin-top: 28px;
}

body.single-product .woocommerce-tabs {
	padding: clamp(22px, 3.5vw, 42px);
	border: 1px solid var(--webvip-woo-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 32px rgba(67, 39, 49, .06);
}

body.single-product .woocommerce-tabs .product-tabs {
	margin-bottom: 24px;
	border-bottom: 1px solid var(--webvip-woo-line);
}

body.single-product .woocommerce-tabs .product-tabs li a {
	padding: 0 0 13px;
	color: var(--webvip-woo-muted);
	font-size: 13px;
	letter-spacing: .08em;
}

body.single-product .woocommerce-tabs .product-tabs li.active a {
	color: var(--webvip-woo-text);
}

body.single-product .woocommerce-tabs .entry-content {
	color: #4d4548;
	font-size: 15px;
	line-height: 1.85;
}

body.single-product .woocommerce-tabs .entry-content h2,
body.single-product .woocommerce-tabs .entry-content h3,
body.single-product .woocommerce-tabs .entry-content h4 {
	color: var(--webvip-woo-text);
	line-height: 1.35;
}

body.single-product .woocommerce-tabs .entry-content li {
	margin-bottom: 8px;
}

body.single-product .related-products-wrapper {
	margin-top: 32px;
	padding-top: 34px;
	border-top: 1px solid var(--webvip-woo-line);
}

body.single-product .related-products-wrapper .product-section-title {
	margin-bottom: 24px;
	border: 0;
	color: var(--webvip-woo-text);
	font-size: clamp(22px, 2.6vw, 32px);
	font-weight: 700;
	letter-spacing: -.01em;
	text-align: center;
}

/* ================================================================
 * RESPONSIVE
 * ================================================================ */
@media (max-width: 849px) {
	body.woocommerce .shop-page-title {
		padding-right: 12px;
		padding-left: 12px;
	}

	body.woocommerce .shop-page-title .page-title-inner {
		padding: 9px 15px;
	}

	body.archive.woocommerce .category-page-row {
		padding-top: 20px;
	}

	body.single-product .shop-container {
		padding-top: 20px;
	}

	body.single-product .product-main {
		border-radius: 18px;
	}

	body.single-product .product-info {
		padding: 24px 15px 4px;
	}
}

@media (max-width: 549px) {
	body.woocommerce .shop-page-title .page-title-inner {
		gap: 10px;
		align-items: stretch;
		flex-direction: column;
	}

	body.woocommerce .woocommerce-ordering,
	body.woocommerce .woocommerce-ordering select {
		width: 100%;
	}

	body.woocommerce .product-small .box-text,
	.product-small .box-text {
		min-height: 112px;
		padding: 12px 11px 11px;
	}

	body.woocommerce .product-small .product-title,
	.product-small .product-title {
		font-size: 13px;
	}

	body.woocommerce .product-small .price,
	.product-small .price {
		font-size: 13px;
	}

	body.woocommerce .product-small .webvip-select-product,
	.product-small .webvip-select-product {
		min-height: 27px;
		padding: 6px 8px;
		font-size: 10px;
	}

	body.archive.woocommerce .webvip-category-description {
		margin-top: 26px;
		padding: 22px 18px;
		border-radius: 16px;
	}

	body.single-product .shop-container {
		padding-bottom: 48px;
	}

	body.single-product .product-main {
		padding: 12px;
		border-radius: 16px;
	}

	body.single-product .product-gallery .woocommerce-product-gallery__image,
	body.single-product .product-gallery .flickity-viewport {
		border-radius: 14px;
	}

	body.single-product .product-info .product-title {
		font-size: 27px;
	}

	body.single-product .woocommerce-tabs {
		padding: 22px 18px;
		border-radius: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.woocommerce .product-small > .col-inner,
	.product-small > .col-inner,
	body.woocommerce .product-small .box-image img,
	.product-small .box-image img {
		transition: none;
	}
}
