/* =========================================================
   SOFTVN — BRAND ARCHIVE USE SAME VISUAL SYSTEM AS CATEGORY
   Bridge brand taxonomy to existing category archive CSS
   ========================================================= */

/* ---- 1) Grid layout ---- */
.tax-pwb-brand ul.products,
.tax-brand ul.products,
.tax-product_brand ul.products,
.tax-yith_product_brand ul.products {
  margin-top: 26px !important;
}

.tax-pwb-brand ul.products li.product,
.tax-pwb-brand .products .product,
.tax-brand ul.products li.product,
.tax-brand .products .product,
.tax-product_brand ul.products li.product,
.tax-product_brand .products .product,
.tax-yith_product_brand ul.products li.product,
.tax-yith_product_brand .products .product {
  display: block !important;
  position: relative;
  align-self: flex-start !important;
  margin-bottom: 16px !important;
}

@media (min-width: 1100px) {
  .tax-pwb-brand ul.products li.product,
  .tax-pwb-brand .products .product,
  .tax-brand ul.products li.product,
  .tax-brand .products .product,
  .tax-product_brand ul.products li.product,
  .tax-product_brand .products .product,
  .tax-yith_product_brand ul.products li.product,
  .tax-yith_product_brand .products .product {
    width: 20% !important;
    max-width: 20% !important;
    flex: 0 0 20% !important;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .tax-pwb-brand ul.products li.product,
  .tax-pwb-brand .products .product,
  .tax-brand ul.products li.product,
  .tax-brand .products .product,
  .tax-product_brand ul.products li.product,
  .tax-product_brand .products .product,
  .tax-yith_product_brand ul.products li.product,
  .tax-yith_product_brand .products .product {
    width: 33.3333% !important;
    max-width: 33.3333% !important;
    flex: 0 0 33.3333% !important;
  }
}

@media (max-width: 767px) {
  .tax-pwb-brand ul.products,
  .tax-brand ul.products,
  .tax-product_brand ul.products,
  .tax-yith_product_brand ul.products {
    margin-top: 20px !important;
  }

  .tax-pwb-brand ul.products li.product,
  .tax-pwb-brand .products .product,
  .tax-brand ul.products li.product,
  .tax-brand .products .product,
  .tax-product_brand ul.products li.product,
  .tax-product_brand .products .product,
  .tax-yith_product_brand ul.products li.product,
  .tax-yith_product_brand .products .product {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    margin-bottom: 18px !important;
  }
}

/* ---- 2) Wrapper cleanup ---- */
.tax-pwb-brand .col-inner,
.tax-pwb-brand .product-small .col-inner,
.tax-brand .col-inner,
.tax-brand .product-small .col-inner,
.tax-product_brand .col-inner,
.tax-product_brand .product-small .col-inner,
.tax-yith_product_brand .col-inner,
.tax-yith_product_brand .product-small .col-inner {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* ---- 3) Card ---- */
.tax-pwb-brand .product .box,
.tax-pwb-brand ul.products li.product .box,
.tax-pwb-brand .products .product .box,
.tax-brand .product .box,
.tax-brand ul.products li.product .box,
.tax-brand .products .product .box,
.tax-product_brand .product .box,
.tax-product_brand ul.products li.product .box,
.tax-product_brand .products .product .box,
.tax-yith_product_brand .product .box,
.tax-yith_product_brand ul.products li.product .box,
.tax-yith_product_brand .products .product .box {
  position: relative !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  border: 1px solid #e7edf5 !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%) !important;
  overflow: hidden !important;
  cursor: pointer;
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.03),
    0 1px 2px rgba(15, 23, 42, 0.02) !important;
  transition:
    transform 0.26s ease,
    box-shadow 0.26s ease,
    border-color 0.26s ease,
    background 0.26s ease;
}

.tax-pwb-brand .product .box:hover,
.tax-brand .product .box:hover,
.tax-product_brand .product .box:hover,
.tax-yith_product_brand .product .box:hover {
  transform: translateY(-6px);
  border-color: #d9e4ef !important;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

@media (max-width: 767px) {
  .tax-pwb-brand .product .box:hover,
  .tax-brand .product .box:hover,
  .tax-product_brand .product .box:hover,
  .tax-yith_product_brand .product .box:hover {
    transform: translateY(-3px);
  }
}

/* ---- 4) Image ---- */
.tax-pwb-brand .box-image,
.tax-brand .box-image,
.tax-product_brand .box-image,
.tax-yith_product_brand .box-image {
  position: relative !important;
  padding: 18px 18px 8px !important;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.04), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
  z-index: 1;
}

.tax-pwb-brand .box-image img,
.tax-brand .box-image img,
.tax-product_brand .box-image img,
.tax-yith_product_brand .box-image img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
  transition:
    transform 0.34s cubic-bezier(.2, .8, .2, 1),
    filter 0.28s ease;
}

.tax-pwb-brand .product .box:hover .box-image img,
.tax-brand .product .box:hover .box-image img,
.tax-product_brand .product .box:hover .box-image img,
.tax-yith_product_brand .product .box:hover .box-image img {
  transform: translateY(-4px) scale(1.04);
  filter: saturate(1.03);
}

@media (max-width: 767px) {
  .tax-pwb-brand .box-image,
  .tax-brand .box-image,
  .tax-product_brand .box-image,
  .tax-yith_product_brand .box-image {
    padding: 12px 12px 4px !important;
  }

  .tax-pwb-brand .product .box:hover .box-image img,
  .tax-brand .product .box:hover .box-image img,
  .tax-product_brand .product .box:hover .box-image img,
  .tax-yith_product_brand .product .box:hover .box-image img {
    transform: translateY(-2px) scale(1.03);
  }
}

/* ---- 5) Content ---- */
.tax-pwb-brand .box-text,
.tax-pwb-brand .box-text-inner,
.tax-brand .box-text,
.tax-brand .box-text-inner,
.tax-product_brand .box-text,
.tax-product_brand .box-text-inner,
.tax-yith_product_brand .box-text,
.tax-yith_product_brand .box-text-inner {
  position: relative;
  z-index: 2;
  display: block !important;
  flex: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px 16px 12px !important;
  text-align: center;
}

@media (max-width: 767px) {
  .tax-pwb-brand .box-text,
  .tax-pwb-brand .box-text-inner,
  .tax-brand .box-text,
  .tax-brand .box-text-inner,
  .tax-product_brand .box-text,
  .tax-product_brand .box-text-inner,
  .tax-yith_product_brand .box-text,
  .tax-yith_product_brand .box-text-inner {
    padding: 10px 12px 12px !important;
  }
}

/* ---- 6) Title ---- */
.tax-pwb-brand .woocommerce-loop-product__title,
.tax-pwb-brand .name,
.tax-brand .woocommerce-loop-product__title,
.tax-brand .name,
.tax-product_brand .woocommerce-loop-product__title,
.tax-product_brand .name,
.tax-yith_product_brand .woocommerce-loop-product__title,
.tax-yith_product_brand .name {
  margin: 0 0 8px !important;
  min-height: 0 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  color: #24364b !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.22s ease, transform 0.22s ease;
}

.tax-pwb-brand .product .box:hover .woocommerce-loop-product__title,
.tax-pwb-brand .product .box:hover .name,
.tax-brand .product .box:hover .woocommerce-loop-product__title,
.tax-brand .product .box:hover .name,
.tax-product_brand .product .box:hover .woocommerce-loop-product__title,
.tax-product_brand .product .box:hover .name,
.tax-yith_product_brand .product .box:hover .woocommerce-loop-product__title,
.tax-yith_product_brand .product .box:hover .name {
  color: #0f172a !important;
  transform: translateY(-1px);
}

.tax-pwb-brand .woocommerce-loop-product__title a,
.tax-pwb-brand .name a,
.tax-brand .woocommerce-loop-product__title a,
.tax-brand .name a,
.tax-product_brand .woocommerce-loop-product__title a,
.tax-product_brand .name a,
.tax-yith_product_brand .woocommerce-loop-product__title a,
.tax-yith_product_brand .name a {
  color: inherit !important;
  text-decoration: none !important;
}

@media (max-width: 767px) {
  .tax-pwb-brand .woocommerce-loop-product__title,
  .tax-pwb-brand .name,
  .tax-brand .woocommerce-loop-product__title,
  .tax-brand .name,
  .tax-product_brand .woocommerce-loop-product__title,
  .tax-product_brand .name,
  .tax-yith_product_brand .woocommerce-loop-product__title,
  .tax-yith_product_brand .name {
    font-size: 13px !important;
  }
}

/* ---- 7) Meta ---- */
.tax-pwb-brand .softvn-product-meta,
.tax-brand .softvn-product-meta,
.tax-product_brand .softvn-product-meta,
.tax-yith_product_brand .softvn-product-meta {
  margin-top: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.01em;
  text-align: center;
  transition: color 0.2s ease;
}

.tax-pwb-brand .product .box:hover .softvn-product-meta,
.tax-brand .product .box:hover .softvn-product-meta,
.tax-product_brand .product .box:hover .softvn-product-meta,
.tax-yith_product_brand .product .box:hover .softvn-product-meta {
  color: #64748b;
}

/* ---- 8) Hover CTA ---- */
.tax-pwb-brand .price,
.tax-brand .price,
.tax-product_brand .price,
.tax-yith_product_brand .price {
  min-height: 20px;
  margin: 0;
  font-size: 0 !important;
  line-height: 0 !important;
}

.tax-pwb-brand .price *,
.tax-pwb-brand .price del,
.tax-pwb-brand .price .from,
.tax-pwb-brand .price small,
.tax-pwb-brand .price ins,
.tax-pwb-brand .woocommerce-Price-amount,
.tax-brand .price *,
.tax-brand .price del,
.tax-brand .price .from,
.tax-brand .price small,
.tax-brand .price ins,
.tax-brand .woocommerce-Price-amount,
.tax-product_brand .price *,
.tax-product_brand .price del,
.tax-product_brand .price .from,
.tax-product_brand .price small,
.tax-product_brand .price ins,
.tax-product_brand .woocommerce-Price-amount,
.tax-yith_product_brand .price *,
.tax-yith_product_brand .price del,
.tax-yith_product_brand .price .from,
.tax-yith_product_brand .price small,
.tax-yith_product_brand .price ins,
.tax-yith_product_brand .woocommerce-Price-amount {
  display: none !important;
}

.tax-pwb-brand .price::after,
.tax-brand .price::after,
.tax-product_brand .price::after,
.tax-yith_product_brand .price::after {
  content: "Xem chi tiết ↗";
  display: inline-block;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: #64748b;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease;
}

.tax-pwb-brand ul.products li.product:hover .price::after,
.tax-pwb-brand .products .product:hover .price::after,
.tax-pwb-brand ul.products li.product .box:hover .price::after,
.tax-pwb-brand .products .product .box:hover .price::after,
.tax-brand ul.products li.product:hover .price::after,
.tax-brand .products .product:hover .price::after,
.tax-brand ul.products li.product .box:hover .price::after,
.tax-brand .products .product .box:hover .price::after,
.tax-product_brand ul.products li.product:hover .price::after,
.tax-product_brand .products .product:hover .price::after,
.tax-product_brand ul.products li.product .box:hover .price::after,
.tax-product_brand .products .product .box:hover .price::after,
.tax-yith_product_brand ul.products li.product:hover .price::after,
.tax-yith_product_brand .products .product:hover .price::after,
.tax-yith_product_brand ul.products li.product .box:hover .price::after,
.tax-yith_product_brand .products .product .box:hover .price::after {
  opacity: 1;
  transform: translateY(0);
  color: #f1592b !important;
}

/* ---- 9) Hide noise ---- */
.tax-pwb-brand .image-tools,
.tax-pwb-brand .quick-view,
.tax-pwb-brand .wishlist-icon,
.tax-pwb-brand .star-rating,
.tax-pwb-brand .onsale,
.tax-pwb-brand .softvn-card-footer,
.tax-pwb-brand .softvn-loop-contact-order-wrap,
.tax-pwb-brand .add-to-cart-button,
.tax-pwb-brand .cart,
.tax-brand .image-tools,
.tax-brand .quick-view,
.tax-brand .wishlist-icon,
.tax-brand .star-rating,
.tax-brand .onsale,
.tax-brand .softvn-card-footer,
.tax-brand .softvn-loop-contact-order-wrap,
.tax-brand .add-to-cart-button,
.tax-brand .cart,
.tax-product_brand .image-tools,
.tax-product_brand .quick-view,
.tax-product_brand .wishlist-icon,
.tax-product_brand .star-rating,
.tax-product_brand .onsale,
.tax-product_brand .softvn-card-footer,
.tax-product_brand .softvn-loop-contact-order-wrap,
.tax-product_brand .add-to-cart-button,
.tax-product_brand .cart,
.tax-yith_product_brand .image-tools,
.tax-yith_product_brand .quick-view,
.tax-yith_product_brand .wishlist-icon,
.tax-yith_product_brand .star-rating,
.tax-yith_product_brand .onsale,
.tax-yith_product_brand .softvn-card-footer,
.tax-yith_product_brand .softvn-loop-contact-order-wrap,
.tax-yith_product_brand .add-to-cart-button,
.tax-yith_product_brand .cart {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

/* ---- 10) Pulse dot ---- */
.tax-pwb-brand .product .box::before,
.tax-pwb-brand .product .box::after,
.tax-pwb-brand .product .box .box-image::before,
.tax-pwb-brand .product .box .box-image::after,
.tax-brand .product .box::before,
.tax-brand .product .box::after,
.tax-brand .product .box .box-image::before,
.tax-brand .product .box .box-image::after,
.tax-product_brand .product .box::before,
.tax-product_brand .product .box::after,
.tax-product_brand .product .box .box-image::before,
.tax-product_brand .product .box .box-image::after,
.tax-yith_product_brand .product .box::before,
.tax-yith_product_brand .product .box::after,
.tax-yith_product_brand .product .box .box-image::before,
.tax-yith_product_brand .product .box .box-image::after {
  content: none !important;
  display: none !important;
}

.tax-pwb-brand .product .box:hover > .box-image::after,
.tax-brand .product .box:hover > .box-image::after,
.tax-product_brand .product .box:hover > .box-image::after,
.tax-yith_product_brand .product .box:hover > .box-image::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: #f1592b !important;
  z-index: 9999 !important;
  pointer-events: none !important;
  animation: softvnPulseInset 1.8s ease-out infinite !important;
}

/* ---- 11) Pagination ---- */
.tax-pwb-brand nav.woocommerce-pagination,
.tax-brand nav.woocommerce-pagination,
.tax-product_brand nav.woocommerce-pagination,
.tax-yith_product_brand nav.woocommerce-pagination {
  margin-top: 8px;
}

.tax-pwb-brand nav.woocommerce-pagination ul,
.tax-brand nav.woocommerce-pagination ul,
.tax-product_brand nav.woocommerce-pagination ul,
.tax-yith_product_brand nav.woocommerce-pagination ul {
  border: none;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.tax-pwb-brand nav.woocommerce-pagination ul li,
.tax-brand nav.woocommerce-pagination ul li,
.tax-product_brand nav.woocommerce-pagination ul li,
.tax-yith_product_brand nav.woocommerce-pagination ul li {
  border: none;
}

.tax-pwb-brand nav.woocommerce-pagination ul li a,
.tax-pwb-brand nav.woocommerce-pagination ul li span,
.tax-brand nav.woocommerce-pagination ul li a,
.tax-brand nav.woocommerce-pagination ul li span,
.tax-product_brand nav.woocommerce-pagination ul li a,
.tax-product_brand nav.woocommerce-pagination ul li span,
.tax-yith_product_brand nav.woocommerce-pagination ul li a,
.tax-yith_product_brand nav.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #e5ebf3;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-weight: 700;
  text-decoration: none;
}

.tax-pwb-brand nav.woocommerce-pagination ul li a:hover,
.tax-brand nav.woocommerce-pagination ul li a:hover,
.tax-product_brand nav.woocommerce-pagination ul li a:hover,
.tax-yith_product_brand nav.woocommerce-pagination ul li a:hover {
  background: #f8fafc;
}

.tax-pwb-brand nav.woocommerce-pagination ul li .current,
.tax-brand nav.woocommerce-pagination ul li .current,
.tax-product_brand nav.woocommerce-pagination ul li .current,
.tax-yith_product_brand nav.woocommerce-pagination ul li .current {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}