/* === zoey-round-all-card-buttons === */
html body #products-grid .zoey-card-actions {
    gap: 7px !important;
}

html body #products-grid .zoey-card-color-pill,
html body #products-grid .zoey-card-color-select-wrap,
html body #products-grid .zoey-card-color-select,
html body #products-grid .zoey-card-add-btn,
html body #products-grid .zoey-card-actions .zoey-card-add-btn {
    border-radius: 999px !important;
    overflow: hidden !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
}

html body #products-grid .zoey-card-color-select {
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* === zoey-v62-contact-shadow-always === */
/* V62 - Icon liên hệ luôn có bóng đổ nhẹ, không cần hover mới thấy.
   PC: 3 icon bên phải hiện sẵn có shadow.
   Mobile: khi bấm nút xanh xổ 3 icon, các icon đã có shadow ngay; hover/active vẫn giữ shadow. */
html body .contact-dock .contact-bubble,
html body .contact-bubble.contact-zalo,
html body .contact-bubble.contact-instagram,
html body .contact-bubble.contact-messenger,
html body #zoey-mobile-contact-bubble.is-open .zoey-contact-option,
html body #zoey-mobile-contact-bubble.is-open .zoey-contact-option.zalo,
html body #zoey-mobile-contact-bubble.is-open .zoey-contact-option.instagram,
html body #zoey-mobile-contact-bubble.is-open .zoey-contact-option.messenger {
  box-shadow:
    0 9px 22px rgba(15,23,42,.20),
    0 2px 7px rgba(15,23,42,.10),
    0 0 0 3px rgba(255,255,255,.82) !important;
  border:1px solid rgba(255,255,255,.96) !important;
}

html body .contact-dock .contact-bubble:hover,
html body .contact-bubble.contact-zalo:hover,
html body .contact-bubble.contact-instagram:hover,
html body .contact-bubble.contact-messenger:hover,
html body #zoey-mobile-contact-bubble.is-open .zoey-contact-option:hover,
html body #zoey-mobile-contact-bubble.is-open .zoey-contact-option:active {
  box-shadow:
    0 12px 28px rgba(15,23,42,.24),
    0 4px 10px rgba(15,23,42,.13),
    0 0 0 4px rgba(255,255,255,.88) !important;
}

html body .contact-dock .contact-bubble > img,
html body .contact-bubble .zy-cicon,
html body #zoey-mobile-contact-bubble .zoey-contact-option > img {
  box-shadow:
    0 8px 20px rgba(15,23,42,.16),
    0 1px 4px rgba(15,23,42,.10) !important;
}

html body .contact-dock .contact-bubble:hover > img,
html body #zoey-mobile-contact-bubble.is-open .zoey-contact-option:hover > img {
  box-shadow:
    0 10px 24px rgba(15,23,42,.20),
    0 2px 6px rgba(15,23,42,.12) !important;
}

html body #zoey-mobile-contact-toggle {
  box-shadow:
    0 10px 24px color-mix(in srgb, var(--accent) 34%, transparent),
    0 2px 7px rgba(15,23,42,.12),
    0 0 0 3px rgba(255,255,255,.78) !important;
}

/* === zoey-v66-product-detail-popup-swipe === */
/* V66 - Vuốt ảnh bám theo tay/chuột, chuyển slide liền mạch; chấm chỉ báo nhỏ gọn theo trục giữa ảnh. */
#zoey-detail-carousel{
  touch-action:pan-y;
  user-select:none;
  -webkit-user-select:none;
  cursor:zoom-in;
  isolation:isolate;
}
#zoey-detail-carousel[data-zoey-multi="1"]{cursor:grab;}
#zoey-detail-carousel[data-zoey-dragging="1"]{cursor:grabbing;}
#zoey-detail-carousel .product-picture{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  pointer-events:none;
  will-change:transform;
  transform:translate3d(0,0,0);
  backface-visibility:hidden;
}
#zoey-detail-carousel #detail-product-image{
  pointer-events:none;
  will-change:transform;
  transform:translate3d(0,0,0);
  backface-visibility:hidden;
}
#zoey-detail-carousel > span{z-index:8;}
.zoey-detail-swipe-preview{
  position:absolute;
  inset:0;
  z-index:2;
  display:block;
  width:100%;
  height:100%;
  padding:.5rem;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
  will-change:transform;
  backface-visibility:hidden;
  transform:translate3d(100%,0,0);
}
@media(min-width:640px){.zoey-detail-swipe-preview{padding:1rem;}}
.zoey-detail-carousel-controls{
  position:absolute;
  inset:0;
  z-index:12;
  pointer-events:none;
}
.zoey-detail-carousel-controls.hidden{display:none!important;}
.zoey-detail-carousel-arrow{
  position:absolute;
  top:50%;
  width:42px;
  height:42px;
  margin-top:-21px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.92);
  color:var(--primary);
  border:1px solid rgba(255,255,255,.98);
  box-shadow:0 8px 24px rgba(15,23,42,.18),0 2px 7px rgba(15,23,42,.10);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  pointer-events:auto;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.zoey-detail-carousel-arrow:hover{
  transform:scale(1.07);
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.22),0 3px 9px rgba(15,23,42,.12);
}
.zoey-detail-carousel-arrow:active{transform:scale(.94);}
.zoey-detail-carousel-prev{left:14px;}
.zoey-detail-carousel-next{right:14px;}
.zoey-detail-carousel-dots{
  position:absolute;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:14px;
  max-width:72%;
  padding:3px 5px;
  pointer-events:auto;
}
.zoey-detail-carousel-dot{
  appearance:none;
  -webkit-appearance:none;
  width:5px;
  height:5px;
  min-width:5px;
  padding:0;
  border:0;
  border-radius:999px;
  background:rgba(148,163,184,.88);
  box-shadow:0 1px 3px rgba(15,23,42,.28);
  cursor:pointer;
  transform:scale(1);
  transition:width .22s cubic-bezier(.22,1,.36,1),height .22s cubic-bezier(.22,1,.36,1),min-width .22s cubic-bezier(.22,1,.36,1),transform .22s cubic-bezier(.22,1,.36,1),background .2s ease,box-shadow .2s ease;
}
.zoey-detail-carousel-dot:hover{transform:scale(1.12);background:rgba(226,232,240,.96);}
.zoey-detail-carousel-dot.is-active{
  width:7px;
  height:7px;
  min-width:7px;
  background:#fff;
  box-shadow:0 0 0 1px rgba(15,23,42,.16),0 1px 4px rgba(15,23,42,.32);
  animation:zoeyDotSelect .24s cubic-bezier(.22,1,.36,1);
}
@keyframes zoeyDotSelect{0%{transform:scale(.78)}70%{transform:scale(1.12)}100%{transform:scale(1)}}
#detail-product-image.zoey-slide-exit-left{animation:zoeyDetailExitLeft .14s ease-in both;}
#detail-product-image.zoey-slide-exit-right{animation:zoeyDetailExitRight .14s ease-in both;}
#detail-product-image.zoey-slide-enter-left{animation:zoeyDetailEnterLeft .24s cubic-bezier(.22,1,.36,1) both;}
#detail-product-image.zoey-slide-enter-right{animation:zoeyDetailEnterRight .24s cubic-bezier(.22,1,.36,1) both;}
@keyframes zoeyDetailExitLeft{to{opacity:.18;transform:translate3d(-15%,0,0) scale(.985);}}
@keyframes zoeyDetailExitRight{to{opacity:.18;transform:translate3d(15%,0,0) scale(.985);}}
@keyframes zoeyDetailEnterLeft{from{opacity:.12;transform:translate3d(15%,0,0) scale(.985);}to{opacity:1;transform:translate3d(0,0,0) scale(1);}}
@keyframes zoeyDetailEnterRight{from{opacity:.12;transform:translate3d(-15%,0,0) scale(.985);}to{opacity:1;transform:translate3d(0,0,0) scale(1);}}
@media(max-width:767px){
  .zoey-detail-carousel-arrow{display:none!important;}
  .zoey-detail-carousel-dots{bottom:17px;gap:5px;max-width:76%;}
  .zoey-detail-carousel-dot{width:4.5px;height:4.5px;min-width:4.5px;}
  .zoey-detail-carousel-dot.is-active{width:6.5px;height:6.5px;min-width:6.5px;}
}
@media(prefers-reduced-motion:reduce){
  .zoey-detail-carousel-dot,.zoey-detail-carousel-arrow,#detail-product-image,.zoey-detail-swipe-preview,#zoey-detail-carousel .product-picture{animation:none!important;transition:none!important;}
}

/* === zy-v65-css === */
html .zoey-detail-carousel-arrow{
  background:rgba(255,255,255,.62)!important;
  border:1px solid rgba(255,255,255,.85)!important;
  backdrop-filter:blur(12px) saturate(1.3)!important;
  -webkit-backdrop-filter:blur(12px) saturate(1.3)!important;
  box-shadow:0 4px 14px rgba(15,23,42,.10)!important;
  color:var(--primary)!important;
  transition:transform .2s cubic-bezier(.34,1.3,.64,1), background .2s ease, box-shadow .2s ease!important;
}
html .zoey-detail-carousel-arrow:hover{
  transform:scale(1.05)!important;
  background:rgba(255,255,255,.86)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.16)!important;
}
html .zoey-detail-carousel-arrow:active{ transform:scale(.97)!important; }
@media(max-width:767px){ html .zoey-detail-carousel-arrow{ display:none!important; } }
#zy-img-counter{
  position:absolute; bottom:12px; right:12px; z-index:6;
  display:flex; align-items:center; padding:5px 11px; border-radius:999px;
  background:rgba(0,0,0,.55); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  color:#fff; font-size:11px; font-weight:900; line-height:1; pointer-events:none;
}
html.zy-detail-open .product-detail-panel{ animation:none!important; }
/* v66: bo tròn khung ảnh preview + siết khoảng cách mã / tên / màu */
html #zoey-detail-carousel{ border-radius:30px!important; overflow:hidden!important; }
html #zoey-detail-carousel img,
html #zoey-detail-carousel .product-picture{ border-radius:35px!important; }
/* Mã / Tên / Màu: khoảng cách ĐỀU NHAU 4px */
html #detail-product-code{ margin:0 0 4px 0!important; line-height:1.15!important; }
html #detail-product-name{ margin:0 0 4px 0!important; line-height:1.2!important; }
html #detail-product-variant, html #detail-product-subtitle{ margin:0!important; line-height:1.15!important; }
html #detail-product-tags{ margin-top:10px!important; }
/* Thanh vuốt: bỏ viền dày, chỉ còn gạch ngang mảnh */
html .detail-sheet-handle{ background:none!important; border:none!important; box-shadow:none!important; padding:6px 0 0!important; }
html .detail-sheet-handle span{ width:38px!important; height:4px!important; border-radius:999px!important; background:rgba(255,255,255,.75)!important; border:none!important; box-shadow:0 1px 3px rgba(0,0,0,.18)!important; }
/* Nút đóng: nhỏ lại + bo hài hòa với góc ảnh và popup */
html #product-detail-modal > .product-detail-panel > button[data-z-click="closeProductDetail"]{
  width:34px!important; height:34px!important; top:10px!important; right:10px!important;
  font-size:13px!important; border-radius:999px!important;
  background:rgba(255,255,255,.82)!important;
  backdrop-filter:blur(10px)!important; -webkit-backdrop-filter:blur(10px)!important;
  border:1px solid rgba(255,255,255,.9)!important;
  box-shadow:0 3px 10px rgba(15,23,42,.14)!important;
  transition:transform .2s cubic-bezier(.34,1.3,.64,1), background .2s ease!important;
}
html #product-detail-modal > .product-detail-panel > button[data-z-click="closeProductDetail"]:hover{ transform:scale(1.06)!important; background:#fff!important; }
@media(max-width:767px){
  html #zoey-detail-carousel{ border-radius:25px!important; }
  html #zoey-detail-carousel img,
  html #zoey-detail-carousel .product-picture{ border-radius:25px!important; }
  html #detail-product-code{ margin-bottom:4px!important; }
  html #detail-product-name{ margin-bottom:4px!important; }
  html #detail-product-variant, html #detail-product-subtitle{ margin-bottom:0!important; }
  html #detail-product-tags{ margin-top:9px!important; }
  html #product-detail-modal > .product-detail-panel > button[data-z-click="closeProductDetail"]{ width:32px!important; height:32px!important; top:9px!important; right:9px!important; }
}

/* === zoey-nangcap-css === */
/* ============================================================
   ZOEY MENU — SUA LOI + CHINH NHIN
   Dat o cuoi file nen thang cac quy tac phia tren.
   ============================================================ */

/* ===== A. SUA LOI ===== */

/* A1. iPhone tu phong to ca trang khi bam vao o nho hon 16px.
   Day la cai khien ban thay "tran vien, khong vao bo cuc". */
@media (max-width: 767px){
  input[type="text"], input[type="search"], input[type="tel"], input[type="email"],
  input[type="number"], input[type="password"], input[type="url"],
  input[type="date"], input[type="time"], input[type="datetime-local"],
  input:not([type]), textarea, select{
    font-size: 16px !important;
    line-height: 1.35 !important;
  }
}

/* A2. O ngay gio la control cua he dieu hanh, khong tu co theo khung cha tren iOS */
#requested-time, input[type="datetime-local"], input[type="date"], input[type="time"]{
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; max-width: 100%; min-width: 0;
  box-sizing: border-box; min-height: 50px; text-align: left; overflow: hidden;
}
#requested-time::-webkit-date-and-time-value{ text-align: left; margin: 0; min-width: 0; }
#cart-modal input, #cart-modal select, #cart-modal textarea{ min-height: 48px; }
#cart-modal textarea{ min-height: 108px; }

/* A3. Trang bi keo ngang tren dien thoai */
html, body{ overflow-x: clip; max-width: 100%; }
.zy-top10-row{
  max-width: 100%; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg,#000 0,#000 calc(100% - 26px),transparent 100%);
  mask-image: linear-gradient(90deg,#000 0,#000 calc(100% - 26px),transparent 100%);
}
main, main > *{ min-width: 0; }

/* A4. Thanh gio va bong bong che mat noi dung cuoi trang */
main{ padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important; }
@media (min-width: 768px){ main{ padding-bottom: 92px !important; } }
@media (max-width: 767px){
  #zoey-mobile-contact-bubble{ bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
}
/* Mo hop thoai thi cat cac nut noi cho khoi de len */
body:has(#cart-modal:not(.hidden)) #zoey-mobile-contact-bubble,
body:has(#cart-modal:not(.hidden)) #floating-cart,
body:has(#product-detail-modal:not(.hidden)) #zoey-mobile-contact-bubble{
  opacity: 0 !important; pointer-events: none !important;
  transition: opacity .2s ease;
}

/* ===== B. THANG DO DAM CHU =====
   Truoc: 43 cho dung 900, 17 cho 800 — moi thu cung het suc nen khong gi noi.
   Gio: gia dam nhat, ten vua, nhan phu nhe. */
/* Quy tac cu dung "#products-grid .zoey-card-x{...!important}" nen phai nang
   do uu tien len moi thang duoc, khong thi doi hoai khong an. */
html body #products-grid .zoey-card-name{ font-weight: 700 !important; letter-spacing: -.005em; }
html body #products-grid .zoey-card-price-main{ font-weight: 800 !important; letter-spacing: -.02em; }
html body #products-grid .zoey-card-price-unit,
html body #products-grid .zoey-card-price-label{ font-weight: 600 !important; }
html body #products-grid .zoey-card-tab{ font-weight: 700 !important; letter-spacing: .05em; }
html body #products-grid .zoey-card-color-pill,
html body #products-grid .zoey-card-color-face,
html body #products-grid .zoey-card-color-select{ font-weight: 600 !important; }
.product-meta-chip{ font-weight: 600 !important; }
#zoey-footer .zoey-footer-row{ font-weight: 600 !important; }
#zoey-footer h4{ font-weight: 700 !important; }
#zoey-footer .zoey-footer-brand{ font-weight: 800 !important; }
.hero-copy{ font-weight: 500 !important; }
.hero-title{ font-weight: 800 !important; }
.category-btn{ font-weight: 700 !important; }
#catalog-status{ font-weight: 600 !important; }

/* ===== C. O NHAP BAO SAI ===== */
.zoey-loi-o{
  margin: 5px 2px 0; font-size: 11.5px; font-weight: 600; line-height: 1.4;
  color: #be123c; min-height: 0;
}
.zoey-loi-o.zoey-nhac{ color: #92620c; }
.zoey-loi-o:empty{ display: none; }
input.zoey-o-sai, select.zoey-o-sai{
  border-color: #f43f5e !important;
  box-shadow: 0 0 0 3px rgba(244,63,94,.12) !important;
}

/* ===== D. NUT CHON NHANH THOI GIAN ===== */
.zoey-gio-nhanh{ display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.zoey-gio-chip{
  border: 1px solid var(--border); background: #fff; color: var(--primary);
  border-radius: 999px; padding: 7px 13px; font-size: 12px; font-weight: 700;
  line-height: 1; min-height: 34px; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .14s ease, border-color .18s ease;
}
.zoey-gio-chip:active{ transform: scale(.94); }
.zoey-gio-chip.chon{ background: var(--primary); color: #fff; border-color: var(--primary); }
@media (hover:hover){ .zoey-gio-chip:hover{ border-color: var(--accent); } }

/* ===== E. KHU VUC GIAO ===== */
.zoey-khu-vuc-boc{ display: block; }
.zoey-khu-vuc-boc.hidden{ display: none; }
.zoey-nhan-nho{
  display: block; font-size: 10px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .05em; margin: 0 0 5px;
}
#zoey-khu-vuc{
  width: 100%; padding: 12px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff;
  font-size: 13px; font-weight: 600; color: var(--primary);
}

/* ===== F. MUA KEM ===== */
.zoey-mua-kem{
  margin: 12px 0 0; padding: 12px; border-radius: 16px;
  background: var(--light); border: 1px solid var(--border);
}
.zoey-mua-kem-dau{
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--primary); opacity: .78; margin-bottom: 9px;
}
.zoey-mua-kem-hang{
  display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.zoey-mua-kem-hang::-webkit-scrollbar{ display: none; }
.zoey-mua-kem-the{
  flex: 0 0 92px; width: 92px; background: #fff; border: 1px solid var(--border);
  border-radius: 13px; padding: 7px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .16s cubic-bezier(.34,1.5,.64,1), border-color .18s ease, box-shadow .18s ease;
}
.zoey-mua-kem-the img{
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 9px; background: var(--light); display: block;
}
.zoey-mua-kem-ten{
  font-size: 10.5px; font-weight: 600; color: var(--primary); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.zoey-mua-kem-gia{ font-size: 11.5px; font-weight: 800; color: var(--primary); }
.zoey-mua-kem-the:active{ transform: scale(.94); }
.zoey-mua-kem-the.da-them{
  border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.16);
}
@media (hover:hover){ .zoey-mua-kem-the:hover{ border-color: var(--accent); } }

/* ===== G. DAT LAI DON TRUOC ===== */
.zoey-dat-lai{
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 0 12px; padding: 13px; border-radius: 14px; cursor: pointer;
  border: 1px dashed var(--accent); background: #fff;
  color: var(--primary); font-size: 12.5px; font-weight: 700;
  transition: transform .16s cubic-bezier(.34,1.5,.64,1), background .18s ease;
}
.zoey-dat-lai i{ color: var(--accent); }
.zoey-dat-lai:active{ transform: scale(.975); }
@media (hover:hover){ .zoey-dat-lai:hover{ background: var(--light); } }

/* ===== H. NHAN SAP HET HANG ===== */
.zoey-card-sap-het{
  position: absolute; top: 10px; left: 10px; z-index: 3;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(255,251,235,.96); color: #92400e;
  border: 1px solid #fcd34d;
  font-size: 9.5px; font-weight: 700; line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

/* ===== I. LOI NHAC NGAN ===== */
.zoey-nhac-nho{
  position: fixed; left: 50%; bottom: 120px; transform: translate(-50%, 14px);
  z-index: 2147483000; max-width: min(90vw, 420px);
  padding: 11px 16px; border-radius: 999px;
  background: rgba(28,44,33,.95); color: #fff;
  font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.4;
  box-shadow: 0 10px 30px rgba(28,44,33,.28);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.32,.72,0,1);
}
.zoey-nhac-nho.hien{ opacity: 1; transform: translate(-50%, 0); }

/* ===== J. PHAN LIEN HE CUOI TRANG ===== */
#zoey-footer .zoey-footer-inner{ grid-template-columns: 1fr !important; }
@media (min-width: 900px){
  #zoey-footer .zoey-footer-inner{ grid-template-columns: 1.1fr 1fr 1.2fr !important; }
}
#zoey-footer .zoey-footer-row{ align-items: center; gap: 10px; margin-bottom: 11px; }
#zoey-footer .zoey-footer-row a{ text-decoration: none; }
#zoey-footer .zoey-lh-sdt{ display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
#zoey-footer .zoey-lh-so{
  font-size: 12px; font-weight: 600; color: #475569; letter-spacing: normal;
}
#zoey-footer .zoey-lh-so:hover{ color: var(--primary); }
#zoey-footer .zoey-lh-zalo{
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px;
  background: #0068ff; color: #fff !important;
  font-size: 11px; font-weight: 700; line-height: 1;
  transition: transform .16s cubic-bezier(.34,1.5,.64,1), filter .18s ease;
}
#zoey-footer .zoey-lh-zalo:active{ transform: scale(.93); }
@media (hover:hover){ #zoey-footer .zoey-lh-zalo:hover{ filter: brightness(1.08); } }
#zoey-footer .zoey-footer-row i{ margin-top: 0; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important; transition-duration: .01ms !important;
  }
}

/* === zoey-v25-polish-css === */
/* 1. Độ tương phản thông minh cho icon trên nền sáng (tránh bị mờ khi --accent là màu pastel nhạt) */
:root {
  --zoey-accent-contrast: color-mix(in srgb, var(--primary) 62%, var(--accent));
}
html body #mobile-filter-anchor i.text-\[var\(--accent\)\],
html body .desktop-filter-sidebar i.text-\[var\(--accent\)\],
html body .sort-control i.text-\[var\(--accent\)\],
html body header button[data-z-click="openOrderLookup"] i.text-\[var\(--accent\)\],
html body #cart-modal i.text-\[var\(--accent\)\],
html body .zoey-fs-select-wrap i,
html body #detail-product-tags i.text-\[var\(--accent\)\] {
  color: var(--zoey-accent-contrast) !important;
}

/* Mũi tên chevron cạnh các ô select đồng bộ theo màu chủ đạo */
html body .sort-control .fa-chevron-down,
html body #mobile-filter-anchor .fa-chevron-down,
html body .desktop-filter-sidebar .fa-chevron-down {
  color: var(--primary) !important;
  opacity: 0.72;
  transition: transform 0.22s ease, opacity 0.2s ease;
}

/* Đồng bộ viền hộp ghi chú và chip giá với bảng màu cá nhân hóa trong Web Admin */
html body #cart-modal .bg-amber-50\/70 {
  background-color: color-mix(in srgb, var(--light) 75%, #ffffff) !important;
  border-color: var(--border) !important;
}
html body #cart-modal .text-amber-900,
html body #cart-modal .text-amber-700,
html body #cart-modal .text-amber-800\/70 {
  color: var(--primary) !important;
}
html body #customer-note {
  border-color: var(--border) !important;
}

/* 2. Căn lề chuẩn xác giữa SuperTab, tiêu đề danh mục, thanh lọc và lưới sản phẩm */
html body .catalog-heading-row {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
html body #products-grid .zoey-card-sap-col {
  text-align: center !important;
}
html body #products-grid .zoey-card-sap-col .zoey-card-price-line {
  justify-content: center !important;
  transform-origin: center center !important;
}

/* 3. Căn lề các dòng trong mục Liên hệ ở Footer đều nhau với icon bo góc */
html body #zoey-footer .zoey-footer-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
}
html body #zoey-footer .zoey-footer-row > i {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
  background: var(--light) !important;
  color: var(--primary) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  margin-top: 0 !important;
  flex: 0 0 28px !important;
}

/* 4. Tinh chỉnh các ô Select trên toàn trang (bo tròn hiện đại + trạng thái đang mở) */
html body select[data-zoey-dd-lock="1"]:not(.zoey-card-color-select):disabled {
  opacity: 1 !important;
  cursor: pointer !important;
}
html body #sort-products,
html body #color-filter,
html body #color-filter-desktop,
html body #tone-filter,
html body #tone-filter-desktop,
html body #zoey-khu-vuc,
html body #zoey-filter-sheet select {
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}
html body select[data-zoey-dd-open="1"] {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent) !important;
}
html body #products-grid .zoey-card-color-select-wrap.is-dd-open,
html body #products-grid .zoey-card-color-select-wrap:has(> select[data-zoey-dd-open="1"]),
html body #products-grid .zoey-card-color-select[data-zoey-dd-open="1"] {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent) !important;
}

/* 5. Khung xổ ra tùy chỉnh hiện đại (Zoey Custom Rounded Dropdown Popover) */
#zoey-custom-dd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  background: transparent;
  display: none;
}
#zoey-custom-dd-backdrop.is-open {
  display: block;
}
@media (max-width: 767px) {
  #zoey-custom-dd-backdrop.is-open {
    background: rgba(15, 23, 42, 0.14);
  }
}

#zoey-custom-dd-menu {
  position: fixed;
  z-index: 2147483601;
  min-width: 168px;
  max-width: min(320px, calc(100vw - 24px));
  max-height: min(310px, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  border-radius: 18px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  box-shadow:
    0 18px 42px -8px color-mix(in srgb, var(--primary) 24%, rgba(15, 23, 42, 0.20)),
    0 4px 14px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: scale(0.94) translateY(-6px);
  transform-origin: top center;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.22, 1.25, 0.36, 1);
  scrollbar-width: thin;
}
#zoey-custom-dd-menu.flip-up {
  transform: scale(0.94) translateY(6px);
  transform-origin: bottom center;
}
#zoey-custom-dd-menu.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
#zoey-custom-dd-menu::-webkit-scrollbar {
  width: 5px;
}
#zoey-custom-dd-menu::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.zoey-dd-item {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  padding: 10px 12px;
  margin: 2px 0;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.zoey-dd-item:first-child { margin-top: 0; }
.zoey-dd-item:last-child { margin-bottom: 0; }
.zoey-dd-item:hover {
  background: var(--light);
  color: var(--primary);
}
.zoey-dd-item:active {
  transform: scale(0.98);
}
.zoey-dd-item.is-selected {
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--primary) 32%, transparent);
}
.zoey-dd-item .zoey-dd-check {
  font-size: 11px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.18s cubic-bezier(0.22, 1.3, 0.36, 1);
  color: var(--accent);
}
.zoey-dd-item.is-selected .zoey-dd-check {
  opacity: 1;
  transform: scale(1);
  color: #ffffff;
}
