/*
 * Main custom stylesheet
 * Load after style.css. Put new UI overrides and section-specific CSS here.
 * Keep selectors scoped to each section to avoid affecting old CMS layout.
 *
 * CSS comment rule:
 * Use CSS comments only: /* ... *\/
 * Do not use // comments in .css files.
 * Mark every new block with the screen/section and related template file.
 *
 * Example:
 * /* Section: Menu | File: templates/layout/menu.php *\/
 * .menu-main { ... }
 */

/* Section: Home difference | File: templates/index/index_tpl.php */

.difference-title span {
  display: inline-block;
  position: relative;
  font-size: 30px;
  font-weight: 600;
  color: #111827;
}

.difference-title span::after {
  content: "";
  display: block;
  width: 200px;
  height: 5px;
  margin: 10px auto 0;
  background: #181c23;
  border-radius: 999px;
}
/* Section: Home reasons | File: templates/index/index_tpl.php */

.reason-title {
  text-align: center;
  margin-bottom: 40px;
}

.reason-title span {
  position: relative;
  display: inline-block;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

/* line trắng dưới title */
.reason-title span::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background: #fff;
  margin: 10px auto 0;
  border-radius: 4px;
}
.reason-card {
  width: 276px;
}

.reason-card-inner {
  position: relative;
  background: #fff;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* góc trái dưới */
.reason-card-inner::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-left: 3px solid #5603d7;
  border-bottom: 3px solid #5603d7;
  left: 10px;
  bottom: 10px;
}

/* góc phải trên */
.reason-card-inner::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  border-right: 3px solid #fb7bce;
  border-top: 3px solid #fb7bce;
  right: 10px;
  top: 10px;
}
/* ===== OUTER RUNNING BORDER ===== */

/* line chạy ngoài */
/* Section: Reason card auto border | File: templates/index/index_tpl.php */
/* card nằm trên */
/* animation chạy */
.reason-icon img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}
.reason-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.reason-section {
  position: relative;
  overflow: hidden;
  padding: 40px 360px;

  background:
    linear-gradient(
      180deg,
      rgba(229, 49, 246, 0.88) 0%,
      rgba(86, 3, 215, 0.92) 100%
    ),
    url("../images/lydochonchungtoi.jpg") no-repeat center;

  background-size: cover;
}

/* ánh sáng trên */
.reason-section::before {
  content: "";
  position: absolute;
  top: -250px;
  left: 50%;
  transform: translateX(-50%);

  width: 900px;
  height: 900px;

  background: rgba(255, 255, 255, 0.08);
  filter: blur(140px);
  border-radius: 50%;

  z-index: 1;
}

/* glow góc phải */
.reason-section::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;

  width: 500px;
  height: 500px;

  background: rgba(255, 255, 255, 0.06);
  filter: blur(120px);
  border-radius: 50%;

  z-index: 1;
}
/* ===== AUTO EFFECT REASON SECTION ===== */

/* background move */
.reason-section {
  animation: reasonBgMove 14s ease-in-out infinite alternate;
}

/* ánh sáng lớn chạy */
.reason-section::before {
  animation: reasonGlowMove 10s ease-in-out infinite alternate;
}

/* glow góc phải */
.reason-section::after {
  animation: reasonGlowPulse 7s ease-in-out infinite;
}

/* card floating */
.reason-card {
  animation: reasonFloat 4s ease-in-out infinite;
}

/* delay mỗi card */
.reason-card:nth-child(2) {
  animation-delay: 0.4s;
}

.reason-card:nth-child(3) {
  animation-delay: 0.8s;
}

.reason-card:nth-child(4) {
  animation-delay: 1.2s;
}

/* icon breathing */
.reason-icon img {
  animation: reasonIconPulse 3.5s ease-in-out infinite;
}

/* ===== KEYFRAMES ===== */

@keyframes reasonBgMove {
  0% {
    background-position: center top;
  }

  100% {
    background-position: center bottom;
  }
}

@keyframes reasonGlowMove {
  0% {
    transform: translateX(-50%) translateY(0px) scale(1);
    opacity: 0.7;
  }

  100% {
    transform: translateX(-50%) translateY(40px) scale(1.12);
    opacity: 1;
  }
}

@keyframes reasonGlowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }

  50% {
    transform: scale(1.18);
    opacity: 0.8;
  }
}

@keyframes reasonFloat {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes reasonIconPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}
.reason-section .wrap-content {
  position: relative;
  z-index: 2;
}
/* line tím dưới title */
/* line nhỏ phụ như figma */
/* ===== FOOTER FIGMA ===== */

.footer-article {
  padding-top: 42px;
}

.footer-info {
  max-width: 435px;
  margin-top: 10px;

  font-size: 16px;
  line-height: 160%;
  color: #181c23;
}

.footer-working {
  margin-top: 8px;
  font-size: 16px;
  color: #111827;
}

.footer-working strong {
  font-weight: 700;
}

.footer-ul li {
  margin-bottom: 16px;
}

.footer-ul li a {
  font-size: 14px;
  line-height: 20px;
  color: #181c23;
}

/* ===== MENU FIGMA ===== */

.menu {
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.menu .wrap-content {
  max-width: 1200px;
}

/* menu chính */
.menu ul.menu-main {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 80px;
  min-height: 89px;
}

/* logo */
.logo-menu {
  margin-right: auto;
}

.logo-menu img {
  width: 189px;
  object-fit: contain;
}

/* item */
.menu ul.menu-main > li > a {
  padding: 0;

  color: #111827;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  text-transform: unset;
}

/* hover */
.menu ul.menu-main > li > a:hover,
.menu ul.menu-main > li > a.active {
  color: #c026d3;
}

/* search */
.menu ul.menu-main > li.ml-auto {
  margin-left: 0 !important;
}

/* chỉ hiện icon */
/* input hidden */
/* icon */
/* hover mở search */
/* ===== MENU SEARCH INLINE ===== */

.menu-search-box {
  width: 44px;
  height: 44px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  border-radius: 999px;
  background: transparent;

  transition: 0.3s ease;
}

.menu-search-box:hover,
.menu-search-box:focus-within {
  width: 260px;
  background: #fff;
  border: 1px solid #d1d5db;
}

.menu-search-box input {
  width: 0;
  height: 42px;

  border: 0;
  outline: none;
  background: transparent;

  padding: 0;
  font-size: 14px;

  opacity: 0;
  transition: 0.3s ease;
}

.menu-search-box:hover input,
.menu-search-box:focus-within input {
  width: 210px;
  padding-left: 16px;
  opacity: 1;
}

/* ===== MENU SEARCH BUTTON EFFECT ===== */

.menu-search-box button {
  position: relative;

  width: 44px;
  height: 44px;

  border: 0;
  background: transparent;

  color: #111827;
  font-size: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 44px;
  cursor: pointer;

  border-radius: 50%;
  overflow: hidden;

  transition: 0.3s ease;
}

/* icon */
.menu-search-box button i {
  position: relative;
  z-index: 2;

  transition: 0.35s ease;
}

/* glow nền */
.menu-search-box button::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: 50%;

  background: linear-gradient(135deg, #5603d7, #c026d3);

  opacity: 0;
  transform: scale(0.6);

  transition: 0.35s ease;
}

/* hover */
.menu-search-box:hover button::before,
.menu-search-box:focus-within button::before {
  opacity: 1;
  transform: scale(1);
}

/* icon animation */
.menu-search-box:hover button i,
.menu-search-box:focus-within button i {
  color: #fff;
  transform: rotate(90deg) scale(1.08);
}
/* ===== FOOTER FIGMA CLEAN ===== */

.footer {
  background: #fff;
}

.footer-article {
  padding: 42px 0 0;
}

.footer .padding-top-bottom {
  padding-top: 0;
  padding-bottom: 0;
}

.footer-news-info {
  max-width: 435px;
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  min-width: 232px;
  min-height: 89px;
  object-fit: contain;
}

.footer-info {
  color: #181c23;
  font-size: 16px;
  line-height: 160%;
}

.footer-info h1,
.footer-info h2,
.footer-info h3,
.footer-info p {
  margin: 0 0 8px;
  color: #181c23;
  font-size: 16px;
  line-height: 160%;
  font-weight: 400;
}

.footer-working {
  gap: 8px;
  margin-top: 12px;
  color: #111827;
  font-size: 16px;
  line-height: 160%;
}

.footer-working strong {
  font-weight: 700;
}

/* ===== FOOTER TITLE ===== */

.footer-title {
  position: relative;
  width: max-content;
  max-width: 220px;
  margin: 0 0 28px;
  color: #181c23;
  font-size: 16px;
  font-weight: 400;
  line-height: 23px;
  text-transform: uppercase;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 55px;
  height: 2px;
  background: #5603d7;
  border-radius: 999px;
}

.footer-title::before {
  content: "";
  position: absolute;
  left: 64px;
  bottom: -8px;
  width: 10px;
  height: 2px;
  background: #5603d7;
  border-radius: 999px;
}

/* ===== FOOTER LINKS ===== */

.footer-ul {
  padding: 0;
  margin: 0;
}

.footer-ul li {
  margin-bottom: 16px;
}

.footer-ul li a {
  color: #181c23;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  transition: 0.25s ease;
}

.footer-ul li a:hover {
  color: #5603d7;
  transform: translateX(3px);
}

/* ===== FOOTER BOTTOM ===== */

.footer-bottom {
  margin-top: 54px;
  padding: 10px 0;
  border-top: 1px solid #d1d5db;
}

.footer-copyright {
  color: #181c23;
  font-size: 12px;
  font-weight: 300;
  line-height: 14px;
}

/* ===== FOOTER SOCIAL ===== */

/* ===== FOOTER RESPONSIVE ===== */

@media (max-width: 991px) {
  .footer-article {
    padding-top: 32px;
  }

  .footer-news-info {
    max-width: 100%;
  }

  .footer-news-menu {
    margin-top: 8px;
  }

  .footer-bottom {
    margin-top: 36px;
    gap: 16px;
  }
}

/* Section: Product root categories | File: templates/product/product_root_category_tpl.php */
.product-root-category .product-root-category-card {
  height: 100%;
}

.product-root-category .product-root-category-btn {
  min-width: 137px;
  padding: 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 37px;
  text-align: center;
  text-indent: 0;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.product-root-category .product-root-category-btn:hover {
  color: #fff;
}

/* Section: Global media safety | File: multiple templates */
.slideshow img,
.vk-main-banner-link img,
.vk-trust-banner-item img,
.box-product .pic-product img,
.product-root-category .pic-product img,
.left-pro-detail img,
.gallery-thumb-pro img,
.footer-logo img,
.logo-menu img {
  display: block;
  max-width: 100%;
}
.product-card-new {
  width: 100%;
  max-width: 300px;
}
/* Root category product card */

.product-root-category-card {
  width: 100%;
  max-width: 300px;
}
/* Section: Header and footer logo | File: templates/layout/menu.php, templates/layout/footer.php */
.logo-menu img,
.footer-logo img {
  width: auto;
  min-width: 189px;
  min-height: 79px;
  object-fit: contain;
}

/* Section: Home slider | File: templates/layout/slide.php */
.slideshow,
.slideshow .owl-carousel,
.slideshow .owl-stage-outer,
.slideshow .owl-stage,
.slideshow .owl-item,
.slideshow-item,
.slideshow-image {
  width: 100%;
}

.slideshow {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 20px;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.08));
}

.slideshow-image {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 425;
  overflow: hidden;
  border-radius: 20px;
}

.slideshow-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slideshow-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Section: Home main banner | File: templates/index/index_tpl.php */
.vk-main-banner-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  padding: 0 0 24px;
  background: #fff;
}

.vk-main-banner-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.vk-main-banner-link {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 587;
  overflow: hidden;
  border-radius: 16px;
}

.vk-main-banner-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Section: Trust banners | File: templates/index/index_tpl.php */
.vk-trust-banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.vk-trust-banner-item {
  display: block;
  width: 100%;
  aspect-ratio: 528 / 150;
  overflow: hidden;
  border-radius: 12px;
}

.vk-trust-banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section: Product category cards | File: templates/index/index_tpl.php, templates/product/product_root_category_tpl.php */
.wrap-product .product-root-category-card .pic-product,
.product-root-category .pic-product,
.wrap-product .box-product .pic-product {
  width: 100%;
  overflow: hidden;
  background: #f6f6f6;
}

.wrap-product .product-root-category-card .pic-product,
.product-root-category .pic-product,
.wrap-product > .row .box-product .pic-product {
  aspect-ratio: 285 / 180;
}

/* .wrap-product .product-root-category-card .pic-product img,
.product-root-category .pic-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
} */

/* Section: Product list cards | File: templates/product/product_tpl.php, templates/product/product_detail_tpl.php */
.row-20 .box-product .pic-product {
  width: 257px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f6f6;
  height: 158px;
}

.row-20 .box-product .pic-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.left-pro-detail .MagicZoom {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #f3f4f6;
  min-height: 525px;
}

#popup-quickview .left-pro-detail .MagicZoom,
#popup-quickview .left-pro-detail .mz-figure {
  width: 100%;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  background: #f5f5f5;
  border-radius: 16px;
  overflow: hidden;
}
.left-pro-detail .MagicZoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  max-width: 570px !important;
}

.gallery-thumb-pro .thumb-pro-detail {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f6f6f6;
}

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

/* Responsive: Media <= 768px | File: multiple templates */
@media (max-width: 768px) {
  .slideshow-image,
  .vk-main-banner-link {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
  }

  .slideshow,
  .slideshow-image img,
  .vk-main-banner-link img {
    border-radius: 12px;
  }

  .vk-trust-banners {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vk-trust-banner-item {
    aspect-ratio: 528 / 150;
  }

  .logo-menu img,
  .footer-logo img {
    max-width: 150px;
    max-height: 58px;
  }
}
/* Section: Product list fixed card | File: templates/product/product_tpl.php */
.product-card-new {
  width: 285px;
  min-height: 327px;
  margin: 0 auto 28px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e6ebf2;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card-img {
  width: 257px;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: #f2f3f5;
  flex: 0 0 180px;
}

.product-card-img > a,
.product-card-img .scale-img {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card-img img {
  width: 257px !important;
  height: 180px !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  display: block;
}

.product-card-body {
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
}
.product-card-new h3 {
  margin: 0;
}

.product-card-new .name-product {
  display: -webkit-box;
  min-height: 44px;
  max-height: 44px;
  color: #061224;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: center;
}

.product-price-new-ui {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.product-price-label {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.product-price-new-ui .price-new {
  color: #ff1744;
  font-size: 18px;
}

.product-price-new-ui .price-old {
  color: #9ca3af;
  font-size: 13px;
}

.product-contact-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-contact-btn {
  height: 38px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 38px;
  text-align: center;
  text-decoration: none;
}

.product-contact-facebook {
  background: #1877f2;
}

.product-contact-zalo {
  background: #0068ff;
}

.product-card-new .product-tool {
  position: absolute;
  left: 0px;
  right: 16px;
  bottom: 0px;
  z-index: 5;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
}

.product-card-new:hover .product-tool {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.product-card-new .product-tool a {
  flex: 1;
  height: 34px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.product-sale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  background: #ff1744;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Responsive */
@media (max-width: 576px) {
  .product-card-new {
    width: 100%;
    height: 390px;
    padding: 10px;
  }

  .product-card-img {
    width: 100%;
    height: 150px;
    flex-basis: 150px;
  }

  .product-card-img img {
    width: 100% !important;
    height: 150px !important;
  }

  .product-card-new .name-product {
    font-size: 13px;
    min-height: 38px;
    max-height: 38px;
  }

  .product-price-new-ui .price-new {
    font-size: 15px;
  }

  .product-contact-btn {
    height: 34px;
    line-height: 34px;
    font-size: 12px;
  }

  .product-card-new .product-tool {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
/* Section: Product detail contact buttons | File: templates/product/product_detail_tpl.php */
.contact-pro-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.contact-pro-detail-btn {
  min-width: 170px;
  height: 44px;
  padding: 0 18px;

  border-radius: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;

  transition: 0.25s ease;
}

.contact-pro-detail-facebook {
  background: linear-gradient(135deg, #1877f2, #0f5fd3);
}

.contact-pro-detail-zalo {
  background: linear-gradient(135deg, #0068ff, #0052cc);
}

.contact-pro-detail-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.contact-pro-detail-btn i {
  font-size: 16px;
}

/* mobile */
@media (max-width: 576px) {
  .contact-pro-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-pro-detail-btn {
    width: 100%;
    min-width: unset;
  }
}

/* Section: Responsive redesign shell | Files: templates/layout/*.php, templates/index/*.php */
@media (max-width: 1199px) {
  .slideshow,
  .vk-main-banner-container,
  .vk-trust-container,
  .difference-section .wrap-content,
  .reason-section .wrap-content,
  .footer .wrap-content {
    width: calc(100% - 24px);
    max-width: 100%;
  }

  .slideshow {
    height: auto;
    aspect-ratio: 1200 / 425;
  }

  .vk-trust-box {
    padding: 26px 28px 28px;
  }

  .reason-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .reason-card {
    width: 100%;
  }
}

/* Section: Tablet layout | Files: templates/layout/menu.php, templates/index/index_tpl.php */
@media (max-width: 991px) {
  .w-menu {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }

  .menu-res {
    background: linear-gradient(135deg, #5603d7 0%, #c026d3 100%);
    box-shadow: 0 8px 20px rgba(86, 3, 215, 0.18);
  }

  .menu-bar-res {
    min-height: 60px;
    padding: 8px 14px;
  }

  .search-res .icon-search {
    width: 42px;
    height: 42px;
    line-height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
  }

  .search-res .search-grid {
    top: 48px;
    right: 0;
    height: 42px;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  }

  .search-res .search-grid input {
    height: 40px;
    padding-left: 14px;
    color: #111827;
  }

  .search-res .search-grid p {
    height: 40px;
    color: #5603d7;
  }

  .slideshow {
    margin-top: 10px;
    border-radius: 16px;
  }

  .slideshow-image,
  .slideshow-image img {
    border-radius: 16px;
  }

  .vk-trust-section {
    padding: 28px 0;
  }

  .vk-trust-title,
  .wrap-product .title-main span,
  .difference-section .difference-title span,
  .reason-title span {
    font-size: 26px;
    line-height: 1.35;
  }

  .vk-trust-subtitle {
    font-size: 19px;
    line-height: 1.45;
  }

  .vk-trust-pill {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1.45;
  }

  .difference-tabs {
    height: auto;
    padding: 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .difference-tabs button {
    flex: 0 0 240px;
    height: 56px;
    padding: 0 18px;
    font-size: 18px;
    scroll-snap-align: start;
  }

  .difference-tabs button.active {
    font-size: 19px;
  }

  .difference-content.active {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .difference-image img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .difference-text {
    max-width: 720px;
    margin: 0 auto;
  }

  .reason-list.row {
    row-gap: 18px;
  }

  .reason-card-inner {
    min-height: 100%;
    padding: 28px 18px;
  }

  .footer-main-row {
    row-gap: 26px;
  }

  .footer-news-info {
    max-width: 100%;
  }
}

/* Section: Mobile layout | Files: home, product, news, contact */
@media (max-width: 767px) {
  .slideshow,
  .vk-main-banner-container,
  .vk-trust-container,
  .difference-section .wrap-content,
  .reason-section .wrap-content,
  .footer .wrap-content {
    width: calc(100% - 20px);
  }

  .slideshow {
    aspect-ratio: 500 / 200;
    border-radius: 14px;
  }

  .control-slideshow {
    display: none;
  }

  .vk-main-banner-section {
    padding: 16px 0 22px;
  }

  .vk-main-banner-link {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: #f8fafc;
  }

  .vk-main-banner-link img {
    object-fit: cover;
    border-radius: 14px;
  }

  .vk-trust-box {
    min-height: unset;
    padding: 22px 14px 18px;
    border-width: 3px;
    border-radius: 16px;
  }

  .vk-trust-title {
    margin-bottom: 8px;
    font-size: 22px;
  }

  .vk-trust-subtitle {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .vk-trust-banners {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }

  .vk-trust-banner-item {
    height: auto;
    aspect-ratio: 528 / 150;
    border-radius: 14px;
  }

  .vk-trust-banner-item img {
    border-radius: 14px;
  }

  .vk-trust-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 8px;
    font-size: 15px;
    line-height: 1.45;
  }

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

  .wrap-product .title-main {
    margin-bottom: 20px;
  }

  .wrap-product .title-main span,
  .difference-section .difference-title span,
  .reason-title span {
    font-size: 22px;
    line-height: 1.35;
  }

  .wrap-product .title-main span::after,
  .difference-title span::after,
  .reason-title span::after {
    width: 140px;
    height: 4px;
  }

  .wrap-product .box-product,
  .product-card-new {
    width: 100%;
    min-height: 0;
    height: auto;
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  }

  .wrap-product .pic-product,
  .product-card-img {
    width: 100%;
    height: auto;
    flex-basis: auto;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .wrap-product .name-product,
  .product-card-new .name-product {
    min-height: 38px;
    max-height: 38px;
    font-size: 13px;
    line-height: 1.45;
  }

  .wrap-product .price-product,
  .product-price-new-ui {
    min-height: 28px;
    margin: 7px 0 10px;
    font-size: 13px;
    line-height: 1.35;
  }

  .product-price-new-ui .price-new {
    font-size: 15px;
  }

  .product-price-new-ui .price-old {
    font-size: 12px;
  }

  .product-contact-actions {
    gap: 6px;
  }

  .product-contact-btn {
    height: 34px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 34px;
  }

  .product-card-new .product-tool {
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .product-card-new .product-tool a {
    height: 30px;
    font-size: 11px;
  }

  .product-sale-badge {
    top: 8px;
    right: 8px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .difference-section {
    padding: 24px 0 30px;
  }

  .difference-tabs {
    margin-bottom: 20px;
    border-radius: 18px;
  }

  .difference-tabs button {
    flex-basis: 190px;
    min-width: 190px;
    height: 48px;
    font-size: 15px;
    border-radius: 14px;
  }

  .difference-tabs button.active {
    font-size: 15px;
  }

  .difference-content.active {
    gap: 18px;
    margin-top: 18px;
  }

  .difference-content.no-image .difference-text {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .difference-text h3,
  .difference-content.no-image .difference-text h3 {
    font-size: 21px;
    line-height: 1.35;
  }

  .difference-text p,
  .difference-text li,
  .difference-html {
    font-size: 14px;
  }

  .reason-section {
    padding: 34px 0;
  }

  .reason-title {
    margin-bottom: 24px;
  }

  .reason-card {
    width: 100%;
    max-width: 100%;
  }

  .reason-card-inner {
    padding: 24px 16px;
  }

  .reason-card h3 {
    font-size: 17px;
  }

  .reason-card p {
    font-size: 13px;
    line-height: 1.55;
  }

  .grid-pro-detail {
    display: block;
    margin-bottom: 2rem;
  }

  .left-pro-detail,
  .right-pro-detail {
    width: 100%;
  }

  .left-pro-detail {
    margin-bottom: 22px;
  }

  .left-pro-detail .MagicZoom {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
  }

  .gallery-thumb-pro {
    margin-top: 12px;
  }

  .title-pro-detail {
    font-size: 22px;
    line-height: 1.35;
  }

  .comment-pro-detail,
  .social-plugin-pro-detail {
    flex-wrap: wrap;
  }

  .attr-pro-detail li {
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
  }

  .attr-label-pro-detail,
  .attr-content-pro-detail {
    display: block;
    width: 100%;
  }

  .attr-label-pro-detail {
    margin: 0 0 4px;
    color: #6b7280;
    font-size: 13px;
  }

  .price-new-pro-detail {
    font-size: 22px;
  }

  .tabs-pro-detail {
    margin-top: 1.5rem;
  }

  .tabs-pro-detail .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .tabs-pro-detail .nav-tabs .nav-link {
    white-space: nowrap;
  }

  .row-news {
    row-gap: 16px;
  }

  .row-news .news {
    display: block !important;
    padding-bottom: 0 !important;
  }

  .row-news .pic-news,
  .row-news .info-news {
    width: 100%;
    padding-left: 0;
  }

  .row-news .pic-news {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: #f3f4f6;
  }

  .row-news .pic-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .row-news .info-news {
    padding-top: 10px;
  }

  .row-news .name-news {
    font-size: 16px;
    line-height: 1.4;
  }

  .row-news .desc-news {
    font-size: 13px;
    line-height: 1.55;
  }

  .contact-article {
    row-gap: 22px;
    margin-bottom: 2rem;
  }

  .contact-text,
  .contact-form {
    width: 100%;
  }

  .contact-form {
    padding: 18px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  }

  .contact-input {
    margin-bottom: 14px;
  }

  .contact-map {
    height: 320px;
    overflow: hidden;
    border-radius: 16px;
  }

  .footer-article {
    padding-top: 30px;
  }

  .footer-main-row {
    row-gap: 24px;
  }

  .footer-logo {
    margin-bottom: 12px;
  }

  .footer-info,
  .footer-info h1,
  .footer-info h2,
  .footer-info h3,
  .footer-info p,
  .footer-working {
    font-size: 14px;
  }

  .footer-title {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .footer-ul li {
    margin-bottom: 10px;
  }

  .footer-bottom {
    justify-content: center !important;
    text-align: center;
    margin-top: 28px;
    padding: 14px 0;
  }

  .footer-copyright {
    width: 100%;
  }

  .social-footer {
    justify-content: center;
  }

  .ContactUs {
    right: 8px;
    bottom: 82px;
    transform: scale(0.88);
    transform-origin: right bottom;
  }
}

/* Section: Small mobile polish | Files: home, product, footer */
@media (max-width: 575px) {
  .menu-bar-res {
    min-height: 56px;
    padding: 7px 10px;
  }

  .search-res .search-grid {
    right: -2px;
    max-width: calc(100vw - 24px);
  }

  .slideshow,
  .vk-main-banner-container,
  .vk-trust-container,
  .difference-section .wrap-content,
  .reason-section .wrap-content,
  .footer .wrap-content {
    width: calc(100% - 16px);
  }

  .vk-trust-box {
    padding: 18px 10px;
  }

  .vk-trust-title {
    font-size: 20px;
  }

  .vk-trust-pill {
    width: 100%;
    font-size: 12px;
  }

  .wrap-product .row,
  .row-20 {
    margin-left: -4px;
    margin-right: -4px;
  }

  .wrap-product .row > [class*="col-"],
  .row-20 > [class*="col-"] {
    padding-left: 4px;
    padding-right: 4px;
  }

  .wrap-product .box-product,
  .product-card-new {
    padding: 8px;
    border-radius: 12px;
  }

  .wrap-product .pic-product,
  .product-card-img {
    border-radius: 10px;
  }

  .wrap-product .name-product,
  .product-card-new .name-product {
    font-size: 12px;
    min-height: 35px;
    max-height: 35px;
  }

  .product-contact-actions {
    grid-template-columns: 1fr;
  }

  .product-contact-btn {
    height: 32px;
    line-height: 32px;
  }

  .difference-tabs button {
    flex-basis: 168px;
    min-width: 168px;
    padding: 0 12px;
  }

  .difference-content.no-image .difference-text {
    padding: 18px 12px;
  }

  .reason-list.row > [class*="col-"] {
    width: 100%;
  }

  .reason-card-inner {
    padding: 22px 16px;
  }

  .contact-pro-detail-actions {
    gap: 8px;
  }

  .contact-pro-detail-btn {
    height: 42px;
  }

  .footer-main-row > [class*="col-"] {
    width: 100%;
  }

  .footer-news-menu {
    margin-top: 0;
  }

  .footer-ul {
    display: block;
  }

  .footer-ul li {
    width: 100%;
  }

  .social-footer li a {
    width: 34px;
    height: 34px;
  }

  .contact-map {
    height: 260px;
  }
}

/* =========================
   MOBILE SLIDER & TRUST BANNER FIX
   Scope: frontend mobile only
   ========================= */
@media (max-width: 767px) {
  .slideshow {
    width: calc(100% - 20px);
    max-width: 500px;
    height: auto;
    aspect-ratio: 500 / 200;
    margin: 10px auto 0;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
    filter: none;
  }

  .slideshow .owl-carousel,
  .slideshow .owl-stage-outer,
  .slideshow .owl-stage,
  .slideshow .owl-item,
  .slideshow-item,
  .slideshow-image {
    height: 100%;
    min-height: 0;
  }

  .slideshow-image {
    aspect-ratio: 500 / 200;
    border-radius: 14px;
    background: #111827;
  }

  .slideshow-image picture,
  .slideshow-image img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .slideshow-image img {
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
  }

  .control-slideshow {
    display: none;
  }

  .vk-trust-section {
    padding: 18px 0 24px;
    overflow-x: hidden;
    background: #fff;
  }

  .vk-trust-container {
    width: calc(100% - 20px);
    max-width: 500px;
    margin: 0 auto;
  }

  .vk-trust-box {
    min-height: 0;
    padding: 18px 10px 16px;
    border-width: 3px;
    border-radius: 16px;
    overflow: hidden;
  }

  .vk-trust-title {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .vk-trust-subtitle {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .vk-trust-pill {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 1.45;
    border-radius: 999px;
    overflow-wrap: anywhere;
  }

  .vk-trust-banners {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    height: auto;
    gap: 10px;
    margin: 0 auto;
  }

  .vk-trust-banner-item {
    width: 100%;
    height: auto;
    min-height: 86px;
    aspect-ratio: 528 / 150;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
  }

  .vk-trust-banner-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    background: #fff;
    transform: none;
  }

  .vk-trust-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 8px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .vk-trust-contact-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
  }
}

@media (max-width: 380px) {
  .vk-trust-box {
    padding: 16px 8px 14px;
  }

  .vk-trust-title {
    font-size: 18px;
  }

  .vk-trust-pill {
    font-size: 11px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .vk-trust-banner-item {
    min-height: 78px;
  }
}

/* =========================
   MOBILE DIFFERENCE TABS FIX
   Scope: frontend mobile only
   ========================= */
@media (max-width: 767px) {
  .difference-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    height: auto;
    min-height: 58px;
    gap: 0;
    padding: 5px;
    margin: 0 auto 20px;
    overflow: visible;
    border-radius: 999px;
    background: #f8fafc;
  }

  .difference-tabs button {
    width: 100%;
    min-width: 0;
    flex: initial;
    flex-basis: auto;
    height: 48px;
    padding: 6px 3px;
    border-radius: 999px;
    color: #000;
    font-size: clamp(10px, 2.75vw, 13px);
    line-height: 1.25;
    font-weight: 700;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    text-align: center;
    letter-spacing: 0;
    box-shadow: none;
  }

  .difference-tabs button.active {
    color: #fff;
    font-size: clamp(11px, 2.9vw, 14px);
    line-height: 1.25;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(86, 3, 215, 0.22);
  }
}

@media (max-width: 380px) {
  .difference-tabs {
    min-height: 54px;
    padding: 4px;
  }

  .difference-tabs button,
  .difference-tabs button.active {
    height: 46px;
    padding: 5px 2px;
    font-size: 10px;
    line-height: 1.2;
  }
}
/* Section: Reason outer running border | File: templates/index/index_tpl.php */
.reason-card {
  position: relative;
  overflow: visible;
  padding: 4px;
  isolation: isolate;
}

.reason-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;

  background:
    linear-gradient(90deg, transparent, #fff, #ff63d8, transparent) 0 0 / 55%
      4px no-repeat,
    linear-gradient(180deg, transparent, #fff, #ff63d8, transparent) 100% 0 /
      4px 55% no-repeat,
    linear-gradient(270deg, transparent, #fff, #6b18ff, transparent) 100% 100% /
      55% 4px no-repeat,
    linear-gradient(0deg, transparent, #fff, #6b18ff, transparent) 0 100% / 4px
      55% no-repeat;

  filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 16px #ff63d8);
  animation: reasonBorderAround 2.4s linear infinite;
}

.reason-card-inner {
  position: relative;
  z-index: 2;
}

@keyframes reasonBorderAround {
  0% {
    background-position:
      -55% 0,
      100% -55%,
      155% 100%,
      0 155%;
  }

  25% {
    background-position:
      100% 0,
      100% -55%,
      155% 100%,
      0 155%;
  }

  50% {
    background-position:
      100% 0,
      100% 100%,
      155% 100%,
      0 155%;
  }

  75% {
    background-position:
      100% 0,
      100% 100%,
      0 100%,
      0 155%;
  }

  100% {
    background-position:
      100% 0,
      100% 100%,
      0 100%,
      0 0;
  }
}
/* Section: Footer social icons | File: templates/layout/footer.php */
.social-footer {
  gap: 10px;
}

.social-footer li a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(86, 3, 215, 0.45);
  background: #fff;
  box-shadow: 0 6px 16px rgba(86, 3, 215, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.social-footer li a:hover {
  border-color: #e531f6;
  background: linear-gradient(135deg, #e531f6 0%, #5603d7 100%);
  box-shadow: 0 10px 24px rgba(86, 3, 215, 0.28);
  transform: translateY(-3px);
}

.social-footer li a img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
}
/* floating contact */

/* bỏ filter tím */
.ContactUs .btn-frame img {
  filter: none;
}
.footer-news-info {
  max-width: 420px;
}

.footer-news-menu {
  max-width: 230px;
}

.footer-main-row {
  justify-content: space-between;
}

/* Section: Product mobile polish | File: templates/product/*.php */
@media (max-width: 991px) {
  .padding-top-bottom:has(.wrap-product),
  .padding-top-bottom:has(.grid-pro-detail) {
    padding-top: 22px;
    padding-bottom: 34px;
  }

  .grid-pro-detail {
    display: block !important;
    margin-bottom: 28px;
  }

  .left-pro-detail,
  .right-pro-detail {
    width: 100% !important;
    max-width: 100%;
  }

  .left-pro-detail {
    margin-bottom: 18px;
  }

  .left-pro-detail .MagicZoom {
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 6px;
    border-radius: 16px;
    overflow: hidden;
  }

  .left-pro-detail .MagicZoom img,
  .left-pro-detail .mz-figure img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    border-radius: 12px;
    object-fit: contain;
  }

  .gallery-thumb-pro {
    max-width: 560px;
    margin: 12px auto 0;
    overflow: hidden;
  }

  .gallery-thumb-pro .owl-pro-detail {
    overflow: hidden;
  }

  .thumb-pro-detail {
    display: block;
    border-radius: 10px;
    overflow: hidden;
  }
}

@media (max-width: 767px) {
  .breadCrumbs .wrap-content {
    padding: 10px 12px;
  }

  .breadCrumbs .breadcrumb {
    gap: 4px;
    font-size: 13px;
    line-height: 1.4;
  }

  .wrap-product {
    max-width: 100%;
    margin-bottom: 28px;
  }

  .wrap-product .title-main {
    margin-bottom: 18px;
  }

  .wrap-product .title-main span {
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .wrap-product .title-main span::after {
    width: 140px;
    height: 4px;
    margin-top: 8px;
  }

  .product-root-category .row,
  .row-20 {
    justify-content: center;
    row-gap: 14px;
  }

  .product-root-category .row > [class*="col-"],
  .row-20 > [class*="col-"] {
    display: flex;
    justify-content: center;
  }

  .product-root-category .product-root-category-card {
    width: 100%;
    max-width: 360px;
    min-height: 0;
    height: auto;
    margin-bottom: 0;
    padding: 10px;
    border-radius: 16px;
  }

  .product-root-category .pic-product {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #f7f7f8;
  }

  .product-root-category .pic-product a {
    display: block;
    width: 100%;
    height: 100%;
  }

  .product-root-category .pic-product img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 14px;
  }

  .product-root-category .name-product {
    display: block;
    min-height: 0;
    max-height: none;
    color: #061224;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    text-align: left;
  }

  .product-root-category .price-product {
    margin: 8px 0 10px;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
  }

  .product-root-category .cart-product {
    margin-bottom: 0;
  }

  .product-root-category .product-root-category-btn {
    transform: scale(0.92);
    transform-origin: center;
  }

  .row-20 .product-card-new {
    width: 100%;
    max-width: 350px;
    min-height: 0;
    height: auto;
    margin: 0 auto;
    padding: 10px;
    border-radius: 16px;
  }

  .row-20 .product-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #f7f7f8;
  }

  .row-20 .product-card-img a {
    display: block;
    width: 100%;
    height: 100%;
  }

  .row-20 .product-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }

  .product-card-new .product-card-body {
    padding-top: 10px;
  }

  .product-card-new .name-product {
    min-height: 0;
    max-height: none;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
  }

  .product-price-new-ui {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin: 8px 0 10px;
    line-height: 1.35;
  }

  .product-price-new-ui .price-new,
  .product-price-new-ui .price-old {
    white-space: nowrap;
  }

  .product-contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-contact-btn {
    width: 100%;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
  }

  .title-pro-detail {
    margin-bottom: 12px !important;
    font-size: 21px;
    line-height: 1.35;
  }

  .attr-pro-detail {
    padding-left: 0;
    margin-bottom: 14px;
  }

  .attr-pro-detail li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin-bottom: 8px;
  }

  .attr-label-pro-detail {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .attr-content-pro-detail {
    min-width: 0;
    flex: 1 1 160px;
  }

  .contact-pro-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .contact-pro-detail-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .desc-pro-detail {
    font-size: 14px;
    line-height: 1.65;
  }

  .tabs-pro-detail {
    max-width: 100%;
    overflow: hidden;
  }

  .tabs-pro-detail .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }

  .tabs-pro-detail .nav-link {
    white-space: nowrap;
  }

  .ContactUs {
    right: 2px;
    bottom: 74px;
    transform: scale(0.78);
    transform-origin: right bottom;
  }
}

/* Section: Product mobile two columns | File: templates/product/*.php */
@media (max-width: 575px) {
  .padding-top-bottom:has(.wrap-product),
  .padding-top-bottom:has(.grid-pro-detail) {
    padding-top: 18px !important;
    padding-bottom: 30px !important;
  }

  .product-root-category .row > [class*="col-"],
  .row-20 > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 12px !important;
  }

  .product-root-category .row,
  .row-20 {
    margin-left: -5px;
    margin-right: -5px;
    row-gap: 0;
  }

  .product-root-category .product-root-category-card,
  .row-20 .product-card-new {
    width: 100%;
    max-width: none;
    padding: 8px;
    border-radius: 14px;
  }

  .product-root-category .pic-product {
    margin-bottom: 8px;
    border-radius: 12px;
  }

  .product-root-category .pic-product img,
  .row-20 .product-card-img,
  .row-20 .product-card-img img {
    border-radius: 12px;
  }

  .product-root-category .name-product,
  .product-card-new .name-product {
    font-size: 12px;
    line-height: 1.35;
    min-height: 32px;
    max-height: 32px;
    overflow: hidden;
  }

  .product-root-category .price-product,
  .product-price-new-ui {
    margin: 6px 0 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  .product-root-category .product-root-category-btn {
    transform: scale(0.78);
  }

  .product-contact-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .product-contact-btn {
    min-height: 30px;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 12px;
  }

  .row-20 .product-card-new .product-tool {
    left: 0;
    right: 0;
    bottom: 0;
  }

  .row-20 .product-card-new .product-tool a {
    min-width: 0;
    height: 30px;
    padding: 0 4px;
    font-size: 11px;
  }

  .contact-pro-detail-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 380px) {
  .product-root-category .row > [class*="col-"],
  .row-20 > [class*="col-"] {
    padding-left: 4px;
    padding-right: 4px;
  }

  .product-root-category .row,
  .row-20 {
    margin-left: -4px;
    margin-right: -4px;
  }

  .product-root-category .product-root-category-card,
  .row-20 .product-card-new {
    padding: 7px;
  }

  .product-root-category .name-product,
  .product-card-new .name-product {
    font-size: 11px;
  }

  .product-contact-btn {
    font-size: 11px;
  }
}

/* Section: Product fixed image size | File: templates/product/*.php */
.product-root-category .product-root-category-card .pic-product,
.row-20 .product-card-new .product-card-img,
.row-20 .product-card-new .pic-product {
  width: 257px;
  height: 180px !important;
  min-height: 0;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #f7f7f8;
}

.product-root-category .product-root-category-card .pic-product .scale-img,
.row-20 .product-card-new .product-card-img .scale-img,
.row-20 .product-card-new .pic-product .scale-img {
  display: block;
  width: 257px;
  height: 180px;
}

.product-root-category .product-root-category-card .pic-product picture,
.row-20 .product-card-new .product-card-img picture,
.row-20 .product-card-new .pic-product picture {
  display: block;
  width: 257px;
  height: 180px;
}

.product-root-category .product-root-category-card .pic-product img,
.row-20 .product-card-new .product-card-img img,
.row-20 .product-card-new .pic-product img {
  display: block;
  width: 257px !important;
  height: 180px !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
}

@media (max-width: 575px) {
  .product-root-category .product-root-category-card .pic-product,
  .row-20 .product-card-new .product-card-img,
  .row-20 .product-card-new .pic-product,
  .product-root-category .product-root-category-card .pic-product .scale-img,
  .row-20 .product-card-new .product-card-img .scale-img,
  .row-20 .product-card-new .pic-product .scale-img,
  .product-root-category .product-root-category-card .pic-product picture,
  .row-20 .product-card-new .product-card-img picture,
  .row-20 .product-card-new .pic-product picture {
    width: 205px;
    height: 130px !important;
  }

  .product-root-category .product-root-category-card .pic-product img,
  .row-20 .product-card-new .product-card-img img,
  .row-20 .product-card-new .pic-product img {
    width: 205px !important;
    height: 130px !important;
  }
}

@media (max-width: 430px) {
  .product-root-category .product-root-category-card .pic-product,
  .row-20 .product-card-new .product-card-img,
  .row-20 .product-card-new .pic-product,
  .product-root-category .product-root-category-card .pic-product .scale-img,
  .row-20 .product-card-new .product-card-img .scale-img,
  .row-20 .product-card-new .pic-product .scale-img,
  .product-root-category .product-root-category-card .pic-product picture,
  .row-20 .product-card-new .product-card-img picture,
  .row-20 .product-card-new .pic-product picture {
    width: 168px;
    height: 106px !important;
  }

  .product-root-category .product-root-category-card .pic-product img,
  .row-20 .product-card-new .product-card-img img,
  .row-20 .product-card-new .pic-product img {
    width: 168px !important;
    height: 106px !important;
  }
}

@media (max-width: 380px) {
  .product-root-category .product-root-category-card .pic-product,
  .row-20 .product-card-new .product-card-img,
  .row-20 .product-card-new .pic-product,
  .product-root-category .product-root-category-card .pic-product .scale-img,
  .row-20 .product-card-new .product-card-img .scale-img,
  .row-20 .product-card-new .pic-product .scale-img,
  .product-root-category .product-root-category-card .pic-product picture,
  .row-20 .product-card-new .product-card-img picture,
  .row-20 .product-card-new .pic-product picture {
    width: 154px;
    height: 97px !important;
  }

  .product-root-category .product-root-category-card .pic-product img,
  .row-20 .product-card-new .product-card-img img,
  .row-20 .product-card-new .pic-product img {
    width: 154px !important;
    height: 97px !important;
  }
}
.logo-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 14px;
}

/* tia sáng gaming */
.logo-menu::before {
  content: "";
  position: absolute;
  top: -70%;
  left: -140%;
  width: 55%;
  height: 260%;
  z-index: 4;
  pointer-events: none;

  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 18%,
    rgba(255, 0, 140, 0.55) 34%,
    rgba(255, 255, 255, 1) 50%,
    rgba(162, 0, 255, 0.85) 66%,
    rgba(86, 3, 215, 0.6) 78%,
    transparent 100%
  );

  transform: skewX(-24deg);
  filter: blur(2px);

  animation: logoShineRun 2.3s linear infinite;
}

/* glow gaming bật mạnh khi sweep chạy */
.logo-menu::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 1;

  background: radial-gradient(
    circle at center,
    rgba(255, 0, 140, 0.75),
    rgba(86, 3, 215, 0.68),
    transparent 72%
  );

  filter: blur(18px);

  opacity: 0;

  animation: logoGamingGlow 2.3s linear infinite;
}

.logo-menu img {
  position: relative;
  z-index: 2;

  /* bình thường nhẹ */
  filter: drop-shadow(0 0 3px rgba(255, 0, 140, 0.15))
    drop-shadow(0 0 6px rgba(86, 3, 215, 0.12));

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

/* bật mạnh lúc ánh sáng chạy */
@keyframes logoGamingGlow {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.9);
  }

  15% {
    opacity: 0.15;
  }

  38% {
    opacity: 1;
    transform: scale(1.08);
  }

  55% {
    opacity: 0.95;
    transform: scale(1.04);
  }

  75% {
    opacity: 0.12;
  }
}

@keyframes logoShineRun {
  0% {
    left: -140%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  50% {
    left: 135%;
    opacity: 1;
  }

  100% {
    left: 135%;
    opacity: 0;
  }
}

/* combo glow mạnh đúng timing */
.logo-menu::before,
.logo-menu::after {
  animation-duration: 2.3s;
}

/* flash mạnh vào logo */
.logo-menu {
  animation: logoFlashShadow 2.3s linear infinite;
}

@keyframes logoFlashShadow {
  0%,
  100% {
    box-shadow:
      0 0 0 rgba(255, 0, 140, 0),
      0 0 0 rgba(86, 3, 215, 0);
  }

  35% {
    box-shadow:
      0 0 18px rgba(255, 0, 140, 0.65),
      0 0 38px rgba(86, 3, 215, 0.55),
      0 0 62px rgba(162, 0, 255, 0.35);
  }

  55% {
    box-shadow:
      0 0 12px rgba(255, 0, 140, 0.4),
      0 0 24px rgba(86, 3, 215, 0.32);
  }
}
/* ===== FOOTER LOGO GAMING EFFECT ===== */

.footer-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 14px;
}

/* tia sáng chạy */
.footer-logo::before {
  content: "";
  position: absolute;
  top: -70%;
  left: -140%;
  width: 55%;
  height: 260%;
  z-index: 4;
  pointer-events: none;

  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 18%,
    rgba(255, 0, 140, 0.5) 34%,
    rgba(255, 255, 255, 1) 50%,
    rgba(162, 0, 255, 0.8) 66%,
    rgba(86, 3, 215, 0.55) 78%,
    transparent 100%
  );

  transform: skewX(-24deg);
  filter: blur(2px);

  animation: footerLogoSweep 2.5s linear infinite;
}

/* glow bật khi ánh sáng chạy */
.footer-logo::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 18px;
  z-index: 1;
  pointer-events: none;

  background: radial-gradient(
    circle at center,
    rgba(255, 0, 140, 0.72),
    rgba(86, 3, 215, 0.62),
    transparent 72%
  );

  filter: blur(18px);

  opacity: 0;

  animation: footerLogoGlow 2.5s linear infinite;
}

.footer-logo img {
  position: relative;
  z-index: 2;

  filter: drop-shadow(0 0 4px rgba(255, 0, 140, 0.18))
    drop-shadow(0 0 8px rgba(86, 3, 215, 0.14));

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.footer-logo:hover img {
  transform: scale(1.04);
}

/* glow mạnh khi quét */
.footer-logo {
  animation: footerLogoShadow 2.5s linear infinite;
}

/* ===== ANIMATION ===== */

@keyframes footerLogoSweep {
  0% {
    left: -140%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  50% {
    left: 135%;
    opacity: 1;
  }

  100% {
    left: 135%;
    opacity: 0;
  }
}

@keyframes footerLogoGlow {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.9);
  }

  35% {
    opacity: 1;
    transform: scale(1.08);
  }

  60% {
    opacity: 0.18;
  }
}

@keyframes footerLogoShadow {
  0%,
  100% {
    box-shadow:
      0 0 0 rgba(255, 0, 140, 0),
      0 0 0 rgba(86, 3, 215, 0);
  }

  35% {
    box-shadow:
      0 0 18px rgba(255, 0, 140, 0.55),
      0 0 36px rgba(86, 3, 215, 0.48),
      0 0 58px rgba(162, 0, 255, 0.28);
  }

  55% {
    box-shadow:
      0 0 10px rgba(255, 0, 140, 0.28),
      0 0 20px rgba(86, 3, 215, 0.22);
  }
}

@media (max-width: 768px) {
  .logo-res {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 12px 0;
    background: #fff;
  }

  .logo-res .logo-menu {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    max-width: 190px;
    margin: 0 auto;
  }

  .logo-res .logo-menu img {
    display: block;
    width: 100%;
    height: auto;
  }
}
