/* PWA Bottom Banner */
  .eco-pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
    z-index: 999999;
    max-width: 420px;
    width: calc(100% - 30px);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1.5px solid rgba(247, 148, 29, 0.35);
    padding: 16px 18px;
    display: none;
    animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #222222;
    box-sizing: border-box;
  }

  @keyframes pwaSlideUp {
    from {
      opacity: 0;
      transform: translateY(25px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .eco-pwa-content {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .eco-pwa-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(247, 148, 29, 0.35);
    background: #F7941D;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .eco-pwa-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .eco-pwa-info {
    flex: 1;
    min-width: 0;
  }

  .eco-pwa-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }

  .eco-pwa-desc {
    font-size: 13px;
    color: #555555;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
  }

  .eco-pwa-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
  }

  .eco-pwa-btn-install {
    flex: 1;
    min-width: 100px;
    background: linear-gradient(135deg, #F7941D 0%, #e67e05 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(247, 148, 29, 0.35);
  }

  .eco-pwa-btn-install:hover {
    background: linear-gradient(135deg, #e67e05 0%, #cc6b00 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(247, 148, 29, 0.45);
  }

  /* Ẩn nút hướng dẫn cài đặt trên banner (Android cài trực tiếp 1-click, iOS dùng nút chính) */
  .eco-pwa-btn-guide {
    display: none !important;
  }
  .eco-pwa-actions .eco-pwa-hidden,
  .eco-pwa-btn-guide.eco-pwa-hidden {
    display: none !important;
  }

  .eco-pwa-btn-guide:hover {
    background: #ffe8d2;
    color: #cc6b00 !important;
  }

  .eco-pwa-btn-close {
    background: #f4f4f4;
    color: #777777;
    border: none;
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
  }

  .eco-pwa-btn-close:hover {
    background: #e5e5e5;
    color: #222222;
  }

  /* Floating Notification Bell on Desktop (Đồng bộ nút tròn liên hệ) */
  .eco-desktop-notify-bell {
    position: fixed;
    bottom: calc(50% + 75px);
    right: 13px;
    margin: 0;
    z-index: 994;
    cursor: pointer;
    display: block;
  }

  @media (max-width: 991px) {
    .eco-desktop-notify-bell {
      display: none !important; /* Mobile đã có chuông cố định trên header */
    }
  }

  .eco-desktop-notify-bell .box-contact .svgico {
    position: relative;
    z-index: 4;
    height: 60px;
    width: 60px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #ffffff;
    cursor: pointer;
    background: var(--shop-color-main);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px 0 1px;
    transition: box-shadow 0.25s ease;
  }

  .eco-desktop-notify-bell:hover .box-contact .svgico {
    box-shadow: 0 6px 16px rgba(247, 148, 29, 0.5);
  }

  .eco-desktop-notify-bell .svgico--bell {
    width: 24px;
    height: 24px;
    fill: #ffffff !important;
    display: block;
    opacity: 1 !important;
    filter: none !important;
    transform-origin: 50% 2px !important;
    animation: ecoBellRing 3s ease-in-out infinite !important;
  }

  .eco-desktop-notify-bell:hover .svgico--bell {
    opacity: 1 !important;
    filter: none !important;
    animation: ecoBellRing 1.2s ease-in-out infinite !important;
  }

  /* Hiệu ứng rung nhẹ cho biểu tượng chuông ưu đãi */
  @keyframes ecoBellRing {
    0% { transform: rotate(0deg); }
    4% { transform: rotate(12deg); }
    8% { transform: rotate(-10deg); }
    12% { transform: rotate(8deg); }
    16% { transform: rotate(-6deg); }
    20% { transform: rotate(4deg); }
    24% { transform: rotate(-2deg); }
    28% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
  }

  .eco-desktop-notify-bell .svgico--label {
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    color: #ffffff;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.1;
    margin-top: 1px;
  }

  .eco-desktop-notify-bell .count-holder.eco-notify-badge {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    left: auto !important;
    min-width: 18px !important;
    height: 18px !important;
    box-sizing: border-box !important;
    padding: 0 3px !important;
    background: #c50017 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
  }
  .eco-desktop-notify-bell .count-holder.eco-notify-badge[style*="none"] {
    display: none !important;
  }
  .eco-desktop-notify-bell .count-holder.eco-notify-badge .count {
    display: inline-block !important;
    line-height: 1 !important;
    text-align: center !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ========================================================
     MODAL HƯỚNG DẪN CÀI ĐẶT (GIAO DIỆN CHUẨN PIXEL-PERFECT)
     ======================================================== */
  @media (min-width: 768px) {
    .eco-guide-modal-overlay {
      display: none !important; /* Ẩn hoàn toàn modal hướng dẫn trên PC / Desktop */
    }
  }

  .eco-guide-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: pwaFadeIn 0.22s ease-out forwards;
  }

  @keyframes pwaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .eco-guide-modal {
    background: #ffffff;
    border-radius: 26px;
    max-width: 375px;
    width: 100%;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    padding: 26px 22px 22px;
    box-sizing: border-box;
    animation: pwaZoomIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    position: relative;
  }

  @keyframes pwaZoomIn {
    from {
      opacity: 0;
      transform: scale(0.92) translateY(10px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  .eco-guide-modal-title {
    font-size: 23px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 22px 0;
    line-height: 1.2;
    letter-spacing: -0.4px;
    text-align: left;
  }

  /* Hàng chọn Trình duyệt */
  .eco-guide-browser-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
  }

  .eco-guide-browser-label {
    font-size: 16.5px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.2px;
  }

  .eco-guide-select-wrapper {
    position: relative;
  }

  .eco-guide-select-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #ffffff;
    border: 1.5px solid #fdba74;
    border-radius: 11px;
    padding: 7px 14px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .eco-guide-select-btn:active,
  .eco-guide-select-btn:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
  }

  .eco-guide-selected-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .eco-guide-selected-icon img,
  .eco-guide-dropdown-item .eco-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .eco-guide-selected-name {
    font-size: 15.5px;
    font-weight: 700;
    color: #111827;
  }

  .eco-guide-select-arrow {
    color: #64748b;
    transition: transform 0.2s ease;
  }

  .eco-guide-select-btn.open .eco-guide-select-arrow {
    transform: rotate(180deg);
  }

  .eco-guide-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 155px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 50;
    display: none;
    animation: pwaFadeIn 0.18s ease-out;
  }

  .eco-guide-dropdown-menu.show {
    display: block;
  }

  .eco-guide-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .eco-guide-dropdown-item:hover,
  .eco-guide-dropdown-item:active {
    background: #fff7ed;
    color: #ea580c;
  }

  .eco-guide-dropdown-item .eco-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  /* Danh sách các bước */
  .eco-guide-steps-panel {
    display: none;
  }

  .eco-guide-steps-panel.active {
    display: block;
    animation: pwaFadeIn 0.2s ease-out;
  }

  .eco-guide-step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
  }

  .eco-guide-step-item:last-child {
    margin-bottom: 24px;
  }

  .eco-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffedd5;
    color: #f97316;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .eco-step-action-icon {
    width: 28px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    flex-shrink: 0;
  }

  .eco-step-content {
    flex: 1;
    min-width: 0;
  }

  .eco-step-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 3px 0;
    line-height: 1.25;
  }

  .eco-step-desc {
    font-size: 13.5px;
    color: #6b7280;
    margin: 0;
    line-height: 1.35;
  }

  /* Nút Đã hiểu */
  .eco-guide-btn-done {
    width: 100%;
    height: 48px;
    background: #ff9028;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 144, 40, 0.35);
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .eco-guide-btn-done:hover {
    background: #f77f00;
    box-shadow: 0 6px 18px rgba(255, 144, 40, 0.45);
  }

  .eco-guide-btn-done:active {
    transform: scale(0.98);
    background: #ea580c;
  }

  @media (max-width: 576px) {
    .eco-pwa-banner {
      bottom: 12px;
      right: 15px;
      left: 15px;
      width: auto;
      max-width: 100%;
    }
    .eco-pwa-actions {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      gap: 10px;
    }
    .eco-pwa-btn-install {
      flex: 1.5;
      width: auto;
      order: 1;
    }
    .eco-pwa-btn-guide {
      display: none !important; /* Không cần nút hướng dẫn vì Android cài trực tiếp 1-click, iOS dùng nút chính */
    }
    .eco-pwa-btn-close {
      flex: 1;
      width: auto;
      order: 2;
    }
  }

  /* ========================================================
     PWA NATIVE HEADER NAVIGATION (Back Button)
     Không dùng pill nổi đè logo. Tích hợp trực tiếp vào Header.
     ======================================================== */
  .eco-pwa-nav {
    display: none !important;
  }

  /* Back button trong header trên trang con (Subpages) */
  body.template-index .header-action-item.header-action_backlink,
  html.pwa-standalone.template-index .header-action-item.header-action_backlink {
    display: none !important;
  }
  
  body:not(.template-index) .header-action-item.header-action_backlink {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
  }

  .header-action-item.header-action_backlink a.eco-header-back-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #ffffff !important;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .header-action-item.header-action_backlink a.eco-header-back-link svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    stroke-width: 2.8;
  }
  .header-action-item.header-action_backlink a.eco-header-back-link:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.92);
  }

  /* ========================================================
     HEADER NOTIFICATION BELL & FACEBOOK-STYLE FLYOUT
     ======================================================== */
  .header-action-item.header-action_notify {
    position: relative;
    cursor: pointer;
  }

  .header-action-item.header-action_notify .box-icon svg.svg-ico-bell {
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    transform-origin: 50% 2px;
    animation: ecoBellRing 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
    transition: transform 0.2s ease;
  }
  .container-header .header-action-item.header-action_notify .box-icon svg.svg-ico-bell,
  #headerNotifyItem .box-icon svg.svg-ico-bell {
    width: 22px !important;
    height: 22px !important;
    fill: #ffffff !important;
    color: #ffffff !important;
  }
  .header-action-item.header-action_notify .box-icon svg.svg-ico-bell path {
    stroke: none !important;
  }

  .header-action-item.header-action_notify:hover .box-icon svg.svg-ico-bell {
    animation: ecoBellRing 1.2s ease-in-out infinite;
  }

  /* Badge số lượng thông báo - Đồng bộ chuẩn số đỏ giỏ hàng, ô đỏ không viền, chữ trắng mỏng */
  .header-action-item.header-action_notify .box-icon .eco-notify-badge,
  .eco-notify-badge {
    position: absolute !important;
    top: -3px !important;
    left: 14px !important;
    right: auto !important;
    min-width: 16px !important;
    height: 16px !important;
    box-sizing: border-box !important;
    background: #c50017 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    border-radius: 10px !important;
    padding: 0 3px !important;
    border: none !important;
    box-shadow: none !important;
    animation: none !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
  }
  .header-action-item.header-action_notify .box-icon .eco-notify-badge[style*="none"],
  .eco-notify-badge[style*="none"] {
    display: none !important;
  }
  .eco-notify-badge .count,
  #ecoNotifyCountText {
    color: #ffffff !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  /* Dropdown kiểu Facebook */
  .header-action-item.header-action_notify .eco-notify-dropdown {
    position: absolute;
    top: 100%;
    right: -80px;
    width: 380px;
    max-width: 95vw;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 999999;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    text-align: left;
    animation: ecoFbFadeZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .header-action-item.header-action_notify.js-action-show .eco-notify-dropdown,
  .header-action-item.header-action_notify .eco-notify-dropdown.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
  }


  @keyframes ecoFbFadeZoom {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .eco-notify-fb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 10px;
    border-bottom: 1px solid #f1f5f9;
  }

  .eco-notify-fb-title {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .eco-notify-fb-title h4 {
    margin: 0;
    font-size: 16.5px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
  }

  .eco-notify-fb-count-tag {
    background: #fee2e2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
  }

  .eco-notify-mark-read {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: #F7941D;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
  }

  .eco-notify-mark-read:hover {
    background: #fff8f0;
    color: #d97706;
  }

  /* Banner Đăng Ký Thông Báo Nổi Bật (CTA Cao Cấp) */
  .eco-notify-push-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 60%, #fed7aa 100%);
    border: 1.5px solid #fb923c;
    border-radius: 12px;
    margin: 12px 14px 10px;
    padding: 12px 14px;
    box-shadow: 0 4px 15px rgba(247, 148, 29, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
  }

  .eco-push-prompt-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
  }

  .eco-push-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F7941D 0%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.35);
    flex-shrink: 0;
    animation: bellSwing 2.5s infinite ease-in-out;
  }

  @keyframes bellSwing {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-14deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(0); }
  }

  .eco-push-text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: #9a3412;
    line-height: 1.3;
    margin-bottom: 2px;
  }

  .eco-push-text p {
    margin: 0;
    font-size: 11.5px;
    color: #78350f;
    line-height: 1.3;
    font-weight: 500;
  }

  .eco-push-enable-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #F7941D 0%, #ea580c 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.42), 0 0 0 2px rgba(255, 255, 255, 0.9);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    animation: ctaGlow 2.5s infinite;
  }

  @keyframes ctaGlow {
    0%, 100% {
      box-shadow: 0 4px 12px rgba(234, 88, 12, 0.42), 0 0 0 2px rgba(255, 255, 255, 0.9);
    }
    50% {
      box-shadow: 0 6px 18px rgba(234, 88, 12, 0.65), 0 0 0 3px rgba(251, 146, 60, 0.6);
    }
  }

  .eco-push-enable-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(194, 65, 12, 0.55);
  }

  .eco-push-enable-btn:active {
    transform: scale(0.97);
  }

  /* Notification List */
  .eco-notify-fb-list {
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .eco-notify-fb-list::-webkit-scrollbar {
    width: 5px;
  }
  .eco-notify-fb-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
  }

  .eco-notify-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f8fafc;
    text-decoration: none !important;
    color: inherit;
    transition: background 0.15s ease;
    cursor: pointer;
    position: relative;
  }

  .eco-notify-item:hover {
    background: #f8fafc;
  }

  .eco-notify-item.unread {
    background: #fffaf5;
  }
  .eco-notify-item.unread:hover {
    background: #fff4e5;
  }

  .eco-notify-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #fff8f0;
    border: 1px solid #fed7aa;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .eco-notify-body {
    flex: 1;
    min-width: 0;
  }

  .eco-notify-headline {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .eco-notify-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.4;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .eco-notify-time {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
  }

  .eco-notify-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    background: #F7941D;
    margin-top: 16px;
  }

  .eco-notify-item:not(.unread) .eco-notify-dot {
    display: none;
  }

  .eco-notify-fb-footer {
    padding: 11px 16px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
  }

  .eco-notify-view-all {
    color: #F7941D;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
  }
  .eco-notify-view-all:hover {
    color: #ea580c;
    text-decoration: underline;
  }

  /* Smooth Account Link (Bỏ dấu X và giật lag) */
  .header-action_account .box-icon--close {
    display: none !important;
  }
  .header-action_account .box-icon svg {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
  .header-account-smooth-link {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  /* Giữ icon chuông luôn hiện diện khi click mở thông báo */
  .header-action-item.header-action_notify .box-icon--close {
    display: none !important;
  }
  .header-action-item.header-action_notify .box-icon svg,
  .header-action-item.header-action_notify .box-icon img,
  .header-action-item.header-action_notify .box-icon img.header-icon-img,
  .header-action-item.header-action_notify .box-icon img.svg-ico-bell,
  .header-action-item.header-action_notify.js-action-show .header-action_text .header-action__link .box-icon svg,
  .header-action-item.header-action_notify.js-action-show .box-icon svg.svg-ico-bell,
  .header-action-item.header-action_notify.js-action-show .box-icon img,
  .header-action-item.header-action_notify.js-action-show .box-icon img.header-icon-img,
  .header-action-item.header-action_notify.js-action-show .box-icon img.svg-ico-bell,
  .header-action-item.header-action_notify.js-action-show .header-action_text .header-action__link .box-icon img {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: inline-block !important;
  }
  .header-action-item.header-action_notify.js-action-show .header-action_text .header-action__link .box-icon .count-holder,
  .header-action-item.header-action_notify.js-action-show .box-icon .eco-notify-badge {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Đồng bộ chữ số giỏ hàng: số trắng nét mảnh */
  .header-action-item.header-action_cart .count-holder {
    background: #c50017 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .header-action-item.header-action_cart .count-holder .count {
    color: #ffffff !important;
    font-weight: 400 !important;
    font-size: 11px !important;
  }

  /* Chuẩn hóa đồng bộ 3 icon Chuông, Tài khoản, Giỏ hàng dạng Ảnh (SVG/PNG) trong Header */
  .header-action-item .box-icon img.header-icon-img,
  .header-menu-top-mb .header-action-item .box-icon img.header-icon-img,
  .container-header .header-action-item .box-icon img.header-icon-img {
    height: 22px !important;
    width: auto !important;
    max-width: 24px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    object-fit: contain !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .header-action-item.header-action_notify .box-icon img.svg-ico-bell {
    transform-origin: 50% 2px !important;
    animation: ecoBellRing 3.5s ease-in-out infinite !important;
    animation-delay: 0.5s !important;
    transition: transform 0.2s ease !important;
  }
  .header-action-item.header-action_notify:hover .box-icon img.svg-ico-bell {
    animation: ecoBellRing 1.2s ease-in-out infinite !important;
  }

  /* Chỉ ẩn icon giỏ hàng khi mở giỏ hàng (để hiện nút đóng X) */
  .header-action-item.header-action_cart.js-action-show .box-icon img.header-icon-img {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  /* Đồng bộ fallback cho SVG */
  .header-menu-top-mb .header-action-item .box-icon svg,
  .header-menu-top-mb .header-action-item .box-icon svg path {
    width: 22px !important;
    height: 22px !important;
    fill: var(--shop-color-main) !important;
    color: var(--shop-color-main) !important;
    stroke: none !important;
  }

  /* Fix khi scroll xuống nút back không bị search che đi */
  .header-menu-top-mb .container-menu {
    display: flex !important;
    align-items: center !important;
    padding: 0 6px !important;
    gap: 4px !important;
  }
  .header-menu-top-mb .header-wrap-iconav {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
  }
  .header-menu-top-mb .header-wrap-iconav .header-action {
    display: flex !important;
    align-items: center !important;
  }
  .header-menu-top-mb .header-action-item.header-action_backlink {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
  }
  .header-menu-top-mb .header-action-item.header-action_backlink a.eco-header-back-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 35px !important;
    color: var(--shop-color-main, #f58220) !important;
  }
  .header-menu-top-mb .header-action-item.header-action_backlink a.eco-header-back-link svg {
    width: 22px !important;
    height: 22px !important;
    stroke: var(--shop-color-main, #f58220) !important;
    stroke-width: 2.6 !important;
  }
  .header-menu-top-mb .header-wrap-search-cus {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .header-menu-top-mb .header-wrap-action {
    flex: 0 0 auto !important;
  }
  body:not(.template-index) .mainHeader.hSticky-nav .header-search-mobile {
    padding-left: 92px !important;
    padding-right: 125px !important;
    z-index: 5 !important;
  }
  .mainHeader .header-wrap-iconav {
    position: static !important;
    z-index: 20 !important;
  }

  /* Mobile Dropdown Fix */
  @media (max-width: 767px) {
    .header-action-item.header-action_notify .eco-notify-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      right: -58px;
      left: auto;
      width: calc(100vw - 16px);
      max-width: 380px;
      border-radius: 14px;
    }
  }
