.products-page {
  overflow: auto;
  height: auto;
  background: #f9f9f9;
}

.products-page .header {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links .link {
  color: #555;
  font-weight: 500;
  font-size: 15px;
}

.nav-links .link.active {
  color: var(--brand-dark-color);
}

.sign-in-btn {
  width: auto;
  padding: 0 20px;
  height: 38px;
  font-size: 14px;
}

.products-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.products-heading {
  font-size: 28px;
  white-space: nowrap;
}

.search-input {
  max-width: 320px;
  height: 42px;
  padding: 0 14px;
}

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #555;
  transition: all 0.15s;
}

.tab:hover {
  border-color: var(--brand-primary-color);
  color: var(--brand-dark-color);
}

.tab.active {
  background: var(--brand-primary-color);
  border-color: var(--brand-primary-color);
  color: #203801;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ebebeb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}

.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.product-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.product-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-dark-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-text-color);
  letter-spacing: -0.2px;
}

.product-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.4;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-text-color);
  white-space: nowrap;
}

.add-btn {
  width: auto;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  flex-shrink: 0;
}

.no-results {
  text-align: center;
  color: #999;
  font-size: 16px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }

  .products-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-input {
    max-width: 100%;
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .product-img {
    height: 120px;
    font-size: 52px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }

  .products-main {
    padding: 20px 16px 40px;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .add-btn {
    width: 100%;
  }
}
