/* ============================================================
   MukTech - Tech Premium Theme (theme.css)
   Loaded AFTER style.css and bootstrap.min.css -> overrides.
   Direction: minimal-premium (Anker/Apple Store vibe).
   Palette: indigo gradient #6366f1 to #4f46e5, navy #0f172a,
            off-white #f8fafc.
   ============================================================ */

/* 1. DESIGN TOKENS (override existing :root vars) */
:root {
  --accent: #6366f1;
  --accent-dark: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #6366f1, #4f46e5);
  --bg: #f8fafc;
  --surface: #ffffff;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .04);
  --shadow-hover: 0 12px 40px rgba(99, 102, 241, .15), 0 4px 12px rgba(0, 0, 0, .08);
  --radius: 16px;
  --radius-pill: 999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body { background: var(--bg); }

/* 2. glassmorphism navbar */
.navbar-muktech {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky; top: 0; z-index: 1030;
}
.navbar-muktech .navbar-brand,
.navbar-muktech .logo-text {
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-muktech .navbar-brand {
  background: var(--accent-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.navbar-muktech .nav-link {
  color: #475569;
  transition: color var(--transition);
}
.navbar-muktech .nav-link:hover,
.navbar-muktech .nav-link:focus { color: #6366f1; }
.navbar-muktech .search-box,
.navbar-muktech input[type="search"],
.navbar-muktech .form-control[type="search"] {
  border-radius: var(--radius-pill);
  border: 1.5px solid #e2e8f0;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar-muktech .search-box:focus,
.navbar-muktech input[type="search"]:focus,
.navbar-muktech .form-control[type="search"]:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
  outline: none;
}

/* 3. PRODUCT CARD PREMIUM (override .product-card) */
.product-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
  border: none;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.product-card .img-wrap {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 1 / 1;
  padding: 20px;
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.08); }
.product-card .body { padding: 1.1rem 1.2rem 1.2rem; }
.product-card .brand-tag {
  font-size: .72rem;
  font-weight: 600;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .35rem;
}
.product-card .name {
  font-size: .92rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}
.product-card .old-price {
  font-size: .82rem;
  color: #94a3b8;
  text-decoration: line-through;
}
.product-card .stock-line {
  font-size: .76rem;
  color: #64748b;
}
.product-card .add-btn {
  background: var(--accent-gradient) !important;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: .85rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, .25);
}
.product-card .add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, .35);
}
.product-card .add-btn:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* 4. spotlight hover effect (mouse-follow radial gradient)
   JS sets --mx / --my on each .product-card during mousemove. */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%),
              rgba(99, 102, 241, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}
.product-card:hover::before { opacity: 1; }
.product-card .img-wrap,
.product-card .body {
  position: relative;
  z-index: 2;
}

/* 5. GRADIENT TEXT utility */
.gradient-text {
  background: var(--accent-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* 6. SECTION HEADINGS */
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: .4rem;
}
h2.section-title {
  background: var(--accent-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.section-sub {
  font-size: .88rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 2rem;
}

/* 7. PILL TAGS (category chips) */
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  font-size: .85rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}
.pill-tag:hover {
  border-color: #6366f1;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
}
.pill-tag.active {
  border-color: #6366f1;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
}

/* category-card -> pill override (win over style.css .category-card) */
.category-card.pill-tag {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-pill) !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #475569 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}
.category-card.pill-tag:hover {
  border-color: #6366f1 !important;
  color: #6366f1 !important;
  background: rgba(99, 102, 241, 0.05) !important;
  transform: translateY(-2px) !important;
}
.category-card.pill-tag .icon {
  font-size: 1.1rem !important;
  margin: 0 !important;
}
.category-card.pill-tag .name {
  font-size: .85rem !important;
  font-weight: 600 !important;
}

/* 8. HERO SECTION (dark gradient slides) */
.hero-slide--dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .6rem;
}
.hero-sub {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* 9. TRUST BADGES (feature indicators) */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: #475569;
}
.trust-badge i {
  font-size: 1.2rem;
  color: #6366f1;
}

/* 10. SKELETON LOADING (shimmer placeholder) */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 11. FOOTER PREMIUM */
.footer-muktech {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 2rem;
}
.footer-muktech h6 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.footer-muktech a {
  color: #94a3b8;
  transition: color 0.2s ease;
}
.footer-muktech a:hover { color: #818cf8; }
.footer-muktech .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: .8rem;
}

/* 12. PRODUCT CARD BADGES (new / discount / bestseller) */
.cbadge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: .7rem;
  font-weight: 700;
}
.cbadge-new {
  background: rgba(99, 102, 241, 0.15);
  color: #6366f1;
}
.cbadge-discount {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}
.cbadge-bestseller {
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
}

/* 13. RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  .hero-title { font-size: 1.6rem; }
  .section-title,
  h2.section-title { font-size: 1.3rem; }
  .product-grid,
  .products-grid {
    /* Bootstrap col-6 handles mobile 2-col */
  }
}

@media (max-width: 480px) {
  .product-grid,
  .products-grid {
    gap: 14px;
  }
  .product-card .body { padding: .8rem .8rem .9rem; }
  .product-card .name { font-size: .82rem; }
  .product-card .price { font-size: 1rem; }
}

/* END theme.css - MukTech Tech Premium Theme */


@media (max-width: 576px) {
    .product-card .price { font-size: 1rem; font-weight: 700; color: var(--ink, #1a1a1a); }
    .product-card .price-row { margin-top: .3rem; }
}
