/* ဖုန်း settings ကြောင့် စာလုံးမဖောင်းကြွစေရန် */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
    :root {
      --primary: #9b51e0;
      --primary-dark: #6b28b2;
      --gold: #d4af37;
      --gold-light: #f7e7a9;
      --bg-dark: #0d0a1a;
      --card-bg: #18132d;
      --card-border: rgba(212, 175, 55, 0.25);
      --text-main: #ffffff;
      --text-muted: #b5adc9;
      --accent: #ff4081;
      --warning: #ff9800;
      --danger: #ff3344;
      --success: #00ff88;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Poppins', 'Pyidaungsu', sans-serif; -webkit-tap-highlight-color: transparent; }
    body { background-color: var(--bg-dark); color: var(--text-main); min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 90px !important; }
    #promoBannerBar {
      background: linear-gradient(90deg, #ff4081, #9b51e0);
      color: #fff;
      font-size: 0.75rem;
      font-weight: 600;
      text-align: center;
      padding: 5px 10px;
      display: none;
      position: sticky;
      top: 0;
      z-index: 102;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }

    header {
      background: rgba(24, 19, 45, 0.98);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--card-border);
      position: sticky;
      top: 0;
      z-index: 101;
      padding: 8px 12px;
      box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    }

    .header-main-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .brand-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
    .brand-logo { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold); object-fit: cover; }
    .brand-title { font-size: 1rem; font-weight: 700; background: linear-gradient(135deg, #fff, var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.2; }
    .brand-subtitle { font-size: 0.62rem; color: var(--gold); display: block; }

    .header-socials-row {
      display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 6px; margin-top: 6px; border-top: 1px solid rgba(255,255,255,0.06);
    }
    .social-icon-btn {
      width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); flex-shrink: 0;
    }
    .icon-phone { background: linear-gradient(135deg, #25D366, #128C7E); }
    .icon-fb { background: linear-gradient(135deg, #1877F2, #0d5ec4); }
    .icon-yt { background: linear-gradient(135deg, #FF0000, #cc0000); }
    .icon-tg { background: linear-gradient(135deg, #229ED9, #1c7ba8); }
    .icon-tt { background: linear-gradient(135deg, #000000, #25F4EE, #FE2C55); }

    .cart-btn {
      position: relative; background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35); flex-shrink: 0;
    }
    .cart-badge {
      position: absolute; top: -3px; right: -3px; background: #ff4757; color: white; font-size: 0.65rem; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #18132d;
    }

    .hero-compact { padding: 6px 12px; background: linear-gradient(180deg, rgba(155, 81, 224, 0.12), transparent); text-align: center; border-bottom: 1px solid rgba(255,255,255,0.04); }
    .hero-compact p { font-size: 0.72rem; color: var(--gold-light); font-weight: 500; }

        .controls-wrapper { padding: 8px 10px 6px; display: flex; gap: 5px; align-items: center; }
    .search-input-box { flex: 2; min-width: 0; position: relative; }
    .search-input-box input {
      width: 100%; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px; padding: 7px 8px 7px 30px; color: #fff; font-size: 0.78rem; outline: none; text-overflow: ellipsis;
    }
    .search-input-box i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 0.75rem; }
    .sort-select-box {
      width: 82px; flex-shrink: 0; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px;
      padding: 6px 4px; color: var(--gold-light); font-size: 0.72rem; outline: none; cursor: pointer; text-align: center;
    }
    .btn-track-compact {
      flex-shrink: 0; background: rgba(37, 99, 235, 0.15); border: 1px solid #2563eb; color: #60a5fa; padding: 6px 8px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
    }
    .category-scroll-bar { display: flex; gap: 6px; padding: 4px 12px 8px; overflow-x: auto; scrollbar-width: none; }
    .category-scroll-bar::-webkit-scrollbar { display: none; }
    .cat-pill-btn {
      background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 5px 12px; border-radius: 14px; font-size: 0.76rem; color: var(--text-muted); white-space: nowrap; cursor: pointer; transition: 0.2s;
    }
    .cat-pill-btn.active { background: var(--primary); color: white; border-color: var(--primary); font-weight: 600; }

    .products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 6px 12px 140px !important; }
    @media (min-width: 768px) { .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; padding: 10px 16px 140px !important; } }
    
    .product-card {
      background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; position: relative;
    }
    .product-card.out-of-stock { opacity: 0.45; filter: grayscale(80%); cursor: not-allowed; border-color: rgba(239, 68, 68, 0.5); }
    .out-of-stock-banner {
      position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); background: rgba(220, 38, 38, 0.95); color: #fff; font-weight: 700; font-size: 0.8rem; padding: 5px 10px; border-radius: 6px; width: 85%; z-index: 5; text-align: center; border: 1px solid #fff;
    }
    .product-card .img-wrap { width: 100%; height: 155px; background: #110d22; position: relative; overflow: hidden; }
    .product-card img, .product-card video { width: 100%; height: 100%; object-fit: cover; }
    .badge-stock { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 8px; font-size: 0.65rem; font-weight: 600; z-index: 2; background: rgba(0,0,0,0.75); }
    .badge-stock.in-stock { color: var(--success); border: 1px solid var(--success); }
    .badge-stock.low-stock { color: var(--warning); border: 1px solid var(--warning); background: rgba(255, 152, 0, 0.25); }
    .badge-sku { position: absolute; bottom: 5px; right: 5px; background: rgba(0,0,0,0.75); color: #38bdf8; font-size: 0.6rem; padding: 1px 5px; border-radius: 4px; font-family: monospace; }

    .product-card .card-body { padding: 8px; display: flex; flex-direction: column; flex: 1; }
    .product-title { font-size: 0.82rem; font-weight: 600; color: #fff; margin-bottom: 3px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .specs-badge-box { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 5px; }
    .spec-mini-tag { background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.25); color: var(--gold-light); font-size: 0.62rem; padding: 1px 4px; border-radius: 3px; }
    .product-price { font-size: 0.95rem; font-weight: 700; color: var(--gold-light); margin-top: auto; margin-bottom: 6px; }
    .btn-add-cart {
      width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: none; color: white; padding: 7px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px;
    }

    .mobile-bottom-bar {
      position: fixed; bottom: 0; left: 0; right: 0; height: 50px; background: rgba(18, 14, 36, 0.98); backdrop-filter: blur(12px); border-top: 1px solid var(--card-border); z-index: 998; display: flex; justify-content: space-between; align-items: center; padding: 0 4px; gap: 3px;
    }
    .bottom-bar-btn {
      flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 35px; border-radius: 17px; font-size: 0.68rem; font-weight: 600; border: none; cursor: pointer; padding: 0 3px; white-space: nowrap; overflow: hidden;
    }
    .bottom-bar-btn i { font-size: 0.74rem; flex-shrink: 0; }
    .bottom-btn-install { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #12091f; font-weight: 700; flex: 1.05; }
    .bottom-btn-cart { flex: 1.1; background: rgba(255,255,255,0.08); border: 1px solid var(--gold); color: #fff; }

    .floating-messenger {
      position: fixed; left: 14px; bottom: 65px; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #00B2FF, #006AFF); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: 0 3px 14px rgba(0, 106, 255, 0.5); z-index: 997; text-decoration: none;
    }
    .panic-quick-exit {
      position: fixed; bottom: 65px; right: 14px; background: #ff4757; color: #fff; border: 1.5px solid #fff; border-radius: 50px; padding: 8px 14px; font-size: 0.75rem; font-weight: 700; box-shadow: 0 4px 15px rgba(255, 71, 87, 0.45); cursor: pointer; z-index: 9996; display: flex; align-items: center; gap: 6px; text-decoration: none;
    }
    .panic-quick-exit:hover { background: #ee3545; }

    .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 14px; }
    .modal-overlay.active { display: flex !important; }
    .modal-content { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 18px; position: relative; }
    .modal-close { position: absolute !important; top: 12px !important; right: 12px !important; background: #ff4757 !important; color: #ffffff !important; width: 30px !important; height: 30px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 16px !important; font-weight: bold !important; border: 2px solid #ffffff !important; cursor: pointer !important; z-index: 9999 !important; }

    .detail-media { width: 100%; border-radius: 10px; overflow: hidden; margin-bottom: 8px; background: #000; }
    .detail-media img, .detail-media video { width: 100%; max-height: 240px; object-fit: contain; display: block; }
    
    .gallery-thumbs-row { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; padding-bottom: 4px; }
    .gallery-thumb-item { width: 46px; height: 46px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,0.15); object-fit: cover; cursor: pointer; flex-shrink: 0; }
    .gallery-thumb-item.active { border-color: var(--gold); }
    .gallery-video-thumb { width: 46px; height: 46px; border-radius: 6px; border: 1px solid var(--gold); background: #1a1a2e; color: var(--gold); font-size: 9.5px; font-weight: 700; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; gap: 2px; padding: 0 2px; }
    .gallery-video-thumb.active { background: rgba(212,175,55,0.22); box-shadow: 0 0 0 1.5px var(--gold); }

    .detail-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
    .spec-grid-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; padding: 6px 8px; font-size: 0.74rem; }
    .spec-grid-item span { color: var(--gold); font-weight: 600; display: block; font-size: 0.68rem; margin-bottom: 2px; }
    .spec-grid-item b { color: #fff; font-size: 0.78rem; }

    .detail-social-btn { padding: 5px 10px; border-radius: 14px; font-size: 0.72rem; text-decoration: none; color: white; display: inline-flex; align-items: center; gap: 5px; }

    .cart-item { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.08); align-items: center; }
    .cart-item img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
    .qty-controls { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
    .qty-btn { width: 22px; height: 22px; border-radius: 4px; background: rgba(255,255,255,0.12); border: none; color: white; cursor: pointer; font-weight: bold; }
    
    .payment-option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 8px 0; }
    .payment-card { border: 1px solid var(--card-border); border-radius: 8px; padding: 6px; text-align: center; cursor: pointer; background: rgba(255,255,255,0.03); }
    .payment-card.selected { border-color: var(--gold); background: rgba(212, 175, 55, 0.15); }
    .pay-card-title { font-weight: 700; font-size: 0.75rem; margin-top: 1px; color: #fff; }
    .pay-acc-info { font-size: 0.65rem; color: #38bdf8; font-weight: 600; }
    .pay-acc-name { font-size: 0.6rem; color: #cbd5e1; }

    .admin-modal-content { max-width: 950px; }
    .admin-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--card-border); padding-bottom: 8px; margin-bottom: 14px; overflow-x: auto; }
    .admin-nav-btn { background: transparent; border: none; color: var(--text-muted); padding: 6px 12px; border-radius: 6px; font-weight: 600; cursor: pointer; white-space: nowrap; font-size: 0.8rem; }
    .admin-nav-btn.active { background: var(--primary); color: white; }
    .admin-tab { display: none; }
    .admin-tab.active { display: block; }
    .form-group { margin-bottom: 8px; }
    .form-group label { display: block; font-size: 0.74rem; color: var(--text-muted); margin-bottom: 2px; }
    .form-group input, .form-group textarea, .form-group select { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 7px 10px; color: white; font-size: 0.8rem; outline: none; }
    .btn-gold { background: linear-gradient(135deg, var(--gold), #a6841c); color: #12091f; border: none; font-weight: 700; padding: 8px 16px; border-radius: 8px; cursor: pointer; width: 100%; font-size: 0.82rem; }
    .btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); font-weight: 600; padding: 5px 9px; border-radius: 6px; cursor: pointer; font-size: 0.74rem; }
    .action-badge { padding: 4px 8px; border-radius: 5px; font-size: 0.72rem; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; border: none; }

    footer { margin-top: auto; background: #080612; border-top: 1px solid var(--card-border); padding: 18px 14px; text-align: center; font-size: 0.75rem; color: var(--text-muted); }

    .discreet-packaging-box {
      background: rgba(24, 19, 45, 0.95); border: 1.5px dashed var(--gold); border-radius: 8px; padding: 8px 10px; margin: 8px 0; font-size: 0.72rem; color: #f7e7a9; line-height: 1.4;
    }
    .discreet-badge-tag {
      display: inline-block; background: linear-gradient(135deg, var(--gold), #b38914); color: #12091f; font-size: 0.62rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-bottom: 3px;
    }

    .cross-sell-box { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08); }
    .cross-sell-title { font-size: 0.78rem; font-weight: 600; color: var(--gold); margin-bottom: 8px; }
    .cross-sell-grid { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .cross-sell-grid::-webkit-scrollbar { display: none; }
    .cross-sell-card { min-width: 95px; max-width: 95px; background: rgba(255,255,255,0.04); border: 1px solid var(--card-border); border-radius: 8px; padding: 6px; text-align: center; cursor: pointer; }
    .cross-sell-card img { width: 100%; height: 60px; object-fit: cover; border-radius: 4px; }
    .cross-sell-name { font-size: 0.68rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
    .cross-sell-price { font-size: 0.72rem; color: var(--gold-light); font-weight: bold; }

    .low-stock-urgency { color: #ff3344; font-weight: bold; font-size: 0.72rem; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
    .admin-filter-search { width: 100%; padding: 7px 12px; background: #0f172a; border: 1px solid #334155; border-radius: 6px; color: #fff; font-size: 0.78rem; margin-bottom: 8px; outline: none; }
    .admin-filter-search:focus { border-color: var(--gold); }
    /* Multi-Color Quantity Picker */
    .color-variant-row {
      display: flex; align-items: center; justify-content: space-between;
      background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px; padding: 6px 10px; margin-bottom: 6px;
    }
    .color-variant-name { font-size: 0.8rem; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 6px; }
    .color-qty-controls { display: flex; align-items: center; gap: 8px; }
    .color-qty-btn {
      width: 26px; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-size: 0.85rem; font-weight: bold;
      cursor: pointer; display: flex; align-items: center; justify-content: center;
    }
    .color-qty-num { font-size: 0.82rem; font-weight: bold; color: var(--gold); min-width: 20px; text-align: center; }
  
    /* --- NEW FEATURES CSS --- */
    body.discreet-mask-active .brand-subtitle { display: none; }
    body.discreet-mask-active .product-card img,
    body.discreet-mask-active #detailMediaContainer img { filter: blur(10px) grayscale(60%); transition: filter 0.3s ease; }
    body.discreet-mask-active .product-card:hover img { filter: blur(4px); }

    .btn-card-wishlist {
      position: absolute; top: 6px; right: 6px; width: 28px; height: 28px;
      border-radius: 50%; background: rgba(0,0,0,0.65); border: 1px solid rgba(255,255,255,0.2);
      color: #cbd5e1; display: flex; align-items: center; justify-content: center;
      cursor: pointer; z-index: 10; font-size: 0.85rem; transition: all 0.2s;
    }
    .btn-card-wishlist.active { color: #f43f5e; background: rgba(244,63,94,0.25); border-color: #f43f5e; }
    .btn-card-wishlist:hover { transform: scale(1.1); }

    .header-actions-group { display: flex; align-items: center; gap: 8px; }
    .btn-header-action {
      position: relative; background: rgba(255,255,255,0.08); border: 1px solid var(--card-border);
      color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex;
      align-items: center; justify-content: center; cursor: pointer; font-size: 0.85rem;
    }
    .btn-header-action.mask-active { background: #10b981; color: #fff; border-color: #10b981; }

    .sort-select-box {
      background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px;
      padding: 6px 10px; color: var(--gold-light); font-size: 0.74rem; outline: none; cursor: pointer;
    }

    .review-item-card {
      background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
      border-radius: 6px; padding: 6px 8px; margin-bottom: 5px; font-size: 0.73rem;
    }
    .review-user-name { font-weight: 600; color: #38bdf8; display: flex; justify-content: space-between; }

  
    /* --- TOAST NOTIFICATION CSS --- */
    .clipboard-toast {
      position: fixed; top: 70px; left: 50%; transform: translateX(-50%) translateY(-20px);
      background: linear-gradient(135deg, #10b981, #059669); color: #ffffff;
      padding: 8px 16px; border-radius: 25px; font-size: 0.76rem; font-weight: 600;
      box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 999999;
      opacity: 0; pointer-events: none; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,0.3);
    }
    .clipboard-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

    .cat-pill-btn {
      position: relative; display: inline-flex; align-items: center; gap: 5px;
    }
    .cat-pill-share-icon {
      font-size: 0.65rem; opacity: 0.8; margin-left: 2px; cursor: pointer;
    }
    .cat-pill-share-icon:hover { opacity: 1; transform: scale(1.15); }

    .btn-share-product {
      background: rgba(16, 185, 129, 0.15); border: 1px solid #10b981; color: #10b981;
      padding: 3px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 600;
      cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all 0.2s;
    }
    .btn-share-product:hover { background: #10b981; color: #fff; }

  
    /* --- ADMIN INTERACTIVE CATEGORY CHIPS SELECTOR --- */
    .admin-category-chips-wrap {
      display: flex; flex-wrap: wrap; gap: 6px; padding: 8px;
      background: rgba(15, 23, 42, 0.7); border: 1px solid #334155;
      border-radius: 8px; max-height: 140px; overflow-y: auto;
    }
    .admin-cat-chip {
      background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15);
      color: #94a3b8; font-size: 0.73rem; padding: 5px 11px; border-radius: 14px;
      cursor: pointer; user-select: none; transition: all 0.2s ease;
      display: inline-flex; align-items: center; gap: 5px; font-weight: 500;
    }
    .admin-cat-chip:hover { border-color: var(--gold); color: #fff; background: rgba(255,255,255,0.09); }
    .admin-cat-chip.active {
      background: linear-gradient(135deg, var(--gold), #b38914); color: #12091f;
      border-color: var(--gold); font-weight: 700; box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
    }

  
    .admin-cat-chip .chip-del-icon {
      margin-left: 4px; font-weight: bold; font-size: 0.8rem; opacity: 0.6;
      border-radius: 50%; width: 14px; height: 14px; display: inline-flex;
      align-items: center; justify-content: center; transition: all 0.2s;
    }
    .admin-cat-chip .chip-del-icon:hover { opacity: 1; color: #ef4444; background: rgba(255,255,255,0.2); }

  
    /* --- DYNAMIC COLORS & IMAGES CSS --- */
    .dynamic-list-box {
      display: flex; flex-direction: column; gap: 6px; margin-top: 6px;
    }
    .dynamic-color-row {
      display: flex; align-items: center; gap: 6px;
      background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 6px; padding: 4px 6px;
    }
    .dynamic-color-row input {
      flex: 1; padding: 6px 10px; font-size: 0.78rem; background: #0f172a;
      border: 1px solid #334155; color: #fff; border-radius: 5px; outline: none;
    }
    .btn-row-del {
      background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #ef4444;
      width: 28px; height: 28px; border-radius: 6px; display: inline-flex;
      align-items: center; justify-content: center; cursor: pointer; font-size: 0.75rem;
      transition: all 0.2s; flex-shrink: 0;
    }
    .btn-row-del:hover { background: #ef4444; color: #fff; }

    .dynamic-image-card {
      background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 8px; padding: 8px; position: relative; display: flex; flex-direction: column; gap: 4px;
    }
    .dynamic-image-header {
      display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: var(--gold-light); font-weight: 600;
    }
    .dynamic-image-card input[type="text"] {
      width: 100%; padding: 6px 8px; font-size: 0.75rem; background: #0f172a;
      border: 1px solid #334155; color: #fff; border-radius: 5px; outline: none;
    }
    .dynamic-image-card input[type="file"] {
      font-size: 0.7rem; color: #94a3b8; margin-top: 2px;
    }
    .btn-add-dynamic {
      background: rgba(16, 185, 129, 0.15); border: 1px solid #10b981; color: #10b981;
      padding: 5px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 600;
      cursor: pointer; display: inline-flex; align-items: center; gap: 4px; transition: all 0.2s;
    }
    .btn-add-dynamic:hover { background: #10b981; color: #fff; }


    /* ==================== LUXURY ULTIMATE 17-FEATURES STYLING ==================== */
    :root {
      --luxury-gold: #d4af37;
      --luxury-gold-light: #fbeea4;
      --luxury-glow: rgba(212, 175, 55, 0.4);
      --luxury-accent: #ff2a6d;
    }

    /* Smooth High-End Glassmorphism & Animations */
    .product-card {
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease !important;
    }
    .product-card:hover {
      transform: translateY(-4px) !important;
      box-shadow: 0 12px 28px rgba(0,0,0,0.6), 0 0 16px var(--luxury-glow) !important;
      border-color: var(--luxury-gold) !important;
    }
    .btn-gold {
      transition: all 0.25s ease !important;
      box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    }
    .btn-gold:hover {
      transform: translateY(-1px) !important;
      box-shadow: 0 6px 22px rgba(212, 175, 55, 0.5) !important;
    }

    /* 1. Town & Delivery Selection Cards */
    .deli-selection-box {
      background: rgba(15, 23, 42, 0.85);
      border: 1px solid #334155;
      border-radius: 8px;
      padding: 8px;
      margin-top: 6px;
    }
    .deli-option-card {
      background: rgba(255,255,255,0.03);
      border: 1.5px solid rgba(255,255,255,0.08);
      border-radius: 8px;
      padding: 8px 10px;
      margin-bottom: 6px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.2s ease;
    }
    .deli-option-card:hover {
      border-color: var(--luxury-gold);
      background: rgba(212, 175, 55, 0.08);
    }
    .deli-option-card.active {
      border-color: var(--luxury-gold);
      background: rgba(212, 175, 55, 0.16);
      box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
    }

    /* 2. Customer News Ticker & Image Slider */
    .news-ticker-strip {
      background: linear-gradient(90deg, #18132d, #25163f, #18132d);
      border-bottom: 1px solid rgba(212, 175, 55, 0.25);
      padding: 6px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      overflow: hidden;
      font-size: 0.74rem;
      cursor: pointer;
    }
    .news-ticker-badge {
      background: linear-gradient(135deg, #f43f5e, #be123c);
      color: #fff;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 0.65rem;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 4px;
      box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
    }
    .news-ticker-content {
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #fbeea4;
      font-weight: 500;
    }

    /* 3. Flash Sale & Countdown Timer */
    .flash-sale-badge {
      position: absolute;
      top: 6px;
      right: 38px;
      background: linear-gradient(135deg, #ff1744, #d50000);
      color: #fff;
      font-weight: 800;
      font-size: 0.62rem;
      padding: 2px 7px;
      border-radius: 6px;
      box-shadow: 0 2px 8px rgba(255, 23, 68, 0.6);
      z-index: 4;
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }
    .flash-timer-bar {
      background: rgba(239, 68, 68, 0.12);
      border: 1px solid #ef4444;
      color: #fca5a5;
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 0.72rem;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 4px 0 6px;
    }

    /* 4. Customer Review with Photo */
    .review-user-photo {
      width: 50px;
      height: 50px;
      border-radius: 6px;
      object-fit: cover;
      margin-top: 4px;
      border: 1px solid rgba(255,255,255,0.25);
      cursor: pointer;
    }
    .star-select-group {
      display: flex;
      gap: 4px;
      color: #fbbf24;
      font-size: 1.25rem;
      cursor: pointer;
    }

    /* 5. Order Tracking Timeline */
    .tracking-timeline {
      display: flex;
      flex-direction: column;
      gap: 14px;
      padding: 10px 0 10px 16px;
      border-left: 2px solid #334155;
      margin: 10px 0 10px 8px;
    }
    .timeline-node {
      position: relative;
      font-size: 0.75rem;
    }
    .timeline-node::before {
      content: '';
      position: absolute;
      left: -22px;
      top: 2px;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #475569;
      border: 2px solid #0f172a;
    }
    .timeline-node.done::before {
      background: #10b981;
      box-shadow: 0 0 8px #10b981;
    }
    .timeline-node.active::before {
      background: #f59e0b;
      box-shadow: 0 0 8px #f59e0b;
    }

    /* 6. Frequently Bought Together */
    .fbt-container {
      background: rgba(255,255,255,0.03);
      border: 1px dashed var(--luxury-gold);
      border-radius: 8px;
      padding: 10px;
      margin: 10px 0;
    }

    /* 7. Adult / Cosmetics Luxury Theme */
    body.theme-cosmetics-mode {
      --primary: #ec4899;
      --primary-dark: #be185d;
      --gold: #f472b6;
      --gold-light: #fce7f3;
      --bg-dark: #0f0a14;
      --card-bg: #1c1426;
      --card-border: rgba(244, 114, 182, 0.35);
    }

    /* 11. Sales Analytics Progress Bars */
    .visual-stat-bar {
      height: 8px;
      border-radius: 4px;
      background: rgba(255,255,255,0.08);
      overflow: hidden;
      margin: 3px 0 6px;
    }
    .visual-stat-fill {
      height: 100%;
      background: linear-gradient(90deg, #10b981, #00ff88);
      border-radius: 4px;
    }

    /* 12. Luxury Admin PIN Pad */
    .pin-circle-display {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin: 14px 0 18px;
    }
    .pin-circle-item {
      width: 15px;
      height: 15px;
      border-radius: 50%;
      border: 2px solid var(--luxury-gold);
      transition: all 0.2s ease;
    }
    .pin-circle-item.active {
      background: var(--luxury-gold);
      box-shadow: 0 0 10px var(--luxury-gold);
    }
    .pin-pad-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      max-width: 250px;
      margin: 0 auto;
    }
    .pin-pad-btn {
      height: 48px;
      border-radius: 12px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.12);
      color: #fff;
      font-size: 1.25rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 0.15s;
    }
    .pin-pad-btn:active {
      transform: scale(0.92);
      background: var(--luxury-gold);
      color: #12091f;
    }

    /* 13. Spin Wheel */
    .wheel-outer-wrap {
      position: relative;
      width: 280px;
      height: 280px;
      margin: 0 auto 12px;
    }
    #spinWheelCanvas {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      box-shadow: 0 0 25px rgba(212, 175, 55, 0.45);
      transition: transform 4.5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    }
    .wheel-indicator {
      position: absolute;
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 14px solid transparent;
      border-right: 14px solid transparent;
      border-top: 26px solid #ff4757;
      z-index: 10;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
    }

    /* 14. Mystery Box */
    .mystery-hero-box {
      background: linear-gradient(135deg, rgba(155, 81, 224, 0.25), rgba(212, 175, 55, 0.2));
      border: 1.5px solid var(--luxury-gold);
      border-radius: 12px;
      padding: 14px;
      margin: 10px 0;
      text-align: center;
      box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }

    /* 15 & 16. Chat System */
    .chat-bubble-msg {
      padding: 8px 12px;
      border-radius: 12px;
      max-width: 82%;
      font-size: 0.78rem;
      margin-bottom: 8px;
      line-height: 1.35;
    }
    .chat-bubble-msg.bot {
      background: rgba(255,255,255,0.08);
      color: #fff;
      border-bottom-left-radius: 2px;
      align-self: flex-start;
    }
    .chat-bubble-msg.user {
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: #fff;
      border-bottom-right-radius: 2px;
      align-self: flex-end;
      margin-left: auto;
    }
    .chat-faq-pill {
      background: rgba(212, 175, 55, 0.12);
      border: 1px solid var(--luxury-gold);
      color: var(--gold-light);
      padding: 5px 11px;
      border-radius: 14px;
      font-size: 0.7rem;
      cursor: pointer;
      display: inline-block;
      margin: 3px 2px;
      transition: all 0.2s;
    }
    .chat-faq-pill:hover {
      background: var(--luxury-gold);
      color: #12091f;
      font-weight: 700;
    }


    /* --- ORIGINAL PRICE, DYNAMIC DISCOUNT & GLOWING PROMO STYLING --- */
    .price-container-row {
      display: flex;
      align-items: baseline;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: auto;
      margin-bottom: 5px;
    }
    .original-price-del {
      font-size: 0.74rem;
      color: #94a3b8;
      text-decoration: line-through;
      text-decoration-color: #ef4444;
      font-weight: 500;
    }
    .product-price-current {
      font-size: 0.98rem;
      font-weight: 700;
      color: var(--gold-light);
    }
    .save-discount-badge {
      background: rgba(239, 68, 68, 0.18);
      border: 1px solid #ef4444;
      color: #fca5a5;
      font-size: 0.6rem;
      font-weight: 700;
      padding: 1px 5px;
      border-radius: 4px;
      white-space: nowrap;
    }
    .badge-discount-reason {
      position: absolute;
      top: 6px;
      left: 6px;
      background: linear-gradient(135deg, #ef4444, #b91c1c);
      color: #ffffff;
      font-size: 0.62rem;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 6px;
      z-index: 3;
      box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.25);
      max-width: 85%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .cat-pill-promo {
      background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.2)) !important;
      border: 1.5px solid #ef4444 !important;
      color: #fca5a5 !important;
      font-weight: 700 !important;
      box-shadow: 0 0 12px rgba(239, 68, 68, 0.35) !important;
      animation: promoPillGlow 2.5s infinite alternate !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 5px !important;
    }
    .cat-pill-promo.active {
      background: linear-gradient(135deg, #ef4444, #dc2626) !important;
      color: #ffffff !important;
      border-color: #f87171 !important;
      box-shadow: 0 0 18px rgba(239, 68, 68, 0.65) !important;
    }
    @keyframes promoPillGlow {
      0% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.3); border-color: #ef4444; }
      100% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.55); border-color: #f59e0b; }
    }
    .promo-count-pill {
      background: #ffffff;
      color: #ef4444;
      font-size: 0.62rem;
      font-weight: 800;
      padding: 1px 6px;
      border-radius: 10px;
      margin-left: 3px;
    }
    .reason-preset-chip {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: #cbd5e1;
      padding: 3px 8px;
      border-radius: 12px;
      font-size: 0.68rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: all 0.2s ease;
      user-select: none;
    }
    .reason-preset-chip:hover {
      background: rgba(239, 68, 68, 0.2);
      border-color: #ef4444;
      color: #fff;
    }
    .reason-preset-chip.active {
      background: #ef4444;
      border-color: #ef4444;
      color: #fff;
      font-weight: bold;
    }
    .chip-del-btn {
      font-size: 0.75rem;
      opacity: 0.6;
      margin-left: 2px;
    }
    .chip-del-btn:hover {
      opacity: 1;
      color: #ff4d4d;
    }
    .admin-filter-pill-btn {
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.73rem;
      font-weight: 600;
      border: 1px solid #334155;
      background: rgba(255,255,255,0.04);
      color: #94a3b8;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .admin-filter-pill-btn.active {
      background: #ef4444;
      color: #ffffff;
      border-color: #ef4444;
      box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    }


    /* --- REALTIME NOTIFICATIONS & SOUND MUTE/UNMUTE BUTTON --- */
    .btn-sound-toggle {
      position: relative; background: rgba(255,255,255,0.08); border: 1px solid var(--card-border);
      color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex;
      align-items: center; justify-content: center; cursor: pointer; font-size: 0.85rem;
      transition: all 0.2s ease;
    }
    .btn-sound-toggle.muted {
      color: #ef4444; border-color: #ef4444; background: rgba(239, 68, 68, 0.15);
    }
    .btn-sound-toggle:hover {
      transform: scale(1.08);
    }
    .sound-toast-noti {
      position: fixed; top: 18px; right: 18px; max-width: 320px;
      background: linear-gradient(135deg, rgba(24, 19, 45, 0.98), rgba(15, 23, 42, 0.98));
      border: 1.5px solid var(--gold); border-radius: 12px; padding: 10px 14px;
      color: #fff; box-shadow: 0 8px 30px rgba(0,0,0,0.6); z-index: 999999;
      display: flex; align-items: flex-start; gap: 10px; animation: slideInNoti 0.35s ease;
    }
    @keyframes slideInNoti {
      from { transform: translateX(110%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    .chat-bubble-msg {
      max-width: 85%;
      word-break: break-word;
    }
    .chat-bubble-msg img {
      max-width: 100%; max-height: 200px; border-radius: 8px; margin-top: 4px; object-fit: contain; cursor: pointer;
    }
    .chat-bubble-msg video {
      max-width: 100%; max-height: 220px; border-radius: 8px; margin-top: 4px; object-fit: contain;
    }
    .chat-admin-tag {
      font-size: 0.65rem; background: linear-gradient(135deg, var(--gold), #b38914); color: #12091f;
      font-weight: 800; padding: 1px 6px; border-radius: 4px; display: inline-block; margin-bottom: 3px;
    }
    .chat-inquire-card {
      background: rgba(212, 175, 55, 0.15); border: 1px solid var(--gold); border-radius: 8px;
      padding: 6px 10px; margin-bottom: 6px; font-size: 0.73rem; display: flex; align-items: center; justify-content: space-between; gap: 6px;
    }
    .comm-reply-box {
      margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--gold);
      display: flex; flex-direction: column; gap: 4px;
    }
    .comm-media-preview {
      max-height: 140px; border-radius: 6px; margin-top: 4px; object-fit: cover;
    }


    /* --- DELIVERY STATIONS & GATE TRACKING STYLES --- */
    .station-info-card {
      background: rgba(15, 23, 42, 0.95);
      border: 1.5px solid #0284c7;
      border-radius: 8px;
      padding: 8px 10px;
      margin: 6px 0;
      font-size: 11px;
    }
    .btn-call-gate {
      background: linear-gradient(135deg, #10b981, #059669);
      color: #fff;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 6px;
      font-size: 10px;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-left: 6px;
    }
    .station-type-badge {
      font-size: 9px;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 4px;
      margin-right: 4px;
    }
    .badge-type-bus { background: #f59e0b; color: #000; }
    .badge-type-royal { background: #ef4444; color: #fff; }
    .badge-type-deli { background: #10b981; color: #fff; }
    .badge-type-home { background: #38bdf8; color: #000; }

    /* Mobile UI Clean Layout Fix (အစွန်းထွက်မှု ကာကွယ်ခြင်း) */
    @media (max-width: 480px) {
      #settingsTab div[style*="grid-template-columns"],
      .admin-modal-content div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
      }
      
      .form-group input, 
      .form-group select,
      #settingsTab input,
      #settingsTab select {
        width: 100% !important;
        box-sizing: border-box !important;
      }

      .deli-option-card, 
      .dynamic-color-row {
        flex-wrap: wrap !important;
      }
    }

  /* --- CATEGORY POPUP / BOTTOM SHEET STYLES --- */
.category-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.category-bar-wrapper::-webkit-scrollbar {
  display: none;
}

/* Category အကုန်ကြည့်မည် ခလုတ် */
.btn-open-cat-modal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(99, 102, 241, 0.25));
  border: 1.5px solid #a855f7;
  color: #f3e8ff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.btn-open-cat-modal:active {
  transform: scale(0.96);
  background: rgba(168, 85, 247, 0.4);
}

/* Modal နောက်ခံ အမည်းရောင် */
#categorySheetModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99999;
  justify-content: center;
  align-items: flex-end;
}
#categorySheetModal.active {
  display: flex;
}

/* အောက်ခြေမှ တက်လာမည့် Panel */
.cat-sheet-content {
  width: 100%;
  max-width: 500px;
  background: #111827;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  padding: 16px 16px 28px;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  animation: slideUpCatSheet 0.25s ease-out;
}

@keyframes slideUpCatSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cat-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}
.cat-sheet-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fde047;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-sheet-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 14px;
  cursor: pointer;
}

/* Category Grid အကွက် (၂ တန်းတွဲ) */
.cat-grid-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}
.cat-grid-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
}
.cat-grid-item.active {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold, #f59e0b);
  color: #fde047;
  font-weight: 700;
}
.cat-grid-item:active {
  transform: scale(0.97);
}

/* --- PRODUCT DETAIL MODAL: STICKY IMAGE & SCROLLABLE BODY --- */
#productDetailModal .modal-content {
  display: flex !important;
  flex-direction: column !important;
  max-height: 90vh !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ထိပ်ပိုင်း ပုံဧရိယာကို အပေါ်တွင် ငြိမ်နေစေခြင်း */
#productDetailModal .detail-sticky-top {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  background: #0b0f19;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ပုံအောက်က အချက်အလက်များသာ သီးသန့် scroll ဖြစ်စေခြင်း */
#productDetailModal .detail-scrollable-body {
  flex: 1 1 auto;
  overflow-y: auto !important;
  padding: 14px 16px 24px;
  -webkit-overflow-scrolling: touch;
}

/* --- FULLSCREEN IMAGE LIGHTBOX WITH TOUCH SWIPE --- */
#imageLightboxModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  user-select: none;
  touch-action: pan-y;
}
#imageLightboxModal.active {
  display: flex;
}
#imageLightboxModal .lightbox-img-wrap {
  width: 100%;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
#imageLightboxModal .lightbox-img-wrap img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.lightbox-btn-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
}
.lightbox-nav-prev { left: 12px; }
.lightbox-nav-next { right: 12px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fde047;
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* --- STICKY CATEGORY BAR --- */
.category-bar-wrapper {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: #0f172a !important;
  padding: 8px 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

/* --- FOOTER DUAL TIER FIX (CLEAN & NON-OVERLAPPING) --- */
/* အောက်ဆုံး တန်း ၂ (Social & Call) */
.fixed-social-call-tier {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background: #080d1a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.5);
}

/* အပေါ် တန်း ၁ (သတင်းလွှာ၊ အသဲ၊ App၊ ခြင်းတောင်း) - တန်း ၂ ၏ အပေါ်တွင် ကွက်တိတင်ထားခြင်း */
.mobile-bottom-bar {
  position: fixed !important;
  bottom: 48px !important;
  left: 0 !important;
  right: 0 !important;
  height: 50px !important;
  z-index: 1050 !important;
  background: #0f172a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 4px 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
}

/* Nav Bar ခလုတ်များ မူလအရွယ်အစားအတိုင်း စာသားနှင့် Icon တန်းညီစေရန် */
.mobile-bottom-bar .bottom-bar-btn {
  flex: 1;
  height: 40px !important;
  display: inline-flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 0.74rem !important;
  padding: 4px 6px !important;
  white-space: nowrap !important;
  border-radius: 8px !important;
}

/* Social Icons များကို ညီညာလှပစေခြင်း */
.large-social-icons-group {
  display: flex;
  gap: 6px;
  align-items: center;
}
.large-social-icons-group .social-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}
.social-box.vb-box { background: #7360f2; } /* Viber */
.social-box.msg-box { background: #0084ff; } /* Messenger */
.social-box.fb-box { background: #1877f2; }
.social-box.tg-box { background: #0088cc; }
.social-box.yt-box { background: #ff0000; }
.social-box.tt-box { background: #000000; border: 1px solid rgba(255,255,255,0.2); }

/* ဖုန်းခေါ်ဆိုမှု ခလုတ် */
.btn-large-call-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* Search & Track Order Compact Row */
.search-track-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 6px 0;
}
.search-track-row input {
  flex: 1;
}
.btn-track-compact-custom {
  background: rgba(212, 175, 55, 0.15) !important;
  color: var(--gold, #f59e0b) !important;
  border: 1px solid var(--gold, #f59e0b) !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  font-size: 0.75rem !important;
  font-weight: bold !important;
  white-space: nowrap !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* =========================================================
   ၁။ 🚨 FLOATING EMERGENCY BUTTON & 💬 CHAT SPEED DIAL
   ========================================================= */
.floating-action-container {
  position: fixed;
  right: 16px;
  bottom: 110px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none !important; /* နေရာလွတ်များကို Click ဖောက်ထွင်းစေရန် */
}

/* ခလုတ်များတွင်သာ Click အလုပ်လုပ်စေရန် ပြန်ဖွင့်ပေးခြင်း */
.floating-action-container .fab-main-btn,
.floating-action-container .fab-quick-exit,
.floating-action-container .fab-item {
  pointer-events: auto !important;
}

/* 🚨 အရေးပေါ်ခလုတ် (Thumb Zone ညာဘက်အောက်ခြေ) */
.fab-quick-exit {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  border: 2px solid #ffffff;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.6);
  position: relative;
  transition: transform 0.2s;
}
.fab-quick-exit:active {
  transform: scale(0.92);
}
.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #ef4444;
  animation: fab-pulse 1.8s infinite;
}
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* 💬 Chat Speed Dial (တစ်ခုတည်းမှ ၃ ခု ပွင့်ထွက်မည့် စနစ်) */
.fab-speed-dial {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.fab-main-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #6366f1;
  border: none;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fab-main-btn.active {
  background: #475569;
  transform: rotate(45deg);
}
.fab-options {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(15px);
  transition: all 0.25s ease-out;
}
.fab-speed-dial.open .fab-options {
  opacity: 1;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0);
}
.fab-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.fab-item i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.fab-viber i { background: #7360f2; }
.fab-admin i { background: #10b981; }
.fab-spin i { background: #f59e0b; }
.fab-label {
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
}
.fab-community {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4) !important;
}
.fab-community i {
  color: #ffffff !important;
  font-size: 1.1rem !important;
}


/* =========================================================
   ၂။ "STOCK ရှိ" နှင့် "ငွေကြိုလွှဲသီးသန့်" BADGE ခွဲထုတ်ခြင်း (UI ရှင်းလင်းစေရန်)
   ========================================================= */
.badge-stock,
[class*="badge-stock"] {
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: auto !important;
  bottom: auto !important;
  font-size: 10px !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  margin: 0 !important;
  z-index: 10 !important;
}

/* ငွေကြိုလွှဲသီးသန့် Badge ကို ပစ္စည်းပုံ၏ ဘယ်ဘက်အောက်ခြေသို့ ရွှေ့ခြင်း (ပုံနှင့် စာသားများ မကွယ်စေရန်) */
.badge-prepaid,
[class*="badge-prepaid"] {
  position: absolute !important;
  top: auto !important;
  bottom: 8px !important; /* ပုံ၏ အောက်ခြေနားတွင် သန့်ရှင်းစွာ ပြသမည် */
  left: 8px !important;
  right: auto !important;
  font-size: 10px !important;
  padding: 3px 6px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  margin: 0 !important;
  z-index: 10 !important;
}

/* =========================================================
   📌 TOP DUAL STICKY BARS (HEADER + CATEGORIES)
   ========================================================= */

/* ၁။ Header အတန်းကို အပေါ်ဆုံး အစွန်း (top: 0) တွင် အမြဲကပ်ထားခြင်း */
header,
header.sticky-scrolled {
  position: sticky !important;
  top: 0 !important;
  z-index: 1050 !important;
  background: rgba(15, 23, 42, 0.98) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  margin: 0 !important;
}

/* Scroll ဆွဲချိန် Header မထူထဲစေရန် စာတန်းငယ်လေးများကို ဖျောက်ပေးခြင်း */
header.sticky-scrolled .brand-subtitle,
header.sticky-scrolled .hero-compact {
  display: none !important;
}

/* ၂။ Category အတန်းကို Header ၏ အောက်ကပ်လျက်တွင် ဆက်ကပ်နေစေခြင်း */
/* ၂။ Category အတန်း ပုံမှန်ကပ်နေစေခြင်းနှင့် ကွက်လပ်ဟနေမှု ဖျောက်ခြင်း */
.category-bar-wrapper {
  position: sticky !important;
  top: 54px !important;
  z-index: 1040 !important;
  background: #0b0f19 !important;
  width: 100% !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
}

.category-wrapper {
  display: flex !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  padding: 6px 36px 6px 10px !important; /* ညာဘက်မြှားအတွက် နေရာချန်ခြင်း */
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important; /* မလှသော scrollbar ဖျောက်ခြင်း */
}
.category-wrapper::-webkit-scrollbar {
  display: none !important;
}

/* ညာဘက်သို့ ရွှေ့ကြည့်နိုင်ကြောင်း လေးထောင့်တုံးပုံစံ မြှားနှစ်ထပ် (») Indicator */
/* Category Bar ဘယ်/ညာ ခလုတ် ဒီဇိုင်း */
.cat-nav-btn {
  flex-shrink: 0 !important;
  width: 24px !important;
  height: 30px !important;
  background: #ffffff !important;
  color: #ef4444 !important; /* အနီရောင် မြှား */
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: 4px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 1050 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.cat-nav-btn:active {
  background: #f1f5f9 !important;
  transform: scale(0.92) !important;
}

/* ခလုတ်များ ထပ်မနေစေရန် static/relative ထားပေးခြင်း */
.cat-nav-left {
  position: static !important;
  transform: none !important;
}

.cat-nav-right {
  position: static !important;
  transform: none !important;
}

/* Category စာရင်းများ scroll ချောမွေ့စေခြင်း */
#categoryContainer {
  scrollbar-width: none !important;
}
#categoryContainer::-webkit-scrollbar {
  display: none !important;
}

/* "အမျိုးအစားအားလုံး" ခလုတ်အား နေရာပိုလွတ်စေရန် အနည်းငယ် သေးချုံ့ပေးခြင်း */
.category-btn,
.category-wrapper button:first-child {
  font-size: 11.5px !important;
  padding: 5px 8px !important;
  white-space: nowrap !important;
}

/* =========================================================
   ၄။ FOOTER ခြင်းတောင်း ခလုတ် စာလုံးမကျိုးကျဘဲ ပေါ်လွင်စေရန်
   ========================================================= */
.mobile-bottom-bar .cart-btn {
  position: relative !important;
  white-space: nowrap !important;
  font-size: 0.65rem !important; /* စာလုံးအရွယ်အစား အနည်းငယ် ချုံ့ပေးခြင်း */
  padding: 4px 3px !important;   /* ဘေးဘောင်နေရာလွတ် ချွေတာပေးခြင်း */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
}
.mobile-bottom-bar .cart-count-badge {
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: bold !important;
  padding: 1px 5px !important;
  border-radius: 10px !important;
  line-height: 1 !important;
  min-width: 16px !important;
  text-align: center !important;
}

/* =========================================================
   ၅။ CATEGORY ဘားတွင် ဘေးသို့ရွှေ့ရန် မြှားခေါင်း အချက်ပြ
   ========================================================= */
.category-wrapper {
  position: relative;
}
.category-wrapper::after {
  content: '››';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, transparent, #0b0f19);
  color: #a855f7;
  font-size: 16px;
  font-weight: bold;
  pointer-events: none;
  animation: pulse-arrow 1.2s infinite;
}
@keyframes pulse-arrow {
  0%, 100% { opacity: 0.4; transform: translateY(-50%) translateX(0); }
  50% { opacity: 1; transform: translateY(-50%) translateX(3px); }
}
.product-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.8em !important;
}
/* =========================================================
   ၆။ CARD ပေါ်တွင် DIRECT ADD-TO-CART (SPLIT ACTION BUTTONS)
   ========================================================= */
/* ကုန်ပစ္စည်းကတ် အောက်ခြေ ခလုတ်များ (Mobile-Friendly 2-Tier Layout) */
.product-card-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-top: 8px !important;
  width: 100% !important;
}

/* ခြင်းထဲထည့်မည် ခလုတ် - သီးသန့် အပေါ်တန်းအပြည့် */
.btn-quick-add-cart {
  position: relative !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  width: 100% !important;
  padding: 8px 4px !important;
  background: #f5a623 !important;
  color: #111 !important;
  font-weight: 700 !important;
  font-size: clamp(11px, 3vw, 13px) !important;
  white-space: nowrap !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}

/* အောက်ဘက် ၃ ခုတန်း (အသေးစိတ်၊ Viber၊ ယှဉ်မည်) - Mobile Screen တွင် ကွက်တိဝင်စေမည့် App-Toolbar Style */
.product-card-actions-sub {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
  width: 100% !important;
  margin-top: 4px !important;
}

.product-card-actions-sub button {
  width: 100% !important;
  min-width: 0 !important;
  padding: 6px 2px !important;
  font-size: clamp(9px, 2.6vw, 11px) !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  display: flex !important;
  flex-direction: column !important; /* Icon ကို အပေါ်၊ စာသားကို အောက်ထားခြင်းဖြင့် နေရာမကျဉ်းစေဘဲ စာလုံးလုံးဝမပြတ်တော့ပါ */
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}

.product-card-actions-sub button:active {
  transform: scale(0.95) !important;
}

/* Icon အရွယ်အစားကို သီးသန့် အချိုးကျသတ်မှတ်ခြင်း */
.product-card-actions-sub button i {
  font-size: 13px !important;
  margin-bottom: 2px !important;
}

/* ၁။ အသေးစိတ် ခလုတ် (မျက်စိအေးပြီး ယုံကြည်စိတ်ချရသော Deep Ocean Blue Gradient) */
.btn-view-detail {
  background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
  color: #ffffff !important;
}

/* ၂။ Viber ခလုတ် (ချက်ချင်းစုံစမ်းမှာယူချင်စိတ်ဖြစ်စေမည့် Vibrant Purple Gradient) */
.btn-viber-direct-order {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6) !important;
  color: #ffffff !important;
}

/* ၃။ ယှဉ်မည် ခလုတ် (ခေတ်မီဆန်းသစ်သော Dark Slate Gradient) */
.btn-compare-action {
  background: linear-gradient(135deg, #1f2937, #374151) !important;
  color: #e5e7eb !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* =========================================================
   🛡️ MODAL / POPUP OVERLAY FIX (ALL MODALS ON TOP)
   ========================================================= */

/* Modal၊ Popup၊ Sheet များအားလုံးကို Bars များထက် အပေါ်ဆုံးသို့ ရောက်စေခြင်း */
.modal,
.modal-overlay,
.modal-backdrop,
.bottom-sheet,
#cartModal,
#adminModal,
#wishlistModal,
#newsModal,
#categorySheetModal,
#spinWheelModal,
#liveChatModal,
#communityModal,
[id*="Modal"],
[id*="modal"],
[class*="modal"]:not(.btn-open-cat-modal) {
  z-index: 2147483647 !important; /* Browser ၏ အမြင့်ဆုံး z-index သတ်မှတ်ချက် */
}

/* Cart Modal ပွင့်ချိန်အတွက်သာ သီးသန့် ကန့်သတ်ခြင်း */
body:has(#cartModal.active) {
  overflow: hidden !important;
}

body:has(#cartModal.active) header,
body:has(#cartModal.active) .mobile-bottom-bar,
body:has(#cartModal.active) .fixed-social-call-tier {
  display: none !important;
}

#adminOrderDetailModal,
#orderEditModal {
  z-index: 2147483647 !important;
  position: fixed !important;
}
#adminOrderDetailModal .modal-content,
#orderEditModal .modal-content {
  position: relative !important;
  z-index: 2147483647 !important;
}
/* Admin Tabs Hide/Show Fix */
.admin-tab {
  display: none !important;
  width: 100% !important;
}

.admin-tab.active {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
}

/* Mobile Modal Screen Responsive */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 6px !important;
  }
  .modal-content.admin-modal-content {
    width: 96vw !important;
    max-width: 100% !important;
    max-height: 94vh !important;
    padding: 12px 10px !important;
    overflow-x: hidden !important;
  }
}
/* ========================================================
   📱 LOGISTICS & SETTINGS MOBILE RESPONSIVE ENHANCEMENT
   ======================================================== */
@media (max-width: 768px) {
  /* Logistics Tab အတွင်းရှိ Form Row အားလုံးကို Full Width အပေါ်အောက် ပြောင်းလဲခြင်း */
  #logisticsTab .form-group,
  #logisticsTab div[style*="display:grid"],
  #logisticsTab div[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
  }

  /* Input, Select, Textarea အားလုံး မျက်နှာပြင်အပြည့် အညီအမျှဖြစ်စေခြင်း */
  #logisticsTab input[type="text"],
  #logisticsTab input[type="number"],
  #logisticsTab select,
  #logisticsTab textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 40px !important;
    font-size: 0.85rem !important;
  }

  /* ခေါင်းစဉ်နှင့် Toggle Switch (အဖွင့်/အပိတ်) များကို သပ်ရပ်စွာ ဘေးတိုက် ၂ ဘက် ကပ်ညှိခြင်း */
  #logisticsTab div[style*="justify-content:space-between"],
  #logisticsTab div[style*="justify-content: space-between"] {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  /* မြို့နယ်ထည့်ရန် Input နှင့် "+ ထည့်မည်" ခလုတ် တွဲထားသည့်နေရာ ပြေပြစ်စေခြင်း */
  #logisticsTab div[style*="display:flex"]:has(input[type="text"]):has(button) {
    flex-wrap: wrap !important;
  }
  
  #logisticsTab div[style*="display:flex"] > button {
    white-space: nowrap !important;
    min-height: 38px !important;
  }

  /* မြို့နယ် Tags (Chips) များ အောက်လိုင်းသို့ အလိုအလျောက် ခေါက်ဆင်းစေခြင်း */
  #logisticsTab div[style*="display:flex"]:has(span),
  #logisticsTab div[style*="display: flex"]:has(span) {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  /* သိမ်းဆည်းရန် ပင်မခလုတ်ကြီးများကို ဖုန်းမျက်နှာပြင်ပြည့် နှိပ်ရလွယ်ကူစေခြင်း */
  #logisticsTab button[onclick*="save"],
  #logisticsTab button[onclick*="Save"] {
    width: 100% !important;
    padding: 12px !important;
    font-size: 0.9rem !important;
    margin-top: 10px !important;
  }
}
#adminStationsDirectoryListContainer::-webkit-scrollbar {
  width: 6px !important;
  display: block !important;
}
#adminStationsDirectoryListContainer::-webkit-scrollbar-thumb {
  background: #0284c7 !important;
  border-radius: 4px !important;
}
#adminStationsDirectoryListContainer::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05) !important;
}

/* Delivery Admin Town List Custom Scrollbar */
div[id^="companyTownsList_"]::-webkit-scrollbar {
  width: 6px !important;
  display: block !important;
}
div[id^="companyTownsList_"]::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8) !important;
  border-radius: 4px !important;
}
div[id^="companyTownsList_"]::-webkit-scrollbar-thumb {
  background: #0284c7 !important;
  border-radius: 4px !important;
}

/* --- ENHANCED DELI SELECTION & QUICK TOWNSHIP STYLING --- */
.township-input-wrapper {
  position: relative;
  width: 100%;
}
.township-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #cbd5e1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  z-index: 5;
}
.township-clear-btn:hover {
  background: #ef4444;
  color: #fff;
}
.quick-town-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 2px;
  scrollbar-width: none;
}
.quick-town-pills-row::-webkit-scrollbar {
  display: none;
}
.quick-town-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quick-town-pill:active {
  background: var(--gold, #d4af37);
  color: #12091f;
  transform: scale(0.95);
}

/* Smart Deli Option Cards Styling */
.deli-option-card-smart {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.deli-option-card-smart:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.05);
}
.deli-option-card-smart.active-selected {
  border-color: var(--gold, #d4af37) !important;
  background: rgba(212, 175, 55, 0.14) !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25) !important;
}
.deli-check-tag {
  position: absolute;
  right: 10px;
  top: 10px;
  background: #10b981;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: none;
}
.deli-option-card-smart.active-selected .deli-check-tag {
  display: inline-block;
}
.deli-tag-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
}
.deli-tag-fast { background: #38bdf8; color: #000; }
.deli-tag-cod { background: #10b981; color: #fff; }
.deli-tag-save { background: #f59e0b; color: #000; }

/* Datalist Browser မူရင်း မြှားခေါင်းကို ဖျောက်ပေးခြင်း */
#custTownshipInput::-webkit-calendar-picker-indicator {
  display: none !important;
  opacity: 0 !important;
  -webkit-appearance: none !important;
}

/* စာသားဖျက်သည့် × ခလုတ်ကို ညာဘက်အစွန်းတွင် သပ်ရပ်စွာ နေရာချခြင်း */
.township-input-wrapper {
  position: relative;
  width: 100%;
}

.township-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  z-index: 5;
}
  /* Mobile Admin Panel Alignment & Overflow Fix */
@media (max-width: 600px) {
  #adminModal .admin-modal-content,
  #adminModal .admin-tab,
  #adminModal .admin-tab > div,
  #adminModal input,
  #adminModal select,
  #adminModal textarea,
  #adminModal button {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  /* Stock Inventory & FOC Gift Flex/Grid Rows Stack Cleanly */
  #stockTab > div > div,
  #stockTab div[style*="display: flex"],
  #stockTab div[style*="display:flex"],
  #stockTab div[style*="grid-template-columns"],
  #discountsTab div[style*="display: flex"],
  #discountsTab div[style*="display:flex"] {
    flex-wrap: wrap !important;
  }

  /* Minimum Order Input + Ks + Add Button */
  #stockTab input[type="number"],
  #stockTab input[type="text"] {
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  /* Custom Gift Choose File & Image URL Row */
  #discountsTab input[type="file"] {
    width: 100% !important;
    margin-bottom: 6px !important;
  }
  #discountsTab input[type="file"] + input {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
}
  
  /* ==================== OPTIMIZED E-COMMERCE POLISH & FIXES ==================== */
  .masked-pin-field { -webkit-text-security: disc;  }

  .cat-nav-btn {
    background: rgba(212, 175, 55, 0.15) !important;
    color: var(--gold-light) !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 6px !important;
  }
  .cat-nav-btn:hover { background: var(--gold) !important; color: #12091f !important; }

  @media (min-width: 900px) {
    body { padding-bottom: 60px !important; }
    .mobile-bottom-bar { display: flex !important; }
    .floating-action-container { bottom: 64px; right: 20px; }
  }

  .price-filter-row {
    display: flex; gap: 6px; overflow-x: auto; padding: 4px 10px 6px; scrollbar-width: none;
  }
  .price-filter-row::-webkit-scrollbar { display: none; }
  .price-chip {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
    color: #cbd5e1; padding: 4px 10px; border-radius: 14px; font-size: 0.72rem;
    white-space: nowrap; cursor: pointer; transition: 0.2s;
  }
  .price-chip.active {
    background: rgba(212, 175, 55, 0.2); border-color: var(--gold); color: var(--gold-light); font-weight: 700;
  }

  #ageGateModal {
    position: fixed; inset: 0; background: rgba(7, 5, 16, 0.96); backdrop-filter: blur(10px);
    z-index: 2147483647; display: none; align-items: center; justify-content: center; padding: 16px;
  }
  #ageGateModal.active { display: flex; }
  .age-gate-card {
    background: #18132d; border: 1.5px solid var(--gold); border-radius: 18px;
    max-width: 390px; width: 100%; padding: 24px 20px; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  }
  /* ==================== STORY RING CATEGORY BAR (DESIGN 2) ==================== */
  .story-cat-section {
    background: linear-gradient(180deg, rgba(18, 13, 36, 0.96), rgba(13, 10, 26, 0.98));
    border-bottom: 1px solid rgba(212, 175, 55, 0.16);
    padding: 8px 10px 10px;
    width: 100%;
  }
  .story-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 2px;
  }
  .story-cat-heading {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .story-cat-all-btn {
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #e9d5ff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
  }
  .story-cat-all-btn:hover {
    background: var(--primary);
    color: #fff;
  }
  .story-cat-copy-btn {
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--gold-light);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
  }
  .story-cat-copy-btn:hover {
    background: var(--gold);
    color: #12091f;
  }
  .story-cat-copy-btn.copied {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: #fff !important;
  }
  .story-cat-track-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .story-cat-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 4px 2px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
  }
  .story-cat-scroll::-webkit-scrollbar { display: none; }

  .story-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 68px;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
    position: relative;
  }
  .story-cat-item:active { transform: scale(0.94); }

  .story-ring-outer {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, rgba(155, 81, 224, 0.55), rgba(212, 175, 55, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.25s ease;
  }
  .story-cat-item.active .story-ring-outer {
    background: linear-gradient(135deg, #fde047, #d4af37, #f59e0b);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
    transform: translateY(-2px);
  }
  .story-cat-item.promo-ring .story-ring-outer {
    background: linear-gradient(135deg, #ff4081, #ef4444, #f59e0b);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
  }
  .story-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #140f26;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .story-ring-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
  }
  .story-ring-icon {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at top, rgba(155, 81, 224, 0.35), rgba(24, 19, 45, 0.95));
  }
  .story-cat-item.promo-ring .story-ring-icon {
    background: radial-gradient(circle at top, rgba(239, 68, 68, 0.45), rgba(24, 19, 45, 0.95));
  }

  .story-count-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #18132d;
    color: var(--gold-light);
    border: 1px solid var(--gold);
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0 5px;
    min-width: 18px;
    height: 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
  .story-cat-item.promo-ring .story-count-badge {
    background: #ef4444;
    color: #fff;
    border-color: #fff;
  }

  .story-cat-label {
    margin-top: 5px;
    font-size: 0.67rem;
    color: #cbd5e1;
    text-align: center;
    line-height: 1.25;
    max-width: 68px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }
  .story-cat-item.active .story-cat-label {
    color: var(--gold-light);
    font-weight: 700;
  }

  /* Privacy Mask ဖွင့်ထားပါက Category ပုံများပါ Blur ဖြစ်စေရန် */
  body.discreet-mask-active .story-ring-img {
    filter: blur(8px) grayscale(65%);
  }

  /* ဖုန်းတွင် မြှားခလုတ်ဖျောက်ပြီး Desktop တွင်သာ ပြသခြင်း */
  .story-arrow-btn {
    display: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.45);
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
  }
  .story-arrow-btn:hover {
    background: var(--gold);
    color: #12091f;
  }
  @media (min-width: 768px) {
    .story-arrow-btn { display: inline-flex; }
    .story-cat-scroll { gap: 16px; }
  }
  /* ==================== MODERN LIVE CHAT INBOX & POPUP UPGRADE ==================== */
  /* ၁။ ဝယ်သူဘက် Popup — FAQ Scrollbar အဖြူတန်းဖျောက်ခြင်း & Header ခလုတ် ၁ ကြောင်းတည်းထားခြင်း */
  #dynamicFaqChipsBar {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding-bottom: 2px !important;
  }
  #dynamicFaqChipsBar::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
  }
  #liveChatModal .action-badge {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 4px 10px !important;
    border-radius: 14px !important;
    font-size: 0.72rem !important;
  }

  /* ၂။ Admin Live Chat Inbox — မညီမညာဖြစ်ခြင်း ဖြေရှင်းခြင်း & Modern Scrollbar */
  #adminChatSessionsListContainer {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    align-content: flex-start !important;
    gap: 6px !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
  }
  #adminChatSessionsListContainer::-webkit-scrollbar,
  #adminActiveChatMessages::-webkit-scrollbar {
    width: 5px;
  }
  #adminChatSessionsListContainer::-webkit-scrollbar-thumb,
  #adminActiveChatMessages::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 10px;
  }

  /* ၃။ Modern Chat Session Card (Avatar + Unread Dot + Time Ago) */
  .tm-chat-session-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.16s ease;
    position: relative;
    flex-shrink: 0;
  }
  .tm-chat-session-card:hover {
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(168, 85, 247, 0.45);
  }
  .tm-chat-session-card.active {
    background: rgba(16, 185, 129, 0.14);
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
  }
  .tm-chat-session-card.unread {
    border-left: 3px solid var(--gold);
    background: rgba(212, 175, 55, 0.08);
  }
  .tm-chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    position: relative;
  }
  .tm-chat-unread-dot {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #0b1329;
  }
  .tm-chat-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: #0b1329;
    border: 1px solid #334155;
    color: #fff;
    font-size: 0.74rem;
    outline: none;
  }
  .tm-chat-search-input:focus {
    border-color: var(--gold);
  }


/* Bottom Tier Cart Button beside Call Now on Desktop */
.bottom-tier-actions { display: inline-flex; align-items: center; gap: 8px; }
.btn-bottom-tier-cart {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--gold);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-bottom-tier-cart:hover { background: rgba(212, 175, 55, 0.22); }
@media (min-width: 900px) {
  .btn-bottom-tier-cart { display: inline-flex !important; }
}

/* Ensure VIP Digital Member Card opens cleanly on top of Cart Modal */
#cartModal {
  z-index: 2147483640 !important;
}
#memberCardModal,
#luckyWheelModal {
  z-index: 2147483647 !important;
}

/* Desktop & MacBook Bottom Action Bar Offset */
@media (min-width: 900px) {
  body { padding-bottom: 112px !important; }
  .floating-action-container { bottom: 112px !important; right: 20px !important; }
}
