/* Microlab-inspired homepage sections — Janosci */
.ml-home-achievements .stats-bar-grid { gap: 1rem; }
.ml-section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.4rem;
}
.ml-products-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.ml-products-tabs button {
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
}
.ml-products-tabs button.active {
  background: #0d1b4b;
  border-color: #0d1b4b;
  color: #fff;
}
.ml-products-pane { display: none; }
.ml-products-pane.active { display: block; }

.ml-story {
  background: linear-gradient(135deg, #0d1b4b 0%, #1e3a8a 100%);
  color: #fff;
  padding: 3rem 0;
}
.ml-story h2 { color: #fff; margin-bottom: 0.75rem; }
.ml-story p { color: rgba(255,255,255,0.85); max-width: 40rem; }
.ml-story-bullets { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.65rem; }
.ml-story-bullets li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.92rem;
}
.ml-story-bullets i { color: #fbbf24; }

.ml-enquiry {
  background: #f8fafc;
  padding: 3rem 0;
}
.ml-enquiry-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: start;
}
.ml-enquiry-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.ml-enquiry-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.95rem;
}
.ml-enquiry-card i { color: #2563eb; margin-bottom: 0.35rem; }
.ml-enquiry-card strong { display: block; font-size: 0.88rem; color: #0d1b4b; margin-bottom: 0.2rem; }
.ml-enquiry-card span { font-size: 0.78rem; color: #64748b; line-height: 1.4; }
.ml-enquiry-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.ml-enquiry-form .field { margin-bottom: 0.75rem; }
.ml-enquiry-form label { display: block; font-size: 0.78rem; font-weight: 700; color: #334155; margin-bottom: 0.3rem; }
.ml-enquiry-form input,
.ml-enquiry-form textarea,
.ml-enquiry-form select {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}
.ml-enquiry-form button {
  width: 100%;
  margin-top: 0.35rem;
  border: none;
  border-radius: 11px;
  padding: 0.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  cursor: pointer;
}

.ml-trust-strip {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.ml-trust-strip .item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; font-weight: 700; color: #334155; }
.ml-trust-strip i { color: #2563eb; }

@media (max-width: 900px) {
  .ml-enquiry-grid { grid-template-columns: 1fr; }
  .ml-enquiry-cards { grid-template-columns: 1fr; }
}

/* —— Achievements —— */
.ml-home-achievements {
  background: linear-gradient(135deg, #0d1b4b 0%, #1e3a8a 55%, #2563eb 100%);
  position: relative;
  overflow: hidden;
}
.ml-home-achievements::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(251, 191, 36, 0.18), transparent 42%),
    radial-gradient(circle at 88% 70%, rgba(56, 189, 248, 0.16), transparent 45%);
  pointer-events: none;
}
.ml-home-achievements .container { position: relative; z-index: 1; }
.ml-home-achievements .ml-section-label { color: #fbbf24; }
.ml-stat-card {
  text-align: center;
  padding: 1.1rem 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease;
}
.ml-stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}
.ml-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 0.55rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0d1b4b;
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(251, 191, 36, 0.28);
}
.ml-home-achievements .stat-num {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.ml-home-achievements .stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

/* —— Category cards —— */
.ml-cat-grid {
  gap: 1.15rem;
}
.ml-cat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e8eef7;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.ml-cat-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--cat-accent) 35%, #e2e8f0);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}
.ml-cat-icon-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 0.85rem;
}
.ml-cat-icon-glow {
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  background: radial-gradient(circle, color-mix(in srgb, var(--cat-accent) 35%, transparent), transparent 70%);
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.ml-cat-card:hover .ml-cat-icon-glow {
  opacity: 1;
  transform: scale(1.08);
}
.ml-cat-icon {
  position: relative;
  z-index: 1;
  width: 68px !important;
  height: 68px !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, var(--cat-accent), var(--cat-accent-dark)) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--cat-accent) 40%, transparent);
}
.ml-cat-icon i {
  font-size: 1.45rem !important;
  color: #fff !important;
}
.ml-cat-card .cat-card-cta {
  color: var(--cat-accent);
  font-weight: 800;
}

/* —— Purplle-style product shop sliders —— */
.ml-shop-slider-section {
  padding: 2.25rem 0 1.5rem;
  background: #fff;
}
.ml-shop-slider-block {
  margin-bottom: 2.5rem;
}
.ml-shop-slider-block:last-child {
  margin-bottom: 0.5rem;
}
.ml-shop-slider-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
  position: relative;
}
.ml-shop-slider-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1a1a;
}
.ml-shop-slider-viewall {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 700;
  color: #0d1b4b;
  text-decoration: none;
  opacity: 0.75;
}
.ml-shop-slider-viewall:hover {
  opacity: 1;
  text-decoration: underline;
}
.ml-shop-slider-wrap {
  position: relative;
  padding: 0 1.1rem;
}
.ml-shop-swiper {
  overflow: hidden;
  padding: 0.35rem 0.15rem 1rem;
}
.ml-shop-swiper .swiper-wrapper {
  align-items: stretch;
}
.ml-shop-swiper .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}
.ml-shop-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #334155;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.ml-shop-nav:hover {
  color: #0d1b4b;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  transform: translateY(-50%) scale(1.05);
}
.ml-shop-nav--prev { left: 0; }
.ml-shop-nav--next { right: 0; }

/* Shop slider product cards — equal size & aligned rows */
.ml-shop-card.janosci-product-card,
.janosci-product-card.ml-shop-card {
  border: none !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.08) !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.ml-shop-card.janosci-product-card:hover,
.janosci-product-card.ml-shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12) !important;
  border-color: transparent !important;
}
.ml-shop-card .card-img-wrap {
  flex: 0 0 180px !important;
  width: 100% !important;
  height: 180px !important;
  max-height: 180px !important;
  aspect-ratio: unset !important;
  background: #f7f8fa !important;
  background-image: url('../images/janosci-logo.png') !important;
  background-size: 48% !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 12px 12px 0 0 !important;
}
.ml-shop-card .card-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-height: 180px !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0.75rem !important;
  display: block !important;
}
.ml-shop-card .sale-badge,
.ml-shop-card .sale-badge--featured {
  display: none !important;
}
.ml-shop-card .wishlist-btn {
  width: 32px !important;
  height: 32px !important;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ml-shop-card:hover .wishlist-btn {
  opacity: 1;
}
.ml-shop-card .card-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0.7rem 0.8rem 0.85rem !important;
  text-align: left !important;
  min-height: 0 !important;
}
.ml-shop-card .card-brand {
  display: none !important;
}
.ml-shop-card .card-title {
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  line-height: 1.35 !important;
  height: 2.7em !important;
  min-height: 2.7em !important;
  max-height: 2.7em !important;
  margin: 0 0 0.4rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.ml-shop-card .card-price {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: baseline !important;
  gap: 0.3rem !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #111 !important;
  height: 1.4em !important;
  min-height: 1.4em !important;
  margin: 0 0 0.55rem !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
.ml-shop-card .card-price-now {
  font-weight: 800 !important;
  color: #111 !important;
  flex-shrink: 0;
}
.ml-shop-card .card-price-was,
.ml-shop-card .card-price del {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  margin-left: 0 !important;
  flex-shrink: 0;
}
.ml-shop-card .card-price-off {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #16a34a !important;
  flex-shrink: 0;
}
.ml-shop-card .card-actions {
  margin-top: auto !important;
  display: flex !important;
  width: 100% !important;
}
.ml-shop-card .add-to-cart-form {
  width: 100% !important;
  flex: 1 !important;
}
.ml-shop-card .btn-add-cart {
  width: 100% !important;
  background: transparent !important;
  color: #0d1b4b !important;
  border: 1.5px solid #0d1b4b !important;
  border-radius: 8px !important;
  padding: 0.55rem 0.5rem !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: none !important;
  min-height: 40px !important;
}
.ml-shop-card .btn-add-cart:hover {
  background: #0d1b4b !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .ml-shop-slider-viewall {
    position: static;
    transform: none;
  }
  .ml-shop-slider-heading {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }
  .ml-shop-nav {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  .ml-shop-nav--prev { left: 2px; }
  .ml-shop-nav--next { right: 2px; }
  .ml-shop-card .wishlist-btn { opacity: 1; }
  .ml-shop-card .card-img-wrap {
    flex-basis: 150px !important;
    height: 150px !important;
    max-height: 150px !important;
  }
  .ml-shop-card .card-img-wrap img {
    max-height: 150px !important;
  }
}

/* legacy cat-slide styles kept minimal for compatibility */
.ml-cat-slides-section {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 50%, #fff 100%);
}

/* —— Enquiry icon badges —— */
.ml-enquiry-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ml-enquiry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}
.ml-enquiry-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  margin-bottom: 0.55rem;
  color: #fff;
  font-size: 0.95rem;
}
.ml-enquiry-icon--lab { background: linear-gradient(135deg, #1769e8, #1155c7); }
.ml-enquiry-icon--edu { background: linear-gradient(135deg, #fbbf24, #d97706); }
.ml-enquiry-icon--custom { background: linear-gradient(135deg, #0A2540, #1e3a5f); }
.ml-enquiry-icon--support { background: linear-gradient(135deg, #3b82f6, #1769e8); }
.ml-enquiry-card i { margin-bottom: 0; color: inherit; }

.ml-enquiry-form button {
  background: linear-gradient(135deg, #0d1b4b, #2563eb);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ml-enquiry-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}
