/* =============================
   ZYLARO — style.css
   ============================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&display=swap');

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:       #0c0c18;
  --glass:    rgba(255,255,255,0.04);
  --border:   rgba(255,255,255,0.09);
  --white:    #ffffff;
  --muted:    rgba(255,255,255,0.45);
  --green:    #00ff88;
  --red:      #ff5f5f;
  --gold:     #ffd700;
  --header-h: 60px;
  --font:     'Poppins', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

button, select, input, textarea {
  font-family: var(--font);
}

/* ===================== HEADER ===================== */
#appHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(12,12,24,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 9px;
  user-select: none;
  min-width: 0;
}

.logo-img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  object-fit: contain;
  cursor: pointer;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.12));
  transition: filter 0.3s;
  -webkit-user-drag: none;
}

.logo-img:hover, .logo-img:active {
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.35));
}

.brand-name {
  font-size: clamp(15px, 4vw, 20px);
  font-weight: 900;
  letter-spacing: clamp(3px, 1vw, 5px);
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-badge {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.3;
  letter-spacing: 3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 14px;
}

.sort-label {
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.4;
  font-weight: 700;
}

.sort-wrap select {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2px;
}

.sort-wrap select option { background: #1a1a2e; color: #fff; }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.25s, border-color 0.25s;
  min-width: 56px;
  justify-content: center;
}

.cart-btn:hover, .cart-btn:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

#cartCount { font-weight: 800; min-width: 14px; text-align: right; }

/* ===================== SHOP SECTION ===================== */
#shopSection {
  padding: calc(var(--header-h) + 8px) 20px 80px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ---- Category Filter Bar ---- */
.category-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 800;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  margin-bottom: 24px;
  background: var(--bg);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.category-bar::-webkit-scrollbar { display: none; }

.cat-pill {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cat-pill:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.cat-pill:focus-visible { outline: 2px solid rgba(255,255,255,0.4); outline-offset: 2px; }

.cat-pill.active {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

/* ---- Product Grid ---- */
.product-grid {
  display: grid;
  /* 4 col ≥1100px | 3 col ≥768px | 2 col ≥380px | 1 col below */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.empty-msg {
  text-align: center;
  padding: 80px 20px;
  opacity: 0.3;
  font-size: 13px;
  letter-spacing: 3px;
}

/* ---- Skeleton Loading Cards ---- */
.skeleton-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  padding: 0 0 16px 0;
}

/* Match same aspect-ratio as real cards */
.sk-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 200px;
}

.sk-line {
  height: 12px;
  border-radius: 8px;
  margin: 12px 14px 0;
}

.sk-btn {
  height: 42px;
  border-radius: 40px;
  margin: 12px 14px 0;
}

/* Width helpers for skeleton lines */
.w70 { width: 70%; }
.w60 { width: 60%; }
.w75 { width: 75%; }
.w65 { width: 65%; }
.w55 { width: 55%; }
.w50 { width: 50%; }
.w45 { width: 45%; }
.w40 { width: 40%; }
.w35 { width: 35%; }

/* Shimmer animation */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.09) 50%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: -100% 50%; }
}

/* ---- Product Card ---- */
.product-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;

  /* Scroll reveal — starts invisible */
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity    0.5s ease,
    transform  0.5s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;

  will-change: opacity, transform;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
}

/* Out-of-stock badge */
.oos-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  z-index: 2;
}

/* Product image — aspect-ratio based so it's the same on all screen sizes */
.product-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 180px;
  overflow: hidden;
}

.main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.45s ease;
}

.product-card:hover .main-img { transform: scale(1.04); }

/* Thumbnails */
.thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.thumbs::-webkit-scrollbar { display: none; }

.thumbs img {
  width: 46px; height: 46px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 9px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}

.thumbs img:hover,
.thumbs img.active { border-color: var(--white); transform: scale(1.05); }

/* Product info */
.product-info {
  padding: 12px 14px 16px;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.product-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 2px;
  line-height: 1.55;
}

.add-cart-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.add-cart-btn:hover:not(:disabled) {
  background: var(--white);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.add-cart-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

.add-cart-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--red);
  color: var(--red);
}

/* ===================== OVERLAY / POPUP ===================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  justify-content: center;
  align-items: flex-end;   /* slide up from bottom on mobile */
  z-index: 9999;
  padding: 0;
  overflow-y: auto;
}

.popup-box {
  width: 100%;
  max-width: 480px;
  max-height: 96vh;
  max-height: 96dvh;
  overflow-y: auto;
  background: rgba(12,12,26,0.99);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px 28px 0 0;  /* bottom sheet on mobile */
  padding: 28px 22px 40px;
  text-align: center;
  animation: slideUp 0.38s cubic-bezier(0.175,0.885,0.32,1.1);
  box-shadow: 0 -8px 50px rgba(0,0,0,0.5);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  margin: auto 0 0;          /* push to bottom */
}

.popup-box::-webkit-scrollbar { width: 4px; }
.popup-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.admin-pass-box {
  border-radius: 28px;
  margin: auto;
  max-width: 360px;
}

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

.close-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--white);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.close-btn:hover { background: rgba(255,255,255,0.16); }

.popup-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.cart-preview {
  text-align: left;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item:last-child { border-bottom: none; }

.cart-item img {
  width: 40px; height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.ci-name  { font-size: 12px; font-weight: 600; }
.ci-price { font-size: 11px; opacity: 0.5; margin-top: 2px; }

.cart-total-line {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

/* Form fields */
.field {
  width: 100%;
  padding: 13px 15px;
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 13px;
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-size: 14px;
  outline: none;
  transition: border-color 0.22s, background 0.22s;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
}

.field:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.07);
}

.field::placeholder { color: rgba(255,255,255,0.26); }
select.field { cursor: pointer; }
select.field option { background: #1a1a2e; color: #fff; }

/* Primary button */
.pay-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: 40px;
  border: none;
  background: var(--white);
  color: var(--bg);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, opacity 0.25s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pay-btn:hover:not(:disabled) {
  background: #e8e8e8;
  box-shadow: 0 0 24px rgba(255,255,255,0.18);
}

.pay-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 3px;
}

.pay-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.ghost-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.ghost-btn:hover { color: var(--white); }

.social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.social-row img { border-radius: 6px; }

.contact-note { font-size: 12px; opacity: 0.35; margin-top: 5px; }

.success-msg {
  display: none;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
  text-shadow: 0 0 10px rgba(0,255,136,0.25);
}

.error-text  { color: var(--red);  font-size: 13px; margin-top: 6px; min-height: 16px; }
.status-text { font-size: 13px; margin-top: 8px; text-align: center; min-height: 16px; }

/* ===================== ADMIN PANEL ===================== */
#adminPanel {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  overflow-y: auto;
  overflow-y: overlay;
  flex-direction: column;
  align-items: center;
  padding-bottom: 80px;
}

#adminPanel.visible { display: flex; }

.admin-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(12,12,24,0.97);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.exit-admin-btn {
  flex-shrink: 0;
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.22);
  color: var(--red);
  padding: 7px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: background 0.22s;
  -webkit-tap-highlight-color: transparent;
}

.exit-admin-btn:hover { background: rgba(255,80,80,0.22); }

.admin-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 18px 16px 6px;
  width: 100%;
  max-width: 720px;
}

.a-tab {
  padding: 9px 22px;
  border-radius: 40px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: color 0.22s, background 0.22s, border-color 0.22s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.a-tab:hover { color: var(--white); }
.a-tab.active { background: var(--white); border-color: var(--white); color: var(--bg); }

.a-content {
  width: 100%;
  max-width: 680px;
  padding: 16px 16px;
}

.a-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px 18px;
}

.a-card-title {
  font-size: 10px;
  letter-spacing: 3px;
  opacity: 0.35;
  font-weight: 700;
  margin-bottom: 14px;
}

.img-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  -webkit-tap-highlight-color: transparent;
}

.img-upload-label:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

input[type="file"] { display: none; }

.img-preview-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.img-preview-strip img {
  width: 58px; height: 58px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.a-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.a-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
  transition: border-color 0.22s;
}

.a-item:hover { border-color: rgba(255,255,255,0.16); }

.a-item > img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.a-item-info { flex: 1; min-width: 0; }
.a-item-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-item-sub  { font-size: 11px; opacity: 0.42; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.a-item-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.del-btn {
  background: rgba(255,80,80,0.09);
  border: 1px solid rgba(255,80,80,0.2);
  color: var(--red);
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.22s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.del-btn:hover { background: rgba(255,80,80,0.24); }

.oos-btn {
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: background 0.22s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.oos-btn.mark {
  background: rgba(255,215,0,0.07);
  border: 1px solid rgba(255,215,0,0.2);
  color: var(--gold);
}

.oos-btn.restore {
  background: rgba(0,255,136,0.07);
  border: 1px solid rgba(0,255,136,0.2);
  color: var(--green);
}

.oos-btn.mark:hover    { background: rgba(255,215,0,0.2); }
.oos-btn.restore:hover { background: rgba(0,255,136,0.2); }

/* Cart Overlay Items */
.cart-overlay-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  margin-bottom: 4px;
}

.cart-ol-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}

.cart-ol-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.cart-ol-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.cart-remove-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.22);
  color: var(--red);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.cart-remove-btn:hover { background: rgba(255,80,80,0.28); }

.cart-empty-msg {
  text-align: center;
  opacity: 0.35;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 28px 0 10px;
}

/* Orders */
.order-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.order-id   { font-size: 10px; opacity: 0.28; letter-spacing: 1px; margin-bottom: 5px; }
.order-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.order-det  { font-size: 12px; opacity: 0.52; margin-bottom: 2px; line-height: 1.5; }

.order-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.o-confirm-btn {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  border: 1px solid rgba(0,255,136,0.3);
  background: rgba(0,255,136,0.09);
  color: var(--green);
  transition: background 0.22s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.o-confirm-btn:hover { background: rgba(0,255,136,0.24); }

.o-reject-btn {
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  border: 1px solid rgba(255,80,80,0.25);
  background: rgba(255,80,80,0.09);
  color: var(--red);
  transition: background 0.22s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.o-reject-btn:hover { background: rgba(255,80,80,0.24); }

.o-status {
  display: inline-block;
  padding: 3px 13px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.s-PENDING  { background: rgba(255,215,0,0.1);  color: var(--gold);  border: 1px solid rgba(255,215,0,0.26);  }
.s-SUCCESS  { background: rgba(0,255,136,0.08); color: var(--green); border: 1px solid rgba(0,255,136,0.26); }
.s-REJECTED { background: rgba(255,80,80,0.08); color: var(--red);   border: 1px solid rgba(255,80,80,0.26);  }

.a-empty {
  text-align: center;
  padding: 32px 0;
  opacity: 0.28;
  font-size: 12px;
  letter-spacing: 3px;
}

/* ===================== FOCUS RING (accessibility) ===================== */
:focus-visible {
  outline: 2px solid rgba(255,255,255,0.45);
  outline-offset: 2px;
}

/* ===================== RESPONSIVE BREAKPOINTS ===================== */

/* Large tablets & small laptops */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  :root { --header-h: 56px; }

  #appHeader { padding: 0 16px; }

  .sort-wrap { padding: 6px 11px; }
  .sort-label { display: none; }

  .cart-btn { padding: 7px 12px; }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 14px;
  }

  #shopSection { padding: calc(var(--header-h) + 8px) 16px 60px; }

  .form-grid { grid-template-columns: 1fr 1fr; }

  .popup-box { padding: 24px 18px 36px; }

  .a-content { padding: 14px 12px; }
  .a-card    { padding: 16px 14px; }
}

/* Mobile */
@media (max-width: 540px) {
  :root { --header-h: 54px; }

  #appHeader { padding: 0 12px; gap: 6px; }

  .brand-name { font-size: 16px; letter-spacing: 3px; }
  .logo-img   { width: 34px; height: 34px; }

  .cart-btn { padding: 6px 10px; font-size: 12px; }

  #shopSection { padding: calc(var(--header-h) + 6px) 12px 50px; }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-bar { padding: 10px 0; gap: 7px; margin-bottom: 16px; }
  .cat-pill { padding: 7px 16px; font-size: 10px; }

  /* 2-column form on mobile */
  .form-grid { grid-template-columns: 1fr 1fr; }

  .a-item-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }

  .popup-box {
    padding: 20px 14px 38px;
    border-radius: 22px 22px 0 0;
  }
  .admin-pass-box {
    border-radius: 22px;
    padding: 24px 18px 30px;
    max-width: 100%;
    margin: auto 12px;
  }
}

/* Small phones (iPhone SE, Galaxy A series etc.) */
@media (max-width: 380px) {
  .brand-name    { font-size: 14px; letter-spacing: 2px; }
  .logo-img      { width: 30px; height: 30px; }

  .sort-wrap     { padding: 5px 9px; }
  .sort-wrap select { font-size: 11px; }
  .cart-btn      { padding: 6px 9px; min-width: auto; }

  .product-grid  { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .product-info  { padding: 10px 10px 13px; }
  .product-info h3 { font-size: 13px; }
  .product-price { font-size: 17px; }
  .product-meta  { font-size: 10.5px; }
  .add-cart-btn  { font-size: 11px; padding: 10px; }

  .a-item        { padding: 10px; gap: 8px; }
  .a-item > img  { width: 44px; height: 44px; }
  .a-item-name   { font-size: 13px; }
  .a-item-actions { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }

  .admin-tabs    { gap: 5px; padding: 14px 10px 4px; }
  .a-tab         { padding: 8px 14px; font-size: 10px; letter-spacing: 1px; }
}

/* Ensure overlay aligns properly at all sizes */
@media (min-width: 541px) {
  .overlay {
    align-items: center;
    padding: 20px;
  }
  .popup-box {
    border-radius: 28px;
    margin: auto;
  }
}

/* Landscape phone optimisations */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  :root { --header-h: 50px; }

  .product-grid  { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }

  .product-img-wrap { min-height: 150px; }
  .sk-img           { min-height: 150px; }

  .popup-box { max-height: 95vh; }
}

/* Desktop — centre popup nicely */
@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
  }

  #shopSection { padding: calc(var(--header-h) + 12px) 28px 100px; }
  #appHeader   { padding: 0 28px; }
}

/* Wide desktop */
@media (min-width: 1300px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===================== LIGHTBOX ===================== */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 70px 12px 12px;
}

.lb-overlay.open { display: flex; }

.lb-back {
  position: fixed;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  padding: 9px 18px 9px 12px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  z-index: 100000;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.2s;
}

.lb-back:hover { background: rgba(255,255,255,0.24); }

#lightboxImg {
  max-width: 100%;
  max-height: 88vh;
  max-height: 88dvh;
  object-fit: contain;
  touch-action: pinch-zoom;
  border-radius: 10px;
  user-select: none;
}

/* ===================== CALL BUTTON ===================== */
.call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 30px;
  border: 1px solid rgba(0,255,136,0.3);
  background: rgba(0,255,136,0.07);
  color: var(--green);
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  flex-shrink: 0;
}

.call-btn:hover {
  background: rgba(0,255,136,0.18);
  border-color: rgba(0,255,136,0.55);
}

/* ===================== EDIT BUTTON ===================== */
.edit-btn {
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  transition: background 0.22s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.edit-btn:hover { background: rgba(255,255,255,0.18); }

/* ===================== CATEGORIES TEXT-ONLY ===================== */
.cat-text-item {
  padding: 14px 16px;
}

.cat-text-item .a-item-name {
  font-size: 15px;
}

/* ===================== MOBILE SPACING FIXES ===================== */
@media (max-width: 540px) {
  .header-right { gap: 6px; }
  .sort-wrap { padding: 5px 10px; }

  .category-bar {
    gap: 10px;
    padding: 14px 0;
    margin-bottom: 20px;
  }

  .cat-pill {
    padding: 9px 18px;
    font-size: 11px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-info { padding: 10px 12px 14px; }
  .product-info h3 { font-size: 13px; margin-bottom: 3px; }
  .product-price { font-size: 17px; margin-bottom: 3px; }
  .product-meta { font-size: 10.5px; }
  .add-cart-btn { font-size: 11px; padding: 11px; margin-top: 10px; }

  .thumbs { padding: 8px 10px 0; gap: 5px; }
  .thumbs img { width: 40px; height: 40px; }

  #shopSection { padding: calc(var(--header-h) + 6px) 12px 60px; }
}

@media (max-width: 380px) {
  .category-bar { gap: 8px; }
  .cat-pill { padding: 8px 14px; font-size: 10.5px; }
  .product-grid { gap: 10px; }
  .header-right { gap: 5px; }
  .call-btn { padding: 7px 10px; }
  .cart-btn { padding: 6px 10px; }
}

/* ================================================================
   ZYLARO — v6 ADDITIONS (overrides + new)
   ================================================================ */

/* ── HEADER ICON BTN (call + profile — same style as cart) ───── */
.hdr-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.hdr-icon-btn:hover  { background: rgba(255,255,255,0.12); }
.hdr-icon-btn:active { background: rgba(255,255,255,0.18); }

/* Hide old green call-btn if it still exists */
.call-btn { display: none !important; }

/* ── LIGHTBOX (complete rewrite) ─────────────────────────────── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 99999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lb-overlay.open { display: flex; }

#lbClose {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#lbClose:hover { background: rgba(255,255,255,0.22); }

.lb-img-wrap {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 56px 60px;
  box-sizing: border-box;
}

#lightboxImg {
  max-width: 100%;
  max-height: 80vh;
  max-height: 80dvh;
  object-fit: contain;
  border-radius: 10px;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100001;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.2s;
}
.lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-dots {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 100001;
}
.lb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lb-dot.active {
  background: #fff;
  transform: scale(1.35);
}

/* ── USER SETTINGS OVERLAY ───────────────────────────────────── */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 20px;
  gap: 10px;
}

.profile-avatar {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.profile-avatar:hover { border-color: rgba(0,255,136,0.4); }

#profilePicFallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.profile-avatar-cam {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid var(--bg);
}

.profile-display-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: center;
  opacity: 0.85;
}

.settings-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.s-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.s-tab.active {
  color: var(--white);
  border-bottom-color: var(--green);
}

.s-content { padding-top: 4px; }

/* ── ORDER TRACKING BAR ──────────────────────────────────────── */
.tracking-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 12px 0;
  position: relative;
}

.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.track-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}
.track-step.done .track-dot {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}

.track-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
  margin-top: 5px;
  opacity: 0.35;
  line-height: 1.3;
  max-width: 52px;
}
.track-step.done .track-label {
  opacity: 1;
  color: var(--green);
}

.track-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  margin-top: 11px;
  z-index: 0;
  transition: background 0.3s;
  flex-shrink: 1;
}
.track-line.filled { background: var(--green); }

/* ── USER ORDER CARDS ────────────────────────────────────────── */
.u-orders-empty {
  text-align: center;
  opacity: 0.4;
  font-size: 13px;
  padding: 30px 0;
  line-height: 1.7;
}

.user-order-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.uo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.uo-id   { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; opacity: 0.5; }
.uo-time { font-size: 9px; opacity: 0.25; margin-top: 2px; }

.uo-stage-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.uo-stage-desc {
  font-size: 11px;
  opacity: 0.45;
  margin-bottom: 8px;
  line-height: 1.5;
}
.uo-detail {
  font-size: 11px;
  opacity: 0.55;
  margin-top: 6px;
  line-height: 1.5;
}

/* ── DASHBOARD ───────────────────────────────────────────────── */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.dash-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 18px 14px 16px;
  text-align: center;
  transition: border-color 0.2s;
}
.dash-card.dash-green  { border-color: rgba(0,255,136,0.22);  background: rgba(0,255,136,0.05); }
.dash-card.dash-yellow { border-color: rgba(255,200,0,0.22);  background: rgba(255,200,0,0.05); }
.dash-card.dash-red    { border-color: rgba(255,60,80,0.22);  background: rgba(255,60,80,0.05); }
.dash-card.dash-accent { border-color: rgba(100,160,255,0.22); background: rgba(100,160,255,0.05); }

.dash-icon { font-size: 20px; margin-bottom: 7px; }
.dash-val  {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1;
}
.dash-lbl {
  font-size: 8.5px;
  letter-spacing: 1.8px;
  opacity: 0.38;
  font-weight: 700;
}

/* ── ADMIN ORDER TRACKING ────────────────────────────────────── */
.order-track-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  opacity: 0.35;
  margin: 10px 0 2px;
  font-weight: 700;
}

/* ── OOS PRODUCT STYLES ──────────────────────────────────────── */
.oos-card { opacity: 0.72; }

.oos-product-label {
  display: block;
  width: 100%;
  padding: 12px;
  background: rgba(255,60,80,0.08);
  border: 1px solid rgba(255,60,80,0.22);
  border-radius: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--red);
  margin-top: 8px;
}

/* Admin OOS expanded label */
.a-item-oos { border-color: rgba(255,60,80,0.22) !important; }
.a-oos-text {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--red);
  margin-top: 3px;
  opacity: 0.85;
}
.oos-mark-btn {
  background: rgba(255,60,80,0.08);
  border: 1px solid rgba(255,60,80,0.3);
  color: var(--red);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.oos-restore-btn {
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.3);
  color: var(--green);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ── CART OVERLAY ITEMS ──────────────────────────────────────── */
.cart-overlay-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 44vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 4px;
  padding-right: 2px;
}

.cart-ol-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
}
.cart-ol-item img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-ol-info { flex: 1; min-width: 0; }
.cart-ol-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.order-one-btn {
  background: var(--green);
  color: #000;
  border: none;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  white-space: nowrap;
}
.order-one-btn:active { opacity: 0.8; }

.cart-remove-btn {
  background: rgba(255,60,80,0.1);
  border: 1px solid rgba(255,60,80,0.25);
  color: var(--red);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cart-total-line {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  opacity: 0.7;
  text-align: right;
  margin-bottom: 10px;
}
.cart-empty-msg {
  text-align: center;
  opacity: 0.35;
  font-size: 13px;
  padding: 20px 0;
}

/* ── STATUS BADGE ─────────────────────────────────────────────── */
.o-status {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.s-PENDING  { background:rgba(255,200,0,0.12); border:1px solid rgba(255,200,0,0.3); color:#ffc800; }
.s-SUCCESS  { background:rgba(0,255,136,0.12); border:1px solid rgba(0,255,136,0.3); color:var(--green); }
.s-REJECTED { background:rgba(255,60,80,0.12); border:1px solid rgba(255,60,80,0.3); color:var(--red); }

/* ── ADMIN ORDER CARD ─────────────────────────────────────────── */
.order-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}
.order-id   { font-size: 10px; letter-spacing: 1.5px; opacity: 0.35; margin-bottom: 4px; }
.order-name { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.order-det  { font-size: 12px; opacity: 0.55; margin-bottom: 2px; line-height: 1.5; }
.order-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.o-confirm-btn {
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.3);
  color: var(--green);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.o-reject-btn {
  background: rgba(255,60,80,0.1);
  border: 1px solid rgba(255,60,80,0.3);
  color: var(--red);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ── STATUS TEXT ──────────────────────────────────────────────── */
.status-text {
  font-size: 12px;
  margin-top: 8px;
  min-height: 18px;
  font-weight: 600;
}

/* ── THUMB IMAGES ON PRODUCT CARD ────────────────────────────── */
.thumbs {
  display: flex;
  gap: 6px;
  padding: 6px 12px 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.thumbs img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.thumbs img.active { border-color: var(--green); }

/* ── MOBILE FIXES ─────────────────────────────────────────────── */
@media (max-width: 540px) {
  .dash-val { font-size: 22px; }
  .dash-icon { font-size: 18px; }
  .dash-grid { gap: 9px; }
  .tracking-bar { gap: 0; }
  .track-label { font-size: 7.5px; max-width: 44px; }
  .track-dot { width: 20px; height: 20px; }
  .lb-img-wrap { padding: 56px 44px 56px; }
  .lb-nav { width: 38px; height: 38px; font-size: 20px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

/* ── CONTACT / MESSAGE OVERLAY ───────────────────────────────── */
.contact-divider {
  font-size: 10px;
  letter-spacing: 1.5px;
  opacity: 0.28;
  margin: 14px 0 12px;
  font-weight: 600;
}

.contact-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  padding: 12px 10px;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  width: 100%;
  margin-bottom: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: opacity 0.18s, transform 0.12s;
}
.contact-action-btn:active { opacity: 0.75; transform: scale(0.97); }

.contact-wa-btn {
  flex: 1;
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.35) !important;
  color: #25d366;
}
.contact-wa-btn:hover { background: rgba(37,211,102,0.25); }

.contact-sms-btn {
  flex: 1;
  background: rgba(100,160,255,0.12);
  border: 1px solid rgba(100,160,255,0.3) !important;
  color: #64a0ff;
}
.contact-sms-btn:hover { background: rgba(100,160,255,0.22); }

/* ── ADMIN ORDERS — 4 sub-tabs ───────────────────────────────── */
.order-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.order-nav::-webkit-scrollbar { display: none; }

.o-nav-tab {
  flex: 1;
  min-width: 72px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.38);
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.4px;
  padding: 10px 6px 9px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.o-nav-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.o-nav-tab:hover:not(.active) { color: rgba(255,255,255,0.7); }

.o-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 900;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0;
}
.o-nav-tab.active .o-badge   { background: rgba(0,255,136,0.2); color: var(--green); }
.o-badge-green               { background: rgba(0,255,136,0.15) !important; color: var(--green) !important; }
.o-badge-red                 { background: rgba(255,60,80,0.15) !important;  color: var(--red)   !important; }
.o-badge-blue                { background: rgba(100,160,255,0.15) !important; color: #64a0ff     !important; }

/* ── CART MY-ORDERS TAB ──────────────────────────────────────── */
#cc-cart, #cc-orders { min-height: 60px; }
.u-orders-empty {
  text-align: center;
  font-size: 13px;
  opacity: 0.38;
  line-height: 1.8;
  padding: 24px 0 10px;
}

/* ── PAYMENT CONFIRM SECTION ─────────────────────────────────── */
#payConfirmSection .ghost-btn {
  background: none;
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  padding: 10px;
}
#payConfirmSection .ghost-btn:hover { border-color: rgba(255,60,80,0.5); color: var(--red); }

/* ── ORDER CARD DELETE BTN ───────────────────────────────────── */
.order-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

/* ── EDIT PRODUCT OVERLAY — must sit above admin panel (z:10000) ── */
#editProductOverlay { z-index: 100002 !important; }

/* ── TXN ID FIELD ─────────────────────────────────────────────── */
.txn-note {
  font-size: 11px;
  opacity: 0.5;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.7;
}
.txn-id-badge {
  display: inline-block;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.25);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 4px;
  word-break: break-all;
}

/* ── RESPONSIVE ADMIN PANEL ──────────────────────────────────── */
@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; }
  .a-card-title { font-size: 9px; letter-spacing: 2px; }
}
@media (min-width: 900px) {
  .a-content { max-width: 780px; }
  .dash-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .dash-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── PAYMENT STEP INDICATOR ──────────────────────────────────── */
.pay-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  text-align: left;
}
.pay-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,255,136,0.15);
  border: 1px solid rgba(0,255,136,0.35);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pay-step-text { font-size: 11.5px; opacity: 0.75; line-height: 1.5; }
