/* ============================
   CodeShop BD - Main Stylesheet
   ============================ */

:root {
  --primary: #0d6efd;
  --accent: #ffc107;
  --dark: #1a1a2e;
  --darker: #0f3460;
}

body { font-family: 'Hind Siliguri', sans-serif; }

/* ---- NAVBAR ---- */
#mainNav {
  background: rgba(15, 52, 96, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}
#mainNav.scrolled {
  background: rgba(10, 25, 50, 0.99) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ---- MESSAGES ---- */
.messages-container {
  position: fixed;
  top: 0; right: 0;
  padding: 12px;
  margin-top: 72px;
  z-index: 9999;
  max-width: 360px;
}
.toast-alert {
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-bottom: 8px;
}

/* ---- HERO ---- */
.hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 500px;
  display: flex;
  align-items: center;
}

/* ---- CARDS ---- */
.product-card, .hover-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 12px !important;
}
.product-card:hover, .hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15) !important;
}

/* ---- CATEGORY ICON ---- */
.cat-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; transition: transform 0.2s;
}
.hover-card:hover .cat-icon { transform: scale(1.1); }

/* ---- BUTTONS ---- */
.btn-accent { background-color: var(--accent); color: #000; border: none; font-weight: 600; }
.btn-accent:hover { background-color: #e6ac00; color: #000; }

/* ---- SEARCH BOX ---- */
.search-box .form-control {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  border-radius: 8px 0 0 8px;
}
.search-box .form-control::placeholder { color: rgba(255,255,255,0.6); }
.search-box .form-control:focus {
  background: rgba(255,255,255,0.2);
  box-shadow: none; border-color: var(--accent); color: white;
}
.search-box .btn { border-radius: 0 8px 8px 0; }

/* ---- TABS ---- */
.nav-tabs .nav-link {
  color: #555; border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0; padding: 10px 20px; font-weight: 500;
}
.nav-tabs .nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  background: none;
}

/* ---- PAYMENT CARD ---- */
.payment-method-card { border-left: 4px solid var(--primary) !important; transition: background 0.2s; }
.payment-method-card:hover { background: #f0f6ff; }

/* ---- FOOTER ---- */
footer.bg-dark { border-top: 1px solid rgba(255,255,255,0.08); }
footer a:hover { color: var(--accent) !important; }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease-out; }

/* ---- PRODUCT IMAGE HOVER ---- */
.product-card:hover .card-img-top { transform: scale(1.03); }
.card-img-top { transition: transform 0.3s ease; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-section { min-height: auto; padding: 60px 0 !important; }
  .display-4    { font-size: 2rem; }
  .messages-container { max-width: 100%; }
}
