/* ==========================================================================
   EL-MET Subcategory Page Styles
   ========================================================================== */

/* HERO BANNER - matches products page standard */
.subcat-hero {
  position: relative;
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
}
.subcat-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.subcat-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subcat-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.subcat-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.subcat-hero-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.subcat-hero h1 {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 300;
  color: #fff;
  line-height: 1.15;
}

/* PRODUCT LIST */
.subcat-list-section {
  padding: 120px 0;
  background: #f5f7fa;
  background: #fff;
}
a.subcat-item { text-decoration:none; color:inherit; }
a.subcat-item:hover { color:inherit; }
.subcat-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 40px;
  background: #fff;
  overflow: hidden;
  border: 1px solid #ccc;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.subcat-item:hover {
  border-color: #2164B9; box-shadow: 0 4px 16px rgba(33,100,185,0.15);
}
.subcat-item:last-child {
  margin-bottom: 0;
}
.subcat-item--reverse {
  direction: rtl;
}
.subcat-item--reverse > * {
  direction: ltr;
}
.subcat-item-img {
  height: 400px;
  overflow: hidden;
}
.subcat-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.subcat-item:hover .subcat-item-img img {
  transform: scale(1.04);
}
.subcat-item-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px 60px;
  background: #f5f5f5;
}
.subcat-item-body h3 {
  font-size: 26px;
  font-weight: 700;
  color: #2D2727;
  margin-bottom: 16px;
  line-height: 1.3;
}
.subcat-item-body p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
}
.subcat-btn {
  margin-top: 30px;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #2D2727;
  text-decoration: none;
  border-bottom: 2px solid #2D2727;
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
  cursor: pointer;
  align-self: flex-start;
}
.subcat-btn:hover {
  color: #555;
  border-color: #555;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .subcat-item-body {
    padding: 36px 40px;
  }
  .subcat-item-body h3 {
    font-size: 22px;
  }
}
@media (max-width: 768px) {
  .subcat-hero {
    height: 40vh;
    min-height: 280px;
    padding-bottom: 40px;
  }
  .subcat-list-section {
    padding: 40px 0;
  }
  .subcat-item {
    grid-template-columns: 1fr;
    margin-bottom: 30px;
  }
  .subcat-item--reverse {
    direction: ltr;
  }
  .subcat-item-img {
    height: 260px;
  }
  .subcat-item-body {
    padding: 28px 24px;
  }
}
