.product-box .product-thumbnail.flexbox-grid>a {
  height: auto !important;
}

.product-box .product-thumbnail.flexbox-grid a img {
  width: 95%;
  padding-top: 5px !important;
  border-radius: 15px;
}

/*content blog*/
.ai-blog-content {
  font-size: 18px;
  line-height: 1.8;
  color: #222;
}

.ai-blog-content p {
  margin: 0 0 18px;
}

.ai-blog-content h2 {
  font-size: 36px;
  line-height: 1.25;
  margin: 42px 0 16px;
  font-weight: 700;
  color: #111;
}

.ai-blog-content h3 {
  font-size: 28px;
  line-height: 1.35;
  margin: 28px 0 12px;
  font-weight: 700;
  color: #111;
}

.ai-blog-content ul,
.ai-blog-content ol {
  margin: 0 0 22px 24px;
  padding: 0;
}

.ai-blog-content li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.ai-blog-content strong {
  font-weight: 700;
  color: #111;
}

.ai-blog-content a {
  color: #0a7a5a;
  text-decoration: underline;
}

.ai-blog-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid #0a7a5a;
  background: #f7faf8;
  font-style: italic;
}

.ai-blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}

.ai-blog-content table th,
.ai-blog-content table td {
  border: 1px solid #ddd;
  padding: 12px 14px;
  text-align: left;
}

.ai-blog-content table th {
  background: #f4f4f4;
  font-weight: 700;
}

.ai-blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
}

.ai-blog-content hr {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 32px 0;
}

/* FAQ đẹp hơn */
.ai-blog-content h2:last-of-type {
  margin-top: 48px;
}

/* Mobile */
@media (max-width: 767px) {
  .ai-blog-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .ai-blog-content h2 {
    font-size: 28px;
    margin: 32px 0 14px;
  }

  .ai-blog-content h3 {
    font-size: 22px;
    margin: 24px 0 10px;
  }

  .ai-blog-content p,
  .ai-blog-content ul,
  .ai-blog-content ol,
  .ai-blog-content table {
    margin-bottom: 16px;
  }
}

.ai-blog-content h2 {
  letter-spacing: -0.5px;
}

.ai-blog-content table {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.ai-blog-content blockquote {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

i.fas.fa-home {
  padding-right: 10px;
}

i.fas.fa-shopping-basket {
  padding-right: 10px;
}

/*end css blog content*/

._menu_item_content_wrapper_vektn_216 {
  display: none !important;
}

/* Popup overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Popup container */
.popup {
  background: #fff;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  color: #333;
  cursor: pointer;
}

.popup-close:hover {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 35px;
  color: #d32f2f;
  cursor: pointer;
}

/* Popup content styling */
.popup h2 {
  font-size: 24px;
  color: #555;
}

.popup h1 b {
  color: #d32f2f;
}

.popup p {
  font-size: 18px;
  color: #555;
}

.popup .cta-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #b71c1c;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .popup h2 {
    font-size: 20px;
  }

  .popup p {
    font-size: 16px;
  }

  .cta-button {
    font-size: 16px;
    padding: 8px 16px;
  }
}

/* Blog sub menu */
header nav .nav-item .dropdown-menu {
  max-height: 400px;
  overflow-y: auto;
}

/* Hiệu ứng phóng to 1.1 khi rê chuột */
.my-div {
  height: auto;
  transition: transform 0.4s ease-in-out;
}

.my-div:hover {
  transform: scale(1.05);
}

.my-div1 {
  height: auto;
  transition: transform 0.4s ease-in-out;
}

.my-div1:hover {
  transform: scale(1.02);
}

.my-div2 {
  height: auto;
  transition: transform 0.4s ease-in-out;
}

.my-div2:hover {
  transform: scale(0.9);
}

/* Hiệu ứng ánh sáng khi rê chuột */

/* Màu font và link trong bài viết */
.rte {
  color: black;
}

.rte a {
  color: #0ba1d4;
}

.rte a:hover {
  color: #80bb35;
}

/* Footer */
.youhf {
  background-color: white;
  padding: 5px;
  border-radius: 5px;
}

.ecomhf {
  padding-top: 20px;
}

.facebook-inbox-tab {
  margin-right: 50px;
}

/*Homepage*/

/* Products Footer */
.section-brand .brand-item img {
  border-radius: 20px;
}

/* Hỉnh ảnh khuyến mãi */
.hinhkm1 {
  display: none;
}

.hinhkm2 {
  display: none;
}

.hinhkm3 {
  display: none;
}

.quakm1:hover {
  background-color: beige;
  padding: 5px;
}

.quakm2:hover {
  background-color: beige;
  padding: 5px;
}

.quakm3:hover {
  background-color: beige;
  padding: 5px;
}

/*Product Page*/
.tabs {
  display: none;
}

/* ========================================================
   HUNGFOODS VIP PRO STYLES 
   ======================================================== */
:root {
  --hf-primary: #046342;
  /* Deep Emerald Green */
  --hf-primary-light: #0a8a5d;
  --hf-accent: #d4af37;
  /* Soft Gold / Champagne */
  --hf-accent-hover: #bda032;
  --hf-bg-color: #fcfcfc;
  /* Off-white */
  --hf-text-main: #2d3748;
  --hf-shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
  --hf-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
  --hf-radius-md: 16px;
  --hf-radius-pill: 50px;
}

body {
  background-color: var(--hf-bg-color) !important;
  /* Hiệu ứng pattern food mờ ảo, VIP Pro */
  background-image:
    linear-gradient(rgba(252, 252, 252, 0.70), rgba(252, 252, 252, 0.75)),
    url('faint_food_pattern.png') !important;
  background-size: cover, 400px 400px !important;
  background-repeat: no-repeat, repeat !important;
  background-position: center, center !important;
  background-attachment: scroll, fixed !important;
  color: var(--hf-text-main);
}

/* --- BUTTONS --- */
.btn {
  border-radius: var(--hf-radius-pill) !important;
  background: linear-gradient(135deg, var(--hf-primary) 0%, var(--hf-primary-light) 100%) !important;
  color: #fff !important;
  border: none !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(4, 99, 66, 0.3) !important;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(4, 99, 66, 0.4) !important;
}

/* Shine effect on buttons */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: none;
}

.btn:hover::after {
  animation: shineBtn 1.2s ease-in-out;
}

@keyframes shineBtn {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* --- PRODUCT BOX (GLASSMORPHISM & LIFT UP) --- */
.product-box {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: var(--hf-radius-md) !important;
  box-shadow: var(--hf-shadow-soft) !important;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  overflow: hidden;
}

.product-box:hover {
  transform: translateY(-10px) !important;
  box-shadow: var(--hf-shadow-hover) !important;
  border-color: rgba(212, 175, 55, 0.4) !important;
  /* Gold border on hover */
}

.product-box .product-thumbnail img {
  transition: transform 0.6s ease;
}

.product-box:hover .product-thumbnail img {
  transform: scale(1.08);
}

.product-box .price-box {
  font-size: 16px;
  font-weight: 700;
  color: var(--hf-primary) !important;
}

.product-box:hover>.product-info .price-box {
  color: var(--hf-accent) !important;
  font-size: 18px;
}

/* --- BADGES (Gold) --- */
.sale-flash,
.badge {
  background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 100%) !important;
  color: #594300 !important;
  border-radius: 8px !important;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

/* --- FLOATING ANIMATION --- */
.float-element {
  animation: floatAnim 3s ease-in-out infinite;
}

@keyframes floatAnim {
  0% {
    transform: translateY(0px);
  }

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

  100% {
    transform: translateY(0px);
  }
}

/* --- SCROLL REVEAL ANIMATIONS (Ảo Diệu) --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Thêm shadow cho header để nhìn clean và tách biệt */
header {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ======================================================== */
/*Detail Button Blog*/
.section_blog .blog-item .blog-item-info .btn:hover {
  background: #80bb35;
}

/*Homepage title*/
.section-title:hover p {
  color: red;
}

header nav .nav-item .dropdown-menu {
  height: auto;
}

.menu-text:hover {
  color: #0ba1d4;
}

.section_testimonial .testimonial-item .image-avata {
  width: 100px;
}

/*SVG LOGO*/
/***************************************************
 * Generated by SVG Artista on 8/24/2023, 4:44:50 PM
 * MIT license (https://opensource.org/licenses/MIT)
 * W. https://svgartista.net
 **************************************************/

svg .svg-elem-1 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.8s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.8s;
}

svg.active .svg-elem-1 {
  fill: rgb(120, 170, 66);
}

svg .svg-elem-2 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.9s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 0.9s;
}

svg.active .svg-elem-2 {
  fill: rgb(120, 170, 66);
}

svg .svg-elem-3 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1s;
}

svg.active .svg-elem-3 {
  fill: rgb(120, 170, 66);
}

svg .svg-elem-4 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.1s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.1s;
}

svg.active .svg-elem-4 {
  fill: rgb(120, 170, 66);
}

svg .svg-elem-5 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.2000000000000002s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.2000000000000002s;
}

svg.active .svg-elem-5 {
  fill: rgb(120, 170, 66);
}

svg .svg-elem-6 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.3s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.3s;
}

svg.active .svg-elem-6 {
  fill: rgb(120, 170, 66);
}

svg .svg-elem-7 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.4000000000000001s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.4000000000000001s;
}

svg.active .svg-elem-7 {
  fill: rgb(40, 169, 225);
}

svg .svg-elem-8 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.5s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.5s;
}

svg.active .svg-elem-8 {
  fill: rgb(40, 169, 225);
}

svg .svg-elem-9 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.6s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.6s;
}

svg.active .svg-elem-9 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-10 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.7000000000000002s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.7000000000000002s;
}

svg.active .svg-elem-10 {
  fill: rgb(120, 170, 66);
}

svg .svg-elem-11 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.8s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.8s;
}

svg.active .svg-elem-11 {
  fill: rgb(40, 169, 225);
}

svg .svg-elem-12 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.9000000000000001s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 1.9000000000000001s;
}

svg.active .svg-elem-12 {
  fill: rgb(40, 169, 225);
}

svg .svg-elem-13 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2s;
}

svg.active .svg-elem-13 {
  fill: rgb(40, 169, 225);
}

svg .svg-elem-14 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.1s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.1s;
}

svg.active .svg-elem-14 {
  fill: rgb(40, 169, 225);
}

svg .svg-elem-15 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.2s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.2s;
}

svg.active .svg-elem-15 {
  fill: rgb(120, 170, 66);
}

svg .svg-elem-16 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.3s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.3s;
}

svg.active .svg-elem-16 {
  fill: rgb(120, 170, 66);
}

svg .svg-elem-17 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.4000000000000004s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.4000000000000004s;
}

svg.active .svg-elem-17 {
  fill: rgb(120, 170, 66);
}

svg .svg-elem-18 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.5s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.5s;
}

svg.active .svg-elem-18 {
  fill: rgb(120, 170, 66);
}

svg .svg-elem-19 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.6s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.6s;
}

svg.active .svg-elem-19 {
  fill: rgb(120, 170, 66);
}

svg .svg-elem-20 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.7s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.7s;
}

svg.active .svg-elem-20 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-21 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.8s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.8s;
}

svg.active .svg-elem-21 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-22 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.9000000000000004s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 2.9000000000000004s;
}

svg.active .svg-elem-22 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-23 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3s;
}

svg.active .svg-elem-23 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-24 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.1000000000000005s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.1000000000000005s;
}

svg.active .svg-elem-24 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-25 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.2s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.2s;
}

svg.active .svg-elem-25 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-26 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.3s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.3s;
}

svg.active .svg-elem-26 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-27 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.4000000000000004s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.4000000000000004s;
}

svg.active .svg-elem-27 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-28 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.5s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.5s;
}

svg.active .svg-elem-28 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-29 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.6000000000000005s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.6000000000000005s;
}

svg.active .svg-elem-29 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-30 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.7s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.7s;
}

svg.active .svg-elem-30 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-31 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.8s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.8s;
}

svg.active .svg-elem-31 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-32 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.9000000000000004s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 3.9000000000000004s;
}

svg.active .svg-elem-32 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-33 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4s;
}

svg.active .svg-elem-33 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-34 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.1000000000000005s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.1000000000000005s;
}

svg.active .svg-elem-34 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-35 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.2s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.2s;
}

svg.active .svg-elem-35 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-36 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.3s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.3s;
}

svg.active .svg-elem-36 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-37 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.4s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.4s;
}

svg.active .svg-elem-37 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-38 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.5s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.5s;
}

svg.active .svg-elem-38 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-39 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.6000000000000005s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.6000000000000005s;
}

svg.active .svg-elem-39 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-40 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.7s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.7s;
}

svg.active .svg-elem-40 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-41 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.8s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.8s;
}

svg.active .svg-elem-41 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-42 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.9s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 4.9s;
}

svg.active .svg-elem-42 {
  fill: rgb(0, 109, 65);
}

svg .svg-elem-43 {
  fill: transparent;
  -webkit-transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 5s;
  transition: fill 0.7s cubic-bezier(0.47, 0, 0.745, 0.715) 5s;
}

svg.active .svg-elem-43 {
  fill: rgb(0, 109, 65);
}

/* ========================================================
   HEADER VIP PRO 
   ======================================================== */
.topbar {
  background: linear-gradient(90deg, var(--hf-primary) 0%, #064d35 100%) !important;
  color: #fff !important;
  border-bottom: 2px solid var(--hf-accent);
}

.topbar a,
.topbar span,
.topbar i {
  color: #fff !important;
}

.topbar a:hover {
  color: var(--hf-accent) !important;
}

.header {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  position: sticky;
  top: 0;
  z-index: 99999;
  transition: all 0.4s ease;
}

.header .logo img {
  filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

.mini-cart .heading-cart a {
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.mini-cart:hover .heading-cart a {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.mini-cart .cartCount {
  background: var(--hf-accent) !important;
  color: #fff !important;
  font-weight: bold;
}

.site-nav>li>a {
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.site-nav>li:hover>a {
  color: var(--hf-primary) !important;
}

/* ========================================================
   FOOTER VIP PRO 
   ======================================================== */
.footer {
  background: #023825 !important;
  /* Very dark emerald */
  color: #e2e8f0 !important;
  border-top: 4px solid var(--hf-accent);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05), transparent 50%);
  pointer-events: none;
}

.footer .footer-widget h3 {
  color: var(--hf-accent) !important;
  font-weight: bold;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
  text-transform: uppercase;
}

.footer .footer-widget h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--hf-accent);
  border-radius: 2px;
}

.footer .list-menu li,
.footer .list-menu li a,
.footer p {
  color: #cbd5e1 !important;
  transition: all 0.3s ease;
}

.footer .list-menu li a:hover {
  color: #fff !important;
  transform: translateX(5px);
  display: inline-block;
}

.footer .block_icon {
  color: var(--hf-accent) !important;
}

.footer .copyright {
  background: #012417 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8 !important;
  padding: 15px 0;
}

.footer .copyright a {
  color: var(--hf-accent) !important;
}

.footer .copyright a:hover {
  color: #fff !important;
}

/* ========================================================
   MEGA MENU VIP PRO
   ======================================================== */
.header nav .hidden-sm,
.header ul.nav,
.nav-item.has-mega {
  position: static !important;
  /* Để mega menu canh theo .container của nav */
}

.header nav .container {
  position: relative !important;
}

.nav-item.has-mega:hover .mega-content.hf-mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  width: 100% !important;
}

.mega-content.hf-mega-menu {
  position: absolute;
  top: 100%;
  left: 15px;
  /* Bù trừ padding của container */
  right: 15px;
  width: calc(100% - 30px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-top: 2px solid var(--hf-accent);
  border-radius: 0 0 8px 8px;
  padding: 30px 15px;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: auto;
}

.hf-mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: start;
}

.hf-mega-item {
  display: block;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.3s ease;
  position: relative;
}

.hf-mega-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%;
  right: -10px;
  /* Nằm giữa khoảng cách gap 20px */
  width: 1px;
  height: 80%;
  background: rgba(0, 0, 0, 0.08);
  /* Đường kẻ mờ */
}

.hf-mega-item:hover {
  transform: translateY(-5px);
}

.hf-mega-img {
  width: 75%;
  /* Thu nhỏ ảnh lại để không bị tràn */
  margin: 0 auto 15px auto;
  /* Canh giữa ảnh */
  aspect-ratio: 1/1;
  border-radius: var(--hf-radius-md);
  overflow: hidden;
  box-shadow: var(--hf-shadow-soft);
  position: relative;
}

.hf-mega-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--hf-radius-md);
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow 0.3s ease;
  pointer-events: none;
}

.hf-mega-item:hover .hf-mega-img::after {
  box-shadow: inset 0 0 0 2px var(--hf-accent);
}

.hf-mega-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hf-mega-item:hover .hf-mega-img img {
  transform: scale(1.1);
}

.hf-mega-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hf-primary);
  text-transform: uppercase;
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.hf-mega-item:hover .hf-mega-title {
  color: var(--hf-accent);
}

@media (max-width: 991px) {
  .mega-content.hf-mega-menu {
    position: relative;
    box-shadow: none;
    padding: 15px 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav-item.has-mega:hover .mega-content.hf-mega-menu,
  .nav-item.has-mega.open .mega-content.hf-mega-menu {
    display: block;
  }

  .hf-mega-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .hf-mega-grid {
    grid-template-columns: 1fr;
  }
}

.box-heading.relative {
  display: none !important;
}

form.blog-search-form {
  margin-bottom: -15px !important;
}

/* Custom styles for All Products category separation */
.custom-category-block {
    margin-bottom: 50px;
}
.category-title-wrapper {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}
.category-title-wrapper h2 {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    color: var(--hf-primary, #2ca8c2);
    text-transform: uppercase;
    position: relative;
    padding: 0 20px;
    background: #fff;
    z-index: 2;
    margin: 0;
}
.category-title-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #eee;
    z-index: 1;
}
.category-title-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 3px;
    background-color: var(--hf-accent, #80bb35);
    z-index: 3;
    margin-top: 25px;
}
@media (max-width: 767px) {
    .category-title-wrapper h2 {
        font-size: 22px;
    }
}

/* Custom Premium Swatch Styling */
.swatch {
  margin-bottom: 20px;
}
.swatch .header {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--hf-primary, #333);
}
.swatch-element {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  position: relative;
}
.swatch-element input {
  display: none !important;
}
.swatch-element label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 8px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fff;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 0;
}
.swatch-element label:hover {
  border-color: var(--hf-primary, #2ca8c2);
  color: var(--hf-primary, #2ca8c2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}
.swatch-element input:checked + label {
  border-color: var(--hf-accent, #80bb35);
  background-color: var(--hf-accent, #80bb35);
  color: #fff;
  box-shadow: 0 6px 15px rgba(128, 187, 53, 0.35);
  transform: translateY(-2px);
}
.swatch-element.soldout label {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f5f5f5;
  color: #999;
}
.swatch-element.soldout label::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  background-color: #999;
  transform: rotate(-20deg);
}
.swatch-element .crossed-out {
  display: none !important;
}

/* NEW Flash Badge */
.new-flash-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff0055, #ffcc00);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(255, 0, 85, 0.4);
    z-index: 10;
    animation: pulse-new 1.5s infinite;
    pointer-events: none;
    letter-spacing: 1px;
}
@keyframes pulse-new {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.7); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 0, 85, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 85, 0); }
}

/* Hide leftover promotion bar app */
#promotion-bar {
    display: none !important;
}
html.promotion-top, html.promotion-show {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
html.promotion-top body, html.promotion-show body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Mega Menu Badges */
.hf-mega-item.has-badge {
    position: relative;
    overflow: visible !important;
}
.hf-mega-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 10;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    pointer-events: none;
    white-space: nowrap;
    animation: hf-mega-pulse 2s infinite;
}
.hf-mega-badge.badge-new {
    background: linear-gradient(45deg, #FF416C, #FF4B2B);
}
.hf-mega-badge.badge-hot {
    background: linear-gradient(45deg, #f12711, #f5af19);
}
@keyframes hf-mega-pulse {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.05) translateY(-3px); }
    100% { transform: scale(1) translateY(0); }
}

/* Sidebar Specific Badges */
.sidebar-badge {
    position: relative !important;
    top: -1px !important;
    right: auto !important;
    left: auto !important;
    margin-left: 6px;
    font-size: 9px !important;
    padding: 2px 5px !important;
    display: inline-block !important;
    vertical-align: middle;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0;
}

/* ========================================================
   VIP PRO STYLES FOR LEFT MENU (SIDEBAR CATEGORY)
   ======================================================== */
.aside-item.sidebar-category {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(4, 99, 66, 0.08);
    transition: all 0.4s ease;
    margin-bottom: 25px;
}

.aside-item.sidebar-category:hover {
    box-shadow: 0 12px 30px rgba(4, 99, 66, 0.12);
    transform: translateY(-3px);
}

.aside-item.sidebar-category .aside-title {
    background: #0ba1d4;
    padding: 10px 15px;
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* Shine effect for header */
.aside-item.sidebar-category .aside-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shineTitle 3.5s infinite;
}

@keyframes shineTitle {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.aside-item.sidebar-category .aside-title h2 {
    color: #fff !important;
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.aside-item.sidebar-category .aside-title h2 span {
    color: #fff !important;
}

.aside-item.sidebar-category .aside-content {
    padding: 10px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.aside-item.sidebar-category .nav-item {
    padding: 12px 15px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom: 1px dashed #eaeaea;
    position: relative;
}

.aside-item.sidebar-category .nav-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.aside-item.sidebar-category .nav-item > i:first-child {
    color: #0ba1d4;
    transition: all 0.3s ease;
    margin-right: 12px;
    font-size: 16px;
    display: inline-block;
    vertical-align: middle;
}

.aside-item.sidebar-category .nav-item > a.nav-link {
    color: #444;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 40px);
}

/* Hover effects */
.aside-item.sidebar-category .nav-item:hover {
    background: linear-gradient(to right, rgba(4, 99, 66, 0.04) 0%, rgba(11, 161, 212, 0.04) 100%);
    transform: translateX(6px);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.aside-item.sidebar-category .nav-item:hover > i:first-child {
    color: #046342;
    transform: scale(1.3) translateX(2px);
}

.aside-item.sidebar-category .nav-item:hover > a.nav-link {
    color: #046342;
}

/* Fix dropdown arrow */
.aside-item.sidebar-category .nav-item > i.fa-angle-down {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #aaa;
    transition: all 0.3s ease;
}

.aside-item.sidebar-category .nav-item:hover > i.fa-angle-down {
    color: #046342;
    transform: translateY(2px);
}

/* Product Action Buttons */
.product-box .product-action .btn-cart,
.product-box .product-action .btn_view,
.product-box .product-action .btn {
    background: linear-gradient(45deg, #f5af19, #f12711) !important; /* Từ Cam sang Đỏ */
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(241, 39, 17, 0.3) !important;
    transition: all 0.3s ease !important;
}

.product-box .product-action .btn-cart:hover,
.product-box .product-action .btn_view:hover,
.product-box .product-action .btn:hover {
    background: linear-gradient(45deg, #f12711, #d11a0b) !important; /* Đỏ đậm hơn khi hover */
    box-shadow: 0 4px 10px rgba(241, 39, 17, 0.5) !important;
    transform: scale(1.1) !important;
}