/* ==============================
   Products Main
   ============================== */
.products_main {
  padding: 15.4rem 0 19.2rem;
}
.products_main .head {
  padding-bottom: 0.7rem;
}
.products_main .head h2 {
  font-size: 5rem;
  font-weight: 600;
  color: var(--title);
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}
.products_main .term_desc {
  margin-top: 1.6rem;
  font-size: 1.8rem;
  font-weight: 400;
  color: #666;
  line-height: 2.8rem;
  max-width: 70rem;
}
.products_main .term_desc p {
  margin: 0;
}

/* ==============================
   Category Buttons
   ============================== */
.cat_btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
}
.cat_btn {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--title);
  text-transform: capitalize;
  border: 1px solid #b7b7b7;
  border-radius: 0.8rem;
  height: 5rem;
  line-height: 4.8rem;
  padding: 0 2.4rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}
.cat_btn:hover {
  background-color: var(--title);
  border-color: var(--title);
  color: #fff;
}
.cat_btn.active {
  background-color: var(--title);
  border-color: var(--title);
  color: #fff;
}

/* ==============================
   Product List Grid
   ============================== */
.products_main .list {
  margin-top: 5.6rem;
}
.products_main .list ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(35rem, 100%), 1fr));
  gap: 4rem 2.0768375%;
}

/* ==============================
   Product Card (shared with home)
   ============================== */
.product_card {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
  border: 1px solid #ecedf1;
  display: block;
}
.product_card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
  transform: translateY(-4px);
}
.product_card .img {
  width: 100%;
  aspect-ratio: 380/270;
  overflow: hidden;
  background-color: #F8F8F8;
}
.product_card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product_card:hover .img img {
  transform: scale(1.04);
}
.product_card_body {
  padding: 2.6rem 3rem;
}
.card_cat {
  font-family: 'oswald', sans-serif;
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}
.product_card_body h3 {
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--title);
  text-transform: uppercase;
  margin: 0 0 1.3rem;
}
.product_card_body p {
  font-size: 1.6rem;
  color: #6b6e78;
  line-height: 2.3rem;
  margin: 0 0 2.6rem;
}
.card_spec {
  font-family: 'oswald', sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: #6b6e78;
  border-top: 1px solid #ecedf1;
  padding-top: 1.6rem;
}

/* ==============================
   Pagination
   ============================== */
.products_main nav.navigation {
  margin-top: 6rem;
}

/* ==============================
   Responsive: Tablet
   ============================== */
@media screen and (max-width: 1024px) {
  .products_main .head h2 {
    font-size: 3.6rem;
  }
  .products_main .list ul {
    grid-template-columns: repeat(auto-fill, minmax(min(30rem, 100%), 1fr));
    gap: 3rem 2%;
  }
}

/* ==============================
   Responsive: Mobile
   ============================== */
@media screen and (max-width: 768px) {
  .products_main {
    padding: 50px 0;
  }
  .products_main .head {
    padding: 0;
  }
  .products_main .head h2 {
    font-size: 24px;
    line-height: 1.4;
  }
  .products_main .term_desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.8;
  }
  .cat_btns {
    gap: 8px;
    margin-top: 20px;
    width: 100%;
  }
  .cat_btn {
    font-size: 13px;
    height: 40px;
    line-height: 38px;
    padding: 0 16px;
    border-radius: 6px;
  }
  .products_main .list {
    margin-top: 30px;
  }
  .products_main .list ul {
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 20px 16px;
  }
  .product_card_body {
    padding: 18px 20px;
  }
  .product_card_body h3 {
    font-size: 18px;
    margin: 0 0 8px;
  }
  .product_card_body p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 14px;
  }
  .card_cat {
    font-size: 13px;
  }
  .card_spec {
    font-size: 14px;
    padding-top: 12px;
  }
  .products_main nav.navigation {
    margin-top: 40px;
  }
}

/* ==============================
   Responsive: Small Mobile
   ============================== */
@media screen and (max-width: 576px) {
  .cat_btns {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .cat_btns::-webkit-scrollbar {
    display: none;
  }
  .cat_btn {
    font-size: 12px;
    height: 36px;
    line-height: 34px;
    padding: 0 14px;
    flex-shrink: 0;
  }
  .products_main .list ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 10px;
  }
}
