:root {
  --anduc-runtime-primary: #0f766e;
  --anduc-runtime-primary-dark: #0b514c;
  --anduc-runtime-border: #d8e9e4;
  --anduc-runtime-surface: #f3faf8;
}

/* Tooltip cũ từng do runtime tạo đã được loại bỏ. */
.anduc-product-preview { display: none !important; }

/* Một nền chung cho toàn bộ nội dung trang chủ. Các card vẫn giữ nền trắng,
   nhưng không còn các dải nền trắng/xanh bị ngắt quãng giữa section. */
body.home #main,
body.home #content,
body.home #adcc-smart-home-rows {
  background: #f3f8f6 !important;
}
body.home #content > .anduc-server-hero-section {
  background: #f3f8f6 !important;
  box-sizing: border-box;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 16px 20px 24px !important;
  width: 100% !important;
}

body.home .anduc-server-hero {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  margin: 0 auto;
  max-width: 1280px;
  width: 100%;
}

body.home .anduc-server-hero.is-main-only {
  grid-template-columns: minmax(0, 1fr);
}

body.home .anduc-server-main-slider,
body.home .anduc-server-main-slider .adcc-slider-track {
  aspect-ratio: 2 / 1;
  border-radius: 12px;
  min-height: 0 !important;
  overflow: hidden;
  width: 100%;
}

body.home .anduc-server-main-slider .adcc-slide,
body.home .anduc-server-main-slider .anduc-server-hero-image {
  height: 100%;
  width: 100%;
}

body.home .anduc-server-main-slider .adcc-slider-prev,
body.home .anduc-server-main-slider .adcc-slider-next {
  font-size: 22px !important;
  height: 38px !important;
  line-height: 1 !important;
  margin: 0 !important;
  max-height: 38px !important;
  max-width: 38px !important;
  min-height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  width: 38px !important;
}

body.home .anduc-server-main-slider .adcc-slider-prev { left: 12px !important; }
body.home .anduc-server-main-slider .adcc-slider-next { right: 12px !important; }

body.home .anduc-server-main-slider .adcc-slider-dots {
  bottom: 12px !important;
  gap: 6px !important;
}

body.home .anduc-server-main-slider .adcc-slider-dots button {
  height: 7px !important;
  line-height: 0 !important;
  margin: 0 !important;
  max-height: 7px !important;
  max-width: 7px !important;
  min-height: 7px !important;
  min-width: 7px !important;
  padding: 0 !important;
  width: 7px !important;
}

body.home .anduc-server-main-slider .adcc-slider-dots button.is-active {
  max-width: 22px !important;
  min-width: 22px !important;
  width: 22px !important;
}

body.home .anduc-server-main-slider .anduc-server-hero-image {
  display: block;
  object-fit: cover;
}

body.home .anduc-server-hero-rail {
  display: grid;
  gap: 10px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

body.home .anduc-server-hero-side-card {
  background: #fff;
  border-radius: 12px;
  display: block;
  min-height: 0;
  overflow: hidden;
}

body.home .anduc-server-hero-side-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 767px) {
  body.home #content > .anduc-server-hero-section {
    padding: 12px 14px 18px !important;
  }
  body.home .anduc-server-hero {
    display: block;
  }
  body.home .anduc-server-main-slider,
  body.home .anduc-server-main-slider .adcc-slider-track {
    aspect-ratio: 16 / 9;
  }
  body.home .anduc-server-hero-rail {
    display: none;
  }
  body.home .anduc-server-main-slider .adcc-slider-prev,
  body.home .anduc-server-main-slider .adcc-slider-next {
    display: none !important;
  }
  body.home .anduc-server-main-slider {
    touch-action: pan-y;
  }
  body.home .anduc-server-main-slider .adcc-slider-dots {
    bottom: 9px !important;
  }
  body.home .anduc-server-main-slider .adcc-slider-dots button {
    height: 6px !important;
    max-height: 6px !important;
    max-width: 6px !important;
    min-height: 6px !important;
    min-width: 6px !important;
    width: 6px !important;
  }
  body.home .anduc-server-main-slider .adcc-slider-dots button.is-active {
    max-width: 18px !important;
    min-width: 18px !important;
    width: 18px !important;
  }
}

/* 1.3.9: Gợi ý và Đã xem chỉ có một dãy sáu thẻ, không được tự xuống
   hàng khi hover hoặc khi Flatsome cập nhật lại equal-height. */
body.home .adcc-smart-personalized .adcc-product-grid,
body.home .anduc-recent-section .anduc-recent-products {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  width: 100% !important;
}

body.home .adcc-smart-personalized .adcc-product-card,
body.home .anduc-recent-section .anduc-recent-card {
  box-sizing: border-box;
  flex: 0 0 calc((100% - 80px) / 6) !important;
  min-width: 0 !important;
  width: auto !important;
}

@media (max-width: 767px) {
  body.home .adcc-smart-personalized .adcc-product-card,
  body.home .anduc-recent-section .anduc-recent-card {
    flex-basis: min(78vw, 290px) !important;
  }
}

/* 1.3.8: mọi section sản phẩm trang chủ dùng cùng một khung; lưới luôn
   xuống hàng dưới tiêu đề thay vì bị ép sang cột bên phải. */
body.home #adcc-smart-home-rows {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1310px !important;
  padding-left: 20px;
  padding-right: 20px;
  width: 100% !important;
}

body.home #adcc-smart-home-rows .adcc-topic-row,
body.home .anduc-recent-section {
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  body.home .adcc-topic-row > .adcc-topic-head {
    display: grid !important;
    gap: 12px 16px !important;
    grid-template-columns: minmax(180px, 1fr) max-content !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  body.home .adcc-topic-row > .adcc-topic-head > h2 {
    grid-column: 1 !important;
    min-width: 180px !important;
    width: auto !important;
  }
  body.home .adcc-topic-row > .adcc-topic-head > .adcc-topic-filters {
    grid-column: 2 !important;
    max-width: min(65vw, 840px) !important;
  }
  body.home .adcc-topic-row > .adcc-topic-head > .adcc-product-grid,
  body.home .adcc-topic-row > .adcc-topic-head > .anduc-recent-products {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}

/* Cửa hàng và danh mục sản phẩm: bỏ sidebar rỗng, tạo phần giới thiệu rõ ràng. */
body.woocommerce.archive .shop-page-title.category-page-title {
  display: none !important;
}

body.woocommerce.archive .category-page-row {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 24px 15px 46px;
  width: 100%;
}

body.woocommerce.archive .category-page-row > .col.large-3,
body.woocommerce.archive #shop-sidebar {
  display: none !important;
}

body.woocommerce.archive .category-page-row > .col.large-9 {
  flex-basis: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  width: 100% !important;
}

body.woocommerce.archive .shop-container {
  background: #eef2f5;
  border-radius: 18px;
  padding: 24px;
}

.adcc-archive-intro {
  color: #163d35;
  margin-bottom: 18px;
}

.adcc-archive-breadcrumb {
  color: #5f746f;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 7px;
  margin-bottom: 12px;
  text-transform: none;
}

.adcc-archive-breadcrumb a { color: #087e71; }
.adcc-archive-divider { color: #9aaba7; }

.adcc-archive-intro > h1 {
  color: #103c34;
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.2;
  margin: 0 0 10px;
}

.adcc-archive-description {
  color: #526a65;
  font-size: 15px;
  line-height: 1.65;
  max-width: 920px;
}

.adcc-archive-description p { margin: 0; }

.adcc-archive-children {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.adcc-archive-child {
  align-items: center;
  background: #fff;
  border: 1px solid #dce7e4;
  border-radius: 14px;
  color: #173e36;
  display: flex;
  gap: 13px;
  min-height: 82px;
  padding: 11px 14px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.adcc-archive-child:hover {
  border-color: #84c9be;
  box-shadow: 0 8px 20px rgba(15, 92, 78, .1);
  color: #0c6658;
  transform: translateY(-2px);
}

.adcc-archive-child img,
.adcc-archive-child-placeholder {
  background: #f2f7f5;
  border-radius: 10px;
  flex: 0 0 56px;
  height: 56px;
  object-fit: contain;
  width: 56px;
}

.adcc-archive-child-placeholder {
  align-items: center;
  color: #0b8b7a;
  display: flex;
  font-size: 27px;
  justify-content: center;
}

.adcc-archive-child strong,
.adcc-archive-child small {
  display: block;
  line-height: 1.35;
}

.adcc-archive-child strong { font-size: 15px; }
.adcc-archive-child small { color: #71827e; font-size: 13px; margin-top: 3px; }

.adcc-archive-products-head {
  align-items: end;
  border-top: 1px solid #d8e3e0;
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
}

.adcc-archive-products-head h2 {
  color: #153d35;
  font-size: 21px;
  margin: 0 0 4px;
}

.adcc-archive-products-head p {
  color: #6b7c78;
  font-size: 14px;
  margin: 0;
}

.adcc-archive-products-head .woocommerce-ordering {
  float: none;
  margin: 0;
}

.adcc-archive-products-head .orderby {
  background-color: #fff;
  border: 1px solid #cfded9;
  border-radius: 10px;
  box-shadow: none;
  min-height: 42px;
  padding: 0 36px 0 13px;
}

body.woocommerce.archive .shop-container > .woocommerce-result-count {
  color: #657873;
  font-size: 14px;
  margin: 0 0 12px;
}

body.woocommerce.archive .products.row {
  margin-bottom: 0;
}

body.woocommerce.archive .adcc-product-media {
  aspect-ratio: 1 / 1;
  height: auto !important;
}

body.woocommerce.archive .adcc-product-media img {
  height: 100% !important;
  object-fit: contain !important;
  width: 100% !important;
}

@media (max-width: 849px) {
  body.woocommerce.archive .category-page-row { padding: 14px 12px 34px; }
  body.woocommerce.archive .shop-container { border-radius: 14px; padding: 17px 12px; }
  .adcc-archive-children { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .adcc-archive-child { min-height: 72px; padding: 9px; }
  .adcc-archive-child img,
  .adcc-archive-child-placeholder { flex-basis: 46px; height: 46px; width: 46px; }
  .adcc-archive-child strong { font-size: 13px; }
  .adcc-archive-child small { font-size: 12px; }
  .adcc-archive-products-head { align-items: stretch; flex-direction: column; gap: 12px; }
  .adcc-archive-products-head .woocommerce-ordering,
  .adcc-archive-products-head .orderby { width: 100%; }
  .adcc-archive-intro > h1 { font-size: 26px; }
  .adcc-archive-description { font-size: 14px; }
}

@media (max-width: 767px) {
  body.home #adcc-smart-home-rows { padding-left: 14px; padding-right: 14px; }
  body.home .anduc-recent-section { width: calc(100% - 28px) !important; }
}

/* ID hiện tại của khối Flatsome cũ; JavaScript vẫn dò theo tiêu đề nếu ID thay đổi. */
body.home #section_70203469 { display: none !important; }

/* 1.3.45: dynamic three-level pharmacy category menu. */
.adcc-primary-nav > .adcc-header-container {
  gap: clamp(14px, 2vw, 28px);
  overflow: visible;
}
.adcc-mega-categories {
  align-self: stretch;
  display: flex;
  gap: clamp(12px, 1.7vw, 24px);
}
.adcc-mega-nav {
  align-items: center;
  display: flex;
  position: relative;
}
.adcc-mega-root-row { align-items: stretch; display: flex; height: 100%; }
.adcc-mega-root {
  align-items: center;
  color: #17342e;
  display: flex;
  font-size: 13px;
  font-weight: 750;
  padding: 0 2px;
  text-decoration: none;
  white-space: nowrap;
}
.adcc-mega-root:hover,
.adcc-mega-nav:focus-within > .adcc-mega-root-row .adcc-mega-root { color: #0f766e; }
.adcc-mega-mobile-toggle { display: none; }
.adcc-mega-menu {
  background: #fff;
  border: 1px solid #dce8e4;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 48px rgba(18,58,51,.18);
  display: grid;
  grid-template-columns: 205px minmax(250px, 1fr) 285px;
  left: 0;
  min-height: 280px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateY(7px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  visibility: hidden;
  width: min(900px, calc(100vw - 32px));
  z-index: 1000;
}
.adcc-mega-nav:nth-last-child(-n+2) .adcc-mega-menu { left: auto; right: 0; }
.adcc-mega-nav:hover .adcc-mega-menu,
.adcc-mega-nav:focus-within .adcc-mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}
.adcc-mega-level-one { background: #f4f9f7; padding: 12px; }
.adcc-mega-child-trigger {
  align-items: center;
  border-radius: 9px;
  color: #284b43;
  display: flex;
  font-size: 13px;
  font-weight: 650;
  gap: 8px;
  justify-content: space-between;
  line-height: 1.35;
  padding: 10px 11px;
  text-decoration: none;
}
.adcc-mega-child-trigger:hover,
.adcc-mega-child-trigger.is-active { background: #fff; color: #0f766e; }
.adcc-mega-level-two { padding: 20px 22px; }
.adcc-mega-panel { display: none; }
.adcc-mega-panel.is-active { display: block; }
.adcc-mega-panel h3 { font-size: 17px; margin: 0 0 15px; }
.adcc-mega-panel h3 a { color: #17342e; text-decoration: none; }
.adcc-mega-panel p { color: #688079; font-size: 13px; line-height: 1.55; }
.adcc-mega-grandchildren { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adcc-mega-grandchildren a {
  border: 1px solid #e1ece8;
  border-radius: 9px;
  color: #45665e;
  font-size: 12px;
  line-height: 1.35;
  padding: 10px;
  text-decoration: none;
}
.adcc-mega-grandchildren a:hover { background: #edf8f5; color: #0f766e; }
.adcc-mega-products { border-left: 1px solid #e6efec; padding: 18px; }
.adcc-mega-products > h3 { color: #17342e; font-size: 14px; margin: 0 0 12px; }
.adcc-mega-product-list { display: grid; gap: 9px; }
.adcc-mega-product {
  align-items: center;
  border: 1px solid #e4ece9;
  border-radius: 10px;
  color: #17342e;
  display: grid;
  gap: 10px;
  grid-template-columns: 62px 1fr;
  padding: 7px;
  text-decoration: none;
}
.adcc-mega-product:hover { border-color: #8fcfc2; box-shadow: 0 7px 18px rgba(15,118,110,.09); }
.adcc-mega-product img { aspect-ratio: 1; height: 62px; object-fit: contain; width: 62px; }
.adcc-mega-product strong { display: block; font-size: 11px; line-height: 1.35; }
.adcc-mega-product small { color: #e11d2e; display: block; font-size: 11px; font-weight: 750; margin-top: 5px; }

@media (max-width: 767px) {
  .adcc-mega-categories { display: block; width: 100%; }
  .adcc-mega-nav { display: block; }
  .adcc-mega-root-row { border-bottom: 1px solid #edf2f0; min-height: 45px; }
  .adcc-mega-root { flex: 1; font-size: 14px; padding: 12px 4px; }
  .adcc-mega-mobile-toggle {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #31584f !important;
    display: flex;
    justify-content: center;
    min-height: 0;
    padding: 0;
    width: 44px;
  }
  .adcc-mega-nav.is-open .adcc-mega-mobile-toggle .dashicons { transform: rotate(180deg); }
  .adcc-mega-menu,
  .adcc-mega-nav:nth-last-child(-n+2) .adcc-mega-menu {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: none;
    left: auto;
    max-height: 65vh;
    min-height: 0;
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
    position: static;
    right: auto;
    transform: none;
    visibility: visible;
    width: 100%;
  }
  .adcc-mega-nav.is-open .adcc-mega-menu { display: block; }
  .adcc-mega-level-one { padding: 7px 9px; }
  .adcc-mega-child-trigger { padding: 9px 10px; }
  .adcc-mega-level-two { padding: 12px 16px; }
  .adcc-mega-grandchildren { grid-template-columns: 1fr; }
  .adcc-mega-products { border-left: 0; border-top: 1px solid #e6efec; padding: 13px 16px 17px; }
  .adcc-mega-product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adcc-mega-product { display: block; }
  .adcc-mega-product:nth-child(n+3) { display: none; }
  .adcc-mega-product img { height: auto; width: 100%; }
  .adcc-mega-product strong { margin-top: 6px; }
}

/* 1, 7: Góc sức khỏe đồng bộ màu và giữ menu chính trên trang chủ. */
.adcc-section-health_news .adcc-container {
  max-width: 1310px !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.adcc-health-news {
  background: linear-gradient(180deg, #f0faf7 0%, #f9fcfb 100%) !important;
  border-color: #cfe7df !important;
  border-radius: 18px !important;
  padding: 22px !important;
}

.adcc-health-news-title h2 {
  color: var(--anduc-runtime-primary-dark) !important;
  font-size: 24px !important;
  letter-spacing: -.015em;
}

.adcc-health-news-title h2::before {
  background: linear-gradient(180deg, #18a58f, var(--anduc-runtime-primary)) !important;
  border-radius: 9px !important;
  height: 32px !important;
  width: 32px !important;
}

.adcc-health-news-more,
.adcc-health-news-featured a,
.adcc-health-news-item a {
  color: var(--anduc-runtime-primary-dark) !important;
}

.adcc-health-news-chips a {
  border-color: #cfe4de !important;
  color: #315f56 !important;
}

.adcc-health-news-featured-copy strong { font-size: 21px !important; }
.adcc-health-news-featured-copy small { color: #5e746e !important; font-size: 14px !important; }
.adcc-health-news-item small { color: #628079 !important; }
.adcc-health-news-item strong { font-size: 17px !important; }

@media (min-width: 768px) {
  body.home .adcc-site-header .adcc-primary-nav {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Ẩn section Flatsome Bản tin sức khỏe cũ; Góc sức khỏe ADCC được giữ lại. */
body.home #section_2124575533 {
  display: none !important;
}

/* Nút xem thêm tại section sản phẩm chỉ giữ phần chữ. */
.adcc-view-more > span[aria-hidden="true"] {
  display: none !important;
}

/* Khôi phục cấu trúc section danh mục: phần sản phẩm phải nằm dưới tiêu đề,
   không được chiếm cùng hàng khiến tên danh mục bị bó hẹp thành từng chữ. */
@media (min-width: 768px) {
  .adcc-smart-category-row > .adcc-topic-head {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) max-content !important;
    gap: 12px 16px !important;
  }

  .adcc-smart-category-row > .adcc-topic-head > h2 {
    grid-column: 1 !important;
    min-width: 180px !important;
    width: auto !important;
  }

  .adcc-smart-category-row > .adcc-topic-head > .adcc-topic-filters {
    grid-column: 2 !important;
    max-width: min(65vw, 840px) !important;
  }

  .adcc-smart-category-row > .adcc-topic-head > .adcc-product-grid {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}


/* 1.3.11: Tiêu đề và dãy sản phẩm phải là hai hàng độc lập. Một số CSS cũ
   chuyển .adcc-topic-head thành flex không xuống dòng, khiến tiêu đề bị bó
   thành cột hẹp và dãy sản phẩm chạy sang phải. */
@media (min-width: 768px) {
  body.home .adcc-topic-row > .adcc-topic-head {
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.home .adcc-topic-row > .adcc-topic-head > h2 {
    flex: 1 1 240px !important;
    margin: 0 !important;
    min-width: 0 !important;
    width: auto !important;
  }

  body.home .adcc-topic-row > .adcc-topic-head > .adcc-topic-filters {
    flex: 0 1 auto !important;
    max-width: min(65vw, 840px) !important;
    width: auto !important;
  }

  body.home .adcc-topic-row > .adcc-topic-head > .adcc-product-grid,
  body.home .adcc-topic-row > .adcc-topic-head > .anduc-recent-products {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    order: 3;
    width: 100% !important;
  }
}

/* Hai dãy cá nhân hóa luôn có đúng một hàng sáu sản phẩm và nằm trong lề. */
body.home #adcc-smart-home-rows {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1310px !important;
  overflow: hidden;
  padding-left: 20px;
  padding-right: 20px;
  width: 100% !important;
}

body.home .adcc-smart-personalized .adcc-product-grid,
body.home .anduc-recent-section .anduc-recent-products {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 12px !important;
  width: 100% !important;
}

body.home .adcc-smart-personalized .adcc-product-card,
body.home .anduc-recent-section .anduc-recent-card {
  flex: 0 0 calc((100% - 80px) / 6) !important;
  min-width: 0 !important;
}

@media (max-width: 767px) {
  body.home #adcc-smart-home-rows { padding-left: 14px; padding-right: 14px; }
  body.home .adcc-smart-personalized .adcc-product-card,
  body.home .anduc-recent-section .anduc-recent-card { flex-basis: min(78vw, 290px) !important; }
}

/* 3, 8, 9: tiêu đề danh mục nằm ngang, không có nút mua/tooltip, thẻ cao bằng nhau. */
.adcc-smart-category-row > .adcc-topic-head {
  align-items: center !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  width: 100%;
}

.adcc-smart-category-row .adcc-topic-filters {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* Keep the category title, the most-used child categories and “Xem thêm” in
   one clean desktop row. The old widget gave the filter container a full
   width, which pushed the final button onto a second line. */
@media (min-width: 768px) {
  .adcc-smart-category-row > .adcc-topic-head {
    column-gap: 16px !important;
    flex-wrap: nowrap !important;
    min-height: 66px;
  }
  .adcc-smart-category-row > .adcc-topic-head > h2 {
    flex: 1 1 auto !important;
    margin: 0 !important;
    min-width: 0;
    width: auto !important;
  }
  .adcc-smart-category-row .adcc-topic-filters {
    flex: 0 1 auto !important;
    flex-wrap: nowrap !important;
    max-width: calc(100% - 210px);
    overflow-x: auto;
    padding: 4px 1px;
    white-space: nowrap;
    width: auto !important;
  }
  .adcc-smart-category-row .adcc-topic-filters > a {
    flex: 0 0 auto;
  }
  .adcc-smart-category-row .adcc-topic-filters .adcc-view-more {
    box-sizing: border-box;
    min-width: 112px;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

.adcc-smart-personalized .adcc-topic-head > small,
.adcc-buy-button {
  display: none !important;
}

.adcc-product-preview {
  pointer-events: none !important;
}

.adcc-product-grid { align-items: stretch !important; }
.adcc-product-grid > .adcc-product-card,
.products .adcc-product-card {
  height: 100% !important;
  min-height: 0 !important;
}

.adcc-product-body { height: 100%; }
.adcc-product-price { margin-bottom: 0 !important; }
.adcc-product-card .adcc-product-origin,
.adcc-product-card .adcc-product-category {
  font-size: 11px !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
  overflow: visible !important;
  text-transform: none !important;
}

body.home .adcc-product-card .adcc-sale-badge {
  background: #f0444e !important;
  border: 0 !important;
  border-radius: 0 999px 999px 0 !important;
  box-shadow: none !important;
  box-sizing: border-box;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  left: 0 !important;
  line-height: 1 !important;
  min-width: 49px;
  padding: 8px 10px !important;
  top: 0 !important;
  z-index: 8 !important;
}

/* Flatsome cards in “Sản phẩm bán chạy” and the legacy recent-products block. */
body.home .badge-container .badge-inner.on-sale {
  background: #f0444e !important;
  border: 0 !important;
  border-radius: 0 999px 999px 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  height: auto !important;
  line-height: 1 !important;
  min-height: 0 !important;
  min-width: 49px;
  padding: 8px 10px !important;
  width: auto !important;
}
body.home .badge-container .badge-inner.on-sale .onsale { color: inherit !important; }

.anduc-recent-products {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 16px;
  margin: 0 auto !important;
  max-width: 1310px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 13px !important;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.anduc-recent-card {
  background: #fff;
  border: 1px solid #dce8e4;
  border-radius: 12px;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 calc((100% - 80px) / 6);
  flex-direction: column;
  min-width: 195px;
  overflow: hidden;
  padding: 12px;
  scroll-snap-align: start;
}
.anduc-recent-image { display: block; position: relative; }
.anduc-recent-image img { aspect-ratio: 1; display: block; height: auto; object-fit: contain; width: 100%; }
.anduc-recent-badge { background: #f0444e; border-radius: 0 999px 999px 0; color: #fff; font-size: 12px; font-weight: 700; left: -12px; line-height: 1; padding: 8px 10px; position: absolute; top: -12px; z-index: 1; }
.anduc-recent-category { color: #5f7b73; font-size: 11px; line-height: 1.45; margin-top: 11px; text-transform: none; }
.anduc-recent-card h3 { font-size: 14px; line-height: 1.45; margin: 6px 0 10px; }
.anduc-recent-card h3 a { color: #17342e; text-decoration: none; }
.anduc-recent-price { font-weight: 700; margin-top: auto; }
.anduc-recent-price del { color: #82918c; font-size: 12px; font-weight: 400; }
.anduc-recent-price ins { color: #17342e; text-decoration: none; }

/* Keep the dynamic recently-viewed strip inside the same content width as
   the category sections. The strip is intentionally one horizontal row. */
body.home .anduc-recent-section {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 1310px;
  width: calc(100% - 40px);
}
body.home .anduc-recent-section .anduc-recent-products {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
}

.anduc-product-preview {
  background: #1f2d33;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  box-sizing: border-box;
  color: #fff;
  font-size: 13px;
  line-height: 1.48;
  max-width: 300px;
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  position: fixed;
  transform: translateY(5px);
  transition: opacity .12s ease, transform .12s ease;
  z-index: 10000;
}
.anduc-product-preview.is-visible { opacity: 1; transform: translateY(0); }

/* 1.3.14: giữ danh mục và thẻ gợi ý ổn định sau khi bỏ vòng lặp DOM. */
.anduc-product-preview { display: none !important; }
body.home .anduc-featured-categories img {
  color: transparent;
  display: block;
  font-size: 0;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
body.home .adcc-smart-personalized .adcc-product-origin,
body.home .adcc-smart-personalized .adcc-product-title {
  font-family: inherit !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* 1.3.46: viewport-safe Long Chau style mega menu and real category imagery. */
@media (min-width: 768px) {
  .adcc-primary-nav > .adcc-header-container {
    gap: clamp(18px, 2vw, 30px);
    position: relative;
  }
  .adcc-mega-categories {
    flex: 1 1 auto;
    gap: clamp(18px, 2vw, 30px);
    min-width: 0;
    position: static;
  }
  .adcc-mega-nav { position: static; }
  .adcc-mega-root,
  .adcc-primary-nav .adcc-nav-link {
    align-items: center;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    min-height: 52px;
    padding: 0;
    white-space: nowrap;
  }
  .adcc-mega-menu,
  .adcc-mega-nav:nth-last-child(-n+2) .adcc-mega-menu {
    grid-template-columns: 250px minmax(320px, 1fr) 300px;
    left: 20px;
    max-height: min(620px, calc(100vh - 150px));
    right: 20px;
    top: 100%;
    width: auto;
  }
  .adcc-mega-level-one,
  .adcc-mega-level-two,
  .adcc-mega-products { overflow-y: auto; }
}

.adcc-mega-child-trigger {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  justify-content: initial;
}
.adcc-mega-child-label { min-width: 0; }
.adcc-mega-child-arrow { text-align: right; }
.adcc-mega-child-image,
.adcc-mega-grandchild-image {
  background: #fff;
  border: 1px solid #e2ece8;
  border-radius: 9px;
  box-sizing: border-box;
  display: block;
  object-fit: contain;
}
.adcc-mega-child-image { height: 42px; padding: 3px; width: 42px; }
.adcc-mega-grandchild-image { flex: 0 0 48px; height: 48px; padding: 4px; width: 48px; }
.adcc-mega-child-image.is-empty,
.adcc-mega-grandchild-image.is-empty,
.adcc-featured-category-image.is-empty { background: #eef5f3; }
.adcc-mega-grandchildren a {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 8px;
}
.adcc-mega-grandchildren a > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

body.home .adcc-personalized-featured-categories {
  background: transparent;
  margin: 0 auto;
}
body.home .adcc-personalized-featured-categories .adcc-section-heading { margin-bottom: 14px; }
body.home .adcc-personalized-featured-categories .adcc-section-heading h2 {
  color: #17342e;
  font-size: 20px;
  margin: 0;
}
body.home .adcc-personalized-featured-categories .adcc-category-card img,
body.home .adcc-personalized-featured-categories .adcc-featured-category-image {
  background: #f4f8f7;
  border-radius: 12px;
  height: 78px;
  object-fit: contain !important;
  padding: 5px;
  width: 78px;
}

@media (max-width: 767px) {
  .adcc-mega-child-trigger { grid-template-columns: 38px minmax(0, 1fr) 16px; }
  .adcc-mega-child-image { height: 38px; width: 38px; }
  .adcc-mega-grandchildren a { min-height: 54px; }
  body.home .adcc-personalized-featured-categories .adcc-container { padding-left: 14px; padding-right: 14px; }
  body.home .adcc-personalized-featured-categories .adcc-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.home .adcc-personalized-featured-categories .adcc-category-card { min-height: 110px; padding: 9px 4px; }
  body.home .adcc-personalized-featured-categories .adcc-category-card img,
  body.home .adcc-personalized-featured-categories .adcc-featured-category-image { height: 58px; width: 58px; }
  body.home .adcc-personalized-featured-categories .adcc-category-card strong { font-size: 11px; }
}

/* 1.3.20: WooCommerce tao thumbnail 247x296, vi vay anh lazy-load co the
   day khung media thanh dang doc. Tach anh khoi luong tinh chieu cao de khung
   luon vuong va hien tron anh san pham, khong crop. */
.adcc-product-card .adcc-product-media {
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 8px !important;
  position: relative !important;
}

.adcc-product-card .adcc-product-media > img,
.adcc-product-card .adcc-product-media > picture,
.adcc-product-card .adcc-product-media > picture > img {
  bottom: 8px !important;
  height: auto !important;
  left: 8px !important;
  margin: 0 !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
  position: absolute !important;
  right: 8px !important;
  top: 8px !important;
  width: auto !important;
}

.adcc-product-card .adcc-product-media > img,
.adcc-product-card .adcc-product-media > picture > img {
  height: calc(100% - 16px) !important;
  width: calc(100% - 16px) !important;
}

/* Huy hiệu sale nam tren anh: anh lazy-load duoc render sau huy hieu trong
   HTML, nen phai co lop xep chong cao hon de khong che mat chu. */
body.home .adcc-product-card .adcc-product-media > .adcc-sale-badge {
  left: 8px !important;
  position: absolute !important;
  top: 8px !important;
  white-space: nowrap !important;
  z-index: 10 !important;
}

/* Gợi ý trên điện thoại: đúng hai thẻ trong bề ngang section. */
@media (max-width: 767px) {
  body.home .adcc-smart-personalized .adcc-product-grid {
    gap: 10px !important;
  }

  body.home .adcc-smart-personalized .adcc-product-card {
    flex: 0 0 calc((100% - 10px) / 2) !important;
    max-width: calc((100% - 10px) / 2) !important;
    min-width: 0 !important;
  }
}

/* 1.3.24: Tiêu đề section danh mục canh cùng lề với sản phẩm. Biểu tượng
   trước h2 không còn chiếm chỗ ẩn khiến tên danh mục bị thụt vào. */
body.home .adcc-smart-category-row > .adcc-topic-head > h2 > .dashicons {
  display: none !important;
}

/* Dung cho trang danh muc va moi vong lap san pham: badge phai nam tren
   anh lazy-load, khong bi anh de len mot phan. */
body .adcc-product-card .adcc-product-media > .adcc-sale-badge {
  left: 8px !important;
  position: absolute !important;
  top: 8px !important;
  white-space: nowrap !important;
  z-index: 10 !important;
}

/* Gợi ý không dùng icon rỗng để tên section bắt đầu đúng cùng lề sản phẩm. */
body.home .adcc-smart-personalized > .adcc-topic-head > h2 > .dashicons {
  display: none !important;
}

@media (max-width: 767px) {
  body.home .adcc-smart-category-row > .adcc-topic-head {
    align-items: center !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 14px 16px 0 !important;
  }

  body.home .adcc-smart-category-row > .adcc-topic-head > h2 {
    flex: 1 1 0 !important;
    font-size: 20px !important;
    min-width: 0 !important;
  }

  /* Mobile chi hien thi danh muc cha va nut Xem them. */
  body.home .adcc-smart-category-row > .adcc-topic-head > .adcc-topic-filters {
    align-items: center !important;
    display: flex !important;
    flex: 0 0 auto !important;
    max-width: none !important;
    overflow: visible !important;
    width: auto !important;
  }

  body.home .adcc-smart-category-row > .adcc-topic-head > .adcc-topic-filters > a:not(.adcc-view-more) {
    display: none !important;
  }

  body.home .adcc-smart-category-row > .adcc-topic-head > .adcc-product-grid {
    flex: 0 0 100% !important;
    margin-top: 2px !important;
    order: 3 !important;
    width: 100% !important;
  }

  /* Đã xem gần đây dùng cùng mật độ với Gợi ý: hai thẻ trong một màn hình. */
  body.home .anduc-recent-section .anduc-recent-products {
    gap: 10px !important;
  }

  body.home .anduc-recent-section .anduc-recent-card {
    flex: 0 0 calc((100% - 10px) / 2) !important;
    max-width: calc((100% - 10px) / 2) !important;
    min-width: 0 !important;
  }
}

.anduc-health-hub { background: #f4fbf9; border: 1px solid #d5e9e4; border-radius: 18px; color: #153d38; margin: 16px auto 28px; max-width: 1280px; overflow: hidden; padding-bottom: 22px; }
.anduc-health-hub-hero { background: linear-gradient(135deg, #e7f7f2 0%, #f7fcfa 62%, #dff3ed 100%); border-bottom: 1px solid #d3e9e3; min-height: 190px; overflow: hidden; padding: 16px 32px 24px; position: relative; }
.anduc-health-hub-breadcrumb { color: #55766f; font-size: 14px; position: relative; z-index: 1; }
.anduc-health-hub-breadcrumb a { color: #0f766e; text-decoration: none; }
.anduc-health-hub-breadcrumb span { margin-left: 10px; }
.anduc-health-hub-hero-copy { align-items: center; display: flex; flex-wrap: wrap; gap: 0 12px; padding: 34px 0 0; position: relative; z-index: 1; }
.anduc-health-hub-hero-copy h1 { color: #0b514c; font-size: clamp(30px, 3vw, 42px); line-height: 1.15; margin: 0; }
.anduc-health-hub-hero-copy p { color: #52736c; flex-basis: 100%; font-size: 16px; margin: 8px 0 0 46px; }
.anduc-health-hub-cross { align-items: center; background: #0f766e; border-radius: 10px; color: #fff; display: inline-flex; font-size: 22px; font-weight: 700; height: 34px; justify-content: center; width: 34px; }
.anduc-health-hub-orb { background: rgba(15,118,110,.08); border-radius: 50%; position: absolute; }
.anduc-health-hub-orb-one { height: 170px; left: -76px; top: 68px; width: 170px; }
.anduc-health-hub-orb-two { height: 230px; right: -72px; top: -72px; width: 230px; }
.anduc-health-hub-categories { padding: 20px 20px 2px; }
.anduc-health-hub-group { background: #fff; border: 1px solid #dbece8; border-radius: 14px; margin-bottom: 16px; padding: 16px; }
.anduc-health-hub-group-head { align-items: center; display: flex; justify-content: space-between; margin: 0 0 12px; }
.anduc-health-hub-group-head h2 { color: #163f39; font-size: 20px; margin: 0; }
.anduc-health-hub-group-head h2 span { align-items: center; background: #0f766e; border-radius: 8px; color: #fff; display: inline-flex; font-size: 16px; height: 25px; justify-content: center; margin-right: 9px; width: 25px; }
.anduc-health-hub-group-head .anduc-health-hub-group-icon { background: #e8f5f2; border-radius: 8px; display: inline-block; height: 28px; margin-right: 9px; object-fit: contain; padding: 4px; vertical-align: middle; width: 28px; }
.anduc-health-hub-group-head a { color: #0f766e; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.anduc-health-hub-group-head a:hover { color: #084f49; }
.anduc-health-hub-group-head b { display: none; }
.anduc-health-hub-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.anduc-health-hub-category-card { background: #fbfefd; border: 1px solid #d8e9e5; border-radius: 12px; color: #153d38; display: grid; grid-template-columns: 56px minmax(0,1fr); grid-template-rows: auto auto; min-height: 84px; padding: 12px; text-align: left; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.anduc-health-hub-category-card:hover { border-color: #7fc2b8; box-shadow: 0 7px 18px rgba(15,118,110,.09); transform: translateY(-2px); }
.anduc-health-hub-category-card img, .anduc-health-hub-category-icon { align-items: center; align-self: center; background: #e8f5f2; border-radius: 12px; display: flex; grid-row: 1 / 3; height: 52px; justify-content: center; object-fit: cover; width: 52px; }
.anduc-health-hub-category-card img.anduc-health-hub-category-icon-image { object-fit: contain; padding: 7px; }
.anduc-health-hub-category-icon { color: #0f766e; font-size: 25px; font-weight: 700; }
.anduc-health-hub-category-card strong { align-self: end; color: #153d38; font-size: 15px; line-height: 1.3; padding-left: 10px; }
.anduc-health-hub-category-card small { align-self: start; color: #66817b; font-size: 13px; margin-top: 3px; padding-left: 10px; }
.anduc-health-hub-posts { background: #fff; border: 1px solid #dbece8; border-radius: 14px; margin: 2px 20px 0; padding: 18px; }
.anduc-health-hub-post-grid { display: grid; gap: 14px 18px; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .95fr); }
.anduc-health-hub-post a { color: #153d38; display: block; text-decoration: none; }
.anduc-health-hub-post img, .anduc-health-hub-post-placeholder { aspect-ratio: 16 / 10; background: #e1f2ee; border-radius: 10px; display: block; object-fit: cover; width: 100%; }
.anduc-health-hub-post span { display: block; padding: 10px 0; }
.anduc-health-hub-post small { color: #0f766e; display: block; font-size: 12px; margin-bottom: 4px; }
.anduc-health-hub-post strong { font-size: 16px; line-height: 1.4; }
.anduc-health-hub-post.is-featured { grid-column: 1; grid-row: 1 / span 4; }
.anduc-health-hub-post.is-featured strong { font-size: 21px; }
.anduc-health-hub-post.is-featured p { color: #59736e; font-size: 14px; line-height: 1.55; margin: 7px 0 0; }
.anduc-health-hub-post:not(.is-featured) { grid-column: 2; }
.anduc-health-hub-post:not(.is-featured) a { align-items: center; display: grid; gap: 12px; grid-template-columns: 132px minmax(0, 1fr); }
.anduc-health-hub-post:not(.is-featured) img,
.anduc-health-hub-post:not(.is-featured) .anduc-health-hub-post-placeholder { aspect-ratio: 3 / 2; height: 88px; }
.anduc-health-hub-post:not(.is-featured) span { min-width: 0; padding: 0; }
.anduc-health-hub-post:not(.is-featured) strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

@media (max-width: 767px) {
  .anduc-health-hub { border-radius: 14px; margin: 10px 10px 20px; }
  .anduc-health-hub-hero { min-height: 164px; padding: 14px 16px 22px; }
  .anduc-health-hub-hero-copy { display: block; padding: 28px 0 0; text-align: left; }
  .anduc-health-hub-hero-copy h1 { font-size: 28px; }
  .anduc-health-hub-hero-copy p { font-size: 14px; margin: 7px 0 0; }
  .anduc-health-hub-cross { display: none; }
  .anduc-health-hub-categories { padding: 12px 12px 0; }
  .anduc-health-hub-group { margin-bottom: 12px; padding: 13px; }
  .anduc-health-hub-group-head h2 { font-size: 18px; }
  .anduc-health-hub-grid { gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anduc-health-hub-category-card { display: flex; flex-direction: column; min-height: 132px; padding: 10px; text-align: center; }
  .anduc-health-hub-category-card img, .anduc-health-hub-category-icon { flex: 0 0 50px; height: 50px; margin: 0 auto 8px; width: 50px; }
  .anduc-health-hub-category-card strong { align-self: center; font-size: 14px; padding: 0; width: 100%; }
  .anduc-health-hub-category-card small { align-self: center; font-size: 12px; margin-top: 4px; padding: 0; width: 100%; }
  .anduc-health-hub-posts { margin: 0 12px; padding: 14px; }
  .anduc-health-hub-post-grid { grid-template-columns: 1fr; }
  .anduc-health-hub-post.is-featured { grid-column: auto; grid-row: auto; }
  .anduc-health-hub-post.is-featured strong { font-size: 20px; }
  .anduc-health-hub-post:not(.is-featured) { grid-column: auto; }
  .anduc-health-hub-post:not(.is-featured) a { grid-template-columns: 112px minmax(0, 1fr); }
  .anduc-health-hub-post:not(.is-featured) img,
  .anduc-health-hub-post:not(.is-featured) .anduc-health-hub-post-placeholder { height: 76px; }
}

/* Reuse the short-video carousel at the end of the health hub. */
.anduc-health-hub-videos {
  margin: 20px 20px 0;
}
.anduc-health-hub-short-videos.adcc-container {
  background: linear-gradient(180deg, #f0faf7 0%, #f9fcfb 100%) !important;
  border: 1px solid #cfe7df !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 8px rgba(15, 91, 78, .035);
  box-sizing: border-box;
  margin: 0 !important;
  max-width: none !important;
  overflow: hidden;
  padding: 20px !important;
  position: relative;
  width: 100% !important;
}
.anduc-health-hub-short-videos .adcc-shorts-head {
  margin-bottom: 14px;
}
.anduc-health-hub-short-videos .adcc-shorts-head h2 {
  margin: 0;
}
.anduc-health-hub-short-videos .adcc-shorts-head > div,
.anduc-health-hub-short-videos .adcc-short-products {
  display: none !important;
}
.anduc-health-hub-short-videos .adcc-shorts-track {
  -ms-overflow-style: none;
  display: flex !important;
  gap: 14px;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory !important;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.anduc-health-hub-short-videos .adcc-shorts-track::-webkit-scrollbar {
  display: none;
  height: 0;
}
.anduc-health-hub-short-videos .adcc-short-card {
  background: transparent;
  border-radius: 12px;
  flex: 0 0 clamp(170px, calc((100% - 70px) / 6), 205px);
  margin: 0 !important;
  max-width: none !important;
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.anduc-health-hub-short-videos .adcc-short-frame {
  aspect-ratio: 9 / 16;
  background: #0b1514;
  overflow: hidden;
  position: relative;
}
.anduc-health-hub-short-videos .adcc-short-frame > img,
.anduc-health-hub-short-videos .adcc-short-frame > iframe {
  border: 0;
  display: block;
  height: 100% !important;
  inset: 0;
  position: absolute;
  width: 100% !important;
}
.anduc-health-hub-short-videos .adcc-short-frame > img {
  object-fit: cover;
  object-position: center;
  transition: opacity .18s ease;
  z-index: 1;
}
.anduc-health-hub-short-videos .adcc-short-frame > iframe {
  pointer-events: none;
  z-index: 2;
}
.anduc-health-hub-short-videos .adcc-short-toggle {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  display: block !important;
  height: 100% !important;
  inset: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  position: absolute !important;
  touch-action: pan-x pan-y;
  width: 100% !important;
  z-index: 4;
}
.anduc-health-hub-short-videos .adcc-short-badge {
  background: #ff970f;
  border-radius: 5px;
  color: #fff;
  font-family: Arial, sans-serif !important;
  font-size: 10px;
  font-weight: 700;
  left: 9px;
  letter-spacing: 0;
  line-height: 1;
  padding: 4px 7px;
  pointer-events: none;
  position: absolute;
  top: 9px;
  transition: opacity .18s ease;
  text-transform: none;
  z-index: 3;
}
.anduc-health-hub-short-videos .adcc-short-frame.is-playing > img,
.anduc-health-hub-short-videos .adcc-short-frame.is-playing > .adcc-short-badge {
  opacity: 0;
}
.anduc-health-hub-short-videos .adcc-short-card > .adcc-short-title {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  box-sizing: border-box;
  color: #15211f;
  display: -webkit-box !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4;
  margin: 9px auto 0 !important;
  max-width: calc(100% - 14px);
  min-height: 39px;
  overflow: hidden;
  overflow-wrap: break-word;
  padding: 0 2px !important;
  text-overflow: ellipsis;
  width: calc(100% - 14px);
}
.anduc-health-hub-short-videos .adcc-shorts-nav {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 7;
}
.anduc-health-hub-short-videos .adcc-shorts-nav button {
  align-items: center;
  background: #fff !important;
  border: 1px solid #d6e3e0 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(16, 63, 55, .18) !important;
  color: #1467df !important;
  display: flex;
  font-size: 32px !important;
  height: 46px !important;
  justify-content: center;
  line-height: 1 !important;
  margin: 0 !important;
  min-height: 46px !important;
  padding: 0 0 4px !important;
  pointer-events: auto;
  position: absolute;
  top: 53%;
  transform: translateY(-50%);
  transition: opacity .16s ease, transform .16s ease;
  width: 46px !important;
}
.anduc-health-hub-short-videos .adcc-shorts-nav button:disabled {
  opacity: 0;
  pointer-events: none;
}
.anduc-health-hub-short-videos [data-adcc-short-prev] {
  left: 5px;
}
.anduc-health-hub-short-videos [data-adcc-short-next] {
  right: 5px;
}
.anduc-health-hub-short-videos .adcc-short-close {
  z-index: 8;
}
.anduc-health-hub-short-videos .adcc-short-frame.is-expanded,
.anduc-health-hub-short-videos .adcc-short-frame:fullscreen {
  aspect-ratio: auto !important;
  background: #000 !important;
  border-radius: 0 !important;
  height: 100dvh !important;
  inset: 0 !important;
  max-height: none !important;
  max-width: none !important;
  position: fixed !important;
  width: 100vw !important;
  z-index: 1000000 !important;
}
.anduc-health-hub-short-videos .adcc-short-frame.is-expanded .adcc-short-close,
.anduc-health-hub-short-videos .adcc-short-frame:fullscreen .adcc-short-close {
  display: flex !important;
}
@media (max-width: 767px) {
  .anduc-health-hub-videos {
    margin: 12px 12px 0;
  }
  .anduc-health-hub-short-videos.adcc-container {
    padding: 12px !important;
  }
  .anduc-health-hub-short-videos .adcc-shorts-head h2 {
    font-size: 19px !important;
  }
  .anduc-health-hub-short-videos .adcc-shorts-track {
    gap: 10px;
  }
  .anduc-health-hub-short-videos .adcc-short-card {
    flex-basis: calc((100% - 10px) / 2);
  }
  .anduc-health-hub-short-videos .adcc-shorts-nav {
    display: none !important;
  }
}

/* 4, 6: chỉ giữ mẫu thẻ mới trên trang danh mục và tạo khoảng cách rõ ràng. */
body.archive.woocommerce .products.row {
  align-items: stretch;
  margin-left: -8px !important;
  margin-right: -8px !important;
}

body.archive.woocommerce .products > .product-small.col {
  display: flex !important;
  padding: 8px !important;
}

body.archive.woocommerce .products > .product-small.col > .col-inner {
  display: flex;
  height: 100%;
  width: 100%;
}

body.archive.woocommerce .products > .product-small.col > .col-inner > .product-small.box,
body.archive.woocommerce .products > .product-small.col > .col-inner > .badge-container {
  display: none !important;
}

body.archive.woocommerce .products .adcc-product-card {
  border-color: #dce8e4;
  width: 100%;
}

/* 1.3.39: Can giua anh tren archive. Quy tac chung cu dat anh absolute va
   khoa dong thoi left/right/width, khien mot so trinh duyet bo qua canh phai
   va lam thumbnail bi lech/cat nhe. Archive dung flex de can giua on dinh. */
body.archive.woocommerce .adcc-product-card .adcc-product-media {
  align-items: center !important;
  display: flex !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 12px !important;
}

body.archive.woocommerce .adcc-product-card .adcc-product-media > img {
  bottom: auto !important;
  display: block !important;
  flex: 0 0 100% !important;
  height: 100% !important;
  left: auto !important;
  margin: auto !important;
  max-height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  position: static !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
}

body.archive.woocommerce .woocommerce-result-count {
  color: #435c56;
  font-size: 14px;
}

/* 4: khôi phục bố cục mua hàng, không ép form có sticky bar vào nửa cột. */
body.single-product .product-summary .adcc-purchase-layout { display: contents !important; }

body.single-product .product-summary form.cart.anduc-storefront-cart,
body.single-product .product-summary form.cart {
  clear: both;
  display: block !important;
  float: none !important;
  margin: 16px 0 10px !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.single-product .product-summary form.cart .sticky-add-to-cart:not(.sticky-add-to-cart--active) {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
}

body.single-product .product-summary form.cart .sticky-add-to-cart:not(.sticky-add-to-cart--active) .quantity {
  flex: 0 0 auto;
  margin: 0 !important;
}

body.single-product .product-summary form.cart .sticky-add-to-cart:not(.sticky-add-to-cart--active) .single_add_to_cart_button {
  flex: 1 1 auto;
  margin: 0 !important;
  min-height: 50px;
  min-width: 190px;
  white-space: nowrap;
  width: auto !important;
}

body.single-product .product-summary .sw_buy_now.anduc-storefront-consult,
body.single-product .product-summary .sw_buy_now {
  align-items: center;
  border-radius: 8px;
  display: flex !important;
  flex-direction: column;
  float: none !important;
  justify-content: center;
  margin: 0 0 18px !important;
  min-height: 52px;
  padding: 8px 16px !important;
  width: 100% !important;
}

.sticky-add-to-cart--active {
  gap: 10px;
  padding: 7px 14px !important;
}

.sticky-add-to-cart--active .sticky-add-to-cart__product {
  flex: 1 1 360px;
  min-width: 0;
}

.sticky-add-to-cart--active .single_add_to_cart_button {
  min-width: 180px;
  white-space: nowrap;
}

/* 5: Bài viết liên quan thay cho khu sản phẩm tương tự của WooCommerce. */
body.single-product .related.related-products-wrapper { display: none !important; }
/* Hide the legacy SPVV block: it is replaced by the scored carousel below. */
body.single-product .spvv-wrap { display: none !important; }

.anduc-product-related {
  border-top: 1px solid var(--anduc-runtime-border);
  margin-top: 28px;
  padding: 32px 0 12px;
}
.anduc-product-related h2 {
  color: #17342e;
  font-size: 24px;
  margin: 0 0 18px;
  text-transform: none;
}
.anduc-product-related-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 13px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.anduc-product-related-card {
  background: #fff;
  border: 1px solid var(--anduc-runtime-border);
  border-radius: 14px;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 calc((100% - 64px) / 5);
  flex-direction: column;
  min-width: 205px;
  overflow: hidden;
  padding: 12px;
  scroll-snap-align: start;
}
.anduc-product-related-image { display: block; }
.anduc-product-related-image img { aspect-ratio: 1; display: block; height: auto; object-fit: contain; width: 100%; }
.anduc-product-related-card > span { color: var(--anduc-runtime-primary); font-size: 11px; font-weight: 700; margin-top: 11px; text-transform: uppercase; }
.anduc-product-related-card h3 { font-size: 15px; line-height: 1.42; margin: 6px 0 10px; }
.anduc-product-related-card h3 a { color: #17342e; text-decoration: none; }
.anduc-product-related-price { font-weight: 700; margin-top: auto; }
.anduc-product-related-price del { color: #82918c; font-size: 12px; font-weight: 400; }
.anduc-product-related-price ins { color: #17342e; text-decoration: none; }

.anduc-related-articles {
  border-top: 1px solid var(--anduc-runtime-border);
  margin-top: 28px;
  padding: 32px 0 42px;
}

.anduc-related-articles h2 {
  color: #17342e;
  font-size: 24px;
  margin: 0 0 18px;
  text-transform: none;
}

.anduc-related-articles-grid {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.anduc-related-article-card {
  background: #fff;
  border: 1px solid var(--anduc-runtime-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 64px) / 5);
  min-width: 210px;
  overflow: hidden;
  scroll-snap-align: start;
}

.anduc-related-article-image {
  background: var(--anduc-runtime-surface);
  display: block;
}

.anduc-related-article-image img,
.anduc-related-article-placeholder {
  aspect-ratio: 16 / 10;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.anduc-related-article-placeholder {
  background: linear-gradient(135deg, #d9eee8, #eef8f5);
}

.anduc-related-article-copy { padding: 13px 14px 15px; }
.anduc-related-article-copy > span { color: var(--anduc-runtime-primary); font-size: 12px; font-weight: 700; }
.anduc-related-article-copy h3 { font-size: 16px; line-height: 1.4; margin: 6px 0 8px; }
.anduc-related-article-copy h3 a { color: #17342e; text-decoration: none; }
.anduc-related-article-copy p { color: #62766f; font-size: 13px; line-height: 1.55; margin: 0; }

@media (max-width: 1099px) {
  .anduc-product-related-card { flex-basis: calc((100% - 32px) / 3); }
  .anduc-related-article-card { flex-basis: calc((100% - 32px) / 3); }
}

@media (max-width: 849px) {
  .sticky-add-to-cart--active .sticky-add-to-cart__product { display: none !important; }
  .sticky-add-to-cart--active .single_add_to_cart_button { min-width: 170px; }
}

@media (max-width: 767px) {
  .adcc-health-news { padding: 15px !important; }
  .adcc-health-news-title h2 { font-size: 21px !important; }
  .adcc-smart-category-row > .adcc-topic-head { align-items: flex-start !important; flex-direction: column !important; }
  .adcc-smart-category-row .adcc-topic-filters { flex-wrap: nowrap; justify-content: flex-start; max-width: 100%; overflow-x: auto; }
  /* 1.3.40: Sản phẩm liên quan dùng đúng tỷ lệ hai thẻ/màn hình như Gợi ý. */
  body.single-product .anduc-product-related h2 {
    font-size: 21px !important;
    margin-bottom: 14px !important;
  }
  body.single-product .anduc-product-related-scroll {
    gap: 10px !important;
    padding: 2px 0 12px !important;
  }
  body.single-product .anduc-product-related-card {
    flex: 0 0 calc((100% - 10px) / 2) !important;
    max-width: calc((100% - 10px) / 2) !important;
    min-width: 0 !important;
    padding: 10px !important;
  }
  body.single-product .anduc-product-related-card > span {
    font-size: 10px !important;
    line-height: 1.4 !important;
    margin-top: 8px !important;
    text-transform: none !important;
  }
  body.single-product .anduc-product-related-card h3 {
    display: -webkit-box;
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin: 5px 0 9px !important;
    min-height: calc(1.45em * 3);
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  body.single-product .anduc-product-related-price {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
  body.single-product .anduc-product-related-price del {
    font-size: 11px !important;
  }
  .anduc-recent-card { flex-basis: min(78vw, 290px); }
  /* Hiển thị hai bài viết liên quan trên cùng một màn hình mobile. */
  .anduc-related-article-card {
    flex: 0 0 calc((100% - 10px) / 2);
    max-width: calc((100% - 10px) / 2);
    min-width: 0;
  }
  .anduc-related-article-copy p { display: none; }
}

@media (max-width: 480px) {
  body.single-product .product-summary form.cart .sticky-add-to-cart:not(.sticky-add-to-cart--active) {
    align-items: stretch;
    flex-wrap: wrap;
  }

  body.single-product .product-summary form.cart .sticky-add-to-cart:not(.sticky-add-to-cart--active) .single_add_to_cart_button {
    flex-basis: calc(100% - 100px);
    min-width: 0;
  }
}

/* 1.0.2: cụm mua hàng ba nút và nút nổi khi đã cuộn qua cụm chính. */
body.single-product .product-summary form.cart.anduc-main-cart,
body.single-product .product-summary form.cart.anduc-main-cart .sticky-add-to-cart-wrapper,
body.single-product .product-summary form.cart.anduc-main-cart .sticky-add-to-cart {
  display: block !important;
  margin: 0 !important;
  width: 100% !important;
}

body.single-product .product-summary form.cart.anduc-main-cart .sticky-add-to-cart__product {
  display: none !important;
}

body.single-product .product-summary form.cart.anduc-main-cart .sticky-add-to-cart.sticky-add-to-cart--active {
  background: transparent !important;
  border: 0 !important;
  bottom: auto !important;
  left: auto !important;
  padding: 0 !important;
  position: static !important;
  right: auto !important;
  z-index: auto !important;
}

.anduc-product-actions {
  align-items: stretch;
  display: grid !important;
  gap: 12px;
  grid-template-columns: 86px repeat(3, minmax(0, 1fr));
  margin: 20px 0 22px;
  max-width: none !important;
  min-width: 0;
  width: 100%;
}

body.single-product .product-summary .anduc-legacy-sticky {
  display: none !important;
}

.anduc-product-actions > .quantity {
  align-items: stretch;
  display: inline-flex !important;
  height: 54px !important;
  margin: 0 !important;
}

.anduc-product-actions > .quantity .button,
.anduc-product-actions > .quantity .qty {
  height: 54px !important;
  min-height: 54px !important;
}

.anduc-product-actions .single_add_to_cart_button,
.anduc-product-actions .anduc-buy-now,
.anduc-product-actions .anduc-consult-action {
  align-items: center !important;
  border: 0 !important;
  border-radius: 9px !important;
  box-sizing: border-box;
  display: inline-flex !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  justify-content: center;
  line-height: 1.25 !important;
  margin: 0 !important;
  /* Fixed height is intentional: Flatsome's own padding/min-height rules
     otherwise make each of these three controls a different height. */
  height: 54px !important;
  max-height: 54px !important;
  min-height: 54px !important;
  padding: 0 14px !important;
  text-align: center;
  text-decoration: none !important;
  width: 100% !important;
}

.anduc-product-actions .single_add_to_cart_button {
  background: #198754 !important;
  color: #fff !important;
}

.anduc-product-actions .anduc-buy-now {
  background: #0d6efd !important;
  color: #fff !important;
  animation: anduc-buy-now-pulse 1.9s ease-in-out infinite;
}

.anduc-product-actions .anduc-consult-action {
  background: #fd7e14 !important;
  color: #fff !important;
  flex-direction: column;
  gap: 2px;
}

.anduc-product-actions .anduc-consult-action strong { color: inherit !important; font: inherit !important; }
.anduc-product-actions .anduc-consult-action span { color: rgba(255,255,255,.88) !important; font-size: 11px; font-weight: 500; }

@keyframes anduc-buy-now-pulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(13,110,253,.28); }
  45% { transform: translateY(-2px); box-shadow: 0 7px 16px 0 rgba(13,110,253,.28); }
}

.anduc-floating-actions {
  background: rgba(255,255,255,.97);
  border: 1px solid #d8e9e4;
  border-radius: 14px;
  bottom: 20px;
  box-shadow: 0 14px 35px rgba(14,56,48,.22);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: fixed;
  right: 20px;
  transform: translateY(14px);
  transition: opacity .18s ease, transform .18s ease;
  width: 230px;
  z-index: 9998;
}

.anduc-floating-actions.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.anduc-floating-actions button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  min-height: 46px;
  padding: 9px 12px;
  width: 100%;
}

.anduc-floating-actions .anduc-float-add { background: #198754; }
.anduc-floating-actions .anduc-float-buy { background: #0d6efd; }
.anduc-floating-actions .anduc-float-consult { background: #fd7e14; }

@media (max-width: 767px) {
  .anduc-product-actions {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .anduc-product-actions > .quantity { justify-self: stretch; }
  .anduc-floating-actions {
    border-radius: 12px 12px 0 0;
    bottom: 0;
    left: 0;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    right: 0;
    transform: translateY(110%);
    width: auto;
  }
  .anduc-floating-actions .anduc-float-add { display: none; }
  .anduc-floating-actions button { min-height: 48px; }
}

/* Custom styles for Prescription Medicine (Thuốc kê đơn) */
body.anduc-prescription-medicine .product-summary .price,
body.anduc-prescription-medicine .product-summary .adcc-product-price,
body.anduc-prescription-medicine .product-summary form.cart,
body.anduc-prescription-medicine .product-summary .quantity,
body.anduc-prescription-medicine .product-summary .single_add_to_cart_button,
body.anduc-prescription-medicine .product-summary .anduc-buy-now,
body.anduc-prescription-medicine .anduc-floating-actions .anduc-float-add,
body.anduc-prescription-medicine .anduc-floating-actions .anduc-float-buy {
  display: none !important;
}

body.anduc-prescription-medicine .product-summary .anduc-product-actions {
  grid-template-columns: 1fr !important;
}

body.anduc-prescription-medicine .product-summary .anduc-consult-action {
  grid-column: span 1 / auto !important;
  width: 100% !important;
}



/* Khôi phục lưới section danh mục khi HTML cũ lồng dải sản phẩm vào thanh tiêu đề. */
@media (min-width: 768px) {
  .adcc-smart-category-row > .adcc-topic-head {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) max-content !important;
    gap: 12px 16px !important;
  }

  .adcc-smart-category-row > .adcc-topic-head > h2 {
    grid-column: 1 !important;
    min-width: 180px !important;
    width: auto !important;
  }

  .adcc-smart-category-row > .adcc-topic-head > .adcc-topic-filters {
    grid-column: 2 !important;
    max-width: min(65vw, 840px) !important;
  }

  .adcc-smart-category-row > .adcc-topic-head > .adcc-product-grid {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}
/* Removed from the storefront. Kept as a failsafe for stale cached markup. */
.anduc-recent-section,
.adcc-section-recently_viewed,
[data-adcc-row="recently_viewed"] {
  display: none !important;
}

/* Out-of-stock products: replace the plain WooCommerce line with a useful wait list. */
body.anduc-out-of-stock-product .product-summary p.stock.out-of-stock,
body.anduc-out-of-stock-product .product-summary > .sw_buy_now,
body.anduc-out-of-stock-product .product-summary .anduc-storefront-consult,
body.anduc-out-of-stock-product .anduc-floating-actions {
  display: none !important;
}

.anduc-oos-waitlist {
  background: #fff;
  border: 1px solid #e2e6e9;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(20, 45, 38, .06);
  margin: 20px 0 18px;
  padding: 9px;
  width: 100%;
}

.anduc-oos-status {
  align-items: center;
  background: #f1f2f4;
  border-radius: 9px;
  color: #202426;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 64px;
  padding: 9px 14px;
  text-align: center;
}

.anduc-oos-status strong { font-size: 18px; line-height: 1.25; }
.anduc-oos-status a { color: #394149; font-size: 14px; line-height: 1.35; text-decoration: none; }
.anduc-oos-waitlist h2 { font-size: 17px; margin: 10px 0 9px; text-align: center; }

.anduc-oos-form { margin: 0; }
.anduc-oos-form > input:not([type="hidden"]) {
  background: #fff;
  border: 1px solid #d8dde1;
  border-radius: 9px;
  box-shadow: none;
  font-size: 15px;
  height: 44px;
  margin: 0 0 9px;
  padding: 0 13px;
  width: 100%;
}
.anduc-oos-form > input:focus { border-color: #0aa8b2; box-shadow: 0 0 0 3px rgba(10,168,178,.12); }
.anduc-oos-honeypot { left: -9999px !important; opacity: 0 !important; position: absolute !important; }
.anduc-oos-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.anduc-oos-submit,
.anduc-oos-related {
  align-items: center;
  border-radius: 9px;
  box-sizing: border-box;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.25;
  margin: 0 !important;
  min-height: 46px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}
.anduc-oos-submit { background: #e60023 !important; border: 1px solid #e60023 !important; color: #fff !important; }
.anduc-oos-submit:hover { background: #c9001f !important; }
.anduc-oos-submit:disabled { cursor: wait; opacity: .7; }
.anduc-oos-related { background: #fff; border: 1px solid #e60023; color: #d90020; }
.anduc-oos-related:hover { background: #fff4f5; color: #c4001c; }
.anduc-oos-message { font-size: 14px; line-height: 1.45; min-height: 0; padding: 0 4px; }
.anduc-oos-message:not(:empty) { margin-top: 10px; }
.anduc-oos-message.is-success { color: #087b54; font-weight: 600; }
.anduc-oos-message.is-error { color: #c62828; font-weight: 600; }

@media (max-width: 520px) {
  .anduc-oos-actions { grid-template-columns: 1fr; }
  .anduc-oos-status strong { font-size: 17px; }
  .anduc-oos-waitlist h2 { font-size: 16px; }
}

/* 1.3.41: Canh giua toan bo noi dung mobile.
   Theme dat padding chi o ben trai cho cot bai viet; Form Tu Van lai tinh
   toa do popup truoc khi ap width 95%. Hai truong hop deu lam khoang trong
   hai ben khong bang nhau tren dien thoai. */

/* Phase 8: tieu de bai viet phai luon nam trong cot noi dung.
   Mot so tieu de dai khong co diem ngat hop ly lam article rong hon grid
   sau khi bo hotfix o Phase 7. Giu word-break tu nhien, chi cho phep ngat
   bat buoc khi chuoi thuc su khong vua cot. */
body.single-post .blog-single article,
body.single-post .blog-single .article-inner,
body.single-post .blog-single .entry-header,
body.single-post .blog-single .entry-title {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.single-post .blog-single .entry-title {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

@media (max-width: 767px) {
  html,
  body {
    max-width: 100% !important;
    /* clip ngan tran ngang ma khong tao scrolling ancestor; hidden co the
       lam position:sticky cua header mat tac dung tren Chrome mobile. */
    overflow-x: clip !important;
  }

  /* Section trang chu da co padding 16px tu storefront.css. Khong long them
     padding ngang vao topic-head, neu khong luoi san pham bi hep va lech. */
  body.home .adcc-smart-category-row > .adcc-topic-head {
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  body.home .adcc-smart-category-row > .adcc-topic-head > .adcc-product-grid {
    box-sizing: border-box !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Flatsome/child theme chi bo 15px ben trai cho .large-9 cua bai viet. */
  body.single-post .blog-single > .row,
  body.single-post .blog-single > .row.row-large {
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.single-post .blog-single > .row > .large-9 {
    box-sizing: border-box !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    width: 100% !important;
  }

  body.single-post .blog-single article,
  body.single-post .blog-single .article-inner,
  body.single-post .blog-single .entry-content {
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* bPopup ghi left truc tiep vao style. Neo lai theo tam viewport sau khi
     CSS responsive doi kich thuoc popup de hai mep luon bang nhau. */
  .sw-popup-quickbuy {
    box-sizing: border-box !important;
    left: 50% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 480px !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 28px) !important;
  }

  .sw-popup-quickbuy .sw-popup-inner {
    box-sizing: border-box !important;
    left: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
  }

  .sw-popup-quickbuy .anduc-popup-layout,
  .sw-popup-quickbuy .anduc-popup-header,
  .sw-popup-quickbuy .anduc-popup-body,
  .sw-popup-quickbuy .anduc-popup-body-left,
  .sw-popup-quickbuy .anduc-popup-body-right {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
}

/* The spacer is a mobile-only implementation detail. Keep it collapsed by
   default so an inline height measured on mobile can never leak into desktop. */
.adcc-mobile-header-spacer {
  display: none !important;
}

/* 1.3.42: Header mobile hai trang thai.
   Ban dau: menu - logo - gio hang, search o hang duoi.
   Khi cuon: menu - search - gio hang tren mot hang sticky gon. */
@media (max-width: 767px) {
  .adcc-site-header {
    left: 0 !important;
    position: relative !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    z-index: 10000 !important;
  }

  .adcc-mobile-header-spacer {
    display: none !important;
    height: 0;
    width: 100%;
  }

  .adcc-mobile-header-spacer.is-active {
    display: block !important;
  }

  .adcc-site-header .adcc-header-main {
    padding: 10px 0 !important;
    transition: padding .18s ease, box-shadow .18s ease !important;
  }

  .adcc-site-header .adcc-header-main > .adcc-header-container {
    align-items: center !important;
    column-gap: 12px !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    grid-template-rows: auto auto !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    row-gap: 10px !important;
    width: 100% !important;
  }

  .adcc-site-header .adcc-mobile-menu-toggle {
    align-items: center !important;
    display: inline-flex !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 44px !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    min-height: 44px !important;
    min-width: 0 !important;
    width: 44px !important;
  }

  .adcc-site-header .adcc-mobile-menu-toggle .dashicons {
    font-size: 29px !important;
    height: 29px !important;
    width: 29px !important;
  }

  .adcc-site-header .adcc-header-logo {
    align-items: center !important;
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-content: center !important;
    margin: 0 !important;
    min-width: 0 !important;
  }

  .adcc-site-header .adcc-header-logo img {
    height: auto !important;
    margin: 0 auto !important;
    max-height: 48px !important;
    max-width: min(100%, 178px) !important;
    object-fit: contain !important;
    width: auto !important;
  }

  .adcc-site-header .adcc-header-tools {
    align-items: center !important;
    display: flex !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    height: 44px !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    min-width: 0 !important;
    width: 44px !important;
  }

  .adcc-site-header .adcc-header-tools > a:last-child {
    align-items: center !important;
    display: inline-flex !important;
    height: 44px !important;
    justify-content: center !important;
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    width: 44px !important;
  }

  .adcc-site-header .adcc-header-tools .dashicons {
    font-size: 27px !important;
    height: 27px !important;
    width: 27px !important;
  }

  .adcc-site-header .adcc-header-search {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    min-width: 0 !important;
    order: initial !important;
    width: 100% !important;
  }

  .adcc-site-header .adcc-header-search form {
    height: 46px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .adcc-site-header .adcc-header-search input[type="search"] {
    font-size: 14px !important;
    height: 42px !important;
    line-height: 42px !important;
    padding-left: 17px !important;
    padding-right: 8px !important;
  }

  .adcc-site-header .adcc-header-search button {
    height: 42px !important;
    min-width: 48px !important;
    width: 48px !important;
  }

  .adcc-site-header.is-mobile-compact .adcc-topbar {
    display: none !important;
  }

  .adcc-site-header.is-mobile-compact {
    left: 0 !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
  }

  body.admin-bar .adcc-site-header.is-mobile-compact {
    top: 46px !important;
  }

  .adcc-site-header.is-mobile-compact .adcc-header-main {
    box-shadow: 0 5px 16px rgba(8, 61, 56, .18) !important;
    padding: 7px 0 !important;
  }

  .adcc-site-header.is-mobile-compact .adcc-header-main > .adcc-header-container {
    column-gap: 8px !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    grid-template-rows: 42px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    row-gap: 0 !important;
  }

  .adcc-site-header.is-mobile-compact .adcc-header-logo {
    display: none !important;
  }

  .adcc-site-header.is-mobile-compact .adcc-mobile-menu-toggle {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 40px !important;
    min-height: 40px !important;
    width: 40px !important;
  }

  .adcc-site-header.is-mobile-compact .adcc-header-search {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .adcc-site-header.is-mobile-compact .adcc-header-search form {
    height: 42px !important;
  }

  .adcc-site-header.is-mobile-compact .adcc-header-search input[type="search"],
  .adcc-site-header.is-mobile-compact .adcc-header-search button {
    height: 38px !important;
    line-height: 38px !important;
  }

  .adcc-site-header.is-mobile-compact .adcc-header-search button {
    min-width: 42px !important;
    width: 42px !important;
  }

  .adcc-site-header.is-mobile-compact .adcc-header-tools {
    grid-column: 3 !important;
    grid-row: 1 !important;
    height: 40px !important;
    width: 40px !important;
  }

  .adcc-site-header.is-mobile-compact .adcc-header-tools > a:last-child {
    height: 40px !important;
    min-height: 40px !important;
    min-width: 40px !important;
    width: 40px !important;
  }
}

/* 1.3.47: compact header links, stacked mega content and explicit category scrolling. */
@keyframes adccMegaPanelFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .adcc-primary-nav > .adcc-header-container {
    gap: clamp(14px, 1.7vw, 26px);
    justify-content: flex-start;
  }
  .adcc-mega-categories {
    flex: 0 1 auto;
    gap: clamp(14px, 1.7vw, 26px);
  }
  .adcc-mega-menu,
  .adcc-mega-nav:nth-last-child(-n+2) .adcc-mega-menu {
    grid-template-columns: 250px minmax(0, 1fr);
    height: clamp(380px, calc(100vh - 230px), 560px);
    min-height: 380px;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .adcc-mega-nav:hover .adcc-mega-menu,
  .adcc-mega-nav:focus-within .adcc-mega-menu {
    transition-delay: 0s;
  }
  .adcc-mega-level-one-shell {
    background: #f4f9f7;
    display: grid;
    grid-template-rows: 34px minmax(0, 1fr) 34px;
    min-height: 0;
    overflow: hidden;
  }
  .adcc-mega-level-one {
    background: transparent;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #8fcfc2 transparent;
    scrollbar-width: thin;
  }
  .adcc-mega-content {
    display: block;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #8fcfc2 transparent;
    scrollbar-width: thin;
  }
  .adcc-mega-level-two {
    min-height: 0;
    overflow: visible;
    padding-bottom: 12px;
  }
  .adcc-mega-products {
    border-left: 0;
    border-top: 1px solid #e6efec;
    padding: 14px 20px 16px;
  }
  .adcc-mega-products > h3 { font-size: 16px; margin-bottom: 10px; }
  .adcc-mega-product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adcc-mega-product { grid-template-columns: 70px minmax(0, 1fr); }
  .adcc-mega-product img { height: 70px; width: 70px; }
  .adcc-mega-product strong { font-size: 13px; line-height: 1.4; }
  .adcc-mega-product small { font-size: 12px; }
}

.adcc-mega-child-trigger { font-size: 14px; font-weight: 700; }
.adcc-mega-panel h3 { font-size: 19px; }
.adcc-mega-grandchildren a { font-size: 14px; font-weight: 600; }
.adcc-mega-panel.is-active { animation: adccMegaPanelFadeIn .2s ease both; }
.adcc-mega-scroll-button {
  align-items: center;
  background: linear-gradient(180deg, #f4f9f7 0%, #e7f4f0 100%) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #0f766e !important;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  font-weight: 800;
  justify-content: center;
  min-height: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  transition: opacity .16s ease, background .16s ease;
  width: 100%;
}
.adcc-mega-level-one-shell.is-scrollable .adcc-mega-scroll-button {
  opacity: 1;
  pointer-events: auto;
}
.adcc-mega-scroll-button:hover { background: #d8eee8 !important; }
.adcc-mega-scroll-button:disabled { cursor: default; opacity: .28 !important; }

@media (max-width: 767px) {
  .adcc-mega-level-one-shell,
  .adcc-mega-content { display: block; }
  .adcc-mega-scroll-button { display: none; }
  .adcc-mega-level-one { max-height: none; overflow: visible; }
  .adcc-mega-child-trigger { font-size: 14px; }
  .adcc-mega-grandchildren a { font-size: 13px; }
}
/* 1.3.51: Danh mục nổi bật thành một khối hoàn chỉnh, 6 cột x 2 hàng. */
body.home .adcc-personalized-featured-categories {
  box-sizing: border-box;
  margin: 18px auto 24px !important;
  padding: 0 20px;
}
body.home .adcc-personalized-featured-categories .adcc-container {
  background: #edf3ff;
  border: 1px solid #d5e1f4;
  border-radius: 18px;
  box-sizing: border-box;
  max-width: 1280px;
  padding: 22px 20px 24px;
}
body.home .adcc-personalized-featured-categories .adcc-section-heading {
  margin: 0 0 16px;
}
body.home .adcc-personalized-featured-categories .adcc-section-heading h2 {
  align-items: center;
  color: #142f2a;
  display: flex;
  font-size: 22px !important;
  font-weight: 800;
  gap: 9px;
  line-height: 1.25;
  margin: 0;
}
body.home .adcc-personalized-featured-categories .adcc-section-heading h2 .dashicons {
  color: #2563eb;
  font-size: 24px;
  height: 24px;
  width: 24px;
}
body.home .adcc-personalized-featured-categories .adcc-category-grid {
  display: grid !important;
  gap: 14px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
body.home .adcc-personalized-featured-categories .adcc-category-card {
  align-items: center;
  background: #fff !important;
  border: 1px solid #dfe7f1 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 158px !important;
  padding: 14px 10px 13px !important;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body.home .adcc-personalized-featured-categories .adcc-category-card:hover {
  border-color: #9db8e8 !important;
  box-shadow: 0 7px 18px rgba(37, 99, 235, .09) !important;
  transform: translateY(-2px);
}
body.home .adcc-personalized-featured-categories .adcc-category-card img,
body.home .adcc-personalized-featured-categories .adcc-featured-category-image {
  background: #f5f8ff;
  border-radius: 12px;
  box-sizing: border-box;
  display: block;
  height: 68px !important;
  object-fit: contain !important;
  padding: 5px;
  width: 68px !important;
}
body.home .adcc-personalized-featured-categories .adcc-category-card strong {
  color: #102f2a;
  display: block;
  font-size: 15px !important;
  font-weight: 750;
  line-height: 1.35;
  margin-top: 10px;
  min-height: 40px;
}
body.home .adcc-personalized-featured-categories .adcc-category-card small {
  color: #66788a;
  display: block;
  font-size: 13px;
  line-height: 1.3;
  margin-top: 4px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  body.home .adcc-personalized-featured-categories .adcc-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 767px) {
  body.home .adcc-personalized-featured-categories {
    padding: 0 14px;
  }
  body.home .adcc-personalized-featured-categories .adcc-container {
    border-radius: 16px;
    padding: 18px 12px 20px;
  }
  body.home .adcc-personalized-featured-categories .adcc-section-heading h2 {
    font-size: 20px !important;
  }
  body.home .adcc-personalized-featured-categories .adcc-category-grid {
    gap: 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.home .adcc-personalized-featured-categories .adcc-category-card {
    min-height: 150px !important;
    padding: 12px 8px !important;
  }
  body.home .adcc-personalized-featured-categories .adcc-category-card strong {
    font-size: 14px !important;
  }
  body.home .adcc-personalized-featured-categories .adcc-category-card small {
    font-size: 12px;
  }
}
/* 1.3.52: đổi đồng thời sản phẩm phù hợp khi đổi danh mục cấp 1. */
.adcc-mega-product-panels { min-width: 0; }
.adcc-mega-product-panels .adcc-mega-products { display: none; }
.adcc-mega-product-panels .adcc-mega-products.is-active {
  animation: adccMegaPanelFadeIn .2s ease both;
  display: block;
}
/* 1.3.53: ảnh menu/sản phẩm dùng ảnh gốc và chữ menu dễ đọc hơn. */
.adcc-primary-nav .adcc-mega-root,
.adcc-primary-nav .adcc-nav-link {
  font-size: 17px !important;
  font-weight: 750 !important;
}
.adcc-mega-child-trigger {
  font-size: 16px !important;
  font-weight: 700 !important;
}
.adcc-mega-panel h3 { font-size: 20px !important; }
.adcc-mega-grandchildren a {
  font-size: 15px !important;
  font-weight: 650 !important;
}
.adcc-mega-product strong {
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.adcc-mega-child-image,
.adcc-mega-grandchild-image,
.adcc-mega-product img {
  display: block !important;
  max-height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
.anduc-product-related-image {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex !important;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.anduc-product-related-image img {
  display: block !important;
  height: 100% !important;
  inset: 0;
  margin: auto !important;
  max-height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  position: absolute;
  width: 100% !important;
}
@media (max-width: 767px) {
  .adcc-primary-nav .adcc-mega-root,
  .adcc-primary-nav .adcc-nav-link { font-size: 16px !important; }
  .adcc-mega-child-trigger { font-size: 15px !important; }
  .adcc-mega-grandchildren a { font-size: 14px !important; }
  .adcc-mega-product strong { font-size: 14px !important; }
}

/* 1.3.54: Can lai noi dung section mobile va thu gon Danh muc noi bat
   thanh cua so 2 cot x 2 hang co the vuot ngang. */
@media (max-width: 767px) {
  /* Storefront tao margin am de keo topic-head ra sat mep trai. Huy margin
     nay de tieu de va luoi san pham co cung khoang dem 12px o hai ben. */
  body.home #adcc-smart-home-rows .adcc-smart-category-row > .adcc-topic-head {
    box-sizing: border-box !important;
    margin: 0 0 11px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.home #adcc-smart-home-rows .adcc-smart-category-row > .adcc-topic-head > .adcc-product-grid {
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.home .adcc-personalized-featured-categories .adcc-category-grid {
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
    display: grid !important;
    gap: 10px !important;
    grid-auto-columns: calc((100% - 10px) / 2) !important;
    grid-auto-flow: column !important;
    grid-template-columns: none !important;
    grid-template-rows: repeat(2, 150px) !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    padding: 0 0 2px !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x;
    width: 100% !important;
  }

  body.home .adcc-personalized-featured-categories .adcc-category-grid::-webkit-scrollbar {
    display: none;
  }

  body.home .adcc-personalized-featured-categories .adcc-category-card {
    height: 150px !important;
    min-height: 150px !important;
    min-width: 0 !important;
    scroll-snap-align: start;
  }
}

/* 1.3.55: Box Duoc si tren desktop gom anh lon va hai cot noi dung.
   Cot ho ten vua noi dung; cot kinh nghiem su dung toan bo phan con lai. */
@media (min-width: 768px) {
  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-card {
    align-items: stretch !important;
    column-gap: 18px !important;
    grid-template-columns: 118px max-content minmax(0, 1fr) !important;
    padding: 18px !important;
  }

  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-photo {
    align-self: stretch !important;
    border-radius: 13px !important;
    height: auto !important;
    min-height: 128px !important;
    width: 118px !important;
  }

  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-photo img {
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    width: 100% !important;
  }

  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-copy {
    align-self: start !important;
    max-width: 260px;
    min-width: 0;
    width: max-content;
  }

  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-copy > .adcc-kicker,
  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-experience > .adcc-kicker {
    display: block !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    min-height: 15px;
  }

  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-copy h3,
  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-experience > strong {
    font-size: 19px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
  }

  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-copy h3 {
    margin: 5px 0 3px !important;
  }

  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-experience {
    align-self: stretch !important;
    justify-content: flex-start !important;
    min-width: 0;
    padding-left: 18px !important;
  }

  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-experience > strong {
    margin-top: 5px !important;
  }

  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-experience > small,
  body.anduc-storefront.single-product .product-summary .adcc-pharmacist-experience > p {
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-top: 7px !important;
  }
}

/* Hiển thị lại mô tả ngắn (excerpt) trên cả máy tính và điện thoại */
body.single-product .product-short-description,
body.adcc-gallery-extras-mounted.single-product .product-short-description {
  display: block !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: #4b5563 !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important; /* Kéo gần lại với nút Xem thêm */
  max-height: 1000px !important; /* Giá trị đủ lớn để chứa toàn bộ nội dung */
  overflow: hidden !important;
  transition: max-height 0.4s ease-in-out !important; /* Hiệu ứng trượt mở mượt mà */
}

/* Loại bỏ margin bottom mặc định của các thẻ p bên trong mô tả ngắn */
body.single-product .product-short-description p,
body.adcc-gallery-extras-mounted.single-product .product-short-description p {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Giới hạn hiển thị tối đa 3 dòng cho mô tả ngắn khi bị thu gọn */
body.single-product .product-short-description.adcc-excerpt-collapsed,
body.adcc-gallery-extras-mounted.single-product .product-short-description.adcc-excerpt-collapsed {
  max-height: 72px !important; /* 24px line-height * 3 lines */
  overflow: hidden !important;
  position: relative !important;
  transition: max-height 0.4s ease-in-out !important;
}

/* Đảm bảo mở rộng hoàn toàn và mượt mà khi xem thêm */
body.single-product .product-short-description.adcc-excerpt-expanded,
body.adcc-gallery-extras-mounted.single-product .product-short-description.adcc-excerpt-expanded {
  max-height: 1500px !important; /* Đủ lớn cho các mô tả cực dài */
  transition: max-height 0.6s ease-in-out !important;
}

/* Hiệu ứng mờ dần ở đáy khi thu gọn */
.product-short-description.adcc-excerpt-collapsed::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 28px !important;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%) !important;
  pointer-events: none !important;
}

/* Nút Xem thêm / Thu gọn của mô tả ngắn */
.adcc-excerpt-toggle {
  background: transparent !important;
  border: none !important;
  color: #10b981 !important; /* Màu xanh lá nổi bật của An Đức */
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 4px 0 !important;
  margin: -4px 0 0 !important; /* Triệt tiêu hoàn toàn margin bottom của nút Xem thêm */
  cursor: pointer !important;
  display: inline-block !important;
  box-shadow: none !important;
  outline: none !important;
}

.adcc-excerpt-toggle:hover {
  color: #0e3027 !important; /* Màu xanh rừng khi di chuột */
  text-decoration: underline !important;
}

/* Kéo gần Pharma Field với mô tả ngắn phía trên */
body.adcc-component-product-summary.single-product .adcc-pharma-summary {
  margin-top: 0 !important; /* Triệt tiêu margin top */
  padding-top: 8px !important; /* Thu hẹp padding top để kéo sát các phần tử */
}

/* Tùy chỉnh "Nút xem toàn bộ thông tin" ra giữa, xóa dấu + và xóa khoảng cách thừa */
body.adcc-component-product-summary.single-product .adcc-pharma-more-wrap {
  border-top: 1px solid #e1ebe8 !important;
  margin-top: 0 !important;
  padding: 10px 0 2px !important; /* Thu hẹp padding */
  text-align: left !important; /* Giữ nội dung bên trong căn lề trái như cũ */
}

body.adcc-component-product-summary.single-product .adcc-pharma-toggle {
  display: block !important; /* Chuyển thành dạng khối để căn giữa bằng margin auto */
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
  width: max-content !important;
}

body.adcc-component-product-summary.single-product .adcc-pharma-toggle::after,
body.adcc-component-product-summary.single-product .adcc-pharma-toggle[aria-expanded="true"]::after {
  content: "" !important; /* Bỏ dấu + và dấu - */
  display: none !important;
}

/* Làm cho nút "Cách tra cứu số đăng ký thuốc được cấp phép" to lên bằng với các chữ xung quanh (14px) */
body.adcc-component-product-summary.single-product .adcc-registration-lookup {
  font-size: 14px !important;
}

/* Cố định khung ảnh lớn sản phẩm (Main Product Gallery) */
@media (min-width: 850px) {
  .product-gallery-slider {
    height: 480px !important;
    overflow: hidden !important;
    background: #ffffff !important; /* Nền trắng sạch sẽ cho phần thừa của ảnh dọc/ngang */
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
  }
  .product-gallery-slider .flickity-viewport {
    height: 480px !important;
  }
  .product-gallery-slider .woocommerce-product-gallery__image {
    height: 480px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .product-gallery-slider .woocommerce-product-gallery__image a,
  .product-gallery-slider .woocommerce-product-gallery__image img {
    height: 100% !important;
    width: 100% !important;
    max-height: 480px !important;
    object-fit: contain !important; /* Không bị méo ảnh, tự co giãn vừa khung */
  }
}

@media (max-width: 849px) {
  .product-gallery-slider {
    height: 350px !important;
    overflow: hidden !important;
    background: #ffffff !important; /* Nền trắng sạch sẽ */
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
  }
  .product-gallery-slider .flickity-viewport {
    height: 350px !important;
  }
  .product-gallery-slider .woocommerce-product-gallery__image {
    height: 350px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .product-gallery-slider .woocommerce-product-gallery__image a,
  .product-gallery-slider .woocommerce-product-gallery__image img {
    height: 100% !important;
    width: 100% !important;
    max-height: 350px !important;
    object-fit: contain !important;
  }
}

/* Cố định các ảnh thu nhỏ ở dưới (Product Gallery Thumbnails) thành hình vuông */
.product-thumbnails .col {
  width: 72px !important;
  height: 72px !important;
  min-width: 72px !important;
  min-height: 72px !important;
  padding: 0 !important;
  margin-right: 8px !important;
  margin-bottom: 8px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background: #fff !important;
  display: inline-block !important;
  float: none !important;
}

.product-thumbnails .col a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.product-thumbnails .col img {
  width: 100% !important;
  height: 100% !important;
  max-height: 72px !important;
  object-fit: cover !important; /* Lấp đầy ô vuông */
  transform: none !important;
}

/* Ảnh thumbnail đang được chọn */
.product-thumbnails .col.is-nav-selected {
  border-color: #10b981 !important; /* Màu xanh lá thương hiệu */
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}

/* Nâng cỡ chữ các phần tử thông tin nhỏ (từ 10px-14px) lên 15px để tăng độ đọc hiển thị */
body.single-product .adcc-product-meta dt,
body.single-product .adcc-product-meta dd,
body.single-product .adcc-copy,
body.single-product .adcc-registration-lookup,
body.single-product .adcc-pharma-warning,
body.single-product .adcc-pharma-toggle,
body.single-product .adcc-excerpt-toggle,
body.single-product .adcc-pharmacist-experience > small,
body.single-product .adcc-pharmacist-experience > p,
body.single-product .anduc-oos-message {
  font-size: 15px !important;
}

/* Custom Lightbox Modal (Long Châu Style) */
.adcc-custom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.adcc-custom-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.adcc-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Nền tối mờ phía sau */
  backdrop-filter: blur(3px);
}

/*.adcc-lightbox-content*/
.adcc-lightbox-content {
  position: relative;
  background: #ffffff;
  width: 96%;
  max-width: 1200px;
  height: 92%;
  max-height: 820px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 2;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.adcc-custom-lightbox.is-open .adcc-lightbox-content {
  transform: scale(1);
}

.adcc-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: bold;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  z-index: 20;
}

.adcc-lightbox-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.adcc-lightbox-main-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  position: relative;
}

.adcc-lightbox-image-container {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.adcc-lightbox-main-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.15s ease;
  transform-origin: center center;
  display: block;
}

.adcc-lightbox-nav {
  background: rgba(241, 245, 249, 0.85);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  user-select: none;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.adcc-lightbox-nav:hover {
  background: #10b981; /* Màu xanh thương hiệu */
  color: #ffffff;
}

.adcc-lightbox-zoom-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}

.adcc-lightbox-zoom-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.adcc-lightbox-zoom-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

.adcc-lightbox-thumbnails-wrapper {
  height: 76px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  overflow-x: auto;
  overflow-y: hidden;
}

.adcc-lightbox-thumbnails-list {
  display: flex;
  gap: 10px;
  justify-content: center;
  min-width: max-content;
  padding: 2px;
}

.adcc-lightbox-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.adcc-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adcc-lightbox-thumb.is-active {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Mobile responsive */
@media (max-width: 767px) {
  .adcc-lightbox-content {
    width: 95%;
    height: 90%;
    padding: 16px;
  }
  
  .adcc-lightbox-nav {
    display: none !important; /* Ẩn nút mũi tên chuyển ảnh trên di động */
  }
  
  .adcc-lightbox-thumb {
    width: 44px;
    height: 44px;
  }
}

/* Ghim toàn bộ cột thư viện ảnh (bao gồm cả ảnh chính và ảnh chờ xem phía dưới) trên Desktop */
@media (min-width: 850px) {
  body.single-product .col.product-gallery {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 100px !important; /* Ghim cách header một khoảng trống đẹp dưới menu */
    align-self: flex-start !important; /* Ngăn kéo dãn chiều cao của cột flex để sticky hoạt động */
    height: auto !important; /* Ép chiều cao cột thu gọn theo nội dung thực tế để hoạt động ghim */
    z-index: 99 !important; /* Đảm bảo nổi trên các phần tử nền khác khi cuộn */
  }
}

/* ==========================================================================
   PRESCRIPTION DRUGS (THUỐC KÊ ĐƠN) CUSTOM STICKY BOTTOM ACTIONS BAR
   ========================================================================== */

/* Nền và khung của thanh nổi kê đơn */
body.anduc-prescription-medicine .anduc-floating-actions.is-rx-floating {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  pointer-events: none;
  display: block !important;
}

body.anduc-prescription-medicine .anduc-floating-actions.is-rx-floating > * {
  pointer-events: auto; /* Kích hoạt click cho phần tử bên trong */
}


/* Mobile Rx panel: Rounded top drawer (Ảnh 1) */
.anduc-rx-floating-mobile {
  display: none;
}

/* Desktop Rx panel: Sticky bar bottom center (Ảnh 2) */
.anduc-rx-floating-desktop {
  display: none;
}

@media (max-width: 767px) {
  .anduc-floating-actions.is-rx-floating {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    position: fixed !important;
    z-index: 9999 !important;
  }

  .anduc-rx-floating-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #edf2f7;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    width: 100%;
    gap: 10px;
  }

  .anduc-rx-floating-subtext {
    font-size: 15px;
    color: #2563eb; /* Màu xanh của chữ nhỏ */
    font-weight: 550;
    text-align: center;
    line-height: 1.4;
  }

  body .anduc-rx-floating-btn,
  .anduc-rx-floating-btn {
    background: #fd7e14 !important; /* Nút cam */
    color: #ffffff !important;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 99px; /* Tròn hình viên thuốc */
    padding: 10px 0;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(253, 126, 20, 0.25);
    cursor: pointer;
  }
}

@media (min-width: 768px) {
  body.anduc-prescription-medicine .anduc-floating-actions.is-rx-floating {
    position: fixed !important;
    bottom: 24px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(120%) !important;
    width: 90% !important;
    max-width: 1000px !important;
    z-index: 9999 !important;
    transition: transform 0.3s ease !important;
  }

  body.anduc-prescription-medicine .anduc-floating-actions.is-rx-floating.is-visible {
    transform: translateX(-50%) translateY(0) !important;
  }

  .anduc-rx-floating-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 12px 24px;
    width: 100%;
    gap: 20px;
  }

  .anduc-rx-floating-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
  }

  .anduc-rx-floating-thumb {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    flex-shrink: 0;
    background: #fff;
  }

  .anduc-rx-floating-title {
    font-size: 15px;
    font-weight: 550;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body .anduc-rx-floating-btn,
  .anduc-rx-floating-btn {
    background: #fd7e14 !important; /* Nút cam */
    color: #ffffff !important;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 99px;
    padding: 10px 24px;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(253, 126, 20, 0.25);
  }
}

/* Đẩy bộ 3 nút liên hệ (Zalo, Hotline, Back-to-top) lên trên khi thanh mua hàng nổi xuất hiện.
   Dùng bottom thay vì transform vì .adcc-floating-contact dùng position: fixed.
   Vị trí mặc định trên mobile là bottom: 72px (từ frontend.css).
   Bình thường bộ 3 nút vẫn giữ nguyên vị trí, chỉ đẩy lên khi thanh nổi xuất hiện. */
@media (max-width: 767px) {
  .adcc-floating-contact {
    transition: bottom 0.3s ease !important;
  }

  /* Đẩy lên khi có thanh mua hàng nổi bình thường (72px + 76px = 148px) */
  body.single-product.anduc-floating-active:not(.anduc-prescription-medicine) .adcc-floating-contact {
    bottom: 148px !important;
  }

  /* Đẩy lên khi có thanh Tư vấn ngay nổi thuốc kê đơn */
  body.single-product.anduc-floating-active.anduc-prescription-medicine .adcc-floating-contact {
    bottom: 155px !important;
  }
}

/* Ẩn thanh tab MÔ TẢ và ĐÁNH GIÁ ở cả mobile và desktop */
.woocommerce-tabs ul.nav,
.woocommerce-tabs .nav,
.woocommerce-tabs ul.tabs,
.woocommerce-tabs .wc-tabs,
.product-tabs.nav,
ul.product-tabs {
  display: none !important;
}

/* 1. Nút "Xem giấy công bố sản phẩm" — căn giữa, chữ 15px, thu hẹp khoảng trắng */
.adcc-publication-action {
  text-align: center !important;
  padding: 4px 16px 4px !important; /* Thu hẹp cả desktop và mobile */
}
.adcc-publication-button {
  font-size: 15px !important;
  padding: 4px 0 !important; 
  display: inline-block !important;
}

/* 2. Ẩn phần Danh mục / Thẻ / Thương hiệu mặc định WooCommerce trên mobile
   (phần này đã hiển thị ở Pharma Field rồi, không cần lặp lại) */
@media (max-width: 767px) {
  body.single-product .product_meta,
  body.single-product .product-meta,
  body.single-product .product-info .product_meta,
  body.single-product .product-details .product_meta {
    display: none !important;
  }
}

/* 3. Ẩn khối nền xám (page-title-bg) trống thỉnh thoảng xuất hiện dưới menu trên Flatsome */
body.single-product .page-title-bg {
  display: none !important;
}
body.single-product .page-title {
  background-color: transparent !important;
}

/* Phase 9 storefront rows: this file is the last theme stylesheet, so keep the
 * final component contract here instead of letting legacy home-row rules win. */
body.home #adcc-smart-home-rows .adcc-tabbed-category {
  background: #e9f5f2 !important;
  border: 1px solid #cfe4df !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
  margin: 0 0 24px !important;
  overflow: hidden !important;
  padding: 0 !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-topic-head {
  align-items: stretch !important;
  background: transparent !important;
  display: grid !important;
  gap: 0 !important;
  grid-template-columns: minmax(260px, 1.05fr) minmax(620px, 3fr) !important;
  margin: 0 !important;
  min-height: 74px !important;
  padding: 0 !important;
  width: 100% !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-topic-head > h2 {
  align-items: center !important;
  display: flex !important;
  font-size: 22px !important;
  gap: 10px !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  min-width: 0 !important;
  padding: 18px 22px !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-topic-head > h2 > .dashicons {
  align-items: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: #0f766e !important;
  display: flex !important;
  flex: 0 0 24px !important;
  font-size: 24px !important;
  height: 24px !important;
  justify-content: center !important;
  margin: 0 !important;
  width: 24px !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-topic-head > .adcc-topic-filters {
  align-items: stretch !important;
  align-self: end !important;
  background: #fff !important;
  border-radius: 18px 18px 0 0 !important;
  display: grid !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
  margin: 12px 14px 0 0 !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-category-tab,
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-view-more {
  align-items: center !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #5f716c !important;
  cursor: pointer !important;
  display: flex !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  justify-content: center !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  min-height: 62px !important;
  min-width: 0 !important;
  padding: 10px 12px !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: normal !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-category-tab:hover,
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-view-more:hover {
  background: #eff8f5 !important;
  color: #0f766e !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-category-tab.is-active {
  background: #0f766e !important;
  border-radius: 18px 18px 0 0 !important;
  color: #fff !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-view-more {
  color: #078477 !important;
  white-space: nowrap !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-category-tab-panel {
  background: #0f766e !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  min-height: 300px !important;
  padding: 16px !important;
  position: relative !important;
  width: 100% !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-category-tab-panel > .adcc-product-grid {
  gap: 12px !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  margin: 0 !important;
  width: 100% !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-product-card {
  background: #fff !important;
  border: 1px solid rgba(255,255,255,.58) !important;
  border-radius: 13px !important;
  box-shadow: none !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

/* Quick actions: identical dimensions for button and links, with no inherited
 * uppercase/button typography and no horizontal overflow. */
body.home .adcc-section-quick_actions {
  background: #fff !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  overflow: hidden !important;
  padding: 12px 16px !important;
}
body.home .adcc-section-quick_actions .adcc-container {
  box-sizing: border-box !important;
  margin: 0 auto !important;
  max-width: 1200px !important;
  padding: 0 !important;
  width: 100% !important;
}
body.home .adcc-section-quick_actions .adcc-quick-grid {
  display: grid !important;
  gap: 16px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  overflow: visible !important;
  padding: 0 !important;
  width: 100% !important;
}
body.home .adcc-section-quick_actions .adcc-quick-item,
body.home .adcc-section-quick_actions button.adcc-quick-item {
  align-items: center !important;
  background: var(--adcc-quick-bg, #fff) !important;
  border: 1px solid #d7e5e1 !important;
  border-radius: 13px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  color: #17342e !important;
  display: grid !important;
  font: inherit !important;
  gap: 13px !important;
  grid-template-columns: 54px minmax(0, 1fr) !important;
  height: 86px !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  max-width: none !important;
  min-height: 86px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 14px 16px !important;
  text-align: left !important;
  text-decoration: none !important;
  text-transform: none !important;
  width: 100% !important;
}
body.home .adcc-section-quick_actions .adcc-quick-item > .dashicons {
  align-items: center !important;
  align-self: center !important;
  background: var(--adcc-quick-icon-bg, #e4f6f0) !important;
  border-radius: 14px !important;
  color: var(--adcc-quick-icon-color, #08ad94) !important;
  display: flex !important;
  font-size: 28px !important;
  height: 54px !important;
  justify-content: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  width: 54px !important;
}
body.home .adcc-section-quick_actions .adcc-quick-item > span:last-child {
  display: block !important;
  min-width: 0 !important;
}
body.home .adcc-section-quick_actions .adcc-quick-item strong {
  color: #102b26 !important;
  display: block !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-transform: none !important;
  white-space: nowrap !important;
}
body.home .adcc-section-quick_actions .adcc-quick-item small {
  color: #70827d !important;
  display: block !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
  margin: 4px 0 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

@media (max-width: 767px) {
  body.home #adcc-smart-home-rows .adcc-tabbed-category {
    border-radius: 14px !important;
  }
  body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-topic-head {
    display: block !important;
    min-height: 0 !important;
  }
  body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-topic-head > h2 {
    font-size: 19px !important;
    padding: 15px 14px 12px !important;
  }
  body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-topic-head > .adcc-topic-filters {
    border-radius: 12px 12px 0 0 !important;
    display: flex !important;
    margin: 0 10px !important;
    max-width: calc(100% - 20px) !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    width: auto !important;
  }
  body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-category-tab,
  body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-view-more {
    flex: 0 0 126px !important;
    font-size: 12px !important;
    min-height: 48px !important;
    padding: 8px 10px !important;
  }
  body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-category-tab.is-active {
    border-radius: 12px 12px 0 0 !important;
  }
  body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-category-tab-panel {
    min-height: 260px !important;
    padding: 10px !important;
  }
  body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-category-tab-panel > .adcc-product-grid {
    gap: 10px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.home .adcc-section-quick_actions { padding: 10px 12px !important; }
  body.home .adcc-section-quick_actions .adcc-quick-grid {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }
  body.home .adcc-section-quick_actions .adcc-quick-item,
  body.home .adcc-section-quick_actions button.adcc-quick-item {
    gap: 8px !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    height: 72px !important;
    min-height: 72px !important;
    padding: 10px !important;
  }
  body.home .adcc-section-quick_actions .adcc-quick-item > .dashicons {
    font-size: 24px !important;
    height: 44px !important;
    width: 44px !important;
  }
  body.home .adcc-section-quick_actions .adcc-quick-item strong {
    font-size: 15px !important;
    white-space: normal !important;
  }
  body.home .adcc-section-quick_actions .adcc-quick-item small {
    font-size: 11px !important;
    white-space: normal !important;
  }
}

/* Phase 9 visual refinement: pale health-section surface, compact tab bar. */
body.home #adcc-smart-home-rows .adcc-tabbed-category {
  background: #eff8f5 !important;
  border-color: #cfe4df !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-topic-head {
  grid-template-columns: minmax(260px, 1.05fr) minmax(620px, 3fr) !important;
  min-height: 52px !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-topic-head > h2 {
  color: #17342e !important;
  font-size: 21px !important;
  font-weight: 750 !important;
  padding: 11px 20px !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-topic-head > .adcc-topic-filters {
  background: rgba(255,255,255,.82) !important;
  border-radius: 15px 15px 0 0 !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin-top: 8px !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-category-tab,
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-view-more {
  background: transparent !important;
  color: #526a64 !important;
  font-size: 14px !important;
  font-weight: 550 !important;
  min-height: 44px !important;
  padding: 8px 10px !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-category-tab.is-active {
  background: #0f766e !important;
  border-radius: 15px 15px 0 0 !important;
  color: #fff !important;
  font-weight: 700 !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-view-more {
  color: #087a70 !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  grid-column: 4 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-category-tab-panel {
  background: #eff8f5 !important;
  border-top: 1px solid #d5e8e3 !important;
  min-height: 0 !important;
  padding: 14px !important;
}
body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-product-card {
  border-color: #d7e6e2 !important;
}

/* Quick actions sit directly on the page surface; keep only their subtle outline. */
body.home .adcc-section-quick_actions {
  background: transparent !important;
}
body.home .adcc-section-quick_actions .adcc-quick-item,
body.home .adcc-section-quick_actions button.adcc-quick-item {
  background: var(--adcc-quick-bg, #fff) !important;
}

@media (max-width: 767px) {
  body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-topic-head > h2 {
    font-size: 18px !important;
    padding: 11px 13px 9px !important;
  }
  body.home #adcc-smart-home-rows .adcc-tabbed-category > .adcc-topic-head > .adcc-topic-filters {
    margin-top: 0 !important;
  }
  body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-category-tab,
  body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-view-more {
    min-height: 42px !important;
  }
  body.home #adcc-smart-home-rows .adcc-tabbed-category .adcc-view-more {
    grid-column: auto !important;
  }
}

/* Final header-search contract: keep the submit icon pinned to the right.
 * This must stay after all desktop/mobile header variants above. */
.adcc-site-header .adcc-header-search form {
  align-items: center !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 58px !important;
  position: relative !important;
  width: 100% !important;
}
.adcc-site-header .adcc-header-search form > label.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  overflow: hidden !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}
.adcc-site-header .adcc-header-search input[type="search"] {
  flex: none !important;
  grid-column: 1 !important;
  max-width: none !important;
  min-width: 0 !important;
  width: 100% !important;
}
.adcc-site-header .adcc-header-search button[type="submit"] {
  flex: none !important;
  grid-column: 2 !important;
  justify-self: stretch !important;
  margin: 0 !important;
  position: relative !important;
  width: 58px !important;
}

/* Builder-owned homepage sections keep their own Elementor/UX Builder width,
 * spacing and responsive rules. ADCC only supplies a stable mounting point. */
body.home .anduc-builder-home-section {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  overflow: clip;
  width: 100%;
}
@media (max-width: 767px) {
  .adcc-site-header .adcc-header-search form {
    grid-template-columns: minmax(0, 1fr) 48px !important;
  }
  .adcc-site-header .adcc-header-search button[type="submit"] {
    min-width: 48px !important;
    width: 48px !important;
  }
  .adcc-site-header.is-mobile-compact .adcc-header-search form {
    grid-template-columns: minmax(0, 1fr) 42px !important;
  }
  .adcc-site-header.is-mobile-compact .adcc-header-search button[type="submit"] {
    min-width: 42px !important;
    width: 42px !important;
  }
}

/* Short-video rail: portrait cards, direct in-place playback and touch swipe. */
body.home .adcc-short-videos {
  box-sizing: border-box;
  margin: 18px auto 24px !important;
  overflow: hidden;
  width: min(1240px, calc(100% - 26px));
}

/* Keep enabled homepage quick actions centered while preserving 4-column size. */
body.home .adcc-section-quick_actions .adcc-quick-item strong {
  font-size: 15px !important;
}

/* Semantic category icons: each parent category gets its own SVG and palette. */
body.home #adcc-smart-home-rows .anduc-section-category-icon {
  align-items: center !important;
  border: 1px solid currentColor !important;
  border-radius: 11px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex: 0 0 38px !important;
  height: 38px !important;
  justify-content: center !important;
  margin: 0 !important;
  overflow: hidden !important;
  width: 38px !important;
}
body.home #adcc-smart-home-rows span.anduc-section-category-icon svg {
  height: 23px !important;
  width: 23px !important;
}
body.home #adcc-smart-home-rows img.anduc-section-category-icon {
  background: #e8f1ff !important;
  border-color: #386fc5 !important;
  object-fit: contain !important;
  padding: 4px !important;
}
body.home #adcc-smart-home-rows .anduc-category-icon--vitamin {
  background: #e8f1ff !important;
  color: #386fc5 !important;
}
body.home #adcc-smart-home-rows .anduc-category-icon--skin {
  background: #ffe9f1 !important;
  color: #ca4f7b !important;
}
body.home #adcc-smart-home-rows .anduc-category-icon--body-care {
  background: #fff1df !important;
  color: #c77724 !important;
}
body.home #adcc-smart-home-rows .anduc-category-icon--medical,
body.home #adcc-smart-home-rows .anduc-category-icon--first-aid {
  background: #e1f8ef !important;
  color: #168467 !important;
}
@media (min-width: 768px) {
  body.home .adcc-section-quick_actions .adcc-quick-grid {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.home .adcc-section-quick_actions .adcc-quick-grid.adcc-quick-count-1 {
    grid-template-columns: minmax(0, 1fr) !important;
    width: calc(25% - 12px) !important;
  }
  body.home .adcc-section-quick_actions .adcc-quick-grid.adcc-quick-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: calc(50% - 8px) !important;
  }
  body.home .adcc-section-quick_actions .adcc-quick-grid.adcc-quick-count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: calc(75% - 4px) !important;
  }
}
@media (max-width: 767px) {
  body.home .adcc-section-quick_actions .adcc-quick-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100% !important;
  }
  body.home .adcc-section-quick_actions .adcc-quick-item,
  body.home .adcc-section-quick_actions button.adcc-quick-item {
    flex: 0 0 calc(50% - 4px);
    width: calc(50% - 4px) !important;
  }
}
body.home .adcc-shorts-head {
  margin-bottom: 14px;
}
body.home .adcc-shorts-head h2 {
  margin: 0;
}
body.home .adcc-shorts-track {
  display: flex !important;
  gap: 14px;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 0 0 8px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory !important;
  scrollbar-color: #a8beb9 transparent;
  touch-action: pan-x;
}
body.home .adcc-short-card {
  flex: 0 0 clamp(170px, calc((100% - 70px) / 6), 205px);
  margin: 0 !important;
  max-width: none !important;
  min-width: 0;
  border-radius: 12px;
  background: #0b1514;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
body.home .adcc-short-frame {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #0b1514;
}
body.home .adcc-short-frame > img,
body.home .adcc-short-frame > iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  inset: 0;
  position: absolute;
  border: 0;
}
body.home .adcc-short-frame > img {
  z-index: 1;
  object-fit: cover;
  object-position: center;
  transition: opacity .18s ease;
}
body.home .adcc-short-frame > iframe {
  z-index: 2;
  pointer-events: none;
}
body.home .adcc-short-toggle {
  z-index: 4;
  inset: 0 !important;
  position: absolute !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  touch-action: pan-x;
  -webkit-tap-highlight-color: transparent;
}
body.home .adcc-short-badge {
  z-index: 3;
  top: 9px;
  left: 9px;
  position: absolute;
  padding: 4px 7px;
  border-radius: 5px;
  background: #ff970f;
  color: #fff;
  font-family: Arial, sans-serif !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  text-transform: none;
  transition: opacity .18s ease;
}
body.home .adcc-short-frame.is-playing > img,
body.home .adcc-short-frame.is-playing > .adcc-short-badge {
  opacity: 0;
}
body.home .adcc-short-card > h3,
body.home .adcc-short-products,
body.home .adcc-shorts-head > div {
  display: none !important;
}
@media (max-width: 767px) {
  body.home .adcc-short-videos {
    margin: 12px auto 18px !important;
    padding: 13px !important;
    width: calc(100% - 20px);
  }
  body.home .adcc-shorts-head h2 {
    font-size: 19px !important;
  }
  body.home .adcc-shorts-track {
    gap: 10px;
  }
  body.home .adcc-short-card {
    flex-basis: calc((100% - 10px) / 2);
  }
}

/* Wider short-video carousel with button navigation and an immersive mobile view. */
body.home .adcc-short-videos {
  background: linear-gradient(180deg, #f0faf7 0%, #f9fcfb 100%) !important;
  border: 1px solid #cfe7df !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 8px rgba(15, 91, 78, .035);
  left: auto;
  max-width: none !important;
  padding: 20px !important;
  position: relative;
  transform: none;
  width: 100%;
}
body.home .adcc-shorts-track {
  -ms-overflow-style: none;
  padding-bottom: 0;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
body.home .adcc-shorts-track::-webkit-scrollbar {
  display: none;
  height: 0;
}
body.home .adcc-short-frame {
  position: relative;
}
body.home .adcc-short-card {
  background: transparent;
}
body.home .adcc-short-card > .adcc-short-title {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #15211f;
  display: -webkit-box !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4;
  box-sizing: border-box;
  margin: 9px auto 0 !important;
  max-width: calc(100% - 14px);
  min-height: 39px;
  overflow: hidden;
  overflow-wrap: break-word;
  padding: 0 2px !important;
  text-overflow: ellipsis;
  width: calc(100% - 14px);
}
body.home .adcc-short-toggle {
  touch-action: pan-x pan-y;
}
body.home .adcc-shorts-nav {
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 7;
}
body.home .adcc-shorts-nav button {
  align-items: center;
  background: #fff !important;
  border: 1px solid #d6e3e0 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(16, 63, 55, .18) !important;
  color: #1467df !important;
  display: flex;
  font-size: 32px !important;
  height: 46px !important;
  justify-content: center;
  line-height: 1 !important;
  margin: 0 !important;
  min-height: 46px !important;
  padding: 0 0 4px !important;
  pointer-events: auto;
  position: absolute;
  top: 53%;
  transform: translateY(-50%);
  transition: opacity .16s ease, transform .16s ease;
  width: 46px !important;
}
body.home .adcc-shorts-nav button:hover {
  transform: translateY(-50%) scale(1.06);
}
body.home .adcc-shorts-nav button:disabled {
  opacity: 0;
  pointer-events: none;
}
body.home [data-adcc-short-prev] {
  left: 5px;
}
body.home [data-adcc-short-next] {
  right: 5px;
}
body.home .adcc-short-close {
  align-items: center;
  background: rgba(255, 255, 255, .96) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .28) !important;
  color: #087d70 !important;
  display: none;
  font-size: 28px !important;
  font-weight: 700 !important;
  height: 46px !important;
  justify-content: center;
  line-height: 1 !important;
  margin: 0 !important;
  min-height: 46px !important;
  padding: 0 0 4px !important;
  position: absolute !important;
  right: max(14px, env(safe-area-inset-right));
  top: max(14px, env(safe-area-inset-top));
  width: 46px !important;
  z-index: 8;
}
html.anduc-short-expanded,
body.anduc-short-expanded {
  overflow: hidden !important;
}
body.home .adcc-short-frame.is-expanded,
body.home .adcc-short-frame:fullscreen {
  aspect-ratio: auto !important;
  background: #000 !important;
  border-radius: 0 !important;
  height: 100dvh !important;
  inset: 0 !important;
  max-height: none !important;
  max-width: none !important;
  position: fixed !important;
  width: 100vw !important;
  z-index: 1000000 !important;
}
body.home .adcc-short-frame.is-expanded .adcc-short-close,
body.home .adcc-short-frame:fullscreen .adcc-short-close {
  display: flex !important;
}
@media (max-width: 767px) {
  body.home .adcc-short-videos {
    padding: 12px !important;
    width: 100%;
  }
  body.home .adcc-shorts-nav {
    display: none !important;
  }
}
/* Large short-video viewer: fullscreen-like on mobile, contained modal on desktop. */
.adcc-short-viewer {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 1000000;
}
.adcc-short-viewer.is-open {
  display: flex;
}
.adcc-short-viewer-backdrop {
  background: rgba(4, 13, 12, .82);
  inset: 0;
  position: absolute;
}
.adcc-short-viewer-dialog {
  background: #07100f;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  box-sizing: border-box;
  color: #fff;
  height: min(82dvh, 760px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  position: relative;
  width: min(430px, calc(100vw - 48px));
  z-index: 1;
}
.adcc-short-viewer-stage {
  height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.adcc-short-viewer-stage iframe {
  border: 0;
  height: 100%;
  inset: 0;
  pointer-events: none !important;
  position: absolute;
  user-select: none;
  width: 100%;
}
.adcc-short-viewer-gesture {
  cursor: grab;
  inset: 0;
  pointer-events: auto;
  position: absolute;
  touch-action: none;
  z-index: 2;
}
.adcc-short-viewer-close,
.adcc-short-viewer-arrow {
  align-items: center;
  background: rgba(255,255,255,.95) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.28) !important;
  color: #087d70 !important;
  display: flex;
  justify-content: center;
  margin: 0 !important;
  padding: 0 0 3px !important;
  position: absolute;
  z-index: 4;
}
.adcc-short-viewer-close {
  font-size: 28px !important;
  height: 44px !important;
  min-height: 44px !important;
  right: 14px;
  top: 14px;
  width: 44px !important;
}
.adcc-short-viewer-arrow {
  font-size: 36px !important;
  height: 48px !important;
  min-height: 48px !important;
  top: 50%;
  transform: translateY(-50%);
  width: 48px !important;
}
.adcc-short-viewer-arrow.is-prev {
  left: 12px;
}
.adcc-short-viewer-arrow.is-next {
  right: 12px;
}
.adcc-short-viewer-meta {
  background: linear-gradient(transparent, rgba(0,0,0,.86));
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 5px;
  left: 0;
  padding: 72px 22px 18px;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 3;
}
.adcc-short-viewer-meta strong {
  display: -webkit-box;
  font-size: 15px;
  line-height: 1.4;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.adcc-short-viewer-meta span {
  color: rgba(255,255,255,.76);
  font-size: 12px;
}
@media (max-width:767px) {
  .adcc-short-viewer-dialog {
    border: 0;
    border-radius: 0;
    height: 100dvh;
    max-height: none;
    width: 100vw;
  }
  .adcc-short-viewer-arrow {
    display: none !important;
  }
  .adcc-short-viewer-close {
    right: max(14px, env(safe-area-inset-right));
    top: max(14px, env(safe-area-inset-top));
  }
  .adcc-short-viewer-meta {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 767px) {
  body.home .adcc-health-news-head {
    align-items: center !important;
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: space-between !important;
  }
  body.home .adcc-health-news-title {
    min-width: 0;
  }
  body.home .adcc-health-news-more {
    flex: 0 0 auto;
    margin-left: auto;
  }
}
