/* ===== Global ===== */
:root {
  --indigo: #4F46E5;
  --pink: #EC4899;
}

.gradient-text {
  background: linear-gradient(90deg, var(--indigo), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-bg {
  background: radial-gradient(ellipse at 70% 50%, #EEF2FF 0%, #FFF1F7 60%, #ffffff 100%);
}

/* ===== Navbar ===== */
.nav-link {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--indigo);
  transition: width 0.3s;
}
.nav-link:hover { color: var(--indigo); }
.nav-link:hover::after { width: 100%; }

/* Navbar scroll state — keep transparent while scrolling */
#navbar {
  transition: box-shadow 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
}
#navbar.nav-scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Mobile menu slide-in animation */
#mobile-nav-menu:not(.hidden) {
  animation: mobileMenuIn 0.2s ease forwards;
}
@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Product Card ===== */
.product-card {
  transition: all 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.product-card .img-wrap img {
  transition: transform 0.5s ease;
}
.product-card:hover .img-wrap img {
  transform: scale(1.07);
}
.product-card .card-actions {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
}
.product-card:hover .card-actions {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Category Buttons ===== */
.cat-btn.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

/* ===== Cart Sidebar ===== */
#cart-sidebar {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#cart-sidebar.open {
  transform: translateX(0);
}

/* ===== Chatbot ===== */
#chatbot-window .chat-bubble-bot {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0 1rem 1rem 1rem;
  padding: 10px 14px;
  max-width: 80%;
  font-size: 0.875rem;
  line-height: 1.5;
}
#chatbot-window .chat-bubble-user {
  background: #4F46E5;
  color: #fff;
  border-radius: 1rem 1rem 0 1rem;
  padding: 10px 14px;
  max-width: 80%;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-left: auto;
}
.quick-reply-btn {
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.quick-reply-btn:hover {
  background: #4F46E5;
  color: #fff;
  border-color: #4F46E5;
}

/* ===== Star Rating ===== */
.stars { color: #FBBF24; }

/* ===== Badge ===== */
.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-new { background: #DCFCE7; color: #16A34A; }
.badge-hot { background: #FEE2E2; color: #DC2626; }
.badge-sale { background: #FEF9C3; color: #CA8A04; }

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.5s ease forwards; }

/* ===== Admin sidebar (used in admin.html) ===== */
.admin-sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; font-weight: 600; color: #94a3b8; transition: all 0.2s; }
.admin-sidebar-link:hover, .admin-sidebar-link.active { background: #4F46E5; color: #fff; }
