.navbar-ios { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0; }
.navbar-inner {
  margin: 12px 20px;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background: rgba(247,246,243,0.72);
  backdrop-filter: blur(28px) saturate(2);
  -webkit-backdrop-filter: blur(28px) saturate(2);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07), inset 0 1px 0 rgba(255,255,255,0.95);
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500; letter-spacing: -0.3px; color: var(--black); text-decoration: none; }
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { font-size: 13.5px; font-weight: 400; color: var(--muted); text-decoration: none; letter-spacing: 0.2px; transition: color 0.2s; }
.nav-links a:hover { color: var(--black); }
.nav-links a.active { color: var(--black); font-weight: 600; }
.nav-actions { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.nav-search input {
  width: 150px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0,0,0,0.07);
  background: rgba(0,0,0,0.04);
  color: var(--black);
  font: inherit;
  font-size: 13px;
  padding: 0 14px;
  outline: none;
}
.nav-search input:focus {
  background: rgba(255,255,255,0.86);
  border-color: rgba(0,0,0,0.18);
}
.btn-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.07); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s; text-decoration: none; color: var(--black); }
.btn-icon:hover { background: rgba(0,0,0,0.1); color: var(--black); }
.cart-badge { position: relative; display: inline-flex; }
.cart-badge::after {
  content: attr(data-count);
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--black);
  color: white;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--off-white);
}

.footer { background: var(--black); color: white; padding: 80px 0 40px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 400; margin-bottom: 16px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.35); font-weight: 300; line-height: 1.7; max-width: 260px; margin-bottom: 32px; }
.footer-title { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 20px; font-weight: 500; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; font-weight: 300; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 60px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.25); font-weight: 300; }
.footer-socials { display: flex; gap: 12px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.2s;
}
.social-btn:hover { background: rgba(255,255,255,0.14); color: white; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search input { width: 96px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* ==========================================================================
   Account Profile Dropdown (Storefront)
   ========================================================================== */
.nav-account-dropdown {
  position: relative;
  display: inline-flex;
}

.nav-account-btn {
  position: relative;
  outline: none;
}

.nav-profile-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-account-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 260px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(28px) saturate(2);
  -webkit-backdrop-filter: blur(28px) saturate(2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transform-origin: top right;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
}

.nav-account-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-account-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.nav-account-subtitle {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.nav-account-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-btn-auth-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  background: var(--black);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.nav-btn-auth-primary:hover {
  background: #262626;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.nav-btn-auth-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 16px;
  background: transparent;
  color: var(--black) !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.nav-btn-auth-outline:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--black);
}

/* Logged in user info */
.nav-account-greeting {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 2px;
}

.nav-account-user {
  font-weight: 700;
  color: var(--black);
  font-size: 15px;
  margin-bottom: 4px;
}

.nav-account-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--sand);
  color: var(--black);
  margin-bottom: 12px;
}

.nav-account-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-account-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-account-item.text-danger {
  color: #dc3545;
}

.nav-account-item.text-danger:hover {
  background: rgba(220, 53, 69, 0.08);
}

.nav-account-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 6px 0;
}

/* Product Stock Badges */
.product-stock-tag {
  margin: 4px 0 8px;
  display: flex;
  align-items: center;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.stock-pill.stock-in {
  background: rgba(46, 125, 50, 0.09);
  color: #2e7d32;
  border: 1px solid rgba(46, 125, 50, 0.22);
}

.stock-pill.stock-low {
  background: rgba(230, 81, 0, 0.09);
  color: #e65100;
  border: 1px solid rgba(230, 81, 0, 0.25);
}

.stock-pill.stock-out {
  background: rgba(211, 47, 47, 0.09);
  color: #d32f2f;
  border: 1px solid rgba(211, 47, 47, 0.25);
}

.stock-count {
  display: inline-block;
  font-weight: 700;
  transition: transform 0.25s ease, color 0.25s ease;
}

.stock-count.pulse {
  animation: pulseStock 0.4s ease-in-out;
}

@keyframes pulseStock {
  0% { transform: scale(1); }
  50% { transform: scale(1.45); color: #c62828; }
  100% { transform: scale(1); }
}

.btn-add-cart:disabled,
.btn-pill-dark:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* Real-time Cart Toast */
.mk7-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.mk7-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 18, 18, 0.92);
  color: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.mk7-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mk7-toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.mk7-toast-warning {
  background: rgba(180, 40, 40, 0.95);
}

/* Dual Currency Product Pricing (KHR Primary & USD Secondary) */
.product-price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.product-price {
  font-weight: 600;
  font-size: 1.05rem;
  color: #111111;
  letter-spacing: -0.01em;
}

.product-price-usd {
  font-size: 0.78rem;
  color: #71717a;
  font-weight: 400;
  margin-top: 1px;
  letter-spacing: 0.01em;
}

