/* =====================================================
   STANLEY FISHER — PRODUCTS SEARCH
   CLEAN STABLE BUILD
   ===================================================== */

/* ================================
   GLOBAL
================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}


/* ================================
   LAYOUT
================================ */

.products-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.products-main {
  min-width: 0;
}


/* ================================
   SIDEBAR
================================ */

.products-sidebar {
  position: sticky;
  top: 120px;
}

.filter-group {
  margin-bottom: 1.8rem;
}

.filter-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0f1f2e;
}

.filter-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cfd6de;
  font-size: 0.85rem;
  background: #ffffff;
}


/* ================================
   TOOLBAR
================================ */

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}


/* ================================
   GRID
================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  width: 100%;
}


/* ================================
   PRODUCT CARD
================================ */

.products-card {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  border: 1px solid #e1e6ec;
  padding: 1.4rem;
  background: #ffffff;
  min-height: 210px;
  width: 100%;
}


/* ================================
   IMAGE
================================ */

.products-card img {
  width: 90px;
  height: 60px;
  min-width: 90px;
  object-fit: contain;
}


/* ================================
   CONTENT
================================ */

.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.product-series {
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #7a8794;
  margin-bottom: 0.35rem;
}

.product-model {
  font-size: 1rem;
  font-weight: 600;
  color: #0f1f2e;
  margin-bottom: 0.6rem;
}

.products-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #3f4c59;
  margin-bottom: 0.9rem;
}


/* ================================
   BUTTON
================================ */

.products-card .btn {
  margin-top: auto;
  font-size: 0.8rem;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid #0f1f2e;
  background: transparent;
  font-weight: 600;
}


/* ================================
   PAGINATION
================================ */

.products-pagination {
  margin-top: 3rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.products-pagination button {
  padding: 0.55rem 0.9rem;
  border: 1px solid #cfd6de;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
  min-width: 36px;
  transition: all 0.2s ease;
}

.products-pagination button:hover {
  background: #eef3f7;
}

.products-pagination button.active-page {
  background: #1c5769 !important;
  color: #ffffff !important;
  border-color: #1c5769 !important;
  font-weight: 600;
}


/* ================================
   RESPONSIVE
================================ */

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

@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: relative;
    top: auto;
    margin-bottom: 2rem;
  }
}

@media (max-width: 650px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-card {
    flex-direction: column;
  }
}