:root {
  --primary: #1a56db;
  --primary-dark: #1040b0;
  --accent: #1D2B43;
  --dark: #0f172a;
  --dark2: #1e293b;
  --text: #334155;
  --light: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--white);
}

/* ── PAGE HERO ── */
.products-hero {
  background: linear-gradient(
    135deg,
    var(--dark) 0%,
    var(--dark2) 60%,
    #1a3a6e 100%
  );
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.products-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 80% at 50% 50%,
      rgba(26, 86, 219, 1.05) 0%,
      transparent 60%
    ),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.products-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.products-hero .container {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243, 245, 252);
  border: 1px solid rgb(243, 244, 245);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.products-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.products-hero h1 span {
  color: var(--accent);
}

.products-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  line-height: 1.75;
}

/* Breadcrumb */
.breadcrumb-strip {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumb-strip .bc-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
}

.breadcrumb-strip .bc-list li a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-strip .bc-list li a:hover {
  text-decoration: underline;
}

.breadcrumb-strip .bc-list li.active {
  color: var(--text);
}

.breadcrumb-strip .bc-list .sep {
  color: #94a3b8;
  font-size: 11px;
}

/* ── FILTER TABS ── */
.filter-section {
  padding: 50px 0 30px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-tab {
  padding: 9px 22px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: "Poppins", sans-serif;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.3);
}

/* ── CATEGORY SECTIONS ── */
.products-section {
  padding: 20px 0 60px;
}

.category-block {
  margin-bottom: 70px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), #4f8ef7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

.category-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}

.category-header .cat-count {
  margin-left: auto;
  background: var(--light);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* ── PRODUCT CARDS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  group: true;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  border-color: rgba(26, 86, 219, 0.25);
}

.product-card:hover .card-overlay {
  opacity: 1;
}

.product-card:hover .card-img img {
  transform: scale(1.07);
}

.product-card:hover .card-arrow {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Image */
.card-img {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

/* Placeholder for missing images */
.card-img .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #94a3b8;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 86, 219, 0.75) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.overlay-btn {
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Card tag */
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

/* Card Body */
.card-body-inner {
  padding: 16px 18px 18px;
}

.card-body-inner h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.card-body-inner p {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 14px;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-grades {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.grade-pill {
  font-size: 10px;
  font-weight: 600;
  background: var(--light);
  color: var(--primary);
  border: 1px solid rgba(26, 86, 219, 0.2);
  padding: 2px 8px;
  border-radius: 50px;
}

.card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 12px;
  transition: all 0.25s;
  flex-shrink: 0;
  text-decoration: none;
}

/* ── STATS STRIP ── */
.stats-strip {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  padding: 50px 0;
  margin: 10px 0 0;
}

.stat-item {
  text-align: center;
  padding: 10px 20px;
}

.stat-num {
  font-family: "Montserrat", sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  height: 60px;
  align-self: center;
}

/* ── CTA ── */
.ab-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 60px 0;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer h3,
.footer h5 {
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  line-height: 2.4;
  transition: color 0.2s;
  display: block;
}

.footer-link:hover {
  color: var(--accent);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .card-img {
    height: 150px;
  }

  .stat-divider {
    display: none;
  }

  .category-header h2 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animate on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
