/* YHN 3.9.55.75 — context split from legacy yhn-site.css; selector declarations unchanged. */
/* =========================================================
   Product archive / category loop sale countdown
   ========================================================= */
.tax-product_cat .yhn-loop-sale-countdown,
.tax-product_tag .yhn-loop-sale-countdown,
.post-type-archive-product .yhn-loop-sale-countdown,
.woocommerce-shop .yhn-loop-sale-countdown,
.yhn-product-search .yhn-loop-sale-countdown{
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 5px !important;
	width: auto !important;
	max-width: 100% !important;
	margin: 5px auto 0 !important;
	padding: 5px 10px !important;
	min-height: 26px !important;
	border-radius: 999px !important;
	background: linear-gradient(180deg, #fff4fa 0%, #ffeef7 100%) !important;
	border: 1px solid #f6d3e5 !important;
	box-shadow: 0 3px 10px rgba(254,37,154,.06) !important;
	text-align: center !important;
	line-height: 1 !important;
}
.tax-product_cat .yhn-loop-sale-countdown__label,
.tax-product_tag .yhn-loop-sale-countdown__label,
.post-type-archive-product .yhn-loop-sale-countdown__label,
.woocommerce-shop .yhn-loop-sale-countdown__label,
.yhn-product-search .yhn-loop-sale-countdown__label{
	display: inline !important;
	color: #d36a99 !important;
	font-size: 9.5px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: .2px !important;
	text-transform: uppercase !important;
	white-space: nowrap !important;
}
.tax-product_cat .yhn-loop-sale-countdown__value,
.tax-product_tag .yhn-loop-sale-countdown__value,
.post-type-archive-product .yhn-loop-sale-countdown__value,
.woocommerce-shop .yhn-loop-sale-countdown__value,
.yhn-product-search .yhn-loop-sale-countdown__value{
	color: #fe259a !important;
	font-size: 10.5px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: .15px !important;
	white-space: nowrap !important;
}
.tax-product_cat .products .price-wrapper,
.tax-product_tag .products .price-wrapper,
.post-type-archive-product .products .price-wrapper,
.woocommerce-shop .products .price-wrapper,
.yhn-product-search .products .price-wrapper{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 3px;
}
.tax-product_cat .products .price,
.tax-product_tag .products .price,
.post-type-archive-product .products .price,
.woocommerce-shop .products .price,
.yhn-product-search .products .price{
	margin-bottom: 0 !important;
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 849px){
	.single-product .yhn-sale-countdown{
		margin: -4px 0 14px;
	}
	.single-product .yhn-sale-countdown__inner{
		gap: 10px;
		padding: 11px 12px;
		border-radius: 14px;
	}
	.single-product .yhn-sale-countdown__label{
		width: 100%;
		font-size: 12px;
	}
	.single-product .yhn-sale-countdown__boxes{
		width: 100%;
		gap: 6px;
	}
	.single-product .yhn-sale-countdown__item{
		flex: 1 1 calc(25% - 5px);
		min-width: 0;
		padding: 8px 4px 7px;
		border-radius: 10px;
	}
	.single-product .yhn-sale-countdown__num{
		font-size: 17px;
	}
	.single-product .yhn-sale-countdown__txt{
		font-size: 9px;
	}

	.tax-product_cat .yhn-loop-sale-countdown,
	.tax-product_tag .yhn-loop-sale-countdown,
	.post-type-archive-product .yhn-loop-sale-countdown,
	.woocommerce-shop .yhn-loop-sale-countdown,
	.yhn-product-search .yhn-loop-sale-countdown{
		padding: 4px 8px !important;
		min-height: 24px !important;
		margin-top: 4px !important;
		gap: 4px !important;
	}
	.tax-product_cat .yhn-loop-sale-countdown__label,
	.tax-product_tag .yhn-loop-sale-countdown__label,
	.post-type-archive-product .yhn-loop-sale-countdown__label,
	.woocommerce-shop .yhn-loop-sale-countdown__label,
	.yhn-product-search .yhn-loop-sale-countdown__label{
		font-size: 9px !important;
	}
	.tax-product_cat .yhn-loop-sale-countdown__value,
	.tax-product_tag .yhn-loop-sale-countdown__value,
	.post-type-archive-product .yhn-loop-sale-countdown__value,
	.woocommerce-shop .yhn-loop-sale-countdown__value,
	.yhn-product-search .yhn-loop-sale-countdown__value{
		font-size: 9.5px !important;
	}

	.single-product .yhn-gallery-extras{
		visibility: hidden;
	}
	.single-product .yhn-gallery-extras.is-ready{
		visibility: visible;
	}
}
/* =========================================================
   1) SIDEBAR CATEGORY
   ========================================================= */

#woocommerce_product_categories-13{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#woocommerce_product_categories-13.widget_product_categories{
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border: 1px solid #f3eef2;
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow:
    0 10px 30px rgba(24,24,24,.04),
    0 1px 0 rgba(255,255,255,.9) inset;
}

/* Chỉ cho shop/category */
body.post-type-archive-product #product-sidebar,
body.tax-product_cat #product-sidebar,
body.tax-product_tag #product-sidebar,
body.woocommerce-shop #product-sidebar{
  max-width: 285px !important;
  flex-basis: 285px !important;
}

#woocommerce_product_categories-13 .widget-title.shop-sidebar{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 2px;
  color: #2f2f36;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .15px;
  text-transform: uppercase;
}

#woocommerce_product_categories-13 .widget-title.shop-sidebar::before{
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff73b6 0%, var(--pink) 100%);
  box-shadow: 0 0 0 5px rgba(254,37,154,.08);
}

#woocommerce_product_categories-13 .is-divider.small{
  width: 40px !important;
  max-width: 40px !important;
  height: 3px;
  margin: 8px 0 10px !important;
  background: linear-gradient(90deg, var(--pink) 0%, #ffb6d7 100%) !important;
  border-radius: 999px;
  opacity: 1;
}

#woocommerce_product_categories-13 ul.product-categories,
#woocommerce_product_categories-13 ul.product-categories li{
  list-style: none;
  margin: 0;
  padding: 0;
}

#woocommerce_product_categories-13 ul.product-categories{
  margin-top: 12px;
}

#woocommerce_product_categories-13 ul.product-categories li{
  position: relative;
}

#woocommerce_product_categories-13 ul.product-categories > li{
  border-bottom: 1px solid #f8f2f5;
  padding: 3px 0;
}

#woocommerce_product_categories-13 ul.product-categories > li:last-child{
  border-bottom: 0;
}

#woocommerce_product_categories-13 ul.product-categories > li > a{
  display: block;
  margin: 3px 0;
  padding: 12px 42px 12px 14px;
  border-radius: 12px;
  color: #3a3a44;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: .1px;
  text-decoration: none;
  transition: var(--trans);
}

#woocommerce_product_categories-13 ul.product-categories > li > a:hover{
  color: var(--pink);
  background: var(--pink-soft);
  transform: translateX(2px);
}

#woocommerce_product_categories-13 ul.product-categories > li.current-cat > a,
#woocommerce_product_categories-13 ul.product-categories > li.current-cat-parent > a,
#woocommerce_product_categories-13 ul.product-categories > li.current-cat-ancestor > a,
#woocommerce_product_categories-13 ul.product-categories > li.active > a{
  color: var(--pink) !important;
  background: #fff7fb;
  box-shadow:
    inset 2px 0 0 var(--pink),
    0 3px 10px rgba(254,37,154,.05);
  font-weight: 800;
}

#woocommerce_product_categories-13 ul.product-categories li > button.toggle{
  position: absolute;
  top: 8px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: transparent;
  color: #a7a7b1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .8;
  transition: var(--trans);
}

#woocommerce_product_categories-13 ul.product-categories li > button.toggle:hover{
  background: #fff4f9;
  color: var(--pink);
  opacity: 1;
  transform: scale(1.04);
}

#woocommerce_product_categories-13 ul.product-categories li > button.toggle i{
  transition: transform .22s ease;
}

#woocommerce_product_categories-13 ul.product-categories li[aria-expanded="true"] > button.toggle i,
#woocommerce_product_categories-13 ul.product-categories li.active > button.toggle i,
#woocommerce_product_categories-13 ul.product-categories li.current-cat-parent > button.toggle i{
  transform: rotate(180deg);
}

#woocommerce_product_categories-13 ul.product-categories ul.children{
  margin: 2px 0 10px 8px;
  padding: 6px 0 6px 12px;
  border-left: 2px solid #f6d7e6;
}

#woocommerce_product_categories-13 ul.product-categories ul.children li > a{
  display: block;
  margin: 2px 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: #7a7a84;
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 500;
  text-decoration: none;
  transition: var(--trans);
}

#woocommerce_product_categories-13 ul.product-categories ul.children li > a:hover{
  color: var(--pink);
  background: var(--pink-soft);
  transform: translateX(2px);
}

#woocommerce_product_categories-13 ul.product-categories ul.children li.current-cat > a,
#woocommerce_product_categories-13 ul.product-categories ul.children li.current-cat-parent > a{
  color: var(--pink) !important;
  font-weight: 700;
  background: var(--pink-soft);
}

#woocommerce_product_categories-13 ul.product-categories ul.children ul.children{
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px dashed #efc6da;
}

/* =========================================================
   9) PRODUCT CATEGORY / ARCHIVE - CLEAN MERGED POLISH
   ========================================================= */

.tax-product_cat #main,
.post-type-archive-product #main,
.woocommerce-shop #main{ background: #fffdfd; }

.tax-product_cat .category-page-row,
.post-type-archive-product .category-page-row,
.woocommerce-shop .category-page-row{ align-items: flex-start !important; }

.tax-product_cat .shop-container,
.post-type-archive-product .shop-container,
.woocommerce-shop .shop-container{ position: relative; padding-left: 4px !important; }

.tax-product_cat .term-description,
.post-type-archive-product .term-description,
.woocommerce-shop .term-description{
  margin: 0 0 18px !important; padding: 16px 18px !important; background: linear-gradient(180deg, #fffefe 0%, #fff8fb 100%);
  border: 1px solid #f1e4eb; border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(30,20,30,.04), 0 1px 0 rgba(255,255,255,.95) inset !important;
}

.tax-product_cat .term-description p,
.post-type-archive-product .term-description p,
.woocommerce-shop .term-description p{
  margin-bottom: 10px !important; color: #544f58 !important; font-size: 14.5px !important; line-height: 1.78 !important;
}

.tax-product_cat .term-description p:last-child,
.post-type-archive-product .term-description p:last-child,
.woocommerce-shop .term-description p:last-child{ margin-bottom: 0 !important; }

.tax-product_cat .term-description strong,
.post-type-archive-product .term-description strong,
.woocommerce-shop .term-description strong{ color: #2f2f36 !important; }

.tax-product_cat .woocommerce-ordering select,
.post-type-archive-product .woocommerce-ordering select,
.woocommerce-shop .woocommerce-ordering select{
  min-height: 42px !important; padding: 0 38px 0 14px !important; background-color: #fff !important;
  border: 1px solid #eadfe6 !important; border-radius: 999px !important; box-shadow: 0 4px 12px rgba(20,20,20,.04) !important;
  color: #4c4650 !important; font-size: 13px !important; font-weight: 600 !important;
}

.tax-product_cat .products.row,
.post-type-archive-product .products.row,
.woocommerce-shop .products.row{ margin-left: -10px !important; margin-right: -10px !important; }

.tax-product_cat .products .product-small.col,
.post-type-archive-product .products .product-small.col,
.woocommerce-shop .products .product-small.col{
  padding-left: 10px !important; padding-right: 10px !important; margin-bottom: 20px !important;
}

.tax-product_cat .products .box,
.post-type-archive-product .products .box,
.woocommerce-shop .products .box{
  height: 100% !important; background: #fff !important; border: 1px solid #f3ebf0 !important;
  border-radius: 18px !important; overflow: hidden !important; box-shadow: 0 5px 16px rgba(25,25,25,.045) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

.tax-product_cat .products .box:hover,
.post-type-archive-product .products .box:hover,
.woocommerce-shop .products .box:hover{
  transform: translateY(-3px); border-color: #edd9e5 !important; box-shadow: 0 12px 24px rgba(25,25,25,.075) !important;
}

.tax-product_cat .products .box-image,
.post-type-archive-product .products .box-image,
.woocommerce-shop .products .box-image{
  margin: 0 !important; overflow: hidden !important; background: #fff !important;
}

.tax-product_cat .products .box-image img,
.post-type-archive-product .products .box-image img,
.woocommerce-shop .products .box-image img{
  display: block !important; width: 100% !important; border-radius: 0 !important; transition: transform .28s ease !important;
}

.tax-product_cat .products .box:hover .box-image img,
.post-type-archive-product .products .box:hover .box-image img,
.woocommerce-shop .products .box:hover .box-image img{ transform: scale(1.03); }

.tax-product_cat .products .show-on-hover.back-image,
.post-type-archive-product .products .show-on-hover.back-image,
.woocommerce-shop .products .show-on-hover.back-image{
  opacity: 0; transition: opacity .25s ease !important;
}

.tax-product_cat .products .box:hover .show-on-hover.back-image,
.post-type-archive-product .products .box:hover .show-on-hover.back-image,
.woocommerce-shop .products .box:hover .show-on-hover.back-image{ opacity: 1; }

.tax-product_cat .products .box-text,
.post-type-archive-product .products .box-text,
.woocommerce-shop .products .box-text{ padding: 10px 10px 13px !important; text-align: center !important; }

.tax-product_cat .products .title-wrapper,
.post-type-archive-product .products .title-wrapper,
.woocommerce-shop .products .title-wrapper{ min-height: 44px !important; margin-bottom: 6px !important; }

.tax-product_cat .products .name,
.tax-product_cat .products .woocommerce-loop-product__title,
.post-type-archive-product .products .name,
.post-type-archive-product .products .woocommerce-loop-product__title,
.woocommerce-shop .products .name,
.woocommerce-shop .products .woocommerce-loop-product__title{
  font-size: 13.5px !important; line-height: 1.45 !important; font-weight: 600 !important; color: #2f2f36 !important;
}

.tax-product_cat .products .name a,
.tax-product_cat .products .woocommerce-loop-product__title a,
.post-type-archive-product .products .name a,
.post-type-archive-product .products .woocommerce-loop-product__title a,
.woocommerce-shop .products .name a,
.woocommerce-shop .products .woocommerce-loop-product__title a{
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: #2f2f36 !important; text-decoration: none !important;
}

.tax-product_cat .products .name a:hover,
.tax-product_cat .products .woocommerce-loop-product__title a:hover,
.post-type-archive-product .products .name a:hover,
.post-type-archive-product .products .woocommerce-loop-product__title a:hover,
.woocommerce-shop .products .name a:hover,
.woocommerce-shop .products .woocommerce-loop-product__title a:hover{ color: #d94b93 !important; }

.tax-product_cat .products .price,
.post-type-archive-product .products .price,
.woocommerce-shop .products .price{
  color: #fe259a !important; font-size: 14px !important; line-height: 1.4 !important; font-weight: 800 !important;
}

.tax-product_cat .products .price del,
.post-type-archive-product .products .price del,
.woocommerce-shop .products .price del{ margin-right: 4px; opacity: .5; color: #8f8590 !important; }

.tax-product_cat .products .price ins,
.post-type-archive-product .products .price ins,
.woocommerce-shop .products .price ins{ text-decoration: none !important; }

.tax-product_cat .onsale,
.tax-product_cat .badge-circle .badge-inner,
.post-type-archive-product .onsale,
.post-type-archive-product .badge-circle .badge-inner,
.woocommerce-shop .onsale,
.woocommerce-shop .badge-circle .badge-inner{
  background: linear-gradient(135deg, #fe259a 0%, #ff5aae 100%) !important; box-shadow: 0 6px 16px rgba(254,37,154,.18) !important;
}

.tax-product_cat .cart-icon,
.post-type-archive-product .cart-icon,
.woocommerce-shop .cart-icon{
  background: #fff !important; color: #fe259a !important; border: 1px solid #f1dce8 !important;
  border-radius: 999px !important; box-shadow: 0 4px 12px rgba(20,20,20,.08) !important;
}

.tax-product_cat .cart-icon:hover,
.post-type-archive-product .cart-icon:hover,
.woocommerce-shop .cart-icon:hover{
  background: #fe259a !important; color: #fff !important; border-color: #fe259a !important;
}

.tax-product_cat .widget_price_filter,
.post-type-archive-product .widget_price_filter,
.woocommerce-shop .widget_price_filter{
  margin-top: 18px !important; padding: 14px 14px 13px !important;
  background: linear-gradient(180deg, #fffefe 0%, #fff8fb 100%);
  border: 1px solid #f2e6ec; border-radius: 16px !important; box-shadow: 0 8px 20px rgba(30,20,30,.04) !important;
}

.tax-product_cat .price_slider_wrapper .price_slider,
.post-type-archive-product .price_slider_wrapper .price_slider,
.woocommerce-shop .price_slider_wrapper .price_slider{
  height: 5px !important; border-radius: 999px !important; background: #f0e5eb !important; box-shadow: none !important;
}

.tax-product_cat .price_slider_wrapper .ui-slider-range,
.post-type-archive-product .price_slider_wrapper .ui-slider-range,
.woocommerce-shop .price_slider_wrapper .ui-slider-range{
  background: linear-gradient(90deg, #fe259a 0%, #ff84c4 100%) !important;
}

.tax-product_cat .price_slider_wrapper .ui-slider-handle,
.post-type-archive-product .price_slider_wrapper .ui-slider-handle,
.woocommerce-shop .price_slider_wrapper .ui-slider-handle{
  width: 16px !important; height: 16px !important; top: -6px !important; border: 2px solid #fff !important;
  background: #fe259a !important; box-shadow: 0 4px 10px rgba(254,37,154,.22) !important;
}

.tax-product_cat .price_slider_amount,
.post-type-archive-product .price_slider_amount,
.woocommerce-shop .price_slider_amount{
  display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 10px !important;
}

.tax-product_cat .price_slider_amount .button,
.post-type-archive-product .price_slider_amount .button,
.woocommerce-shop .price_slider_amount .button{
  min-width: 52px !important; min-height: 34px !important; padding: 0 14px !important; border-radius: 999px !important;
  background: linear-gradient(135deg, #fe259a 0%, #ff5aae 100%) !important; border: 0 !important; color: #fff !important;
  font-size: 12px !important; font-weight: 800 !important; text-transform: uppercase !important;
  box-shadow: 0 8px 18px rgba(254,37,154,.18) !important;
}

.tax-product_cat .price_slider_amount .price_label,
.post-type-archive-product .price_slider_amount .price_label,
.woocommerce-shop .price_slider_amount .price_label{
  flex: 1 1 100% !important; margin-top: 2px !important; color: #5d5660 !important; font-size: 12.5px !important; font-weight: 600 !important;
}

.tax-product_cat nav.woocommerce-pagination,
.post-type-archive-product nav.woocommerce-pagination,
.woocommerce-shop nav.woocommerce-pagination{ margin-top: 16px !important; }

.tax-product_cat nav.woocommerce-pagination ul,
.post-type-archive-product nav.woocommerce-pagination ul,
.woocommerce-shop nav.woocommerce-pagination ul{ border: 0 !important; }

.tax-product_cat nav.woocommerce-pagination li,
.post-type-archive-product nav.woocommerce-pagination li,
.woocommerce-shop nav.woocommerce-pagination li{ border: 0 !important; margin: 0 4px !important; }

.tax-product_cat nav.woocommerce-pagination a,
.tax-product_cat nav.woocommerce-pagination span,
.post-type-archive-product nav.woocommerce-pagination a,
.post-type-archive-product nav.woocommerce-pagination span,
.woocommerce-shop nav.woocommerce-pagination a,
.woocommerce-shop nav.woocommerce-pagination span{
  width: 34px !important; height: 34px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  border-radius: 999px !important; border: 1px solid #e8dde4 !important; background: #fff !important; color: #5b5560 !important;
  font-size: 12px !important; font-weight: 700 !important; box-shadow: 0 4px 12px rgba(20,20,20,.04) !important;
}

.tax-product_cat nav.woocommerce-pagination span.current,
.post-type-archive-product nav.woocommerce-pagination span.current,
.woocommerce-shop nav.woocommerce-pagination span.current{
  background: linear-gradient(135deg, #fe259a 0%, #ff5aae 100%) !important;
  border-color: #fe259a !important; color: #fff !important; box-shadow: 0 10px 20px rgba(254,37,154,.22) !important;
}

.tax-product_cat nav.woocommerce-pagination a:hover,
.post-type-archive-product nav.woocommerce-pagination a:hover,
.woocommerce-shop nav.woocommerce-pagination a:hover{ border-color: #fe259a !important; color: #fe259a !important; }

@media (max-width: 849px){
  .tax-product_cat .shop-container,
  .post-type-archive-product .shop-container,
  .woocommerce-shop .shop-container{ padding-left: 0 !important; }

  .tax-product_cat .term-description,
  .post-type-archive-product .term-description,
  .woocommerce-shop .term-description{
    padding: 13px 14px !important; border-radius: 16px !important; margin-bottom: 14px !important;
  }

  .tax-product_cat .term-description p,
  .post-type-archive-product .term-description p,
  .woocommerce-shop .term-description p{ font-size: 14px !important; line-height: 1.75 !important; }

  .tax-product_cat .products .product-small.col,
  .post-type-archive-product .products .product-small.col,
  .woocommerce-shop .products .product-small.col{
    padding-left: 7px !important; padding-right: 7px !important; margin-bottom: 14px !important;
  }

  .tax-product_cat .products .box-text,
  .post-type-archive-product .products .box-text,
  .woocommerce-shop .products .box-text{ padding: 8px 8px 10px !important; }

  .tax-product_cat .products .title-wrapper,
  .post-type-archive-product .products .title-wrapper,
  .woocommerce-shop .products .title-wrapper{ min-height: 40px !important; margin-bottom: 6px !important; }

  .tax-product_cat .products .name,
  .tax-product_cat .products .woocommerce-loop-product__title,
  .post-type-archive-product .products .name,
  .post-type-archive-product .products .woocommerce-loop-product__title,
  .woocommerce-shop .products .name,
  .woocommerce-shop .products .woocommerce-loop-product__title{ font-size: 12.5px !important; }

  .tax-product_cat .products .price,
  .post-type-archive-product .products .price,
  .woocommerce-shop .products .price{ font-size: 13px !important; }

  .tax-product_cat nav.woocommerce-pagination a,
  .tax-product_cat nav.woocommerce-pagination span,
  .post-type-archive-product nav.woocommerce-pagination a,
  .post-type-archive-product nav.woocommerce-pagination span,
  .woocommerce-shop nav.woocommerce-pagination a,
  .woocommerce-shop nav.woocommerce-pagination span{
    width: 32px !important; height: 32px !important; font-size: 12px !important;
  }
}

/* =========================================================
   14) SEARCH RESULT PAGE - FINAL CLEAN
   Áp cho:
   - product result
   - pagination
   - blog result
   - sidebar filter
   ========================================================= */

/* ===== nền chung ===== */
.search #main,
.search-results #main{
  background: #fffdfd;
}

.search #content.content-area,
.search-results #content.content-area{
  max-width: 1280px !important;
  margin: 0 auto !important;
}

/* ===== heading / breadcrumb khu search ===== */
.search .shop-page-title,
.search-results .shop-page-title{
  margin-bottom: 14px !important;
}

.search .shop-page-title .page-title-inner,
.search-results .shop-page-title .page-title-inner{
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.search .shop-page-title .woocommerce-breadcrumb,
.search-results .shop-page-title .woocommerce-breadcrumb{
  color: #f9d7e7 !important;
  font-size: 13px !important;
}

.search .shop-page-title .woocommerce-breadcrumb a,
.search-results .shop-page-title .woocommerce-breadcrumb a{
  color: #fff !important;
  opacity: .92 !important;
  text-decoration: none !important;
}

.search .shop-page-title .woocommerce-breadcrumb a:hover,
.search-results .shop-page-title .woocommerce-breadcrumb a:hover{
  opacity: 1 !important;
}

.search .shop-page-title .page-title,
.search-results .shop-page-title .page-title{
  color: #fff !important;
  font-size: 34px !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
  letter-spacing: -.2px !important;
}

/* ===== layout tổng ===== */
.search .shop-container,
.search-results .shop-container{
  padding-top: 4px !important;
}

.search .category-page-row,
.search-results .category-page-row{
  align-items: flex-start !important;
}

/* ===== sidebar filter ===== */
.search #shop-sidebar,
.search-results #shop-sidebar{
  position: sticky;
  top: 20px;
}

.search #woocommerce_product_categories-13.widget_product_categories,
.search-results #woocommerce_product_categories-13.widget_product_categories{
  background: linear-gradient(180deg, #fff 0%, #fffdfd 100%);
  border: 1px solid #f3eef2;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow:
    0 10px 30px rgba(24,24,24,.04),
    0 1px 0 rgba(255,255,255,.9) inset;
}

.search .widget_price_filter,
.search-results .widget_price_filter{
  margin-top: 18px !important;
  padding: 14px 14px 13px !important;
  background: linear-gradient(180deg, #fffefe 0%, #fff8fb 100%);
  border: 1px solid #f2e6ec;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(30,20,30,.04) !important;
}

/* ===== product result grid ===== */
.search .products.row,
.search-results .products.row{
  margin-left: -10px !important;
  margin-right: -10px !important;
}

.search .products .product-small.col,
.search-results .products .product-small.col{
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin-bottom: 20px !important;
}

.search .products .box,
.search-results .products .box{
  height: 100% !important;
  background: #fff !important;
  border: 1px solid #f3ebf0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 16px rgba(25,25,25,.045) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

.search .products .box:hover,
.search-results .products .box:hover{
  transform: translateY(-3px);
  border-color: #edd9e5 !important;
  box-shadow: 0 12px 24px rgba(25,25,25,.075) !important;
}

.search .products .box-image,
.search-results .products .box-image{
  margin: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
}

.search .products .box-image img,
.search-results .products .box-image img{
  display: block !important;
  width: 100% !important;
  border-radius: 0 !important;
  transition: transform .28s ease !important;
}

.search .products .box:hover .box-image img,
.search-results .products .box:hover .box-image img{
  transform: scale(1.03);
}

.search .products .box-text,
.search-results .products .box-text{
  padding: 10px 10px 13px !important;
  text-align: center !important;
}

.search .products .title-wrapper,
.search-results .products .title-wrapper{
  min-height: 44px !important;
  margin-bottom: 6px !important;
}

.search .products .name,
.search .products .woocommerce-loop-product__title,
.search-results .products .name,
.search-results .products .woocommerce-loop-product__title{
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  color: #2f2f36 !important;
}

.search .products .name a,
.search .products .woocommerce-loop-product__title a,
.search-results .products .name a,
.search-results .products .woocommerce-loop-product__title a{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #2f2f36 !important;
  text-decoration: none !important;
}

.search .products .name a:hover,
.search .products .woocommerce-loop-product__title a:hover,
.search-results .products .name a:hover,
.search-results .products .woocommerce-loop-product__title a:hover{
  color: #d94b93 !important;
}

.search .products .price,
.search-results .products .price{
  color: #fe259a !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
}

.search .products .price del,
.search-results .products .price del{
  margin-right: 4px;
  opacity: .5;
  color: #8f8590 !important;
}

.search .products .price ins,
.search-results .products .price ins{
  text-decoration: none !important;
}

.search .onsale,
.search .badge-circle .badge-inner,
.search-results .onsale,
.search-results .badge-circle .badge-inner{
  background: linear-gradient(135deg, #fe259a 0%, #ff5aae 100%) !important;
  box-shadow: 0 6px 16px rgba(254,37,154,.18) !important;
}

.search .cart-icon,
.search-results .cart-icon{
  background: #fff !important;
  color: #fe259a !important;
  border: 1px solid #f1dce8 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(20,20,20,.08) !important;
}

.search .cart-icon:hover,
.search-results .cart-icon:hover{
  background: #fe259a !important;
  color: #fff !important;
  border-color: #fe259a !important;
}

/* ===== pagination sản phẩm ===== */
.search nav.woocommerce-pagination,
.search-results nav.woocommerce-pagination{
  margin-top: 12px !important;
  margin-bottom: 24px !important;
}

.search nav.woocommerce-pagination ul,
.search-results nav.woocommerce-pagination ul{
  border: 0 !important;
}

.search nav.woocommerce-pagination li,
.search-results nav.woocommerce-pagination li{
  border: 0 !important;
  margin: 0 4px !important;
}

.search nav.woocommerce-pagination a,
.search nav.woocommerce-pagination span,
.search-results nav.woocommerce-pagination a,
.search-results nav.woocommerce-pagination span{
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid #e8dde4 !important;
  background: #fff !important;
  color: #5b5560 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(20,20,20,.04) !important;
}

.search nav.woocommerce-pagination span.current,
.search-results nav.woocommerce-pagination span.current{
  background: linear-gradient(135deg, #fe259a 0%, #ff5aae 100%) !important;
  border-color: #fe259a !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(254,37,154,.22) !important;
}

.search nav.woocommerce-pagination a:hover,
.search-results nav.woocommerce-pagination a:hover{
  border-color: #fe259a !important;
  color: #fe259a !important;
}

/* ===== section blog result ===== */
.search .row-slider.slider:has(.box-blog-post),
.search-results .row-slider.slider:has(.box-blog-post){
  margin-top: 10px !important;
  margin-left: -8px !important;
  margin-right: -8px !important;
}

.search-results h3,
.search-no-results h3,
.search .page-wrapper h3{
  color: #2f2f36 !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .2px !important;
  margin: 16px 0 16px !important;
}

.search-results h3::after,
.search-no-results h3::after,
.search .page-wrapper h3::after{
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fe259a 0%, #ffc2de 100%);
}

/* chuyển flickity blog thành grid */
.search .row-slider.slider:has(.box-blog-post) .flickity-viewport,
.search-results .row-slider.slider:has(.box-blog-post) .flickity-viewport{
  height: auto !important;
  overflow: visible !important;
}

.search .row-slider.slider:has(.box-blog-post) .flickity-slider,
.search-results .row-slider.slider:has(.box-blog-post) .flickity-slider{
  position: static !important;
  transform: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
}

/* 3 cột desktop */
.search .row-slider.slider:has(.box-blog-post) .post-item,
.search-results .row-slider.slider:has(.box-blog-post) .post-item{
  position: static !important;
  left: auto !important;
  width: 33.3333% !important;
  max-width: 33.3333% !important;
  flex: 0 0 33.3333% !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  margin-bottom: 18px !important;
}

.search .box.box-blog-post,
.search-results .box.box-blog-post{
  height: 100% !important;
  background: linear-gradient(180deg, #fffefe 0%, #fffafb 100%) !important;
  border: 1px solid #f1e5eb !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 6px 18px rgba(25,25,25,.045) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

.search .box.box-blog-post:hover,
.search-results .box.box-blog-post:hover{
  transform: translateY(-3px);
  border-color: #ecd9e4 !important;
  box-shadow: 0 14px 28px rgba(25,25,25,.08) !important;
}

.search .box.box-blog-post .box-image,
.search-results .box.box-blog-post .box-image{
  margin: 0 !important;
  overflow: hidden !important;
  border-bottom: 1px solid #f7eef3 !important;
}

.search .box.box-blog-post .box-image img,
.search-results .box.box-blog-post .box-image img{
  display: block !important;
  width: 100% !important;
  transition: transform .3s ease !important;
}

.search .box.box-blog-post:hover .box-image img,
.search-results .box.box-blog-post:hover .box-image img{
  transform: scale(1.03);
}

.search .box.box-blog-post .box-text,
.search-results .box.box-blog-post .box-text{
  padding: 13px 12px 15px !important;
  text-align: center !important;
}

.search .box.box-blog-post .post-title,
.search-results .box.box-blog-post .post-title{
  margin: 0 0 6px !important;
  min-height: 46px !important;
  font-size: 14px !important;
  line-height: 1.42 !important;
  font-weight: 700 !important;
}

.search .box.box-blog-post .post-title a,
.search-results .box.box-blog-post .post-title a{
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  color: #2f2f36 !important;
  text-decoration: none !important;
}

.search .box.box-blog-post .post-title a:hover,
.search-results .box.box-blog-post .post-title a:hover{
  color: #d94b93 !important;
}

.search .box.box-blog-post .is-divider,
.search-results .box.box-blog-post .is-divider{
  width: 36px !important;
  max-width: 36px !important;
  height: 3px !important;
  margin: 0 auto 8px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #fe259a 0%, #ffc2de 100%) !important;
  opacity: 1 !important;
}

.search .box.box-blog-post .from_the_blog_excerpt,
.search-results .box.box-blog-post .from_the_blog_excerpt{
  margin: 0 !important;
  min-height: 62px !important;
  color: #6b646d !important;
  font-size: 12.5px !important;
  line-height: 1.65 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.search .box.box-blog-post .badge.post-date,
.search-results .box.box-blog-post .badge.post-date{
  top: 10px !important;
  left: 10px !important;
}

.search .box.box-blog-post .badge.post-date .badge-inner,
.search-results .box.box-blog-post .badge.post-date .badge-inner{
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 4px !important;
  border-radius: 10px !important;
  background: #fff !important;
  border: 2px solid #fe259a !important;
  color: #fe259a !important;
  box-shadow: 0 6px 14px rgba(254,37,154,.14) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
}

.search .row-slider.slider:has(.box-blog-post) .flickity-prev-next-button,
.search-results .row-slider.slider:has(.box-blog-post) .flickity-prev-next-button{
  display: none !important;
}

/* ===== mobile/tablet ===== */
@media (max-width: 849px){
  .search .shop-page-title .page-title,
  .search-results .shop-page-title .page-title{
    font-size: 24px !important;
    line-height: 1.28 !important;
  }

  .search #shop-sidebar,
  .search-results #shop-sidebar{
    position: static;
  }

  .search .products.row,
  .search-results .products.row{
    margin-left: -7px !important;
    margin-right: -7px !important;
  }

  .search .products .product-small.col,
  .search-results .products .product-small.col{
    padding-left: 7px !important;
    padding-right: 7px !important;
    margin-bottom: 14px !important;
  }

  .search .products .box-text,
  .search-results .products .box-text{
    padding: 8px 8px 10px !important;
  }

  .search .products .title-wrapper,
  .search-results .products .title-wrapper{
    min-height: 40px !important;
  }

  .search .products .name,
  .search .products .woocommerce-loop-product__title,
  .search-results .products .name,
  .search-results .products .woocommerce-loop-product__title{
    font-size: 12.5px !important;
  }

  .search .products .price,
  .search-results .products .price{
    font-size: 13px !important;
  }

  .search nav.woocommerce-pagination,
  .search-results nav.woocommerce-pagination{
    margin-bottom: 14px !important;
  }

  .search nav.woocommerce-pagination a,
  .search nav.woocommerce-pagination span,
  .search-results nav.woocommerce-pagination a,
  .search-results nav.woocommerce-pagination span{
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }

  .search .row-slider.slider:has(.box-blog-post),
  .search-results .row-slider.slider:has(.box-blog-post){
    margin-left: -6px !important;
    margin-right: -6px !important;
  }

  .search .row-slider.slider:has(.box-blog-post) .post-item,
  .search-results .row-slider.slider:has(.box-blog-post) .post-item{
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    margin-bottom: 12px !important;
  }

  .search-results h3,
  .search-no-results h3,
  .search .page-wrapper h3{
    margin: 14px 0 12px !important;
    font-size: 18px !important;
  }

  .search .box.box-blog-post,
  .search-results .box.box-blog-post{
    border-radius: 14px !important;
  }

  .search .box.box-blog-post .box-text,
  .search-results .box.box-blog-post .box-text{
    padding: 10px 10px 12px !important;
  }

  .search .box.box-blog-post .post-title,
  .search-results .box.box-blog-post .post-title{
    min-height: 42px !important;
    font-size: 13px !important;
    line-height: 1.38 !important;
  }

  .search .box.box-blog-post .from_the_blog_excerpt,
  .search-results .box.box-blog-post .from_the_blog_excerpt{
    min-height: 46px !important;
    font-size: 12px !important;
    -webkit-line-clamp: 2 !important;
  }
}
/* =========================================================
   15) PRODUCT TAG ARCHIVE - FINAL CLEAN
   Áp cho trang thẻ sản phẩm như /tu-khoa/qunol/
   ========================================================= */

.tax-product_tag #main{
  background: #fffdfd;
}

.tax-product_tag #content.content-area{
  max-width: 1280px !important;
  margin: 0 auto !important;
}

/* ===== title / breadcrumb ===== */
.tax-product_tag .shop-page-title{
  margin-bottom: 14px !important;
}

.tax-product_tag .shop-page-title .page-title-inner{
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.tax-product_tag .shop-page-title .woocommerce-breadcrumb{
  color: #f9d7e7 !important;
  font-size: 13px !important;
}

.tax-product_tag .shop-page-title .woocommerce-breadcrumb a{
  color: #fff !important;
  opacity: .92 !important;
  text-decoration: none !important;
}

.tax-product_tag .shop-page-title .woocommerce-breadcrumb a:hover{
  opacity: 1 !important;
}

.tax-product_tag .shop-page-title .page-title{
  color: #fff !important;
  font-size: 34px !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
  letter-spacing: -.2px !important;
}

/* ===== layout tổng ===== */
.tax-product_tag .shop-container{
  padding-top: 4px !important;
}

.tax-product_tag .category-page-row{
  align-items: flex-start !important;
}

/* ===== sidebar ===== */
.tax-product_tag #shop-sidebar{
  position: sticky;
  top: 20px;
}

.tax-product_tag #woocommerce_product_categories-13.widget_product_categories{
  background: linear-gradient(180deg, #fff 0%, #fffdfd 100%);
  border: 1px solid #f3eef2;
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow:
    0 10px 30px rgba(24,24,24,.04),
    0 1px 0 rgba(255,255,255,.9) inset;
}

.tax-product_tag .widget_price_filter{
  margin-top: 18px !important;
  padding: 14px 14px 13px !important;
  background: linear-gradient(180deg, #fffefe 0%, #fff8fb 100%);
  border: 1px solid #f2e6ec;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(30,20,30,.04) !important;
}

/* label sidebar */
.tax-product_tag .widget-title.shop-sidebar{
  display: block !important;
  color: #2f2f36 !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .15px !important;
}

.tax-product_tag .widget .is-divider.small{
  width: 36px !important;
  max-width: 36px !important;
  height: 3px !important;
  margin-top: 8px !important;
  margin-bottom: 14px !important;
  background: linear-gradient(90deg, #fe259a 0%, #ffc2de 100%) !important;
  border-radius: 999px !important;
  opacity: 1 !important;
}

/* list category */
.tax-product_tag .product-categories > li{
  padding: 0 !important;
  border-bottom: 1px solid #f4edf1 !important;
}

.tax-product_tag .product-categories > li:last-child{
  border-bottom: 0 !important;
}

.tax-product_tag .product-categories > li > a{
  display: block !important;
  padding: 13px 34px 13px 0 !important;
  color: #4b4650 !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.tax-product_tag .product-categories > li > a:hover{
  color: #d94b93 !important;
}

.tax-product_tag .product-categories .toggle{
  right: 0 !important;
  width: 26px !important;
  height: 26px !important;
  top: 10px !important;
  border-radius: 999px !important;
}

.tax-product_tag .product-categories .children{
  padding-bottom: 10px !important;
}

.tax-product_tag .product-categories .children li a{
  color: #6d6670 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

/* price filter */
.tax-product_tag .price_slider{
  margin-bottom: 14px !important;
}

.tax-product_tag .price_slider.ui-slider{
  background: #f3d6e4 !important;
  border: 0 !important;
  box-shadow: none !important;
  height: 4px !important;
  border-radius: 999px !important;
}

.tax-product_tag .price_slider .ui-slider-range{
  background: linear-gradient(90deg, #fe259a 0%, #ff7abc 100%) !important;
  border-radius: 999px !important;
}

.tax-product_tag .price_slider .ui-slider-handle{
  width: 14px !important;
  height: 14px !important;
  top: -5px !important;
  border: 2px solid #fe259a !important;
  background: #fff !important;
  box-shadow: 0 4px 10px rgba(254,37,154,.2) !important;
}

.tax-product_tag .price_slider_amount .button{
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #fe259a 0%, #ff5aae 100%) !important;
  border: 1px solid #fe259a !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.tax-product_tag .price_label{
  color: #6a646d !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}

/* ===== sort dropdown ===== */
.tax-product_tag .woocommerce-ordering select,
.tax-product_tag .orderby{
  min-height: 42px !important;
  padding: 0 38px 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid #f0dce7 !important;
  background-color: #fff !important;
  box-shadow: 0 4px 14px rgba(20,20,20,.04) !important;
  color: #5a5560 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* ===== product grid ===== */
.tax-product_tag .products.row{
  margin-left: -10px !important;
  margin-right: -10px !important;
}

.tax-product_tag .products .product-small.col{
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin-bottom: 20px !important;
}

.tax-product_tag .products .box{
  height: 100% !important;
  background: #fff !important;
  border: 1px solid #f3ebf0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 16px rgba(25,25,25,.045) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

.tax-product_tag .products .box:hover{
  transform: translateY(-3px);
  border-color: #edd9e5 !important;
  box-shadow: 0 12px 24px rgba(25,25,25,.075) !important;
}

.tax-product_tag .products .box-image{
  margin: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
}

.tax-product_tag .products .box-image img{
  display: block !important;
  width: 100% !important;
  border-radius: 0 !important;
  transition: transform .28s ease !important;
}

.tax-product_tag .products .box:hover .box-image img{
  transform: scale(1.03);
}

.tax-product_tag .products .box-text{
  padding: 10px 10px 13px !important;
  text-align: center !important;
}

.tax-product_tag .products .title-wrapper{
  min-height: 44px !important;
  margin-bottom: 6px !important;
}

.tax-product_tag .products .name,
.tax-product_tag .products .woocommerce-loop-product__title{
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  color: #2f2f36 !important;
}

.tax-product_tag .products .name a,
.tax-product_tag .products .woocommerce-loop-product__title a{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #2f2f36 !important;
  text-decoration: none !important;
}

.tax-product_tag .products .name a:hover,
.tax-product_tag .products .woocommerce-loop-product__title a:hover{
  color: #d94b93 !important;
}

.tax-product_tag .products .price{
  color: #fe259a !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
}

.tax-product_tag .products .price del{
  margin-right: 4px;
  opacity: .5;
  color: #8f8590 !important;
}

.tax-product_tag .products .price ins{
  text-decoration: none !important;
}

.tax-product_tag .onsale,
.tax-product_tag .badge-circle .badge-inner{
  background: linear-gradient(135deg, #fe259a 0%, #ff5aae 100%) !important;
  box-shadow: 0 6px 16px rgba(254,37,154,.18) !important;
}

.tax-product_tag .cart-icon{
  background: #fff !important;
  color: #fe259a !important;
  border: 1px solid #f1dce8 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(20,20,20,.08) !important;
}

.tax-product_tag .cart-icon:hover{
  background: #fe259a !important;
  color: #fff !important;
  border-color: #fe259a !important;
}

/* ===== pagination ===== */
.tax-product_tag nav.woocommerce-pagination{
  margin-top: 12px !important;
  margin-bottom: 24px !important;
}

.tax-product_tag nav.woocommerce-pagination ul{
  border: 0 !important;
}

.tax-product_tag nav.woocommerce-pagination li{
  border: 0 !important;
  margin: 0 4px !important;
}

.tax-product_tag nav.woocommerce-pagination a,
.tax-product_tag nav.woocommerce-pagination span{
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid #e8dde4 !important;
  background: #fff !important;
  color: #5b5560 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(20,20,20,.04) !important;
}

.tax-product_tag nav.woocommerce-pagination span.current{
  background: linear-gradient(135deg, #fe259a 0%, #ff5aae 100%) !important;
  border-color: #fe259a !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(254,37,154,.22) !important;
}

.tax-product_tag nav.woocommerce-pagination a:hover{
  border-color: #fe259a !important;
  color: #fe259a !important;
}

/* ===== mobile / tablet ===== */
@media (max-width: 849px){
  .tax-product_tag .shop-page-title .page-title{
    font-size: 24px !important;
    line-height: 1.28 !important;
  }

  .tax-product_tag #shop-sidebar{
    position: static;
  }

  .tax-product_tag .products.row{
    margin-left: -7px !important;
    margin-right: -7px !important;
  }

  .tax-product_tag .products .product-small.col{
    padding-left: 7px !important;
    padding-right: 7px !important;
    margin-bottom: 14px !important;
  }

  .tax-product_tag .products .box-text{
    padding: 8px 8px 10px !important;
  }

  .tax-product_tag .products .title-wrapper{
    min-height: 40px !important;
  }

  .tax-product_tag .products .name,
  .tax-product_tag .products .woocommerce-loop-product__title{
    font-size: 12.5px !important;
  }

  .tax-product_tag .products .price{
    font-size: 13px !important;
  }

  .tax-product_tag nav.woocommerce-pagination{
    margin-bottom: 14px !important;
  }

  .tax-product_tag nav.woocommerce-pagination a,
  .tax-product_tag nav.woocommerce-pagination span{
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }

  .tax-product_tag #woocommerce_product_categories-13.widget_product_categories{
    padding: 16px 14px 14px !important;
    border-radius: 16px !important;
  }

  .tax-product_tag .widget_price_filter{
    padding: 12px !important;
    border-radius: 14px !important;
  }
}
@media (max-width: 849px){
  .tax-product_tag .term-description,
  .tax-product_tag .archive-description,
  .tax-product_tag .term-description-wrap{
    margin-bottom: 14px !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  .tax-product_tag .products .product-small.col{
    margin-bottom: 16px !important;
  }
}


/* =========================================================
   15) PRODUCT TAG ARCHIVE - MICRO POLISH
   ========================================================= */

.tax-product_tag .term-description,
.tax-product_tag .archive-description,
.tax-product_tag .term-description-wrap{
  margin-bottom: 18px !important;
  color: #5f5963 !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

.tax-product_tag .products .product-small.col{
  margin-bottom: 24px !important;
}

.tax-product_tag .widget-title.shop-sidebar{
  font-size: 16px !important;
}

.tax-product_tag .woocommerce-ordering,
.tax-product_tag .woocommerce-ordering select,
.tax-product_tag .orderby{
  min-height: 44px !important;
}

@media (max-width: 849px){
  #woocommerce_product_categories-13.widget_product_categories{
    padding-top: 14px !important;
  }

  #woocommerce_product_categories-13 .widget-title.shop-sidebar{
    font-size: 15px !important;
    gap: 8px !important;
  }

  #woocommerce_product_categories-13 .is-divider.small{
    width: 34px !important;
    max-width: 34px !important;
    margin: 7px 0 9px !important;
  }

  .tax-product_tag .term-description,
  .tax-product_tag .archive-description,
  .tax-product_tag .term-description-wrap{
    margin-bottom: 14px !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  .tax-product_tag .products .product-small.col{
    margin-bottom: 16px !important;
  }
}


/* =========================================================
   16) MASTER CLEAN LOCK
   Nhẹ và sạch:
   - khóa sync sidebar title giữa archive / search / tag / shop
   - không tạo thêm block duplicate lớn
   ========================================================= */

.tax-product_cat #woocommerce_product_categories-13 .widget-title.shop-sidebar,
.tax-product_tag #woocommerce_product_categories-13 .widget-title.shop-sidebar,
.search #woocommerce_product_categories-13 .widget-title.shop-sidebar,
.search-results #woocommerce_product_categories-13 .widget-title.shop-sidebar,
.post-type-archive-product #woocommerce_product_categories-13 .widget-title.shop-sidebar,
.woocommerce-shop #woocommerce_product_categories-13 .widget-title.shop-sidebar,
.single-product #woocommerce_product_categories-13 .widget-title.shop-sidebar{
  font-size: 16px !important;
}

@media (max-width: 849px){
  .tax-product_cat #woocommerce_product_categories-13 .widget-title.shop-sidebar,
  .tax-product_tag #woocommerce_product_categories-13 .widget-title.shop-sidebar,
  .search #woocommerce_product_categories-13 .widget-title.shop-sidebar,
  .search-results #woocommerce_product_categories-13 .widget-title.shop-sidebar,
  .post-type-archive-product #woocommerce_product_categories-13 .widget-title.shop-sidebar,
  .woocommerce-shop #woocommerce_product_categories-13 .widget-title.shop-sidebar,
  .single-product #woocommerce_product_categories-13 .widget-title.shop-sidebar{
    font-size: 15px !important;
  }
}
/* =========================================================
   SIDEBAR TITLE - HARD FINAL SYNC
   Khóa đồng bộ cho category / tag / search / shop
   ========================================================= */

body.tax-product_cat #woocommerce_product_categories-13.widget_product_categories,
body.tax-product_tag #woocommerce_product_categories-13.widget_product_categories,
body.post-type-archive-product #woocommerce_product_categories-13.widget_product_categories,
body.woocommerce-shop #woocommerce_product_categories-13.widget_product_categories,
body.search #woocommerce_product_categories-13.widget_product_categories,
body.search-results #woocommerce_product_categories-13.widget_product_categories{
  padding: 16px 18px 16px !important;
  border-radius: 18px !important;
}

body.tax-product_cat #woocommerce_product_categories-13 .widget-title.shop-sidebar,
body.tax-product_tag #woocommerce_product_categories-13 .widget-title.shop-sidebar,
body.post-type-archive-product #woocommerce_product_categories-13 .widget-title.shop-sidebar,
body.woocommerce-shop #woocommerce_product_categories-13 .widget-title.shop-sidebar,
body.search #woocommerce_product_categories-13 .widget-title.shop-sidebar,
body.search-results #woocommerce_product_categories-13 .widget-title.shop-sidebar{
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 0 0 2px !important;
  color: #2f2f36 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  letter-spacing: .15px !important;
  text-transform: uppercase !important;
}

body.tax-product_cat #woocommerce_product_categories-13 .widget-title.shop-sidebar::before,
body.tax-product_tag #woocommerce_product_categories-13 .widget-title.shop-sidebar::before,
body.post-type-archive-product #woocommerce_product_categories-13 .widget-title.shop-sidebar::before,
body.woocommerce-shop #woocommerce_product_categories-13 .widget-title.shop-sidebar::before,
body.search #woocommerce_product_categories-13 .widget-title.shop-sidebar::before,
body.search-results #woocommerce_product_categories-13 .widget-title.shop-sidebar::before{
  width: 8px !important;
  height: 8px !important;
  flex: 0 0 8px !important;
  box-shadow: 0 0 0 5px rgba(254,37,154,.08) !important;
}

body.tax-product_cat #woocommerce_product_categories-13 .is-divider.small,
body.tax-product_tag #woocommerce_product_categories-13 .is-divider.small,
body.post-type-archive-product #woocommerce_product_categories-13 .is-divider.small,
body.woocommerce-shop #woocommerce_product_categories-13 .is-divider.small,
body.search #woocommerce_product_categories-13 .is-divider.small,
body.search-results #woocommerce_product_categories-13 .is-divider.small{
  width: 40px !important;
  max-width: 40px !important;
  height: 3px !important;
  margin: 8px 0 10px !important;
  border-radius: 999px !important;
}

@media (max-width: 849px){
  body.tax-product_cat #woocommerce_product_categories-13.widget_product_categories,
  body.tax-product_tag #woocommerce_product_categories-13.widget_product_categories,
  body.post-type-archive-product #woocommerce_product_categories-13.widget_product_categories,
  body.woocommerce-shop #woocommerce_product_categories-13.widget_product_categories,
  body.search #woocommerce_product_categories-13.widget_product_categories,
  body.search-results #woocommerce_product_categories-13.widget_product_categories{
    padding: 14px 14px 12px !important;
    border-radius: 14px !important;
  }

  body.tax-product_cat #woocommerce_product_categories-13 .widget-title.shop-sidebar,
  body.tax-product_tag #woocommerce_product_categories-13 .widget-title.shop-sidebar,
  body.post-type-archive-product #woocommerce_product_categories-13 .widget-title.shop-sidebar,
  body.woocommerce-shop #woocommerce_product_categories-13 .widget-title.shop-sidebar,
  body.search #woocommerce_product_categories-13 .widget-title.shop-sidebar,
  body.search-results #woocommerce_product_categories-13 .widget-title.shop-sidebar{
    font-size: 15px !important;
    gap: 8px !important;
  }

  body.tax-product_cat #woocommerce_product_categories-13 .is-divider.small,
  body.tax-product_tag #woocommerce_product_categories-13 .is-divider.small,
  body.post-type-archive-product #woocommerce_product_categories-13 .is-divider.small,
  body.woocommerce-shop #woocommerce_product_categories-13 .is-divider.small,
  body.search #woocommerce_product_categories-13 .is-divider.small,
  body.search-results #woocommerce_product_categories-13 .is-divider.small{
    width: 34px !important;
    max-width: 34px !important;
    margin: 7px 0 9px !important;
  }
}
/* =========================================================
   B) YHN - COUNTDOWN FINAL SYNC
   Đồng bộ countdown mini cho:
   - category
   - tag
   - shop
   - search sản phẩm
   Giữ label: "Kết thúc:"
   ========================================================= */

body.tax-product_cat #product-sidebar,
body.tax-product_tag #product-sidebar,
body.post-type-archive-product #product-sidebar,
body.woocommerce-shop #product-sidebar,
body.search #product-sidebar,
body.search-results #product-sidebar,
body.yhn-product-search #product-sidebar{
  max-width: 285px !important;
  flex-basis: 285px !important;
}

/* đồng bộ khối sản phẩm cho search sản phẩm */
body.yhn-product-search #main,
body.search.search-results #main{
  background: #fffdfd;
}

body.yhn-product-search .category-page-row,
body.search.search-results .category-page-row{
  align-items: flex-start !important;
}

body.yhn-product-search .shop-container,
body.search.search-results .shop-container{
  position: relative;
  padding-left: 4px !important;
}

body.yhn-product-search .products.row,
body.search.search-results .products.row{
  margin-left: -10px !important;
  margin-right: -10px !important;
}

body.yhn-product-search .products .product-small.col,
body.search.search-results .products .product-small.col{
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin-bottom: 20px !important;
}

body.yhn-product-search .products .box,
body.search.search-results .products .box{
  height: 100% !important;
  background: #fff !important;
  border: 1px solid #f3ebf0 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 16px rgba(25,25,25,.045) !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

body.yhn-product-search .products .box:hover,
body.search.search-results .products .box:hover{
  transform: translateY(-3px);
  border-color: #edd9e5 !important;
  box-shadow: 0 12px 24px rgba(25,25,25,.075) !important;
}

body.yhn-product-search .products .box-text,
body.search.search-results .products .box-text{
  padding: 10px 10px 13px !important;
  text-align: center !important;
}

body.yhn-product-search .products .title-wrapper,
body.search.search-results .products .title-wrapper{
  min-height: 44px !important;
  margin-bottom: 6px !important;
}

body.yhn-product-search .products .name,
body.yhn-product-search .products .woocommerce-loop-product__title,
body.search.search-results .products .name,
body.search.search-results .products .woocommerce-loop-product__title{
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  color: #2f2f36 !important;
}

body.yhn-product-search .products .name a,
body.yhn-product-search .products .woocommerce-loop-product__title a,
body.search.search-results .products .name a,
body.search.search-results .products .woocommerce-loop-product__title a{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #2f2f36 !important;
  text-decoration: none !important;
}

body.yhn-product-search .products .name a:hover,
body.yhn-product-search .products .woocommerce-loop-product__title a:hover,
body.search.search-results .products .name a:hover,
body.search.search-results .products .woocommerce-loop-product__title a:hover{
  color: #d94b93 !important;
}

body.yhn-product-search .products .price,
body.search.search-results .products .price{
  color: #fe259a !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
}

body.yhn-product-search .products .price del,
body.search.search-results .products .price del{
  margin-right: 4px;
  opacity: .5;
  color: #8f8590 !important;
}

body.yhn-product-search .products .price ins,
body.search.search-results .products .price ins{
  text-decoration: none !important;
}

/* ===== countdown mini đồng bộ ===== */
.tax-product_cat .products .price-wrapper,
.tax-product_tag .products .price-wrapper,
.post-type-archive-product .products .price-wrapper,
.woocommerce-shop .products .price-wrapper,
body.yhn-product-search .products .price-wrapper,
body.search.search-results .products .price-wrapper{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  min-height: 58px;
}

.tax-product_cat .products .price,
.tax-product_tag .products .price,
.post-type-archive-product .products .price,
.woocommerce-shop .products .price,
body.yhn-product-search .products .price,
body.search.search-results .products .price{
  margin-bottom: 0 !important;
}

.tax-product_cat .yhn-loop-sale-countdown,
.tax-product_tag .yhn-loop-sale-countdown,
.post-type-archive-product .yhn-loop-sale-countdown,
.woocommerce-shop .yhn-loop-sale-countdown,
body.yhn-product-search .yhn-loop-sale-countdown,
body.search.search-results .yhn-loop-sale-countdown{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 5px auto 0 !important;
  padding: 5px 10px !important;
  min-height: 26px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #fff4fa 0%, #ffeef7 100%) !important;
  border: 1px solid #f6d3e5 !important;
  box-shadow: 0 3px 10px rgba(254,37,154,.06) !important;
  text-align: center !important;
  line-height: 1 !important;
}

.tax-product_cat .yhn-loop-sale-countdown__label,
.tax-product_tag .yhn-loop-sale-countdown__label,
.post-type-archive-product .yhn-loop-sale-countdown__label,
.woocommerce-shop .yhn-loop-sale-countdown__label,
body.yhn-product-search .yhn-loop-sale-countdown__label,
body.search.search-results .yhn-loop-sale-countdown__label{
  display: inline !important;
  color: #d36a99 !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .2px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.tax-product_cat .yhn-loop-sale-countdown__value,
.tax-product_tag .yhn-loop-sale-countdown__value,
.post-type-archive-product .yhn-loop-sale-countdown__value,
.woocommerce-shop .yhn-loop-sale-countdown__value,
body.yhn-product-search .yhn-loop-sale-countdown__value,
body.search.search-results .yhn-loop-sale-countdown__value{
  color: #fe259a !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .15px !important;
  white-space: nowrap !important;
}

/* ===== sidebar title sync cho search product ===== */
body.yhn-product-search #woocommerce_product_categories-13.widget_product_categories,
body.search.search-results #woocommerce_product_categories-13.widget_product_categories{
  padding: 16px 18px 16px !important;
  border-radius: 18px !important;
}

body.yhn-product-search #woocommerce_product_categories-13 .widget-title.shop-sidebar,
body.search.search-results #woocommerce_product_categories-13 .widget-title.shop-sidebar{
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin: 0 0 2px !important;
  color: #2f2f36 !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  letter-spacing: .15px !important;
  text-transform: uppercase !important;
}

body.yhn-product-search #woocommerce_product_categories-13 .is-divider.small,
body.search.search-results #woocommerce_product_categories-13 .is-divider.small{
  width: 40px !important;
  max-width: 40px !important;
  height: 3px !important;
  margin: 8px 0 10px !important;
  background: linear-gradient(90deg, #fe259a 0%, #ffb6d7 100%) !important;
  border-radius: 999px !important;
  opacity: 1 !important;
}

/* ===== mobile ===== */
@media (max-width: 849px){
  body.yhn-product-search .shop-container,
  body.search.search-results .shop-container{
    padding-left: 0 !important;
  }

  body.yhn-product-search .products .product-small.col,
  body.search.search-results .products .product-small.col{
    padding-left: 7px !important;
    padding-right: 7px !important;
    margin-bottom: 14px !important;
  }

  body.yhn-product-search .products .box-text,
  body.search.search-results .products .box-text{
    padding: 8px 8px 10px !important;
  }

  body.yhn-product-search .products .title-wrapper,
  body.search.search-results .products .title-wrapper{
    min-height: 40px !important;
    margin-bottom: 6px !important;
  }

  body.yhn-product-search .products .name,
  body.yhn-product-search .products .woocommerce-loop-product__title,
  body.search.search-results .products .name,
  body.search.search-results .products .woocommerce-loop-product__title{
    font-size: 12.5px !important;
  }

  body.yhn-product-search .products .price,
  body.search.search-results .products .price{
    font-size: 13px !important;
  }

  .tax-product_cat .products .price-wrapper,
  .tax-product_tag .products .price-wrapper,
  .post-type-archive-product .products .price-wrapper,
  .woocommerce-shop .products .price-wrapper,
  body.yhn-product-search .products .price-wrapper,
  body.search.search-results .products .price-wrapper{
    min-height: 52px;
    gap: 3px !important;
  }

  .tax-product_cat .yhn-loop-sale-countdown,
  .tax-product_tag .yhn-loop-sale-countdown,
  .post-type-archive-product .yhn-loop-sale-countdown,
  .woocommerce-shop .yhn-loop-sale-countdown,
  body.yhn-product-search .yhn-loop-sale-countdown,
  body.search.search-results .yhn-loop-sale-countdown{
    padding: 4px 8px !important;
    min-height: 24px !important;
    margin-top: 4px !important;
    gap: 4px !important;
  }

  .tax-product_cat .yhn-loop-sale-countdown__label,
  .tax-product_tag .yhn-loop-sale-countdown__label,
  .post-type-archive-product .yhn-loop-sale-countdown__label,
  .woocommerce-shop .yhn-loop-sale-countdown__label,
  body.yhn-product-search .yhn-loop-sale-countdown__label,
  body.search.search-results .yhn-loop-sale-countdown__label{
    font-size: 9px !important;
  }

  .tax-product_cat .yhn-loop-sale-countdown__value,
  .tax-product_tag .yhn-loop-sale-countdown__value,
  .post-type-archive-product .yhn-loop-sale-countdown__value,
  .woocommerce-shop .yhn-loop-sale-countdown__value,
  body.yhn-product-search .yhn-loop-sale-countdown__value,
  body.search.search-results .yhn-loop-sale-countdown__value{
    font-size: 9.5px !important;
  }

  body.yhn-product-search #woocommerce_product_categories-13.widget_product_categories,
  body.search.search-results #woocommerce_product_categories-13.widget_product_categories{
    padding: 14px 14px 12px !important;
    border-radius: 14px !important;
  }

  body.yhn-product-search #woocommerce_product_categories-13 .widget-title.shop-sidebar,
  body.search.search-results #woocommerce_product_categories-13 .widget-title.shop-sidebar{
    font-size: 15px !important;
    gap: 8px !important;
  }

  body.yhn-product-search #woocommerce_product_categories-13 .is-divider.small,
  body.search.search-results #woocommerce_product_categories-13 .is-divider.small{
    width: 34px !important;
    max-width: 34px !important;
    margin: 7px 0 9px !important;
  }
}
/* =========================================================
