.right-pro-detail .category a {
    font-weight: 600;
    color: #333;
    text-decoration: none;
}
.owl-item .product-wrap {
  padding-bottom: 20px;
  margin-left: 1px;
  margin-right: 1px;
}

.wrap-product {
  margin-bottom: 50px;
}

.product-wrap {
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.product .percent {
  z-index: 3;
  color: red;
  text-align: center;
  border-radius: 100%;
  font-size: 13px;
  top: 10px;
  right: 10px;
  display: block;
  font-weight: bold;
}

.rating[data-rating="1"]::after {
  width: 20%;
}

.rating[data-rating="2"]::after {
  width: 40%;
}

.rating[data-rating="3"]::after {
  width: 60%;
}

.rating[data-rating="4"]::after {
  width: 80%;
}

.rating[data-rating="5"]::after {
  width: 100%;
}

.rating::after {
  content: "............";
  letter-spacing: 3px;
  color: #f8ba00;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  pointer-events: none;
}

.rating::before {
  content: "";
  letter-spacing: 3px;
}

.rating {
  position: relative;
  color: #ccc;
  display: inline-block;
}

.product:hover:after {
  opacity: 1;
}

.product:after {
  background: linear-gradient(225.24deg, #f0bf29 -19.81%, #f05226 77.87%);
  transition: 0.4s ease all;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  content: "";
  z-index: -1;
  opacity: 0;
}

.product {
  transition: 0.4s ease all !important;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.product .product-actions {
  text-align: center;
  margin: 5px 0;
}

.product .info-product .link {
  text-align: center;
}

.product .info-product .link a:after {
  content: "";
  background: #333;
  width: 80%;
  height: 1px;
  position: absolute;
  top: 0;
  left: 10%;
}

.product .info-product .link a {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 13px;
  color: #333;
  display: inline-block;
  position: relative;
  text-decoration: none;
  padding-top: 10px;
  margin-top: 10px;
}

.product .info-product .sku {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 5px;
}

.product .info-product {
  padding: 0 15px;
}

.product .info-product .sku {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 5px;
}

/* ========================================
   BLOCK PRODUCT - Sản phẩm nổi bật
======================================== */

.block-product {
  background: #fff;
}

.block-product .product-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
}

.block-product .product-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0.5rem;
  background: #f8f8f8;
  border-radius: 50px;
  position: relative;
}

/* Tab Indicator */
.block-product .product-tabs::before {
  content: "";
  position: absolute;
  left: var(--indicator-left, 0);
  width: var(--indicator-width, 0);
  height: calc(100% - 1rem);
  background: linear-gradient(270deg, #f0bf29 -91.06%, #f05226 100%);
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  top: 0.5rem;
  pointer-events: none;
}

.block-product .product-tab {
  padding: 0.75rem 2rem;
  border: none;
  background: transparent;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.block-product .product-tab:hover {
  color: #333;
}

.block-product .product-tab.active {
  color: #fff;
  font-weight: 600;
}

.block-product .products-grid {
  min-height: 150px;
}

/* Product Card Fade In Animation */
.block-product .product-wrap {
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #f05226;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for each product */
.block-product .product-wrap:nth-child(1) {
  animation-delay: 0.1s;
}

.block-product .product-wrap:nth-child(2) {
  animation-delay: 0.15s;
}

.block-product .product-wrap:nth-child(3) {
  animation-delay: 0.2s;
}

.block-product .product-wrap:nth-child(4) {
  animation-delay: 0.25s;
}

.block-product .product-wrap:nth-child(5) {
  animation-delay: 0.3s;
}

.block-product .product-wrap:nth-child(6) {
  animation-delay: 0.35s;
}

.block-product .product-wrap:nth-child(7) {
  animation-delay: 0.4s;
}

.block-product .product-wrap:nth-child(8) {
  animation-delay: 0.45s;
}

.block-product .product-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(240, 82, 38, 0.15);
}

/* Loading State */
.block-product .products-grid.loading {
  position: relative;
  pointer-events: none;
}

.block-product .products-grid.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #f05226;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.product .box-product {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid var(--primary);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: 0.5s ease;
}

.product .box-product::after {
  display: none;
}

.product .name-product {
  text-align: center;
  margin: 0.75rem 0;
  min-height: 42px;
}

.product .name-product a {
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product .name-product a:hover {
  color: var(--primary);
}

.product .product-actions {
  margin-top: auto;
  padding-bottom: 10px;
}

.product:hover .product-actions .view-product {
  border-color: #fff;
}

.product .product-actions .view-product {
  display: block;
  width: 100%;
  padding: 0.55rem 1.5rem;
  background: linear-gradient(270deg, #f0bf29 -91.06%, #f05226 100%);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.product .btn-view-more {
  display: inline-block;
  padding: 0.875rem 3rem;
  background: linear-gradient(270deg, #f0bf29 -91.06%, #f05226 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.product .btn-view-more:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(240, 82, 38, 0.3);
}

/* Responsive */
@media (max-width: 991.98px) {
  .block-product .products-grid {
    /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
    /* gap: 1rem; */
  }

  .block-product .product-tab {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .product .product-actions .view-product {
    padding: 0.35rem 0.5rem;
  }
  .block-product .product-tabs::before {
    display: none;
  }
  .block-product .products-grid {
    /* grid-template-columns: repeat(2, 1fr); */
    /* gap: 0.75rem; */
  }

  .block-product .product-tabs {
    gap: 0.5rem;
    padding: 0.25rem;
    /* background: transparent; */
  }
  .block-product .product-tab.active {
    color: var(--primary);
  }
  .block-product .product-tab {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .block-product .product-actions .view-product {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .block-product .btn-view-more {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .block-product .product-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    gap: 20px;
  }

  .block-product .product-tabs::-webkit-scrollbar {
    display: none;
  }
}

.product .info-product .attr {
}

.product .info-product .attr span {
}

.product .info-product .attr .status {
  background: url(../images/new.svg) no-repeat center left;
  padding-left: 20px;
}

.product .info-product .attr .brand {
  background: url(../images/conf.svg) no-repeat center left;
  padding-left: 11px;
}

.product .info-product .attr .location {
  background: url(../images/location.svg) no-repeat center left;
  padding-left: 10px;
}

.product .link {
  padding: 10px;
  padding-top: 0;
}

.product .link a {
  color: var(--primary);
  text-decoration: none;
}

.product:nth-child(4n) {
  margin-right: 0px;
}

.product:hover .box-product .view {
  opacity: 1;
  left: calc(50% - 45px);
}

.product:hover .box-product .cart-add {
  opacity: 1;
  bottom: 0;
}

.box-product .view {
  display: block;
  background: var(--primary);
  color: #fff;
  left: calc(50% - 60px);
  position: absolute;
  bottom: calc(50% - 20px);
  opacity: 0;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
}

.box-product .cart-add {
  display: block;
  background: red;
  color: #fff;
  left: 0;
  position: absolute;
  bottom: -15px;
  opacity: 0;
  width: 100%;
  text-align: center;
  font-weight: bold;
  padding: 5px 0;
}

.box-product .cart-add span {
  background: url(../images/cart-add.png) no-repeat;
  width: 18px;
  height: 16px;
  display: inline-block;
}

.box-product:after {
  content: "";
  background: url("../images/bg-product.png") no-repeat center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 122;
  background-size: 100% 100%;
  overflow: hidden;
}

.box-product img {
  z-index: 1;
}

.box-product {
  position: relative;
  display: block;
  overflow: hidden;

  transform: translateZ(0);
}

.box-product .stic {
  color: transparent;
  font-size: 15px;
  position: absolute;
  top: 10px;
  right: 3px;
}

.box-product .stic .hot {
  background: url(../images/stick-hot.png) no-repeat;
  background-size: cover;
  display: inline-block;
  width: 30px;
}

.box-product .stic .new {
  background: url(../images/stick-new.png) no-repeat;
  background-size: cover;
  display: inline-block;
  margin-left: 10px;
  width: 30px;
}

.product-wrap:hover .pic-product {
  background-size: 110%;
}

.pic-product {
  background: #fff;
  padding: 0;
  transition: 0.4s ease;
  margin-bottom: 0;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 110%;
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.5s ease !important;
  -webkit-transition: all 0.5s ease !important;
  -moz-transition: all 0.5s ease !important;
  -ms-transition: all 0.5s ease !important;
  -o-transition: all 0.5s ease !important;
}

.pic-product img {
  width: 100%;
  margin: 0 !important;
}

.product:hover .name-product a {
  color: #fff;
}

.name-product a {
  transition: 0.5s ease;
  color: var(--primary);
  font-weight: 600;
  height: 42px !important;
  display: block;
}

.name-product span {
  position: relative;
  display: block;
}

.name-product span i {
  position: absolute;
  right: -29px;
  top: calc(50% - 10px);
}

.name-product {
  font-size: 16px;
  margin: 5px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* number of lines to show */
  line-height: 20px;
  /* fallback */
  /* fallback */
  font-size: 1rem;
  bottom: 40px;
  left: 0;
  width: 100%;
  font-weight: bold;
  font-weight: 500;
  margin-bottom: 0;
  text-align: center;
}

.pagination-home {
  padding-bottom: 15px;
}

.name-product.text-split {
  -webkit-line-clamp: 1;
}

.price-product a {
  background: var(--primary);
  color: #fff;
  font-weight: normal;
  font-size: 1rem;
  padding: 5px 20px;
  transition: 0.4s ease;
  border-radius: 30px;
  text-decoration: none;
  border: 2px solid var(--primary);
}

.price-product a:hover {
  background: transparent;
  color: var(--primary);
  transform: scale(1.05);
}

.price-product {
  margin-bottom: 0px;
  font-weight: normal;
  font-size: 1rem;
  color: #333;
  font-weight: bolder;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.price-product span span {
  color: #254daf;
  font-weight: 500;
}

.price-old-1 {
  display: inline-block;
  padding: 0 4px;
  font-weight: 500;
  text-decoration: line-through;
  font-size: 12px;
}

.price-new-1 {
  display: inline-block;
  padding: 0 4px;
  font-weight: 500;
}

.price-old {
  padding-left: 10px;
  font-size: 0.9rem;
  text-decoration: line-through;
  color: #6b6b6b;
}

.price-per {
  position: absolute;
  top: 5px;
  left: 0px;
  color: #111;
  background: #ffd200;
  font-size: 13px;
  border-radius: 2px;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  background-size: cover;
  border-radius: 50%;
  font-weight: bold;
}

.grid-pro-detail {
  margin-bottom: 20px;
}

.left-pro-detail {
  position: relative;
  float: left;
  width: 40%;
  text-align: center;
  margin-right: 2%;
  background: white;
}

.gallery-pro-vertical {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.gallery-thumb-pro {
  position: relative;
  flex: 0 0 90px;
  max-width: 90px;
  height: 100%;
  overflow: visible;
}

.gallery-thumb-pro .swiper-thumb-pro {
  height: auto;
}

.gallery-thumb-pro .swiper-slide {
  width: 100% !important;
  height: auto !important;
}

.gallery-thumb-pro .thumb-pro-detail {
  display: block;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}

.gallery-thumb-pro .thumb-pro-detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb-pro .thumb-pro-detail.mz-thumb.mz-thumb-selected {
  border-color: var(--primary);
  opacity: 1;
}

.gallery-thumb-pro .thumb-pro-detail.mz-thumb {
  opacity: 0.6;
}

.gallery-thumb-pro .thumb-pro-detail:hover {
  opacity: 1;
}

.gallery-main {
  flex: 1;
  position: relative;
}

.gallery-main .thumb-prev,
.gallery-main .thumb-next {
  position: absolute;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s ease, color 0.3s ease;
}

.gallery-main .thumb-prev:hover,
.gallery-main .thumb-next:hover {
  background: var(--primary);
  color: #fff;
}

.gallery-main .thumb-prev {
  /* top: 15px; */
}

.gallery-main .thumb-next {
  /* bottom: 15px; */
}

.gallery-main .MagicZoom {
  display: block;
}

.gallery-main .MagicZoom img {
  width: 100%;
  border-radius: 10px;
}

.left-pro-detail .next-sli {
  position: absolute;
  top: calc(50% - 30px);
  right: 0;
  z-index: 123;
  font-size: 26px;
  color: #c06615;
  cursor: pointer;
}

.left-pro-detail .prev-sli {
  position: absolute;
  top: calc(50% - 30px);
  left: 0;
  z-index: 123;
  font-size: 26px;
  color: #c06615;
  cursor: pointer;
}

.left-pro-detail .MagicZoom {
}

.right-pro-detail {
  width: calc(100% - 42%);
  float: left;
  border-radius: 5px;
  padding-bottom: 0;
  background: #fff;
}

.owl-thumb-pro {
  padding: 0px 40px;
}

.thumb-pro-detail.mz-thumb.mz-thumb-selected {
  border-color: #cecfd2;
}

.thumb-pro-detail img {
  box-shadow: none !important;
  filter: brightness(100%) !important;
  border-bottom: 0px !important;
  padding-bottom: 0px !important;
}

.title-pro-detail {
  display: block;
  font-size: 24px;
  line-height: 1.6;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.has-hover [class*="image-"] img {
  transition: filter 0.6s, opacity 0.6s, transform 0.6s, box-shadow 0.3s;
}

img.back-image {
  bottom: 0;
  height: 100%;
  left: 0;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: 50% 50%;
  object-position: 50% 50%;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  opacity: 0;
}

.has-hover:hover img.show-on-hover {
  opacity: 1;
}

@media (min-width: 1200px) {
  .col-product {
    width: 20%;
    flex: 0 0 20%;
  }
}

.thumb-pro-detail.mz-thumb {
  padding: 2px;
  border: 1px solid #cccccce8;
  opacity: 0.4;
  transition: 0.4s ease;
  border-radius: 3px;
}

.thumb-pro-detail.mz-thumb.mz-thumb-selected {
  opacity: 1;
}

@media (max-width: 768px) {
  .gallery-pro-vertical {
    flex-direction: column;
  }

  .gallery-thumb-pro {
    order: 2;
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    margin-top: 15px;
  }

  .gallery-thumb-pro .swiper-thumb-pro {
    height: auto;
  }

  .gallery-thumb-pro .swiper-slide {
    width: auto !important;
  }

  .gallery-main .thumb-prev,
  .gallery-main .thumb-next {
    width: 32px;
    height: 32px;
    right: 10px;
  }

  .gallery-main .thumb-prev {
    top: 10px;
  }

  .gallery-main .thumb-next {
    bottom: 10px;
  }

  .product .product-actions a {
    padding: 5px 14px;
    font-size: 14px;
  }

  .product-wrap {
    border-radius: 10px;
  }

  .name-product {
    font-size: 1rem;
    bottom: 10px;
  }

  .price-product a {
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
  }

  .name-product a {
  }

  .product .rating ~ p {
    font-size: 0.9rem;
  }
}

.product-description-tab .nav {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0px;
  display: flex;
  width: 100%;
  padding-bottom: 1px;
}

.product-description-tab .nav li {
  position: relative;
  display: block;
}

.product-description-tab .nav li.active a,
.product-description-tab .nav li:hover a {
  cursor: pointer;
  background-color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .product-description-tab .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    gap: 20px;
  }

  .product-description-tab .nav li {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .box-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .box-filter::-webkit-scrollbar {
    display: none;
  }

  .box-filter a {
    flex: 0 0 auto;
    padding: 5px 10px !important;
    font-size: 14px !important;
  }
}

.luu-y {
  border: 1px solid #ebebeb;
  padding: 10px 12px;
  position: relative;
  margin-top: 20px;

  font-size: 14px;
}

.luu-y span.title {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  display: inline-block;
  position: absolute;
  left: 49px;
  top: -14px;
  color: var(--primary);
  padding: 0 14px;
  background-color: #fff;
  text-transform: uppercase;
}

/* Product Detail Tabs */
.product-description-tab .border-top {
  border-top: 1px solid #eee !important;
}

.product-description-tab .border-bottom {
  border-bottom: 1px solid #eee !important;
}

.tab-style {
  border: none;
  display: flex;
  justify-content: space-between;
  gap: 0;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.tab-style li {
  flex: 1;
  text-align: center;
}

.tab-style li a {
  display: block;
  padding: 11px 0;
  font-size: 17px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: none;
  transition: all 0.3s;
  background: transparent !important;
  border-top: none;
  border-left: none;
  border-right: none;
  position: relative;
}

.tab-style li a::before,
.tab-style li a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 0;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.tab-style li a::before {
  right: 50%;
}

.tab-style li a::after {
  left: 50%;
}

.tab-style li a:hover,
.tab-style li.active a {
  color: var(--primary);
}

.tab-style li a:hover::before,
.tab-style li.active a::before,
.tab-style li a:hover::after,
.tab-style li.active a::after {
  width: 50%;
}

.content-tabs-pro-detail {
  display: none;
  padding-top: 20px;
}

.content-tabs-pro-detail.active {
  display: block;
  animation: fadeIn 0.5s;
}

@media (max-width: 768px) {
  .tab-style {
    flex-wrap: wrap;
  }

  .tab-style li {
    flex: auto;
    /* width: 100%; */
  }

  .tab-style li a {
    font-size: 12px;
    padding: 10px 0;
  }
}
