/* ==========================================================================
   MODULE: products  (scope: .m-products)
   ৪-কলাম কমপ্যাক্ট গ্রিড আর্কিটেকচার (Single Viewport Optimized)
   ========================================================================== */

.m-products {
  --section-y: clamp(1.2rem, 2.2vh, 2rem);
}

.m-products .section-head {
  margin-bottom: clamp(0.75rem, 1.6vh, 1.25rem);
}

.m-products .section-head .section-title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.m-products .section-head .section-lead {
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ---------------- 1. 4-Column Responsive Grid ---------------- */
.m-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.6rem, 0.9vw, 0.95rem);
  align-items: stretch;
}

@media (max-width: 1200px) {
  .m-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 640px) {
  .m-products-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* ---------------- 2. Individual Product Card ---------------- */
.m-prods-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(13, 44, 34, 0.09);
  border-radius: 14px;
  padding: clamp(0.55rem, 0.75vw, 0.75rem);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  overflow: hidden;
  isolation: isolate;
  height: 100%;
}

.m-prods-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 28px -10px rgba(13, 44, 34, 0.12);
}

/* ---------------- 3. Visual Media Container ---------------- */
.m-prods-card__visual {
  position: relative;
  aspect-ratio: 16 / 7.8;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #042017;
  margin-bottom: 0.55rem;
  flex-shrink: 0;
}

.m-prods-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-prods-card:hover .m-prods-card__img {
  transform: scale(1.06);
}

/* Top Badge & Number */
.m-prods-card__top-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(5, 21, 16, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.m-prods-card__num {
  font-family: var(--font-mono, monospace);
  font-size: 0.62rem;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.02em;
}

.m-prods-card__tag {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f1f5f9;
}

/* Stat Pill Overlay */
.m-prods-card__stat-pill {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: right;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
  transition: transform 0.25s ease;
}

.m-prods-card:hover .m-prods-card__stat-pill {
  transform: translateY(-2px);
}

.m-prods-card__stat-pill strong {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #042017;
  line-height: 1.1;
}

.m-prods-card__stat-pill span {
  display: block;
  font-size: 0.52rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

/* ---------------- 4. Content Body ---------------- */
.m-prods-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.m-prods-card__title {
  font-family: var(--font-display, inherit);
  font-size: 0.88rem;
  font-weight: 700;
  color: #092c20;
  line-height: 1.2;
  margin: 0 0 0.22rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-prods-card__lead {
  font-size: 0.7rem;
  line-height: 1.35;
  color: #64748b;
  margin: 0 0 0.42rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Specs List */
.m-prods-card__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-grow: 1;
}

.m-prods-card__specs li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: #334155;
  line-height: 1.25;
  padding-bottom: 0;
  border-bottom: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-prods-card__specs li span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-prods-card__specs li svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Card Footer & Button */
.m-prods-card__footer {
  margin-top: auto;
  padding-top: 0.35rem;
}

.m-prods-card__btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(13, 44, 34, 0.12);
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.25s ease;
}

.m-prods-card__btn:hover {
  background: #0d2c22;
  color: #ffffff;
  border-color: #0d2c22;
}

.m-prods-card__btn svg {
  transition: transform 0.25s ease;
}

.m-prods-card__btn:hover svg {
  transform: translateX(3px);
}

/* ---------------- 5. Featured 8th Showroom Card ---------------- */
.m-prods-card--featured {
  background: linear-gradient(145deg, #092c20 0%, #041812 100%);
  border-color: rgba(52, 211, 153, 0.38);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.35);
}

.m-prods-card--featured:hover {
  border-color: #34d399;
  box-shadow: 0 18px 40px -10px rgba(16, 185, 129, 0.45);
}

.m-prods-card--featured .m-prods-card__title {
  color: #ffffff;
}

.m-prods-card--featured .m-prods-card__lead {
  color: rgba(255, 255, 255, 0.82);
}

.m-prods-card--featured .m-prods-card__specs li {
  color: rgba(255, 255, 255, 0.9);
  border-bottom: none;
}

.m-prods-card--featured .m-prods-card__specs li svg {
  color: #34d399;
}

.m-prods-card--featured .m-prods-card__btn--featured {
  background: #10b981;
  color: #ffffff;
  border: 1px solid #10b981;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.m-prods-card--featured .m-prods-card__btn--featured:hover {
  background: #059669;
  border-color: #059669;
}
