/* =========================
   RESET + THEME
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000;
  --white: #fff;
  --gray: #666;
  --light-gray: #f5f5f5;
  --border: #e5e5e5;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

/* =========================
   PAGE LAYOUT
========================= */
.product-list-page {
  max-width: 1400px;
  margin: auto;
  padding: 96px 24px 80px;
}

.product-list-page h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 40px;
}

/* =========================
   PRODUCTS GRID
========================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

/* =========================
   PRODUCT CARD
========================= */
.product-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

/* IMAGE */
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 14px;
  background: var(--light-gray);
  border-radius: 14px;
  padding: 12px;
}

/* TITLE */
.product-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* PRICE */
.product-card span {
  font-size: 15px;
  font-weight: 700;
}

/* =========================
   HOVER EFFECT
========================= */
.product-card:hover img {
  transform: scale(1.05);
  transition: transform .3s ease;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .product-list-page {
    padding: 88px 16px 60px;
  }

  .product-list-page h1 {
    font-size: 26px;
    text-align: center;
  }

  .products-grid {
    gap: 18px;
  }

  .product-card img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card img {
    height: 130px;
  }

  .product-card h3 {
    font-size: 13px;
  }

  .product-card span {
    font-size: 14px;
  }
}


.filter-panel {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 260px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 1000;
}

.filter-group {
  margin-bottom: 14px;
}

.filter-group h4 {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.filter-group label {
  display: block;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 4px;
}

#clearFilters {
  width: 100%;
  padding: 8px;
  border: none;
  background: #000;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

#filterBtn {
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
}
.nav-actions {
  position: relative;
}
@media (max-width: 768px) {
  .filter-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
  }
}
@media (hover: none) {
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }
}
@media (max-width: 480px) {
  .product-card img {
    padding: 8px;
  }
}
