﻿/* ============================================
   PRODUCTS PAGE — redesigned
   ============================================ */

.products-page {
  padding-top: 22px;
  padding-bottom: 80px;
}

.products-page-head {
  max-width: 860px;
}

.products-page-head h1 {
  margin: 0 0 10px;
  color: #20262e;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.035em;
}

.products-page-head p {
  margin: 0;
  color: #68717c;
  font-size: 16px;
  line-height: 1.7;
}



/* ── Two-col layout ── */
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

/* ── Sidebar ── */
.products-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

/* Filter section */
.products-filter-section {
  padding: 20px 18px 18px;
  border-bottom: 1px solid #ebebeb;
}

.products-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #ebebeb;
}

.products-filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.products-filter-field label {
  font-size: 12px;
  font-weight: 700;
  color: #444444;
  margin: 0;
}

.products-filter-field input,
.products-filter-field select {
  width: 100%;
  height: 42px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  padding: 0 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.products-filter-field input:focus,
.products-filter-field select:focus {
  border-color: #111111;
}

.products-filter-field input::placeholder {
  color: #b0b0b0;
}

.products-m2-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.products-m2-row .products-filter-field {
  margin-bottom: 0;
}

.products-filter-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
}

.products-filter-submit {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.15s;
}

.products-filter-submit:hover { background: #e8a50f; }

.products-filter-reset {
  width: 42px;
  height: 42px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #ffffff;
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.products-filter-reset:hover {
  border-color: #e53535;
  color: #e53535;
}

/* Category section */
.products-cat-section {
  padding: 18px 18px 20px;
}

.products-category-group {
  margin-top: 4px;
}

.products-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.products-category-link.child {
  min-height: 36px;
  margin-left: 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #666666;
}

.products-category-link small {
  min-width: 26px;
  height: 22px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #888888;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.products-category-link:hover {
  background: #f5f5f5;
  color: #111111;
}

.products-category-link.active {
  background: #111111;
  color: #ffffff;
}

.products-category-link.active small {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

/* ── Listing ── */
.products-listing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.products-listing-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  margin: 0;
  letter-spacing: -0.2px;
}

/* ── Product Card — styles live in home.css (shared) ── */


/* ── Pagination ── */
.products-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.products-pagination a {
  min-width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #333333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.15s;
}

.products-pagination a:hover,
.products-pagination a.active {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

/* ── Empty ── */
.products-empty {
  padding: 52px 32px;
  text-align: center;
  border: 1px dashed #dddddd;
  border-radius: 12px;
}

.products-empty h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 10px;
}

.products-empty p {
  color: #666666;
  font-size: 15px;
  margin: 0 0 24px;
}

.products-empty a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  background: #111111;
  color: #ffffff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
  }

  .products-filter-section,
  .products-cat-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 16px;
  }

  .products-sidebar-title {
    grid-column: 1 / -1;
  }

  .products-m2-row {
    grid-column: span 1;
    grid-template-columns: 1fr 1fr;
  }

  .products-filter-field { grid-column: span 1; }
  .products-filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
  .products-page { padding-top: 14px; padding-bottom: 52px; }

  .products-filter-section,
  .products-cat-section {
    grid-template-columns: 1fr;
  }

  .products-listing-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .products-listing-head h2 { font-size: 18px; }
}
