:root {
  --zf-spring: cubic-bezier(0.22, 1.22, 0.36, 1);
  --zf-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 1. Bỏ toàn bộ các con số đếm sản phẩm ở Danh mục, SuperTab và dòng "144 sản phẩm" */
html body [data-category-count],
html body #zoey-supertab .zf-tab-count,
html body #catalog-status {
  display: none !important;
}

/* 2. Thu gọn cột Danh mục bên trái, căn giữa toàn bộ chữ & hiển thị tối đa 5 thẻ ngang trên PC */
html body .desktop-filter-sidebar > div > div:first-child,
html body .desktop-filter-sidebar > div > label {
  text-align: center !important;
  display: block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  color: #94a3b8 !important;
  margin-bottom: 8px !important;
}
html body .desktop-filter-sidebar .category-btn {
  justify-content: center !important;
  text-align: center !important;
  padding: 11px 12px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
html body .desktop-filter-sidebar .category-btn > span:first-child {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: 100% !important;
  text-align: center !important;
}
html body .desktop-filter-sidebar .category-btn > span:first-child i {
  margin-right: 0 !important;
}

@media (min-width: 1200px) {
  html body .catalog-layout {
    grid-template-columns: 204px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
  }
  html body .desktop-filter-sidebar {
    width: 204px !important;
    padding: 16px 13px !important;
    border-radius: 26px !important;
  }
  html body #products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 15px !important;
  }
}

/* 3. Tăng kích thước chữ 2 mục lớn "Hoa lẻ, sỉ & phụ kiện" và "Bó hoa" (#zoey-supertab) to rõ, nổi bật */
html body #zoey-supertab {
  position: relative !important;
  isolation: isolate !important;
  padding: 6px !important;
  border-radius: 22px !important;
}
html body #zoey-supertab .zoey-stab {
  position: relative !important;
  z-index: 2 !important;
  min-height: 48px !important;
  padding: 11px 16px !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s var(--zf-spring), color 0.18s ease !important;
}
html body #zoey-supertab:not([data-zf-glider="1"]) .zoey-stab.on {
  background: var(--primary) !important;
}
html body #zoey-supertab .zoey-stab b {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
  color: var(--primary) !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: color 0.18s ease !important;
}
html body #zoey-supertab .zoey-stab b * {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-style: normal !important;
}
html body #zoey-supertab .zoey-stab.on b,
html body #zoey-supertab .zoey-stab.on b .zf-tab-label {
  color: #ffffff !important;
}
@media (max-width: 767px) {
  html body #zoey-supertab .zoey-stab {
    min-height: 44px !important;
    padding: 9px 10px !important;
  }
  html body #zoey-supertab .zoey-stab b {
    font-size: 14px !important;
  }
}

/* 4. Tăng kích thước chữ trong thẻ sản phẩm to, rõ nét, dễ đọc như hình mẫu */
html body #products-grid .zoey-card-tab {
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 6px 16px 5px !important;
  letter-spacing: 0.06em !important;
}
html body #products-grid .zoey-card-name {
  font-size: 16.5px !important;
  font-weight: 800 !important;
  line-height: 1.24 !important;
}
html body #products-grid .zoey-card-price-label {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  margin-bottom: 4px !important;
}
html body #products-grid .zoey-card-price-main {
  font-size: 20px !important;
  font-weight: 800 !important;
}
html body #products-grid .zoey-card-price-unit {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
}
html body #products-grid .zoey-card-sap-col .zoey-card-price-main {
  font-size: 16.5px !important;
  font-weight: 800 !important;
}
html body #products-grid .zoey-card-sap-col .zoey-card-price-unit {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #64748b !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-face,
html body #products-grid .zoey-card-add-btn {
  height: 39px !important;
  min-height: 39px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

@media (max-width: 767px) {
  html body #products-grid .zoey-card-tab {
    font-size: 8.8px !important;
    padding: 5px 12px 4px !important;
  }
  html body #products-grid .zoey-card-name {
    font-size: 14px !important;
  }
  html body #products-grid .zoey-card-price-label {
    font-size: 9px !important;
  }
  html body #products-grid .zoey-card-price-main {
    font-size: 17px !important;
  }
  html body #products-grid .zoey-card-price-unit {
    font-size: 9.8px !important;
  }
  html body #products-grid .zoey-card-sap-col .zoey-card-price-main {
    font-size: 14px !important;
  }
  html body #products-grid .zoey-card-sap-col .zoey-card-price-unit {
    font-size: 8.8px !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-face,
  html body #products-grid .zoey-card-add-btn {
    height: 35px !important;
    min-height: 35px !important;
    font-size: 10.5px !important;
  }
}

/* 5. Đổi màu chữ trong khung xổ ra (#zoey-custom-dd-menu) từ màu đen sang tone màu xám đồng bộ toàn web */
html body #zoey-custom-dd-menu {
  max-width: min(380px, calc(100vw - 20px)) !important;
}
html body .zoey-dd-item {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
html body .zoey-dd-item:hover {
  background: var(--light) !important;
  color: var(--primary) !important;
}
html body .zoey-dd-item.is-selected {
  background: var(--primary) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}
html body .zoey-dd-item .zoey-dd-label {
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
  text-overflow: unset !important;
  line-height: 1.35 !important;
  flex: 1 1 auto !important;
  color: inherit !important;
}
html body select option {
  color: #64748b;
}

/* 6. Căn giữa hoàn hảo huy hiệu "Đang mở cửa" và nút "Nhắn Zalo" ở Footer (sửa lỗi lệch do rule .zoey-footer-row i cũ) */
html body #zoey-footer .zoey-footer-row > span {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  line-height: 1.4 !important;
}
html body #zoey-footer .zoey-lh-sdt {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  flex-wrap: wrap !important;
}
html body #zoey-footer .zoey-lh-zalo,
html body #zoey-footer .zf-open-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 26px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
html body #zoey-footer .zoey-lh-zalo i,
html body #zoey-footer .zf-open-badge i {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  position: static !important;
}
html body #zoey-footer .zoey-lh-zalo i {
  color: #ffffff !important;
  font-size: 11.5px !important;
}
html body #zoey-footer .zf-open-badge.open {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0 !important;
}
html body #zoey-footer .zf-open-badge.open i {
  color: #10b981 !important;
  font-size: 7px !important;
}
html body #zoey-footer .zf-open-badge.closed {
  background: #fffbeb !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}
html body #zoey-footer .zf-open-badge.closed i {
  color: #f59e0b !important;
  font-size: 9.5px !important;
}

/* Số bông mỗi hộp hiển thị gọn trên thẻ sản phẩm điện thoại. */
.card-box-unit-short {
  display: none;
  text-decoration: none;
}
html body header .store-order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
html body #products-grid .zoey-card-sap-col .zoey-card-price-line {
  flex-wrap: wrap !important;
  row-gap: 2px !important;
}
html body #products-grid .zoey-card-sap-col .zoey-card-price-unit {
  flex: 0 0 auto !important;
}
@media (max-width: 767px) {
  .card-box-unit-full { display: none; }
  .card-box-unit-short { display: inline; }
  html body header .store-order-status { display: none; }
  html body #products-grid .zoey-card-sap-prices {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.2fr) !important;
    gap: 0 4px !important;
  }
}

/* 7. Khung lọc Mobile 60fps trên iOS: Tách nền trắng sang 2 lớp GPU riêng biệt để KHÔNG ĐỔI HEIGHT gây lag */
html.zoey-filter-motion #mobile-filter-anchor {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
  will-change: auto !important;
}
html.zoey-filter-motion #mobile-filter-anchor .mobile-filter-expanded {
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  padding: 8px !important;
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  transform-origin: top center !important;
  will-change: transform, opacity !important;
}
html.zoey-filter-motion #mobile-filter-anchor .mobile-filter-compact {
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  padding: 6px !important;
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10) !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  transform-origin: top center !important;
  will-change: transform, opacity !important;
}

/* 8. Hạ thấp chiều cao Popup Chi tiết sản phẩm & Giỏ hàng trên Mobile để nằm gọn dưới thanh địa chỉ trình duyệt */
@media (max-width: 767px) {
  html body #product-detail-modal.product-detail-modal {
    padding-top: max(74px, calc(env(safe-area-inset-top, 0px) + 62px)) !important;
    align-items: flex-end !important;
  }
  html body #product-detail-modal .product-detail-panel {
    width: 100% !important;
    height: auto !important;
    max-height: 78vh !important;
    max-height: min(78vh, calc(100dvh - 78px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 26px 26px 0 0 !important;
  }
  html body #product-detail-modal .detail-scroll-area {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    max-height: 78vh !important;
    max-height: min(78vh, calc(100dvh - 78px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    padding-bottom: max(18px, env(safe-area-inset-bottom, 14px)) !important;
  }
  html body #product-detail-modal .product-detail-image-wrap {
    height: min(33vh, 270px) !important;
    min-height: 0 !important;
  }
  html body #product-detail-modal > .product-detail-panel > button[data-z-click="closeProductDetail"] {
    top: 10px !important;
    right: 10px !important;
    width: 36px !important;
    height: 36px !important;
    z-index: 40 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18) !important;
  }

  html body #cart-modal.cart-shell {
    padding-top: max(64px, calc(env(safe-area-inset-top, 0px) + 52px)) !important;
    align-items: flex-end !important;
  }
  html body #cart-modal .cart-panel {
    width: 100% !important;
    height: auto !important;
    max-height: 80vh !important;
    max-height: min(80vh, calc(100dvh - 68px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 26px 26px 0 0 !important;
  }
}
html body #cart-modal .cart-panel > div:first-child {
  flex: 0 0 auto !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
  background: #ffffff !important;
}
html body #cart-modal .cart-panel > div.overflow-y-auto {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
}
html body #cart-modal .cart-panel > div:last-child {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 30 !important;
  background: #ffffff !important;
}
html body #cart-modal button[data-z-click="closeCart"] {
  width: auto !important;
  min-width: 84px !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: var(--light) !important;
  color: var(--primary) !important;
  border: 1px solid var(--border) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  flex-shrink: 0 !important;
}

/* 9. Khóa cuộn nền tuyệt đối trên iOS */
html.zf-modal-locked,
html.zf-modal-locked body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
#product-detail-modal,
#cart-modal,
#order-lookup-modal,
#promo-popup-modal,
#product-image-zoom,
#zoey-filter-sheet-overlay,
#zoey-custom-dd-backdrop {
  touch-action: none !important;
  overscroll-behavior: none !important;
}
#product-detail-modal .detail-scroll-area,
#cart-modal .overflow-y-auto,
#zoey-filter-sheet,
#zoey-custom-dd-menu {
  touch-action: pan-y !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

/* 10. Viên trượt động (.zf-sliding-pill) & Animation mượt 60fps */
.zf-sliding-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 16px;
  background: var(--primary);
  box-shadow: 0 4px 12px -3px color-mix(in srgb, var(--primary) 38%, transparent);
  will-change: transform, width, height;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  transition:
    -webkit-transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.15s ease !important;
}

html body .mobile-category-strip,
html body .desktop-filter-sidebar .space-y-2,
html body .zf-order-type-track {
  position: relative !important;
  isolation: isolate !important;
}
html body .zf-order-type-track {
  background: var(--light) !important;
  padding: 5px !important;
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
}
html body [data-zf-glider="1"] > .order-type-btn {
  position: relative !important;
  z-index: 2 !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transition: color 0.18s ease, transform 0.15s ease !important;
}
html body [data-zf-glider="1"] > .order-type-btn[data-zf-active="1"] {
  background-color: transparent !important;
  color: #ffffff !important;
}
html body [data-zf-glider="1"] > .order-type-btn[data-zf-active="0"] {
  background-color: transparent !important;
  color: var(--primary) !important;
}
html body .category-btn {
  position: relative !important;
  z-index: 2 !important;
  transition: color 0.18s ease, transform 0.15s ease !important;
  transition-duration: 0.18s !important;
}
html body [data-zf-glider="1"] > .category-btn {
  background-color: var(--light) !important;
  color: var(--primary) !important;
}
html body [data-zf-glider="1"] > .category-btn[data-zf-active="1"],
html body [data-zf-glider="1"] > .category-btn.bg-\[var\(--primary\)\] {
  background-color: transparent !important;
  color: #ffffff !important;
}

@keyframes zfCardReveal {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 12px, 0);
    transform: translate3d(0, 12px, 0);
  }
  100% {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}
html body #products-grid .zoey-card-v28.zf-card-enter {
  -webkit-animation: zfCardReveal 0.26s var(--zf-smooth) both !important;
  animation: zfCardReveal 0.26s var(--zf-smooth) both !important;
  -webkit-animation-duration: 0.26s !important;
  animation-duration: 0.26s !important;
  -webkit-animation-delay: calc(var(--zf-i, 0) * 14ms) !important;
  animation-delay: calc(var(--zf-i, 0) * 14ms) !important;
}

/* 11. Chạm nhập số lượng + Chip chọn nhanh, Tiến trình phụ thu, Chip ghi chú & Bộ chọn địa chỉ */
#detail-product-qty {
  cursor: pointer;
  min-width: 44px !important;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px dashed transparent;
}
.zf-qty-quick-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
}
.zf-qty-quick-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
}
.zf-qty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.zf-qty-chip {
  border: 1px solid var(--border);
  background: var(--light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.zf-qty-chip:active {
  transform: scale(0.92);
}

#zf-upsell-progress {
  border-radius: 16px;
  padding: 11px 13px;
  background: color-mix(in srgb, var(--light) 78%, #ffffff);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
#zf-upsell-progress.is-done {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.zf-up-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}
#zf-upsell-progress.is-done .zf-up-row {
  color: #065f46;
}
.zf-up-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.zf-up-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
  margin-top: 8px;
}
.zf-up-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 0.35s var(--zf-smooth) !important;
}
#zf-upsell-progress.is-done .zf-up-fill {
  background: #10b981;
}

.zf-note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.zf-note-chip {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--primary);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.zf-note-chip.is-added {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

#zf-delivery-suite {
  border-radius: 16px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  padding: 12px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#zf-delivery-suite.hidden {
  display: none !important;
}
.zf-addr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.zf-addr-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
}
.zf-addr-field {
  width: 100% !important;
}
.zf-addr-field label {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 4px;
}
.zf-addr-select,
.zf-addr-input {
  width: 100% !important;
  min-height: 46px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background-color: var(--bg) !important;
  color: var(--primary) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  outline: none !important;
  white-space: normal !important;
  text-overflow: unset !important;
}
.zf-addr-select {
  padding-right: 36px !important;
}
.zf-addr-preview {
  padding: 9px 11px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--light) 70%, #ffffff);
  border: 1px dashed var(--border);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

.zf-map-box {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #ffffff;
}
.zf-map-smart-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}
.zf-smart-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--primary);
  border-radius: 11px;
  padding: 9px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: transform 0.14s ease, background-color 0.16s ease, color 0.16s ease;
}
.zf-smart-btn:active {
  transform: scale(0.95);
}
.zf-smart-btn.primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.zf-map-stage {
  position: relative;
  width: 100%;
  height: 225px;
  background: #e2e8f0;
}
#zf-single-map-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.zf-pin-center-reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  z-index: 500;
  pointer-events: none;
  font-size: 30px;
  color: #e11d48;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
  transition: transform 0.15s ease;
}
.zf-map-stage.dragging .zf-pin-center-reticle {
  transform: translate(-50%, -118%) scale(1.08);
}
.zf-map-open-float {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 501;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.zf-map-status {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #ffffff;
  border-top: 1px solid var(--border);
  line-height: 1.35;
}
.zf-map-status.pinned {
  background: #ecfdf5;
  color: #065f46;
}

/* 12. BỐ CỤC LẠI POPUP CHI TIẾT SẢN PHẨM: TO RÕ, LIỀN MẠCH, NÚT MUA LẺ/HỘP CÓ SLIDING PILL CHUẨN */
html body #detail-product-name {
  font-size: 21px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}
html body #detail-product-description {
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}
html body #detail-product-tags > span {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 6px 10px !important;
}
html body #detail-product-tags > span i { font-size: 10.5px !important; }
html body .zoey-detail-color-label { font-size: 10px !important; }
html body .zoey-detail-color-row select { font-size: 11.5px !important; font-weight: 900 !important; height: 34px !important; line-height: 34px !important; }

/* Gom cụm Giá bán, Kho, Số lượng, Chọn nhanh lại thành một khối liền mạch duy nhất (loại bỏ khoảng trắng thừa) */
html body .detail-price-summary {
  display: flex !important;
  flex-direction: column !important;
  margin-top: 20px !important;
  padding: 16px !important;
  border-radius: 20px !important;
  background: var(--light) !important;
  border: 1px solid var(--border) !important;
  align-items: stretch !important;
  gap: 0 !important;
}
html body .detail-price-summary > div.flex.items-end {
  align-items: center !important;
}
html body .detail-summary-label {
  font-size: 10px !important;
  font-weight: 900 !important;
  color: #64748b !important;
  letter-spacing: 0.05em !important;
}
html body #detail-product-price {
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}
html body #detail-product-unit {
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #64748b !important;
}
html body #detail-product-available {
  font-size: 11px !important;
  font-weight: 900 !important;
}
html body #detail-product-unit-note {
  font-size: 10px !important;
  line-height: 1.45 !important;
  font-style: italic !important;
  margin-top: -6px !important;
}
html body .detail-quantity-title {
  font-size: 11.5px !important;
  font-weight: 800 !important;
}
html body #detail-add-cart-btn {
  font-size: 13.5px !important;
  font-weight: 900 !important;
  height: 52px !important;
  border-radius: 16px !important;
}

/* Nút Chọn Mua lẻ / Mua nguyên hộp bọc trượt mượt mà (cùng kiểu SuperTab) */
html body #detail-sap-mode-wrap {
  margin-top: 16px !important;
  padding: 8px !important;
  border-radius: 20px !important;
  position: relative !important;
  isolation: isolate !important;
}
html body #detail-sap-mode-wrap > div:first-child {
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 6px !important;
  text-align: center !important;
}
html body #detail-sap-mode-wrap .grid {
  position: relative !important;
  isolation: isolate !important;
  display: flex !important;
  gap: 6px !important;
  background: #ffffff !important;
  padding: 6px !important;
  border-radius: 16px !important;
  border: 1px solid var(--border) !important;
}
html body .sap-mode-button {
  flex: 1 !important;
  min-width: 0 !important;
  border: none !important;
  background: transparent !important;
  padding: 10px 6px !important;
  border-radius: 12px !important;
  position: relative !important;
  z-index: 2 !important;
  cursor: pointer !important;
  transition: color 0.18s ease, transform 0.15s ease !important;
  text-align: center !important;
}
html body .sap-mode-button span {
  font-size: 12px !important;
  font-weight: 900 !important;
  display: block !important;
  white-space: nowrap !important;
}
html body .sap-mode-button:active { transform: scale(0.96) !important; }
html body .sap-mode-button.active { color: #ffffff !important; background: transparent !important; }
html body .sap-mode-button:not(.active) { color: var(--primary) !important; background: transparent !important; }

/* Trượt trên popup detail chi tiết sản phẩm (áp dụng cả mobile và desktop) */
@media (max-width: 767px) {
  html body #detail-product-name { font-size: 18.5px !important; }
  html body #detail-product-description { font-size: 11.5px !important; }
  html body #detail-product-price { font-size: 22px !important; }
  html body #detail-product-unit { font-size: 11.5px !important; }
  html body #detail-add-cart-btn { font-size: 12px !important; height: 48px !important; }
  html body .sap-mode-button span { font-size: 11px !important; }
}
