/* =============================================
   FlowUP — navbar.css  v7 (Imitation Jewellery theme)
   home/static/home/css/navbar.css
   Light navbar so the black + coral logo stays visible.
============================================= */

/* ── BASE NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1500; padding: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(12,11,11,0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled { background: rgba(255,255,255,0.98); box-shadow: 0 4px 24px rgba(12,11,11,0.08); }

.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

/* ── LOGO ── */
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo-img { height: 40px; width: auto; object-fit: contain; display: block; }
.logo-fallback { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #F75B31, #D9461F);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bodoni Moda', serif; font-weight: 700; font-size: 1.15rem; color: #fff;
  box-shadow: 0 4px 16px rgba(247,91,49,0.4);
}
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: 'Bodoni Moda', serif; font-size: 1.1rem; font-weight: 700; color: #0C0B0B; }
.logo-main em { color: #F75B31; font-style: normal; }
.logo-sub { font-size: 0.6rem; color: #7A706A; letter-spacing: 0.08em; }

/* ── CENTER LINKS ── */
.nav-center { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; flex: 1; justify-content: center; }
.nav-center li a {
  display: block; padding: 8px 12px; color: #3B3633; text-decoration: none;
  font-size: 0.88rem; font-weight: 500; border-radius: 8px; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-center li a:hover { color: #C93F1A; background: rgba(247,91,49,0.08); }

/* ── RIGHT ACTIONS ── */
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-btn-ghost {
  display: inline-flex; align-items: center; padding: 8px 16px;
  border: 1px solid rgba(247,91,49,0.5); border-radius: 10px; color: #C93F1A;
  font-size: 0.84rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: rgba(247,91,49,0.06); transition: all 0.2s;
}
.nav-btn-ghost:hover { background: #F75B31; border-color: #F75B31; color: #fff; }

.nav-btn-solid {
  display: inline-flex; align-items: center; padding: 8px 16px;
  background: linear-gradient(135deg, #F75B31, #D9461F); border: none; border-radius: 10px;
  color: #fff; font-size: 0.84rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(247,91,49,0.35); transition: all 0.2s;
}
.nav-btn-solid:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(247,91,49,0.5); }

/* ── USER PILL + DROPDOWN ── */
.nav-user { position: relative; }
.nav-user-pill {
  display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
  background: rgba(247,91,49,0.07); border: 1px solid rgba(247,91,49,0.3);
  border-radius: 100px; padding: 5px 12px 5px 5px; transition: all 0.2s;
}
.nav-user-pill:hover { background: rgba(247,91,49,0.15); border-color: #F75B31; }
.nav-av, .drop-av, .mob-av {
  border-radius: 50%; background: linear-gradient(135deg, #F75B31, #D9461F);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-weight: 700; color: #fff; flex-shrink: 0;
}
.nav-av { width: 32px; height: 32px; font-size: 0.72rem; }
.nav-uname { font-size: 0.83rem; font-weight: 500; color: #0C0B0B; max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
.nav-caret { color: #7A706A; transition: transform 0.2s; flex-shrink: 0; }
.nav-user-pill[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.nav-drop {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px;
  background: #fff; border: 1px solid rgba(12,11,11,0.1); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(12,11,11,0.15);
  opacity: 0; pointer-events: none; transform: translateY(-8px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease; z-index: 9999; overflow: hidden;
}
.nav-drop.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
.drop-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; }
.drop-av { width: 38px; height: 38px; font-size: 0.78rem; }
.drop-name { font-size: 0.88rem; font-weight: 600; color: #0C0B0B; margin: 0 0 2px; }
.drop-email { font-size: 0.72rem; color: #7A706A; margin: 0; word-break: break-all; }
.drop-sep { height: 1px; background: rgba(12,11,11,0.08); margin: 0; }
.drop-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  color: #3B3633; text-decoration: none; font-size: 0.86rem; transition: background 0.15s, color 0.15s;
}
.drop-item:hover { background: rgba(247,91,49,0.08); color: #C93F1A; }
.drop-logout { color: #c81e2c !important; }
.drop-logout:hover { background: rgba(230,57,70,0.08) !important; }

/* ── CART ── */
.nav-cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: rgba(247,91,49,0.07);
  border: 1px solid rgba(247,91,49,0.35); border-radius: 10px; color: #0C0B0B;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.nav-cart:hover { background: rgba(247,91,49,0.16); border-color: #F75B31; }
.nav-cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  background: #0C0B0B; color: #F5C98A; font-size: 0.62rem; font-weight: 700;
  border-radius: 100px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ── HAMBURGER ── */
.nav-ham {
  display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 8px; cursor: pointer; flex-shrink: 0;
  background: rgba(12,11,11,0.05); border: 1px solid rgba(12,11,11,0.1); border-radius: 8px;
}
.nav-ham span { display: block; width: 20px; height: 2px; background: #0C0B0B; border-radius: 2px; transition: all 0.25s ease; }
.nav-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   MOBILE OVERLAY + DRAWER
============================================= */
.mob-overlay {
  display: none; position: fixed; inset: 0; z-index: 9998; opacity: 0;
  background: rgba(12,11,11,0.55); backdrop-filter: blur(3px); transition: opacity 0.3s ease;
}
.mob-overlay.open { display: block; opacity: 1; }

.mob-drawer {
  position: fixed; top: 0; right: 0; width: min(320px,85vw); height: 100vh;
  background: #fff; border-left: 1px solid rgba(12,11,11,0.1); z-index: 9999;
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
.mob-drawer.open { transform: translateX(0); }

.mob-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.2rem 1rem; border-bottom: 1px solid rgba(12,11,11,0.08); flex-shrink: 0; }
.mob-user-card { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mob-av { width: 40px; height: 40px; font-size: 0.82rem; }
.mob-uname { font-size: 0.88rem; font-weight: 600; color: #0C0B0B; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mob-uemail { font-size: 0.72rem; color: #7A706A; margin: 0; word-break: break-all; }
.mob-logo-row { display: flex; align-items: center; gap: 10px; flex: 1; }

.mob-close {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(12,11,11,0.05); border: 1px solid rgba(12,11,11,0.1); border-radius: 8px;
  color: #7A706A; font-size: 1rem; cursor: pointer; transition: all 0.2s;
}
.mob-close:hover { background: rgba(12,11,11,0.1); color: #0C0B0B; }

.mob-nav { padding: 0.75rem 0.75rem 2rem; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mob-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  color: #3B3633; text-decoration: none; font-size: 0.94rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.mob-link:hover { background: rgba(247,91,49,0.08); color: #C93F1A; }
.mob-icon { font-size: 1.1rem; flex-shrink: 0; width: 22px; text-align: center; }
.mob-sep { height: 1px; background: rgba(12,11,11,0.08); margin: 6px 0; }
.mob-logout { color: #c81e2c !important; }
.mob-logout:hover { background: rgba(230,57,70,0.08) !important; }

.mob-auth-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; padding: 0 2px; }
.mob-btn-ghost {
  display: flex; align-items: center; justify-content: center; padding: 12px;
  border: 1px solid rgba(247,91,49,0.5); border-radius: 10px; color: #C93F1A;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  background: rgba(247,91,49,0.06); transition: all 0.2s;
}
.mob-btn-ghost:hover { background: #F75B31; color: #fff; }
.mob-btn-solid {
  display: flex; align-items: center; justify-content: center; padding: 12px;
  background: linear-gradient(135deg, #F75B31, #D9461F); border: none; border-radius: 10px;
  color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 2px 12px rgba(247,91,49,0.35); transition: all 0.2s;
}
.mob-btn-solid:hover { transform: translateY(-1px); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) { .nav-center li a { padding: 8px 8px; font-size: 0.84rem; } }
@media (max-width: 768px) {
  .nav-center, .nav-btn-ghost, .nav-btn-solid, .nav-user { display: none; }
  .nav-ham { display: flex; }
}