
/* ============================================================
   GEMEZU STORE — Mobile-First CSS
   ============================================================ */

/* Animations */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideInLeft{ from { transform:translateX(-100%); } to { transform:translateX(0); } }
@keyframes popIn      { from { transform:scale(0.8); opacity:0; } to { transform:scale(1); opacity:1; } }
@keyframes pulse      { 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }
@keyframes countUp    { from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }

.animate-fade-up   { animation: fadeInUp .5s ease forwards; }
.animate-slide-down{ animation: fadeInDown .4s ease forwards; }
.animate-pop       { animation: popIn .4s cubic-bezier(.68,-.55,.27,1.55) forwards; }

/* Hamburger */
.hamburger-btn {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 32px; height: 22px; background: none; border: none; cursor: pointer;
  padding: 0; flex-shrink: 0; z-index: 10;
}
.hamburger-btn span {
  display: block; width: 100%; height: 2.5px;
  background: var(--text); border-radius: 2px;
  transition: all .3s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Overlay */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
  z-index: 800;
}
.mobile-overlay.show { display: block; animation: fadeInUp .2s ease; }

/* Mobile Slide Nav */
.mobile-nav {
  position: fixed; top: 0; left: -100%; width: 80%; max-width: 320px; height: 100vh;
  background: white; z-index: 900; overflow-y: auto;
  transition: left .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,.15);
  display: flex; flex-direction: column;
}
.mobile-nav.open { left: 0; }
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, var(--primary-d,#0D1B2A), var(--primary));
}
.mobile-nav-logo { font-family:var(--font-display);font-size:1.2rem;font-weight:800;color:white; }
.mobile-nav-logo span { color:var(--accent); }
.mobile-nav-close { color:white;font-size:1.2rem;cursor:pointer;background:rgba(255,255,255,.15);border:none;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center; }
.mobile-nav-user {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  background: var(--surface2); border-bottom: 1px solid var(--border);
}
.mobile-nav-avatar { width:40px;height:40px;border-radius:50%;background:var(--primary);color:white;font-weight:700;font-size:1.1rem;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.mobile-nav-name { font-weight:700;font-size:.9rem; }
.mobile-nav-email { font-size:.75rem;color:var(--text-3); }
.mobile-nav-links { padding: 8px 0; flex: 1; }
.mobile-nav-link {
  display: flex; align-items: center; gap: 12px; padding: 13px 20px;
  color: var(--text-2); font-size: .9rem; font-weight: 500;
  text-decoration: none; transition: all .15s;
}
.mobile-nav-link:hover, .mobile-nav-link:active { background: var(--accent-light); color: var(--accent); }
.mobile-nav-link span { font-size: 1.1rem; }
.mobile-nav-divider { height:1px;background:var(--border);margin:6px 20px; }

/* Desktop only nav bar */
.desktop-only { display: block; }
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
}

/* Bottom Navigation */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: white; border-top: 1px solid var(--border);
  padding: 6px 0 8px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; justify-content: space-around; }
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 8px; color: var(--text-3); font-size: .65rem; font-weight: 600;
  text-decoration: none; position: relative; min-width: 50px;
  transition: color .15s;
}
.bottom-nav-item.active, .bottom-nav-item:active { color: var(--accent); }
.bottom-nav-item svg { transition: transform .2s; }
.bottom-nav-item.active svg { transform: scale(1.15); }
.bottom-nav-cart { position: relative; }
.bottom-cart-badge {
  position: absolute; top: 0; right: 4px; width: 17px; height: 17px;
  background: var(--accent); color: white; border-radius: 50%;
  font-size: .6rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
}

/* Page wrapper padding for bottom nav on mobile */
@media (max-width: 768px) {
  .page-wrapper { padding-bottom: 70px; }
}

/* ── MOBILE DASHBOARD ─────────────────────────────────────── */
.mob-dashboard { padding: 16px; }

/* Profile card */
.mob-profile-card {
  background: linear-gradient(135deg, var(--primary-d,#0D1B2A) 0%, var(--primary) 100%);
  border-radius: 20px; padding: 24px 20px; margin-bottom: 16px;
  position: relative; overflow: hidden;
  animation: fadeInUp .5s ease;
}
.mob-profile-card::after {
  content:''; position:absolute; width:150px; height:150px;
  background:radial-gradient(circle,rgba(249,115,22,.3),transparent);
  right:-30px; top:-30px; pointer-events:none;
}
.mob-profile-top { display:flex; align-items:center; gap:14px; margin-bottom:16px; }
.mob-avatar {
  width:56px; height:56px; border-radius:50%; background:rgba(255,255,255,.2);
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; font-weight:800; color:white; flex-shrink:0;
  border: 2px solid rgba(255,255,255,.3);
}
.mob-user-name { font-family:var(--font-display);font-weight:800;font-size:1.1rem;color:white; }
.mob-user-email { font-size:.75rem;color:rgba(255,255,255,.6);margin-top:2px; }
.mob-wallet-row {
  background:rgba(255,255,255,.1); border-radius:12px; padding:12px 16px;
  display:flex; align-items:center; justify-content:space-between;
}
.mob-wallet-label { font-size:.72rem;color:rgba(255,255,255,.6);text-transform:uppercase;letter-spacing:.5px; }
.mob-wallet-amount { font-family:var(--font-display);font-size:1.4rem;font-weight:900;color:white; }
.mob-wallet-btn { background:var(--accent);color:white;border:none;border-radius:20px;padding:7px 16px;font-size:.8rem;font-weight:700;cursor:pointer;text-decoration:none; }

/* Stats row */
.mob-stats { display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px; }
.mob-stat-card {
  background:white; border-radius:14px; padding:14px 10px; text-align:center;
  border:1px solid var(--border); box-shadow:var(--shadow-sm);
  animation: popIn .4s ease; animation-fill-mode: both;
}
.mob-stat-card:nth-child(1){animation-delay:.1s}
.mob-stat-card:nth-child(2){animation-delay:.2s}
.mob-stat-card:nth-child(3){animation-delay:.3s}
.mob-stat-icon { font-size:1.3rem; margin-bottom:6px; }
.mob-stat-num { font-family:var(--font-display);font-size:1.2rem;font-weight:800;color:var(--text); }
.mob-stat-label { font-size:.65rem;color:var(--text-3);margin-top:2px;text-transform:uppercase;letter-spacing:.3px; }

/* Quick Actions */
.mob-quick-actions { display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px; }
.mob-action {
  background:white; border-radius:14px; padding:14px 8px; text-align:center;
  text-decoration:none; color:var(--text); border:1px solid var(--border);
  transition:all .2s; animation:fadeInUp .4s ease;
}
.mob-action:nth-child(1){animation-delay:.1s}
.mob-action:nth-child(2){animation-delay:.15s}
.mob-action:nth-child(3){animation-delay:.2s}
.mob-action:nth-child(4){animation-delay:.25s}
.mob-action:active { transform:scale(.96); background:var(--accent-light); }
.mob-action-icon { font-size:1.4rem;margin-bottom:6px; }
.mob-action-label { font-size:.68rem;font-weight:600;color:var(--text-2); }

/* Recent orders list */
.mob-section-title {
  font-family:var(--font-display);font-weight:700;font-size:1rem;
  margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;
}
.mob-section-title a { font-size:.8rem;color:var(--accent);font-weight:600; }
.mob-order-card {
  background:white; border-radius:14px; padding:14px 16px; margin-bottom:10px;
  border:1px solid var(--border); display:flex; align-items:center; gap:12px;
  text-decoration:none; animation:fadeInUp .4s ease;
  transition: transform .15s, box-shadow .15s;
}
.mob-order-card:active { transform:scale(.98); box-shadow:var(--shadow); }
.mob-order-icon { width:42px;height:42px;border-radius:10px;background:var(--surface2);display:flex;align-items:center;justify-content:center;font-size:1.2rem;flex-shrink:0; }
.mob-order-num { font-weight:700;font-size:.875rem;color:var(--primary); }
.mob-order-date { font-size:.75rem;color:var(--text-3);margin-top:2px; }
.mob-order-total { margin-left:auto;text-align:right; }
.mob-order-amount { font-family:var(--font-display);font-weight:800;color:var(--accent);font-size:.95rem; }

/* Submit Product Form mobile */
.mob-submit-form { padding:16px; }
.mob-form-card {
  background:white; border-radius:16px; border:1px solid var(--border);
  overflow:hidden; margin-bottom:16px; animation:fadeInUp .4s ease;
}
.mob-form-header { padding:16px 18px; border-bottom:1px solid var(--border); background:linear-gradient(135deg,var(--primary),var(--primary-h,#253F8A)); }
.mob-form-header h3 { color:white;font-size:1rem;font-weight:700; }
.mob-form-header p { color:rgba(255,255,255,.65);font-size:.8rem;margin-top:3px; }
.mob-form-body { padding:18px; }

/* Mobile search bar */
@media (max-width: 768px) {
  .header-search { display:none; }
  .mob-search-bar {
    display:block; padding:10px 16px;
    background:white; border-bottom:1px solid var(--border);
  }
  .mob-search-bar form { display:flex; gap:8px; }
  .mob-search-bar input { flex:1;padding:10px 14px;border:1.5px solid var(--border-d);border-radius:20px;font-size:.875rem; }
  .mob-search-bar button { padding:10px 18px;background:var(--accent);color:white;border:none;border-radius:20px;font-weight:700;font-size:.85rem; }
}

/* Product cards mobile */
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2,1fr); gap:10px; }
  .product-card-body { padding:10px; }
  .product-card-name { font-size:.82rem; -webkit-line-clamp:2; }
  .product-price .current { font-size:.95rem; }
  .hero-title { font-size:1.8rem; }
  .section-title { font-size:1.2rem; }
}

/* Submission status badges */
.status-pending  { background:#FFF7ED;color:#C2410C;padding:4px 12px;border-radius:20px;font-size:.75rem;font-weight:700; }
.status-approved { background:#ECFDF5;color:#065F46;padding:4px 12px;border-radius:20px;font-size:.75rem;font-weight:700; }
.status-rejected { background:#FEF2F2;color:#991B1B;padding:4px 12px;border-radius:20px;font-size:.75rem;font-weight:700; }

/* Sell CTA banner */
.sell-banner {
  background:linear-gradient(135deg,#7C3AED,#A855F7);
  border-radius:16px; padding:18px 20px; margin:16px 0;
  display:flex; align-items:center; gap:14px; text-decoration:none;
  animation: pulse 3s ease infinite;
}
.sell-banner-icon { font-size:2rem; flex-shrink:0; }
.sell-banner-title { font-weight:800;font-size:1rem;color:white; }
.sell-banner-sub   { font-size:.8rem;color:rgba(255,255,255,.75);margin-top:2px; }
.sell-banner-arrow { margin-left:auto;color:white;font-size:1.3rem;flex-shrink:0; }
