/*
Theme Name: WebNganh Child
Description: Website Design by Wordpress and Theme Flatsome
Author: UX Themes Web Nganh
Template: flatsome
Theme URI: https://webnganh.com/
Author URI: https://webnganh.com/
Description: WebNganh.Com - WebNganh.Vn - iFnt.Vn
Version: Code DevWp WebNganh
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


.text-announcement-widget {
  height: 32px;
  overflow: hidden;
  position: relative;
}

.announcement-track {
  display: flex;
  flex-direction: column;
  animation: slideAnnouncements 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

.announcement-item {
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
}

@keyframes slideAnnouncements {

  0%,
  25% {
    transform: translateY(0);
  }

  33%,
  58% {
    transform: translateY(-32px);
  }

  66%,
  91% {
    transform: translateY(-64px);
  }

  100% {
    transform: translateY(-96px);
  }
}

.text-announcement-widget:hover .announcement-track {
  animation-play-state: paused;
}

/* --- PHẦN CHUNG: Reset và định dạng cơ bản --- */
.header-vertical-menu,
.sub-menu,
.nav-dropdown {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  min-width: 250px !important;
}

.sub-menu {
  padding: 5px 0 !important;
}

.header-vertical-menu li a,
.sub-menu li a {
  padding: 10px 15px !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  color: #333 !important;
  font-size: 14px !important;
  font-weight: normal !important;
  text-transform: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  background-color: #fff !important;
  text-decoration: none !important;
  margin: 0 !important;
}

.header-vertical-menu li:hover>a,
.sub-menu li:hover>a {
  background-color: #f3f5fc !important;
  color: #4ea0e5 !important;
  border-left: 3px solid #f9bb01 !important;
}

/* Ẩn các icon mặc định của Flatsome để dùng ::after tùy biến */
.menu-item button,
.nav-top-link .icon-angle-down {
  display: none !important;
}

/* Tạo icon mũi tên bằng ::after */
.menu-item-has-children>a::after {
  content: "\f105";
  font-family: "fl-icons";
  font-size: 14px;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.sub-menu li {
  display: flex !important;
  align-items: stretch;
  width: 250px !important;
}

/* --- DESKTOP (Từ 850px trở lên) --- */
@media (min-width: 850px) {
  .header-vertical-menu {
    width: 250px !important;
    border-radius: 0 0 5px 5px !important;
    position: relative;
  }

  .header-vertical-menu>li:last-child,
  .header-vertical-menu>li:last-child>a {
    border-radius: 0 0 5px 5px !important;
  }

  .header-vertical-menu>li:last-child:hover>a {
    border-radius: 0 0 5px 5px !important;
  }

  .menu-item-has-children {
    position: relative !important;
  }

  .menu-item-has-children>.sub-menu {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    width: 250px !important;
    visibility: hidden;
    opacity: 0;
    z-index: 9999 !important;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
  }

  .menu-item-has-children:hover>.sub-menu {
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* --- MOBILE (Dưới 850px): Biến ::after thành nút bấm --- */
@media (max-width: 849px) {

  .mobile-sidebar,
  .mobile-sidebar *,
  .nav-sidebar,
  .nav-sidebar * {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    backface-visibility: visible !important;
  }

  .nav-sidebar li {
    display: block !important;
    width: 100% !important;
    position: relative !important;
  }

  .mfp-content {
    background-color: #fff !important;
    opacity: 1 !important;
  }

  .nav-sidebar .sub-menu {
    display: none;
    position: static !important;
    width: 100% !important;
    min-width: 100% !important;
    padding-left: 15px !important;
    background-color: #f3f5fc !important;
    box-sizing: border-box !important;
  }

  .nav-sidebar li a {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .nav-sidebar .sub-menu li {
    border-bottom: 1px solid #e7e7e7 !important;
  }

  .sub-menu li a {
    background-color: #f3f5fc !important;
  }

  .nav-sidebar .sub-menu li:last-child {
    border-bottom: none !important;
  }

  .nav-sidebar li.menu-item-has-children>a::after {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.02);
    pointer-events: none;
  }

  .menu-item-has-children {
    margin: 0 !important;
  }
}

.btn-xem-them {
  list-style: none !important;
}

.header-vertical-menu li.btn-xem-them a,
.header-vertical-menu>li.btn-xem-them>a {
  color: #edb92b !important;
  font-weight: bold !important;
  margin-bottom: 5px !important;
}

.btn-xem-them a:hover {
  border-left: 3px solid #f9bb01 !important;
  background-color: #f3f5fc !important;
  border-left: none !important;
}

.col-sidebar-fixed {
  width: 272px !important;
  max-width: 272px !important;
  flex: 0 0 272px !important;
  padding: 0 8px 30px !important;
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
}

.col-main-flexible {
  flex: 1 !important;
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  padding: 0 8px 30px !important;
}

.col-right-sidebar {
  width: 20% !important;
  flex: 0 0 20% !important;
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  padding: 16px 8px 30px !important;
}

.col-right-sidebar .col-inner {
  display: flex !important;
  flex-direction: column !important;
  height: 470px !important;
  max-height: 470px !important;
  padding: 0 !important;
  gap: 16px;
  justify-content: space-between;
}

.col-right-sidebar .col-inner div {
  flex: 1 !important;
  margin: 0 !important;
}

.col-right-sidebar .img {
  flex: 1 !important;
  height: auto !important;
  margin: 0 !important;
  display: flex !important;
  min-height: 0;
}

.col-right-sidebar .img-inner,
.col-right-sidebar .img-inner a,
.col-right-sidebar img,
.col-right-sidebar .img-inner img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  max-height: none !important;
  border-radius: 0 !important;
}

.col-right-sidebar .img-inner {
  display: block !important;
  position: relative;
}

.policy-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  background-color: #fff;
  gap: 20px;
}

.policy-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy-icon img {
  width: 20px;
  height: auto;
  display: block;
}

.policy-text {
  font-size: 13px;
  color: #333;
  font-weight: 500;
}

@media screen and (max-width: 1024px) {

  .header-vertical-menu,
  #header-vertical-menu,
  .vertical-menu {
    display: none !important;
  }

  .nav-vertical-main {
    display: none !important;
  }

  .col-sidebar-fixed {
    display: none !important;
  }

  .col-main-flexible {
    width: 70% !important;
    flex: 0 0 70% !important;
    max-width: 70% !important;
    padding-left: 16px !important;
  }

  .col-right-sidebar {
    width: 30% !important;
    flex: 0 0 30% !important;
    max-width: 30% !important;
    padding-right: 16px !important;
  }
}

@media screen and (max-width: 768px) {
  .col-main-flexible {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 16px 16px !important;
    margin: 0 !important;
  }

  .col-main-flexible .img-inner.image-cover {
    padding-top: 300px !important;
    height: 100% !important;
    position: relative !important;
  }

  .col-main-flexible .col-inner {
    min-height: 0 !important;
    height: 300px !important;
  }

  .col-right-sidebar {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 16px 16px 30px !important;
  }

  .col-right-sidebar .col-inner {
    flex-direction: row !important;
    height: 120px !important;
    gap: 12px !important;
  }
}

@media screen and (max-width: 480px) {
  .col-main-flexible {
    padding: 0 16px 10px !important;
  }

  .col-main-flexible .img-inner.image-cover {
    padding-top: 200px !important;
  }

  .col-main-flexible .col-inner {
    min-height: 0 !important;
    height: 200px !important;
  }

  .col-right-sidebar .col-inner {
    height: 100px !important;
    gap: 8px !important;
  }
}

.section-header h3 {
  font-size: 24px !important;
  font-weight: bold !important;
  margin: 0 !important;
  padding: 15px 20px !important;
}

.category-wrapper {
  overflow: hidden;
  border-top: 2px solid #f2f3f5;
}

.category-wrapper .product-category {
  position: relative;
  border-bottom: 2px solid #f2f3f5;
  padding: 15px !important;
}

.category-wrapper .product-category:nth-child(n+8) {
  border-bottom: none;
}

.category-wrapper .product-category::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: #f2f3f5;
  z-index: 1;
}

.category-wrapper .product-category:nth-child(7n)::after {
  display: none !important;
}

.category-wrapper .box-image {
  width: 100px !important;
  height: 100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.category-wrapper .image-cover {
  padding-top: 0 !important;
  height: 100% !important;
}

.category-wrapper .image-cover img {
  height: 100% !important;
  width: 100% !important;
  object-fit: contain !important;
  top: 0 !important;
  left: 0 !important;
  position: relative !important;
}

.category-wrapper .box-text {
  padding: 0 !important;
  padding-top: 10px !important;
}

.category-wrapper .box-text-inner {
  padding: 0 !important;
}

.category-wrapper .header-title.uppercase {
  text-transform: capitalize !important;
  font-size: 14px !important;
  color: #000;
  font-weight: 500 !important;
}

.category__more-btn {
  display: none !important;
}

.category__more-btn span {
  font-size: 15px !important;
  color: #000 !important;
  font-weight: 600 !important;
}

.category__more-btn i {
  top: 1px !important;
}

@media screen and (max-width: 850px) {
  .section-header h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
  }

  .category-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .category-wrapper .product-category {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    width: 33.333% !important;
  }

  .category-wrapper .product-category:nth-child(n+7) {
    display: none !important;
  }

  .category-wrapper .product-category:nth-child(3n)::after {
    display: none !important;
  }

  .category-wrapper .box-image {
    width: 70px !important;
    height: 70px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .category__more-btn {
    display: block !important;
  }
}

.product-wrapper.row {
  display: flex !important;
  flex-wrap: wrap !important;
}

.product-wrapper .product-small {
  padding: 0 8px 16px !important;
  display: flex !important;
  /* Quan trọng: để cột con bên trong giãn theo chiều cao */
  flex-direction: column;
}

/* 2. Sửa lại class .box để nó chiếm hết chiều cao cột */
.product-wrapper .product-small.box {
  background-color: #ffffff !important;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1) !important;
  border-radius: 5px !important;
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 0 8px !important;

  display: flex !important;
  /* Biến box thành flex container */
  flex-direction: column !important;
  flex: 1 0 auto !important;
  /* Ép box giãn ra chiếm hết chiều cao col */
}

/* 3. Đảm bảo col-inner cũng giãn theo */
.product-wrapper .col-inner {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

/* 4. Phần chứa ảnh (giữ nguyên hoặc cố định tỉ lệ) */
.product-wrapper .box-image {
  padding: 12px 3px 0 !important;
  flex-shrink: 0 !important;
  /* Không cho ảnh bị co lại */
}

.product-wrapper .box-text {
  padding: 10px 10px 15px !important;
  background-color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
}

/* 6. Ép tiêu đề sản phẩm (Title) */
.product-wrapper .product-title {
  margin-top: 5px !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
  flex-grow: 1 !important;
  /* Title sẽ lấy hết không gian thừa, đẩy giá/nút xuống dưới */
}

.product-wrapper .product-title a {
  color: #120000 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-decoration: none !important;

  /* Giới hạn 2 dòng như Dương đã viết */
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-wrapper .price-wrapper,
.product-wrapper .add-to-cart-button {
  margin-top: auto !important;
  padding-top: 0px;
}

.home-banner .img-inner img {
  border-radius: 6px !important;
  object-fit: cover !important;
}

.top-product-banner {
  margin-bottom: 15px !important;
  padding: 0 0 87px 15px !important;
}

.top-product-banner .col-inner {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 5px !important;
}

.top-product-banner .img-inner img {
  height: auto !important;
  width: auto !important;
  max-height: 100% !important;
  border-radius: 5px !important;
}

.top-product-tabs ul {
  margin-top: -68px !important;
}

.top-product-tabs .nav-tabs {
  border: none !important;
  background: none !important;
}

.top-product-tabs .nav-tabs li.tab a {
  background-color: #ffffff !important;
  border: 1px solid #ddd !important;
  border-radius: 5px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #333 !important;
  margin-left: 10px !important;
  padding: 5px 10px !important;
  display: block !important;
  transition: all 0.2s ease;
}

.top-product-tabs .nav-tabs li.tab.active a {
  background-color: #fabb00 !important;
  border-color: #fabb00 !important;
  color: #fff !important;
  font-weight: bold !important;
}

.top-product-tabs .nav-tabs li.tab a::after {
  display: none !important;
}

.top-product-tabs .tab-panels {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.tab-more-btn {
  justify-self: center;
  align-items: center;
  display: flex;
  margin: 0 !important;
  margin-top: 15px !important;
  height: 42px !important;
  border: 1px solid #fabb00 !important;
  border-radius: 5px !important;
  background-color: #fff !important;
  font-size: 14px !important;
  color: #fabb00 !important;
}

@media screen and (max-width: 1024px) {
  .top-product-banner {
    display: none !important;
  }

  .top-product-col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-bottom: 0 !important;
  }

  .top-product-col .product-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .top-product-col .product-wrapper .product-small.col {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    width: 33.333% !important;
  }

}

@media screen and (max-width: 850px) {
  .top-product-tabs ul {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    justify-content: center !important;
  }
}

@media screen and (max-width: 768px) {
  .top-product-col .product-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .top-product-col .product-wrapper .product-small.col {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

@media screen and (max-width: 480px) {
  .top-product-col .product-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  /*   .top-product-col .product-wrapper .product-small.col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  } */
}

.keys-word-container {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

.keys-word-wrapper {
  flex: 0 0 20% !important;
  max-width: 20% !important;
  width: 20% !important;
  padding: 0 1px 20px 16px !important;
}

.keys-word-category {
  flex: 0 0 80% !important;
  max-width: 80% !important;
  width: 80% !important;
  padding: 0 16px 20px 1px !important;
}

.keys-word-wrapper .col-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  background-color: rgb(255, 255, 255);
  height: 100%;
  border-top: 2px solid #f2f3f5;
  border-bottom: 2px solid #f2f3f5;
  padding: 0 15px !important;
  border-radius: 5px 0px 0px 5px !important;
}

.keys-word-wrapper .col-inner h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  text-align: start !important;
}

.keys-word-category .category-wrapper .box-image {
  width: 70px !important;
  height: 70px !important;
}

.keys-word-btn {
  justify-self: center;
  align-items: center;
  display: flex;
  margin: 0 !important;
  height: 36px !important;
  border-radius: 5px !important;
  background-color: #fabb00 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #fff !important;
  width: 105px !important;
}

@media screen and (max-width: 1024px) {
  .keys-word-container {
    display: flex !important;
    flex-direction: column !important;
  }

  .keys-word-wrapper {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 16px 20px 16px !important;
  }

  .keys-word-wrapper .col-inner {
    flex-direction: row !important;
    border: none !important;
    background-color: transparent !important;
    justify-content: space-between !important;
    padding: 0 !important;
    align-items: center !important;
  }

  .keys-word-wrapper .col-inner h3 {
    margin: 0 !important;
  }

  .keys-word-category {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 16px 20px 16px !important;
  }

  .keys-word-category .col-inner {
    border-radius: 5px !important;
  }
}

.home-slider .flickity-prev-next-button svg {
  top: 40% !important;
  transform: translate(-50%, -65%) !important;
}

.absolute-footer {
  border-top: 1px solid #e5e5e5 !important;
}

.absolute-footer,
.absolute-footer .copyright-footer {
  color: #333333 !important;
  font-size: 13px !important;
}

.footer-menu-link a.ux-menu-link__link::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #000;
  border-radius: 50%;

  margin-right: 8px;
  align-self: center;
  transition: all 0.3s ease !important;
}

.footer-menu-link a.ux-menu-link__link {
  display: flex !important;
  align-items: center;
  text-decoration: none;
  min-height: unset !important;
  font-size: 14px;
  transition: all 0.3s ease !important;
}

.footer-menu-link a.ux-menu-link__link:hover .ux-menu-link__text {
  color: #00a2ff !important;
}

.footer-menu-link a.ux-menu-link__link:hover::before {
  margin-right: 12px;
}

.address-footer ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}


.address-footer ul li {
  color: #333;
  font-size: 14px;
  margin-bottom: 15px;
}

.address-footer ul li i {
  width: 22px !important;
  flex-shrink: 0;
  font-size: 18px;
  color: #333;
}

@media screen and (max-width: 1024px) {
  .row.footer-block {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .row.footer-block .col.medium-3.large-3 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

@media screen and (max-width: 480px) {
  .row.footer-block .col.medium-3.large-3 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px !important;
  }

  .row.footer-block .col-inner {
    padding: 0 !important;
    padding-bottom: 16px !important;
  }
}

.product__container {
  background-color: #fff !important;
  padding: 12px 3px 0;
  border-radius: 6px;
}

.product__container .box-text {
  padding: 10px !important;
}

.product__container .box-text .product-title a {
  margin-top: 5px !important;
  margin-bottom: 8px !important;
  line-height: 1.6 !important;
  font-size: 16px !important;
  color: #120000;

  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product__container .box-text .add-to-cart-button a {
  border-radius: 5px !important;
  border: 1px solid #446084 !important;
  text-transform: none !important;
  line-height: 2.5 !important;
  margin-bottom: 8px !important;
}

.category-page-row .sidebar-inner {
  margin-top: -20px;
}

.page-title-inner.flex-row .flex-col:nth-child(2) {
  display: none !important;
}

.page-title-inner.flex-row .flex-col:first-child {
  flex-grow: 1 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Container chính */
.orderby__wrapper {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

/* Chữ "Sắp xếp theo:" */
.orderby__wrapper .name {
  font-size: 14px;
  color: #333;
  margin-right: 20px;
  padding-bottom: 10px;
  white-space: nowrap;
}

/* Danh sách ul */
.custom__orderby {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
}

/* Từng item li */
.custom__orderby li {
  position: relative;
  padding: 10px 0;
}

/* Thẻ link a */
.custom__orderby li a {
  text-decoration: none;
  font-size: 14px;
  color: #888;
  transition: all 0.2s ease;
  font-weight: 400;
  padding-bottom: 12px;
  border-bottom: 1px solid #dee2e6;
}

/* Khi hover vào item */
.custom__orderby li a:hover {
  padding-bottom: 11px;
  border-bottom: 2px solid #263b96;
  color: #263b96;
  font-weight: 500;
}

.custom__orderby li.active a {
  padding-bottom: 11px;
  border-bottom: 2px solid #263b96;
  color: #263b96;
  font-weight: 500;
}

/* Responsive cho mobile: cho phép scroll ngang nếu quá dài */
@media (max-width: 768px) {
  .orderby__wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .custom__orderby {
    white-space: nowrap;
  }
}

.price-wrapper .price {
  display: flex !important;
  gap: 10px !important;
  align-items: center;
}

.price-wrapper .price ins {
  order: 1;
}

.price-wrapper .price del {
  order: 2;
}

.product-main {
  padding: 20px 0;
}

.mini_cart_item a {
  font-size: 14px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.payment-image .ux-logo-link {
  padding: 0 !important;
}

.custom-newsletter-form {
  display: flex !important;
  align-items: center !important;
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 5px !important;
  width: 100% !important;
  max-width: 100%;
  gap: 10px !important;
}

.custom-newsletter-form p {
  margin: 0 !important;
  padding: 0 !important;
  display: contents !important;
}

.custom-newsletter-form .input-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  display: contents !important;
}

.footer-top-left .custom-newsletter-form p,
.footer-top-left .custom-newsletter-form .input-wrapper {
  display: flex !important;
  align-items: center !important;
  flex: 1 !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.footer-top-left .custom-newsletter-form .wpcf7-form-control-wrap {
  flex: 1 !important;
  min-width: 0 !important;
}

.custom-newsletter-form p:has(input[type="submit"]) {
  display: contents !important;
}

.custom-newsletter-form i {
  display: inline-block !important;
  font-style: normal;
  color: #888 !important;
  margin-left: 16px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.custom-newsletter-form input[type="email"] {
  border: none !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  width: 100%;
  font-size: 14px;
  background: transparent;
}

.custom-newsletter-form input[type="submit"] {
  background-color: #f2ba01 !important;
  color: #fff !important;
  border: none !important;
  font-weight: bold;
  font-size: 13px !important;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 5px !important;
  width: 100px !important;
}

.custom-newsletter-form .wpcf7-form-control {
  margin: 5px !important;
  padding: 5px 0 !important;
}

.custom-newsletter-form .wpcf7-spinner {
  display: none !important;
}

.certification-image img {
  object-fit: contain !important;
}

@media screen and (max-width: 1024px) {
  .footer-top.row {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .footer-top .col:nth-child(1),
  .footer-top .col:nth-child(2) {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }

  .footer-top .col:nth-child(3) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 10px 0 !important;
  }

  .footer-top-left,
  .footer-top-center {
    padding: 0 15px !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .footer-top .footer-top-center .flex-row,
  .footer-top .footer-top-center .flex-col,
  .footer-top .footer-top-center>div {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .footer-top .footer-top-center * {
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .certification-image {
    text-align: left !important;
    width: auto !important;
    max-width: 160px !important;
    /* Khống chế theo độ rộng thực của ảnh */
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .certification-image .img-inner {
    padding-top: 0 !important;
    height: auto !important;
  }

  .certification-image img {
    position: static !important;
    width: 160px !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media screen and (max-width: 768px) {
  .footer-top.row {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .footer-top .col:nth-child(1),
  .footer-top .col:nth-child(2),
  .footer-top .col:nth-child(3) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 10px !important;
  }
}

.col-main-flexible .img-inner {
  border-radius: 5px !important;
  overflow: hidden !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.col-main-flexible .img-inner img {
  border-radius: 5px !important;
}

.col-main-flexible .img-inner.dark::after {
  border-radius: 5px !important;
}

.col-right-sidebar .img-inner {
  border-radius: 5px !important;
  overflow: hidden !important;
  position: relative !important;
  transform: translateZ(0);
}

.col-right-sidebar .img-inner img {
  border-radius: 5px !important;
  object-fit: cover !important;
}

.col-right-sidebar .img-inner.dark::after {
  border-radius: 5px !important;
}

.icon-fixed {
  position: fixed;
  right: 15px;
  bottom: 70px;
  z-index: 99;
}

@media only screen and (max-width: 46.1875em) {
  .icon-fixed {
    bottom: 80px;
  }
}

.icon-fixed__item {
  position: relative;
  --sizeBtn: 50px;
  width: var(--sizeBtn);
  height: var(--sizeBtn);
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow:
    rgba(17, 17, 26, 0.05) 0px 1px 0px,
    rgba(17, 17, 26, 0.1) 0px 0px 8px;
}

@media only screen and (max-width: 46.1875em) {
  .icon-fixed__item {
    --sizeBtn: 42px;
  }
}

.icon-fixed__item+.icon-fixed__item {
  margin-top: 14px;
}

@media only screen and (max-width: 46.1875em) {
  .icon-fixed__item+.icon-fixed__item {
    margin-top: 10px;
  }
}

.icon-fixed__item.phone-icon {
  animation: phoneShake 1s ease infinite;
  background-color: #e10e00;
}

.icon-fixed__item.icon-fb,
.icon-fixed__item.icon-zalo {
  background-color: #2962ff;
}

.icon-fixed__item.icon-fb i {
  font-size: 30px;
}

.icon-fixed__item.icon-up {
  opacity: 0;
  visibility: hidden;
  display: flex !important;
}

.icon-fixed__item.icon-up.active {
  opacity: 1;
  visibility: visible;
}

.icon-fixed__item.icon-up,
.icon-fixed__item.icon-tiktok {
  background-color: #000;
}

.icon-fixed__item.icon-fb,
.icon-fixed__item.icon-zalo,
.icon-fixed__item.icon-tiktok {
  animation: tiktokPulse 1.5s ease infinite;
}

.icon-fixed__item.icon-fb::after,
.icon-fixed__item.icon-zalo::after,
.icon-fixed__item.icon-tiktok::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  top: 0;
  left: 0;
  animation: tiktokWave 2s infinite;
}

.icon-fixed__item i {
  color: #fff;
  font-size: 24px;
}

.offcanvas {
  transition: transform 0.3s ease-in-out !important;
}

.fade {
  transition: opacity 0.15s linear;
}

@keyframes phoneShake {
  0% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(-12deg);
  }

  20% {
    transform: rotate(12deg);
  }

  30% {
    transform: rotate(-12deg);
  }

  40% {
    transform: rotate(10deg);
  }

  50% {
    transform: rotate(-10deg);
  }

  60% {
    transform: rotate(14deg);
  }

  70% {
    transform: rotate(-14deg);
  }

  80% {
    transform: rotate(14deg);
  }

  90% {
    transform: rotate(-14deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes tiktokWave {
  0% {
    box-shadow: 0 0 0 0 rgba(238, 29, 82, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(238, 29, 82, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(238, 29, 82, 0);
  }
}

.product-wrapper.slider .price-wrapper,
.product-wrapper.slider .add-to-cart-button {
  margin-top: auto !important;
}

.product-detail__gallery .col-inner .row-small {
  margin-bottom: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-top: 10px !important;
}

.product-detail__gallery .col-inner .row-small .large-10 {
  padding: 0 !important;
  padding-right: 10px !important;
}

.infoList-deliverly {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.deliverly-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: calc((100% - 20px) / 3);
  box-sizing: border-box;
  font-size: 13px;
}

.deliverly-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.product-detail__content .product-title {
  font-size: 24px !important;
}

.product-detail__content .price-wrapper {
  align-items: center !important;
}

.product-detail__content .price-wrapper .price {
  justify-content: start;
}

/* ===== Giá chính (1 giá duy nhất) ===== */
.product-detail__content .price>.amount:only-child {
  font-size: 30px;
  font-weight: 600;
  color: #e70605;
}

/* ===== Giá giảm (giá mới) ===== */
.product-detail__content .price ins .amount {
  font-size: 30px;
  font-weight: 600;
  color: #e70605;
}

/* ===== Giá gốc ===== */
.product-detail__content .price del .amount {
  font-size: 18px;
  color: #878c8f;
}

/* ===== Giá biến thể (có nhiều amount) ===== */
.product-detail__content .price>.amount:not(:only-child) {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* dấu "-" */
.product-detail__content .price>span[aria-hidden="true"] {
  font-size: 18px;
  color: #878c8f;
}

.product-detail__content .woocommerce-variation-price .price bdi {
  font-size: 30px !important;
  color: #e70605 !important;
  font-weight: 600 !important;
}

.ux-quantity::before {
  content: "Số lượng:";
  margin-right: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
}

.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cart .ux-quantity {
  width: 100%;
}

.cart button {
  flex: 1;
}

.ux-quantity__button {
  width: 40px;
}

.single_add_to_cart_button {
  height: 46px !important;
  font-size: 14px !important;
  background: #fff !important;
  color: #e70505;
  border-radius: 5px !important;
  border: 1px solid #e70505;
}

.single_add_to_cart_button:hover {
  background: #ff0000 !important;
  color: #fff;
}

/* nút mua ngay */
.ux-buy-now-button {
  height: 46px !important;
  font-size: 14px !important;
  border-radius: 5px !important;
  background: #e70505;
  color: #fff;
  border: none;
}

.ux-buy-now-button:hover {
  background: #ff0000 !important;
}

.product-detail__content .wt-wishlist-button::after {
  content: "Thêm vào yêu thích";
  margin-left: 6px;
  font-size: 14px;
  color: #333;
}

.product-detail__content .single_product_div a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-detail__top {
  display: flex;
  align-items: stretch;
}

.product-detail__gallery,
.product-detail__content {
  flex: 1;
  display: flex;
}

.product-detail__gallery .col-inner,
.product-detail__content .col-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#product-filter {
  display: flex;
  flex-direction: column;
}

.filter-category {
  order: -1;
}

.plugincy_title span {
  font-weight: 700 !important;
}

.filter-checkbox {
  width: 18px !important;
  height: 18px !important;
}

.option_title {
  color: #333;
  margin-left: 5px;
}

.woocommerce-billing-fields__field-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0 15px;
}

#billing_first_name_field,
#billing_last_name_field {
  margin-right: 0 !important;
  width: calc(50% - 7.5px);
  float: none !important;
}

#billing_phone_field,
#billing_email_field {
  width: calc(50% - 7.5px);
}

/* địa chỉ full width */
#billing_address_1_field {
  width: 100%;
}

.product-info .price-wrapper .price {
  justify-content: start;
}

/* ===== Giá chính (1 giá duy nhất) ===== */
.product-info .price>.amount:only-child {
  font-size: 30px;
  font-weight: 600;
  color: #e70605;
}

/* ===== Giá giảm (giá mới) ===== */
.product-info .price ins .amount {
  font-size: 30px;
  font-weight: 600;
  color: #e70605;
}

/* ===== Giá gốc ===== */
.product-info .price del .amount {
  font-size: 18px;
  color: #878c8f;
}

/* ===== Giá biến thể (có nhiều amount) ===== */
.product-info .price>.amount:not(:only-child) {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* dấu "-" */
.product-info .price>span[aria-hidden="true"] {
  font-size: 18px;
  color: #878c8f;
}

.product-info .woocommerce-variation-price .price bdi {
  font-size: 30px !important;
  color: #e70605 !important;
  font-weight: 600 !important;
}