/* === zoey-mobile-contact-bubble-v46-style === */
/* V46 - Bubble trò chuyện mobile đơn giản, đồng bộ màu cá nhân hóa */
#zoey-mobile-contact-bubble{
  display:none;
}

@media(max-width:767px){
  #zoey-mobile-contact-bubble{
    position:fixed;
    right:14px;
    bottom:104px;
    z-index:58;
    display:flex;
    flex-direction:column-reverse;
    align-items:center;
    gap:9px;
    pointer-events:none;
  }

  #zoey-mobile-contact-toggle,
  #zoey-mobile-contact-bubble .zoey-contact-option{
    width:46px;
    height:46px;
    border-radius:999px;
    border:2px solid #fff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#fff;
    background:var(--primary);
    box-shadow:0 10px 24px color-mix(in srgb, var(--primary) 24%, transparent);
    pointer-events:auto;
    -webkit-tap-highlight-color:transparent;
  }

  #zoey-mobile-contact-toggle{
    position:relative;
    z-index:2;
    cursor:pointer;
    transition:transform .22s ease, background .22s ease, box-shadow .22s ease;
  }

  #zoey-mobile-contact-toggle i{
    font-size:18px;
    color:#fff;
    line-height:1;
  }

  #zoey-mobile-contact-bubble.is-open #zoey-mobile-contact-toggle{
    background:var(--accent);
    transform:rotate(45deg) scale(1.03);
    box-shadow:0 14px 28px color-mix(in srgb, var(--accent) 34%, transparent);
  }

  #zoey-mobile-contact-bubble.is-open #zoey-mobile-contact-toggle i{
    transform:rotate(-45deg);
  }

  #zoey-mobile-contact-bubble .zoey-contact-options{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:9px;
    pointer-events:none;
  }

  #zoey-mobile-contact-bubble .zoey-contact-option{
    width:42px;
    height:42px;
    opacity:0;
    transform:translateY(14px) scale(.72);
    transition:
      opacity .22s ease,
      transform .26s cubic-bezier(.2,.8,.2,1),
      background .22s ease,
      box-shadow .22s ease;
  }

  #zoey-mobile-contact-bubble.is-open .zoey-contact-option{
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:auto;
  }

  #zoey-mobile-contact-bubble.is-open .zoey-contact-option:nth-child(1){ transition-delay:.02s; }
  #zoey-mobile-contact-bubble.is-open .zoey-contact-option:nth-child(2){ transition-delay:.06s; }
  #zoey-mobile-contact-bubble.is-open .zoey-contact-option:nth-child(3){ transition-delay:.10s; }

  #zoey-mobile-contact-bubble .zoey-contact-option i,
  #zoey-mobile-contact-bubble .zoey-contact-option span{
    color:#fff;
    font-size:16px;
    font-weight:900;
    line-height:1;
  }

  /* 3 icon dùng cùng hệ màu shop: màu chủ đạo + màu phụ, không dùng màu brand sặc sỡ */
  #zoey-mobile-contact-bubble .zoey-contact-option.zalo{
    background:var(--primary);
  }

  #zoey-mobile-contact-bubble .zoey-contact-option.instagram{
    background:linear-gradient(135deg, var(--primary), var(--accent));
  }

  #zoey-mobile-contact-bubble .zoey-contact-option.messenger{
    background:var(--accent);
  }

  #zoey-mobile-contact-bubble .zoey-contact-option:active,
  #zoey-mobile-contact-toggle:active{
    transform:scale(.92);
  }

  /* Khi giỏ hàng cao hoặc thiết bị nhỏ, vẫn nằm phía trên giỏ */
  @media(max-width:380px){
    #zoey-mobile-contact-bubble{
      right:11px;
      bottom:100px;
    }
    #zoey-mobile-contact-toggle{
      width:44px;
      height:44px;
    }
    #zoey-mobile-contact-bubble .zoey-contact-option{
      width:40px;
      height:40px;
    }
  }
}

/* === zoey-mobile-contact-bubble-v47-style === */
/* V47 - chỉ đổi nút trò chuyện bên ngoài: đơn giản + dùng màu thứ 2 của bộ màu cá nhân hóa */
@media(max-width:767px){
  #zoey-mobile-contact-toggle{
    background:var(--accent)!important;
    color:#fff!important;
    border-color:#fff!important;
    box-shadow:0 10px 24px color-mix(in srgb, var(--accent) 34%, transparent)!important;
    transform:none!important;
  }

  #zoey-mobile-contact-toggle i{
    color:#fff!important;
    font-size:18px!important;
    transform:none!important;
    transition:transform .2s ease!important;
  }

  #zoey-mobile-contact-bubble.is-open #zoey-mobile-contact-toggle{
    background:var(--accent)!important;
    transform:scale(1.04)!important;
    box-shadow:0 14px 28px color-mix(in srgb, var(--accent) 40%, transparent)!important;
  }

  #zoey-mobile-contact-bubble.is-open #zoey-mobile-contact-toggle i{
    transform:none!important;
  }

  /* 3 icon liên hệ giữ màu nhận diện như bản cũ */
  #zoey-mobile-contact-bubble .zoey-contact-option.zalo{
    background:#0068ff!important;
  }

  #zoey-mobile-contact-bubble .zoey-contact-option.instagram{
    background:linear-gradient(135deg,#f9ce34,#ee2a7b 52%,#6228d7)!important;
  }

  #zoey-mobile-contact-bubble .zoey-contact-option.messenger{
    background:linear-gradient(135deg,#00b2ff,#006aff 50%,#a033ff)!important;
  }

  #zoey-mobile-contact-bubble .zoey-contact-option{
    box-shadow:0 10px 22px rgba(15,23,42,.18)!important;
  }
}

/* === zoey-mobile-contact-icons-v48-style === */
/* V48 - 3 icon liên hệ dùng nhận diện hãng; nút chat ngoài vẫn dùng màu thứ 2 của shop */
@media(max-width:767px){
  /* Nút trò chuyện bên ngoài: đơn giản, màu thứ 2 trong cá nhân hóa */
  #zoey-mobile-contact-toggle{
    background:var(--accent)!important;
    box-shadow:0 10px 24px color-mix(in srgb, var(--accent) 34%, transparent)!important;
  }

  #zoey-mobile-contact-toggle i{
    color:#fff!important;
    font-size:18px!important;
  }

  /* Zalo: dạng wordmark trong nền xanh Zalo */
  #zoey-mobile-contact-bubble .zoey-contact-option.zalo{
    background:#0068ff!important;
  }

  #zoey-mobile-contact-bubble .zoey-zalo-wordmark{
    font-family:Arial, Helvetica, sans-serif!important;
    font-size:11px!important;
    font-weight:900!important;
    letter-spacing:-.7px!important;
    color:#fff!important;
    line-height:1!important;
    transform:translateY(.5px);
  }

  /* Instagram + Messenger dùng icon brand Font Awesome */
  #zoey-mobile-contact-bubble .zoey-contact-option.instagram{
    background:linear-gradient(135deg,#f9ce34 0%,#ee2a7b 50%,#6228d7 100%)!important;
  }

  #zoey-mobile-contact-bubble .zoey-contact-option.instagram i{
    font-size:19px!important;
    color:#fff!important;
  }

  #zoey-mobile-contact-bubble .zoey-contact-option.messenger{
    background:linear-gradient(135deg,#00b2ff 0%,#006aff 48%,#a033ff 100%)!important;
  }

  #zoey-mobile-contact-bubble .zoey-contact-option.messenger i{
    font-size:18px!important;
    color:#fff!important;
  }
}

/* === zoey-brand-contact-icons-v49-style === */
/* V49 - Dùng icon hãng tròn cho Zalo / Instagram / Messenger trên cả PC và mobile */
.contact-bubble,
.mcf-link,
#zoey-mobile-contact-toggle,
#zoey-mobile-contact-bubble .zoey-contact-option{
  overflow:hidden;
}

.contact-bubble.contact-zalo,
.contact-bubble.contact-instagram,
.contact-bubble.contact-messenger,
.mcf-link.mcf-zalo,
.mcf-link.mcf-instagram,
.mcf-link.mcf-messenger,
#zoey-mobile-contact-bubble .zoey-contact-option.zalo,
#zoey-mobile-contact-bubble .zoey-contact-option.instagram,
#zoey-mobile-contact-bubble .zoey-contact-option.messenger{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:0 !important;
}

.contact-bubble img,
.mcf-link img,
#zoey-mobile-contact-bubble .zoey-contact-option img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:999px;
  box-shadow:0 8px 22px rgba(15,23,42,.18);
}

.contact-bubble:hover img,
.mcf-link:hover img,
#zoey-mobile-contact-bubble .zoey-contact-option:hover img{
  box-shadow:0 12px 28px rgba(15,23,42,.24);
}

.mobile-contact-strip .contact-bubble img{
  border-radius:999px;
}

.mcf-link .mcf-label{ z-index:1; }
.mcf-link img{
  width:46px;
  height:46px;
}

#zoey-mobile-contact-toggle{
  background:var(--accent) !important;
  border:2px solid #fff !important;
  box-shadow:0 10px 24px color-mix(in srgb, var(--accent) 34%, transparent) !important;
}
#zoey-mobile-contact-toggle i{
  color:#fff !important;
}

@media(min-width:768px){
  /* Ẩn bubble trò chuyện mobile ở desktop nhưng giữ contact dock PC */
  #zoey-mobile-contact-bubble{ display:none !important; }
}

/* === zoey-contact-icons-v51-style === */
/* V51 - icon hãng full tròn, Messenger theo ảnh mới, dock PC hạ thấp gần giỏ hàng */
.contact-bubble img,
.mcf-link img,
#zoey-mobile-contact-bubble .zoey-contact-option img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 999px !important;
  background: transparent !important;
}

/* Desktop: kéo cụm 3 icon xuống thấp hơn, gần khu vực giỏ hàng hơn */
@media (min-width: 1024px) {
  .contact-dock {
    top: auto !important;
    bottom: 138px !important;
    transform: none !important;
    right: 18px !important;
  }
}

/* Tablet nhẹ */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .contact-dock {
    top: auto !important;
    bottom: 128px !important;
    transform: none !important;
  }
}

/* === zoey-contact-icons-v55-fix-giant === */
/* V55 - sửa lỗi icon liên hệ bị bung ảnh lớn ở cuối trang */

/* Ẩn cụm liên hệ cũ trong hero và FAB cũ để không bị trùng với bubble mới */
.mobile-contact-strip,
#mobile-contact-fab{
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  max-height:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}

/* PC: giữ cụm 3 icon bên phải, ép icon luôn nằm trong vòng tròn nhỏ */
.contact-dock{
  display:flex!important;
}

.contact-dock .contact-bubble{
  position:relative!important;
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  max-width:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  flex:0 0 48px!important;
  overflow:hidden!important;
  border-radius:999px!important;
  padding:0!important;
}

/* Mobile: chỉ giữ bubble trò chuyện mới phía trên giỏ hàng */
#zoey-mobile-contact-bubble .zoey-contact-option{
  position:relative!important;
  overflow:hidden!important;
  border-radius:999px!important;
  padding:0!important;
}

.contact-dock .contact-bubble > img,
#zoey-mobile-contact-bubble .zoey-contact-option > img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:999px!important;
}

/* Tooltip chỉ hiện khi hover trên PC, không nhảy lung tung ra ngoài trang */
.contact-dock .contact-tooltip{
  position:absolute!important;
  right:58px!important;
  top:50%!important;
  transform:translate(6px,-50%)!important;
  z-index:2!important;
}
.contact-dock .contact-bubble:hover .contact-tooltip{
  transform:translate(0,-50%)!important;
}

@media(max-width:767px){
  .contact-dock{
    display:none!important;
  }
}

/* === zy-hero-css === */
#banner-carousel{background:none!important;border:none!important;box-shadow:none!important;overflow:visible!important;min-height:0!important;border-radius:0!important;}
.zy-hero{display:grid;grid-template-columns:3fr 1fr;gap:12px;}
.zy-hero-main{position:relative;border-radius:22px;overflow:hidden;background:var(--light);}
.zy-hero-main .zy-slide{display:block;position:absolute;inset:0;opacity:0;transition:opacity .55s ease;pointer-events:none;}
.zy-hero-main .zy-slide.on{position:relative;opacity:1;pointer-events:auto;}
.zy-hero-main img{width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;display:block;}
.zy-dots{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);display:flex;gap:6px;z-index:2;}
.zy-dot{width:8px;height:8px;border-radius:999px;background:rgba(255,255,255,.55);border:1px solid rgba(0,0,0,.08);cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);}
.zy-dot.on{background:var(--primary);width:20px;}
.zy-hero-sides{display:grid;grid-template-rows:repeat(3,1fr);gap:12px;}
.zy-hero-side{border-radius:16px;overflow:hidden;background:var(--light);}
.zy-hero-side img{width:100%;height:100%;aspect-ratio:2/1;object-fit:cover;display:block;}
.zy-hero-swipe{display:none;}
.zy-swipe-dots{display:none;}
@media(max-width:767px){.zy-swipe-dots{display:flex;justify-content:center;gap:6px;margin-top:8px;}}
@media(max-width:767px){
 .zy-hero{display:none;}
 .zy-hero-swipe{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
 .zy-hero-swipe::-webkit-scrollbar{display:none;}
 .zy-hero-swipe .zy-sw{flex:0 0 100%;scroll-snap-align:center;border-radius:18px;overflow:hidden;background:var(--light);}
 .zy-hero-swipe img{width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;display:block;}
}
#zoey-top10{margin-top:16px;}
#zoey-top10 h3{margin:0 0 10px;color:var(--primary);font-size:14px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;}
.zy-top10-row{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:4px;}
.zy-top10-row::-webkit-scrollbar{display:none;}
.zy-top10-item{flex:0 0 130px;scroll-snap-align:start;cursor:pointer;text-align:center;}
.zy-top10-item img{width:130px;height:130px;object-fit:cover;border-radius:16px;border:1px solid var(--border);background:var(--light);display:block;}
.zy-top10-item span{display:block;margin-top:6px;font-size:11px;font-weight:800;color:var(--primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* === zy-cicon-css === */
.contact-bubble{overflow:hidden;padding:0!important;background:#fff!important;}
.contact-bubble .zy-cicon{width:100%;height:100%;border-radius:999px;object-fit:cover;display:block;}

/* === zoey-v59-no-subtext-top10-style === */
/* V59 - chỉ bỏ dòng chữ phụ trực tiếp dưới nút tab, không ẩn nhãn trong <b> */
#zoey-supertab .zoey-stab > span:not(.zf-sliding-pill){
  display:none!important;
}
#zoey-supertab .zoey-stab{
  min-height:42px!important;
  padding:10px 12px!important;
}
#zoey-supertab .zoey-stab b{
  font-size:13px!important;
  line-height:1.15!important;
}

/* === zoey-v61-contact-shadow-stronger === */
/* V61 - tăng độ nổi cho 3 icon liên hệ */
.contact-bubble,
.mobile-contact-strip .contact-bubble,
#zoey-mobile-contact-bubble .zoey-contact-option,
#mobile-contact-fab .mcf-link{
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22), 0 3px 8px rgba(15, 23, 42, 0.12), 0 0 0 4px rgba(255,255,255,0.78) !important;
  border: 1px solid rgba(255,255,255,0.96) !important;
  backdrop-filter: blur(2px);
}

.contact-bubble:hover,
.mobile-contact-strip .contact-bubble:hover,
#zoey-mobile-contact-bubble .zoey-contact-option:hover,
#mobile-contact-fab .mcf-link:hover{
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28), 0 5px 12px rgba(15, 23, 42, 0.14), 0 0 0 5px rgba(255,255,255,0.88) !important;
}

.contact-bubble img,
.mobile-contact-strip .contact-bubble img,
#zoey-mobile-contact-bubble .zoey-contact-option img,
#mobile-contact-fab .mcf-link img{
  filter: drop-shadow(0 1px 1px rgba(255,255,255,0.25));
}

/* === zoey-menu-v5-footer-justify-fix === */
/* V5 - Giới thiệu cuối trang căn đều hai bên như Word */
#zoey-footer .zoey-footer-intro{
  text-align:justify!important;
  text-align-last:left!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}

/* === zoey-social-contacts-v62 === */
/* V62 - 4 kênh liên hệ (Zalo, Facebook, Instagram, TikTok): link + tên do Chủ shop tự đặt trong Admin */
.zy-tiktok-icon{
  display:flex!important;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  border-radius:999px;
  background:#010101;
  color:#fff;
}
.zy-tiktok-icon i{
  color:#fff!important;
  font-size:19px!important;
  line-height:1!important;
  text-shadow:-1.5px -1px 0 #25f4ee, 1.5px 1px 0 #fe2c55;
}
.contact-bubble.contact-tiktok,
#zoey-mobile-contact-bubble .zoey-contact-option.tiktok{
  background:#010101!important;
}

/* Bong bóng mobile: tên kênh hiện bên trái icon khi mở ra */
#zoey-mobile-contact-bubble .zoey-contact-option{
  overflow:visible!important;
}
#zoey-mobile-contact-bubble .zoey-contact-option > img,
#zoey-mobile-contact-bubble .zoey-contact-option > .zy-tiktok-icon{
  border-radius:999px!important;
  overflow:hidden;
}
#zoey-mobile-contact-bubble .zoey-contact-option .zoey-contact-name{
  position:absolute;
  right:calc(100% + 10px);
  top:50%;
  transform:translateY(-50%);
  max-width:min(62vw, 240px);
  padding:6px 11px;
  border-radius:999px;
  background:#fff;
  color:#1e293b!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.25!important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-shadow:0 6px 18px rgba(15,23,42,.18);
  pointer-events:none;
}
#zoey-mobile-contact-bubble.is-open .zoey-contact-option:nth-child(4){ transition-delay:.14s; }

/* Dải mạng xã hội cuối trang */
.zoey-footer-socials{
  display:inline-flex;
  flex-wrap:wrap;
  gap:8px 14px;
  align-items:center;
}
.zoey-social-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:#334155;
  font-weight:800;
}
.zoey-social-link i{ font-size:14px; }
.zoey-social-link.is-zalo i{ color:#0068ff; }
.zoey-social-link.is-facebook i{ color:#1877f2; }
.zoey-social-link.is-instagram i{ color:#db2777; }
.zoey-social-link.is-tiktok i{ color:#0f172a; }

/* Popup đặt đơn thành công: lưới kênh liên hệ (icon + tên) */
.zoey-social-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}
.zoey-social-tile{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:6px 10px 6px 6px;
  border-radius:14px;
  border:1px solid var(--border, #e9e3d9);
  background:#fff;
  color:#1e293b;
  font-size:11.5px;
  font-weight:800;
  line-height:1.25;
  text-decoration:none;
  overflow:hidden;
}
.zoey-social-tile span:not(.zy-cicon){ min-width:0; overflow:hidden; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow-wrap:anywhere; }
.zoey-social-tile .zoey-social-tile-icon{
  flex:0 0 32px;
  width:32px!important;
  height:32px!important;
  border-radius:999px;
  object-fit:cover;
}
.zoey-social-tile .zy-tiktok-icon i{ font-size:15px!important; }
.zoey-social-tile:active{ transform:scale(.98); }
