/* Service Mobile Swiper Styles */
.service-mobile-swiper-container {
    padding: 0 15px;
}

.service-mobile-swiper .swiper-slide {
    height: auto;
}

.service-mobile-swiper .service-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.service-mobile-swiper .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #007bff;
}

.service-mobile-swiper .service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px !important;
}

.service-mobile-swiper .service-icon img {
    max-width: 60px !important;
    height: auto;
    transition: transform 0.3s ease;
}

.service-mobile-swiper .service-item:hover .service-icon img {
    transform: scale(1.1);
}

.service-mobile-swiper .service-title {
    font-size: 16px !important;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px !important;
    line-height: 1.4;
}

.service-mobile-swiper .service-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 0;
}

.service-mobile-swiper-pagination {
    position: relative !important;
    margin-top: 20px !important;
}

.service-mobile-swiper-pagination .swiper-pagination-bullet {
    background: #ddd;
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 4px !important;
}

.service-mobile-swiper-pagination .swiper-pagination-bullet-active {
    background: #007bff;
    transform: scale(1.2);
}

/* Related Products Swiper Styles */
.related-products-swiper-container {
  position: relative;
  padding: 0 50px;
}

.related-products-swiper .swiper-slide {
  padding: 0 10px;
  padding-bottom: 30px;
}
.related-products-swiper-button-prev:after,
.related-products-swiper-button-next:after {display:none}
.related-products-swiper-button-prev,
.related-products-swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #666;
  font-size: 16px;
}

.related-products-swiper-button-prev:hover,
.related-products-swiper-button-next:hover {
  background: var(--main-color, #007bff);
  border-color: var(--main-color, #007bff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.related-products-swiper-button-prev {
  left: 10px;
}

.related-products-swiper-button-next {
  right: 10px;
}

.related-products-swiper-button-prev.swiper-button-disabled,
.related-products-swiper-button-next.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .related-products-swiper-container {
    padding: 0 35px;
  }
  
  .related-products-swiper-button-prev,
  .related-products-swiper-button-next {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .related-products-swiper-button-prev {
    left: 5px;
  }
  
  .related-products-swiper-button-next {
    right: 5px;
  }
}

@media (max-width: 576px) {
  .related-products-swiper-container {
    padding: 0 30px;
  }
  
  .related-products-swiper-button-prev,
  .related-products-swiper-button-next {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  
  .related-products-swiper-button-prev {
    left: 2px;
  }
  
  .related-products-swiper-button-next {
    right: 2px;
  }
}

/* Alternative: Nếu muốn dùng zoom (không khuyến khích) */
/*
@media (max-width: 576px) {
  .related-products-swiper-container {
    zoom: 0.85;
    transform-origin: center top;
  }
}
*/

.owl-item .product-wrap{
  padding-bottom: 20px;
  margin-left: 1px;
  margin-right: 1px;
}
.wrap-product {
  margin-bottom: 50px;
}
.product-wrap{
    height: 100%;
    /* border: 1px solid #cccccc80; */
    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 {}
.product {
  transition: 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: stretch;
  min-height: 100%;
  justify-content: space-between;
}
.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 5px;padding: 10px;}
.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 {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.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: red;}
.name-product a{
  transition:0.5s ease;
  color: #111;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
}
  .name-product span{
    position: relative;
    display: block;
}
  .name-product span i{
    position: absolute;
    right: -29px;
    top: calc(50% - 10px);
}
.name-product {
  text-align: center;
  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: 0.9rem;
  bottom: 40px;
  left: 0;
  width: 100%;
  font-weight: bold;
  font-weight: 500;
}
.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);
}
.product .btn-view-detail{
    background: var(--primary);
    color: #fff;
    border-radius: 0;
}
.price-product {
  margin-bottom: 0px;
  font-weight: normal;
  font-size: 1rem;
  color: #D40000;
  font-weight: bolder;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.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;
}
.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;
  padding: 15px;
  border-radius: 5px;
  padding-bottom: 0;
  background: #fff;
}
.gallery-thumb-pro {
  position: relative;
  margin-top: 10px;
}
.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 .6s, opacity .6s, transform .6s, box-shadow .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;
}
/* Product Navigation Styles */
#nav-product {
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0;
}

#nav-product ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

#nav-product ul li {
  margin: 0;
  flex: 1;
  min-width: 0;
}

#nav-product ul li a {
  display: block;
  padding: 15px 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #666;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#nav-product ul li a:hover {
  color: var(--primary);
  background-color: #f8f9fa;
}

#nav-product ul li a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background-color: #fff;
}

#nav-product ul li a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary);
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Responsive navigation */
@media (max-width: 768px) {
  #nav-product {
    position: inherit !important;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
  }
  
  #nav-product::-webkit-scrollbar {
    height: 4px;
  }
  
  #nav-product::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }
  
  #nav-product::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
  }
  
  #nav-product::-webkit-scrollbar-thumb:hover {
    background: #999;
  }
  
  #nav-product ul {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    min-width: max-content;
    justify-content: flex-start;
  }
  
  #nav-product ul li {
    flex: none;
    white-space: nowrap;
    min-width: auto;
  }
  
  #nav-product ul li a {
    padding: 12px 20px;
    font-size: 13px;
    text-align: center;
    border-bottom: 3px solid transparent;
    border-right: none;
    white-space: nowrap;
    min-width: 120px;
    display: inline-block;
  }
  
  #nav-product ul li a.active {
    border-bottom-color: var(--primary);
    background-color: #f8f9fa;
  }
  
  #nav-product ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary);
  }
}

@media (max-width: 576px) {
  #nav-product ul li a {
    padding: 10px 16px;
    font-size: 12px;
    min-width: 100px;
  }
}

/* Service Section Styles */
.service-item {
  padding: 30px 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid #f0f0f0;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.service-icon img {
  transition: all 0.3s ease;
  filter: brightness(1);
}

.service-item:hover .service-icon img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

.service-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
  text-align: justify;
}

/* Responsive adjustments */
@media(max-width:768px){
  .product .btn-view-detail{
    padding: 5px 10px;
    font-size: 0.8rem;
}
  .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;
  }
  
  .service-item {
    padding: 20px 15px;
    margin-bottom: 20px;
  }
  
  .service-title {
    font-size: 18px;
  }
  
  .service-desc {
    font-size: 13px;
  }
}