/* ─────────────────────────────────────────
   PawVibe — Global Stylesheet
───────────────────────────────────────── */

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #e8f0f8; }
::-webkit-scrollbar-thumb { background: #6d93bd; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #35598a; }

/* Selection */
::selection { background: rgba(245,158,11,0.25); color: #0a1226; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(8px); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-slow-rev { to { transform: rotate(-360deg); } }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(90,127,165,0.45); }
  50%       { box-shadow: 0 0 0 12px rgba(90,127,165,0); }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}
@keyframes slideInDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}
@keyframes progress {
  from { width: 100%; }
  to   { width: 0%; }
}
@keyframes modalIn {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes chartBar {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

/* ── Utility animation classes ── */
.animate-fadeInUp  { animation: fadeInUp 0.6s ease forwards; }
.animate-float     { animation: float 3.5s ease-in-out infinite; }
.animate-float2    { animation: float2 4s ease-in-out infinite; }
.animate-spin-slow { animation: spin-slow 20s linear infinite; }
.animate-spin-slow-rev { animation: spin-slow-rev 30s linear infinite; }

/* ── Glass morphism ── */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
}
.glass-white {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
}

/* ── Brand buttons ── */
.btn-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #f5a524 45%, #e8890c 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(245,165,36,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-amber:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(245,165,36,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-amber:active { transform: translateY(0); }

.btn-green {
  background: linear-gradient(135deg, #35598a 0%, #101f40 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(61,98,137,0.35);
}
.btn-green:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(61,98,137,0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

/* ── Input fields ── */
.input-brand {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input-brand:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.input-brand::placeholder { color: #9ca3af; }

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f3f4f6;
  transition: all 0.25s ease;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.card-green {
  background: linear-gradient(135deg, #101f40 0%, #0a1226 100%);
  border-radius: 20px;
  color: #fff;
}

/* ── Product badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-imported {
  background: rgba(59,130,246,0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59,130,246,0.2);
}
.badge-handmade {
  background: rgba(245,158,11,0.12);
  color: #b45309;
  border: 1px solid rgba(245,158,11,0.2);
}
.badge-new {
  background: rgba(16,185,129,0.12);
  color: #065f46;
  border: 1px solid rgba(16,185,129,0.2);
}
.badge-hot {
  background: rgba(239,68,68,0.1);
  color: #b91c1c;
  border: 1px solid rgba(239,68,68,0.2);
}
.badge-sale {
  background: #ef4444;
  color: #fff;
}

/* ── Star rating ── */
.stars { color: #f59e0b; letter-spacing: 1px; }

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #6d93bd, #35598a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section label ── */
.section-label {
  display: inline-block;
  background: rgba(61,98,137,0.09);
  color: #35598a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid rgba(61,98,137,0.18);
}

/* ── Header ── */
.header-scrolled {
  background: rgba(7,13,31,0.92) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

/* ── Cart sidebar ── */
#cart-sidebar {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
#cart-sidebar.open {
  transform: translateX(0);
}
#cart-overlay {
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}
#cart-overlay.open {
  display: block;
  opacity: 1;
}

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: backdropIn 0.2s ease;
}
.modal-box {
  animation: modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-hidden { display: none !important; }

/* ── Toast ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  border-left: 4px solid #35598a;
  min-width: 280px;
  animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}
.toast.removing { animation: toastOut 0.3s ease forwards; }
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #f59e0b;
  animation: progress 3s linear forwards;
}
.toast.success { border-left-color: #10b981; }
.toast.error   { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }

/* ── Qty controls ── */
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { border-color: #f59e0b; color: #f59e0b; background: rgba(245,158,11,0.06); }

/* ── Tabs ── */
.tab-btn {
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: #6b7280;
}
.tab-btn.active {
  background: #0a1226;
  color: #fff;
  box-shadow: 0 4px 14px rgba(28,47,72,0.28);
}
.tab-btn:hover:not(.active) { background: #f3f4f6; color: #374151; }

/* ── Progress steps ── */
.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #9ca3af;
  transition: all 0.3s;
}
.step-dot.active  { border-color: #f59e0b; background: #f59e0b; color: #fff; }
.step-dot.done    { border-color: #10b981; background: #10b981; color: #fff; }

/* ── Admin sidebar ── */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: #0a1226;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 40;
  transition: transform 0.3s;
}
.admin-main {
  margin-left: 260px;
  height: 100vh;
  overflow-y: auto;
  background: #f1f5f9;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  margin: 2px 0;
}
.admin-nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav-link.active { background: rgba(245,158,11,0.2); color: #fbbf24; }
.admin-nav-link.active svg { color: #fbbf24; }

/* ── Member sidebar ── */
.member-sidebar {
  width: 240px;
}
.member-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.member-nav-link:hover { background: #eff5fc; color: #35598a; }
.member-nav-link.active { background: #0a1226; color: #fff; }

/* ── Status badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}
.status-pending   { background: rgba(245,158,11,0.12); color: #b45309; }
.status-confirmed { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.status-shipping  { background: rgba(139,92,246,0.12); color: #6d28d9; }
.status-delivered { background: rgba(16,185,129,0.12); color: #065f46; }
.status-cancelled { background: rgba(239,68,68,0.1);  color: #b91c1c; }

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ── Price ── */
.price-current { color: #0a1226; font-weight: 800; }
.price-original { color: #9ca3af; text-decoration: line-through; font-size: 0.85em; }
.price-discount { color: #ef4444; font-weight: 700; font-size: 0.82em; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.mobile-open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .member-sidebar { display: none; }
}

/* ════════════════════════════════════════
   Mobile Bottom Navigation (Member pages)
════════════════════════════════════════ */
.mob-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1.5px solid #f3f4f6;
  z-index: 60;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.07);
}
@media (max-width: 1023px) { .mob-nav { display: flex; } }
.mob-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px 2px 7px;
  color: #9ca3af;
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
  gap: 3px;
}
.mob-nav a:hover { color: #6d93bd; }
.mob-nav a.mob-active { color: #0a1226; }
.mob-nav .mob-shop-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  width: 38px; height: 26px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(245,158,11,0.4);
  animation: pulse-shop 2s ease-in-out infinite;
}
.mob-nav a.mob-shop { color: #d97706; }

/* Member main padding for bottom nav on mobile */
@media (max-width: 1023px) { .member-flex-main { padding-bottom: 5rem !important; } }

/* ════════════════════════════════════════
   Pulse Animations
════════════════════════════════════════ */
@keyframes pulse-shop {
  0%, 100% { box-shadow: 0 3px 10px rgba(245,158,11,0.4); }
  50%       { box-shadow: 0 3px 20px rgba(245,158,11,0.75), 0 0 0 5px rgba(245,158,11,0.12); }
}
.btn-amber-pulse {
  animation: pulse-shop 2s ease-in-out infinite;
}

/* ════════════════════════════════════════
   Mobile Filter Drawer (Products page)
════════════════════════════════════════ */
.mob-filter-bg {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 80;
  align-items: flex-end;
}
.mob-filter-bg.open { display: flex; }
.mob-filter-panel {
  background: #fff;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 16px);
}
.mob-filter-bg.open .mob-filter-panel { transform: translateY(0); }
body.noscroll { overflow: hidden; }
