/* Review list sort dropdown */
.comment-list .list-header {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 24px;
}

.comment-list .list-sort {
	position: relative;
	display: inline-flex;
}

.comment-list .list-sort-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.comment-list .list-sort-toggle:hover {
	opacity: 0.75;
}

.comment-list .list-sort-toggle i {
	font-size: 12px;
	transition: transform 0.2s ease;
}

.comment-list .list-sort.is-open .list-sort-toggle i {
	transform: rotate(180deg);
}

.comment-list .list-sort-menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 20;
	min-width: 180px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.comment-list .list-sort.is-open .list-sort-menu {
	display: block;
}

.comment-list .list-sort-menu li {
	margin: 0;
}

.comment-list .list-sort-option {
	display: block;
	width: 100%;
	padding: 10px 16px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.comment-list .list-sort-option:hover,
.comment-list .list-sort-option.is-active {
	background: rgba(0, 0, 0, 0.04);
}

.comment-list .list-sort-option.is-active {
	font-weight: 600;
}

.comment-list .review-items {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.comment-list .review-empty {
	margin: 0;
}

.box-comment .review-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.box-comment .review-notice--pending {
	background: #fff8e6;
	color: #8a6d1d;
}

.box-comment .review-notice--login {
	background: #f5f5f5;
	color: #333;
}

.box-comment .review-notice a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}

.comment-list .review-item.is-pending {
	opacity: 0.85;
}

.comment-list .review-pending-label {
	display: block;
	margin: 0 0 8px;
	font-size: 13px;
	font-style: italic;
	color: #8a6d1d;
}

/* Review form star picker */
.comment-form .form-rating {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.comment-form .form-rating select {
	display: none;
}

.comment-form .rating-label .required {
	color: #c0392b;
}

.comment-form .rating-stars {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	outline: none;
}

.comment-form .rating-stars.is-invalid {
	outline: 1px solid #c0392b;
	border-radius: 4px;
}

.comment-form .rating-error {
	display: block;
	flex-basis: 100%;
	width: 100%;
	margin: 0;
	color: #c0392b;
	font-size: 13px;
	line-height: 1.4;
}

.comment-form .rating-error[hidden] {
	display: none;
}

.comment-form .rating-star {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	line-height: 1;
	cursor: pointer;
}

.comment-form .rating-star i {
	font-size: 18px;
	color: #c9a227;
}

/* Review loading */
.comment-list {
	position: relative;
}

.comment-list.is-loading {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.comment-list .review-items-wrap {
	position: relative;
	min-height: 120px;
}

.comment-list .review-items-wrap.is-loading-active {
	overflow: hidden;
}

.comment-list .review-loading {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 20;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.88);
}

.comment-list .review-loading.is-active,
.comment-list .review-items-wrap.is-loading-active .review-loading,
.comment-list.is-loading .review-loading {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.comment-list .review-loading-spinner {
	display: block;
	width: 36px;
	height: 36px;
	border: 3px solid rgba(0, 0, 0, 0.12);
	border-top-color: #000;
	border-radius: 50%;
	animation: review-loading-spin 0.8s linear infinite;
}

@keyframes review-loading-spin {
	to {
		transform: rotate(360deg);
	}
}

.comment-list.is-loading .review-items {
	pointer-events: none;
}

.comment-list .review-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

.comment-list .review-page-numbers {
	display: flex;
	align-items: center;
	gap: 8px;
}

.comment-list .review-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	font: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.comment-list .review-page-btn:hover:not(:disabled):not(.is-active) {
	background: rgba(0, 0, 0, 0.04);
}

.comment-list .review-page-btn.is-active {
	border-color: #000;
	background: #000;
	color: #fff;
}

.comment-list .review-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.comment-list.is-loading .review-pagination {
	pointer-events: none;
	opacity: 0.5;
}

/* Header cart count badge */
header .header-main .header-right .box-right .item-cart {
	position: relative;
}

header .header-main .header-right .box-right .item-cart > a.img-ratio {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding-top: 0 !important;
	overflow: visible;
}

header .header-main .header-right .box-right .item-cart > a.img-ratio svg,
header .header-main .header-right .box-right .item-cart > a.img-ratio img {
	position: static;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

header .header-main .header-right .box-right .item-cart .cart-count {
	position: absolute;
	top: -7px;
	right: -9px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	pointer-events: none;
}

header .header-main .header-right .box-right .item-cart .cart-count:empty,
header .header-main .header-right .box-right .item-cart .cart-count.is-empty {
	display: none;
}

/* Header user dropdown */
header .header-main .header-right .box-right .item-user {
	position: relative;
}

header .header-main .header-right .box-right .item-user .user-dropdown {
	display: block;
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 50;
	min-width: 140px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

header .header-main .header-right .box-right .item-user:hover .user-dropdown,
header .header-main .header-right .box-right .item-user:focus-within .user-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

header .header-main .header-right .box-right .item-user .user-dropdown li {
	margin: 0;
}

header .header-main .header-right .box-right .item-user .user-dropdown a {
	display: block;
	padding: 10px 16px;
	color: #111;
	font-size: 14px;
	line-height: 1.4;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

header .header-main .header-right .box-right .item-user .user-dropdown a:hover {
	background: rgba(0, 0, 0, 0.04);
}

/* Product detail action loading */
.product-action.is-loading,
.product-item .product-action.is-loading {
	pointer-events: none;
	opacity: 0.65;
}

.product-grid.is-loading,
[data-product-pagination].is-loading {
	pointer-events: none;
	opacity: 0.55;
}

.product-filter-form .box-list {
	cursor: pointer;
}

.product-filter-form .box-list input[type="checkbox"] {
	/* position: absolute;
	opacity: 0;
	pointer-events: none; */
}

/* Beat main.min.css specificity so filters stay open on first load */
.section-product-list-2 .box-product-wrapper .product-wrapper .sidebar-filter .box-sidebar .cate-item.is-open > .list,
.section-product-list-2 .box-product-wrapper .product-wrapper .sidebar-filter .box-sidebar .cate-item.is-open > .price-filter {
	display: flex;
}

.section-product-list-2 .box-product-wrapper .product-wrapper .sidebar-filter .box-sidebar .cate-item.is-open > .title i {
	--tw-rotate: 180deg;
	transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.product-empty {
	margin: 2rem 0;
	text-align: center;
}

/* Product filter price slider – restore interaction (main.min.css sets pointer-events: none) */
.product-filter-form .price-range-slider {
	position: relative;
}

.product-filter-form .price-range-slider input[type="range"] {
	pointer-events: auto;
	z-index: 2;
}

.product-filter-form .price-range-slider .range-max {
	z-index: 3;
}

.product-filter-form .price-range-slider .slider-track {
	pointer-events: none;
	z-index: 1;
}

.mini-cart-wrapper .mini_cart_item .ccppp-discount-badge{
	display: none;
}

.woocommerce-checkout-review-order .cart_item .ccppp-discount-badge{
	display: none;
}

.woocommerce-account .woocommerce-error{
	padding: 0 15px !important;
}

.logged-in:not(.admin-bar) header {
    top: 0 !important;
}

@media (min-width: 1024px) {
    .wrap-grid-checkout .col-bottom {
        grid-column: span 8 / span 8;
    }
}

/* Price range: show VNĐ only after the last amount */
.product-price .price:has(>.woocommerce-Price-amount:nth-of-type(2))>.woocommerce-Price-amount:first-of-type .woocommerce-Price-currencySymbol {
	display: none;
}

#order_review .item-review-order .wrap-price-right .ccppp-price-wrapper .ccppp-regular-price{
	display: none
}

/* Overlay live search */
.header-search-form .wrap-form-search-result {
	position: relative;
}

.header-search-form .wrap-form-search-result .header-search-suggest {
	display: none;
	position: relative;
	top: auto;
	left: auto;
	z-index: 2;
	width: 100%;
	max-height: min(50vh, 28rem);
	margin-top: 0;
	overflow: auto;
	border-radius: 0.83333rem;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.header-search-form .wrap-form-search-result .header-search-suggest.has-results {
	display: block;
}

.header-search-form .wrap-form-search-result .header-search-suggest .search-suggest-group + .search-suggest-group {
	border-top: 1px solid #f1f1f1;
}

.header-search-form .wrap-form-search-result .header-search-suggest .search-suggest-title {
	padding: 0.75rem 1rem 0.35rem;
	color: #6b7280;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.header-search-form .wrap-form-search-result .header-search-suggest .item-search-suggest {
	display: flex;
	align-items: center;
	gap: 0.78125rem;
	padding: 0.65rem 1rem;
	border-bottom: 1px solid #f1f1f1;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.header-search-form .wrap-form-search-result .header-search-suggest .item-search-suggest:last-child {
	border-bottom: none;
}

.header-search-form .wrap-form-search-result .header-search-suggest .item-search-suggest:hover {
	background: #f8f8f8;
	color: var(--color-primary, #4d3300);
}

.header-search-form .wrap-form-search-result .header-search-suggest .item-search-suggest .img,
.header-search-form .wrap-form-search-result .header-search-suggest .item-search-suggest .img img {
	flex-shrink: 0;
	width: 3.6458333333rem;
	height: 3.6458333333rem;
	border-radius: 0.4166666667rem;
	object-fit: cover;
	background: #f5f5f5;
}

.header-search-form .wrap-form-search-result .header-search-suggest .item-search-suggest .content {
	min-width: 0;
	flex: 1;
}

.header-search-form .wrap-form-search-result .header-search-suggest .item-search-suggest .product-title h3 {
	margin: 0;
	font-size: 0.8333333333rem;
	font-weight: 500;
	line-height: 1.4;
}

.header-search-form .wrap-form-search-result .header-search-suggest .item-search-suggest .product-price {
	margin-top: 0.2rem;
	font-size: 0.8333333333rem;
	font-weight: 700;
}

.header-search-form .wrap-form-search-result .header-search-suggest .item-search-suggest .product-price > span {
	display: flex;
	align-items: baseline;
	justify-content: flex-start;
	gap: 0.5rem;
}

.header-search-form .wrap-form-search-result .header-search-suggest .item-search-suggest .product-price ins {
	text-decoration: none;
}

.header-search-form .wrap-form-search-result .header-search-suggest .item-search-suggest .product-price del {
	color: #989898;
	font-size: 0.8333rem;
	font-weight: 400;
}

.header-search-form .wrap-form-search-result .header-search-suggest .item-search-suggest .post-date {
	margin-top: 0.15rem;
	color: #989898;
	font-size: 0.75rem;
}

.header-search-form .wrap-form-search-result .header-search-suggest .no-result {
	margin: 0;
	padding: 1.25rem 1rem;
	color: #6b7280;
	font-size: 0.83333rem;
	text-align: center;
}

.header-search-form .wrap-form-search-result .header-search-suggest .search-suggest-all {
	display: block;
	padding: 0.85rem 1rem;
	border-top: 1px solid #f1f1f1;
	color: var(--color-primary, #4d3300);
	font-size: 0.83333rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.header-search-form .wrap-form-search-result .header-search-suggest .search-suggest-all:hover {
	background: #f8f8f8;
}

.header-search-form .wrap-form-search-result.loading .btn-search {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.header-search-form .wrap-form-search-result.loading .btn-search::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: 0;
	border: 2px solid rgba(77, 51, 0, 0.25);
	border-top-color: #4d3300;
	border-radius: 50%;
	background: none;
	content: "";
	transform: translate(-50%, -50%);
	animation: live-search-spin 0.6s linear infinite;
	font-family: inherit;
}

@keyframes live-search-spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

@media (max-width: 1023.98px) {
	.header-search-form .wrap-form-search-result .header-search-suggest {
		max-height: 45svh;
	}
}
