:root {
  --background: #fff;
  --foreground: #000;
  --border: #f0f0f0;
  --primary: #ff6385;
}

html {
  font-size: 12px;
}

body {
  font-family: sans-serif;
  font-size: 12px;
  margin: 0;

  background: var(--background);
  color: var(--foreground);
}

header {
  background-color: var(--primary);
  padding: 0.25rem;
  text-align: center;
}

header h1 {
  color: #fff;
  font-weight: 700;
  font-size: 2rem;
}

a {
  color: var(--primary);
}

input[type="checkbox"] {
  accent-color: var(--primary);
}

.pageNumbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.pagination button {
  border: 1px solid var(--border);
  background: none;
  padding: 0.75rem;
  font-size: 1rem;
}

.pagination button:hover:not(:disabled) {
  background-color: var(--border);
  cursor: pointer;
}

.pagination button.active {
  background-color: var(--primary);
}

.container {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem auto;
  padding: 0 1rem;
  gap: 2rem;
}

.filter {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter button {
  width: 100%;
}

.filter fieldset {
  border-color: var(--border);
}

.filter label {
  display: block;
  margin: 0.5rem 0;
}

.filter fieldset button {
  background: none;
  color: var(--primary);
  text-decoration: underline;
  border: 0;
  width: auto;
  display: inline;
  margin-right: 1rem;
  cursor: pointer;
  padding: 1rem;
}

.products {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.product-table {
  width: 100%;
  display: block;
}

.product-table thead {
  display: none;
}
.product-table tbody {
  display: block;
}

.product-table tr {
  display: block;
  margin-bottom: 0.5em;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.product-table td {
  display: flex;
  padding: 0.5rem;
}

.product-table td:before {
  content: attr(data-label);
  font-weight: bold;
  min-width: 7em;
}

/* .product-table tbody {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-table tbody tr {
  display: flex;
  flex: 1;
  width: 100%;
  flex-direction: column;
}

.product-table tbody tr:nth-child(odd) {
  background-color: #f7f7f7;
}

.product-table th {
  padding: 0.5rem 0;
  position: relative;
}

.product-table th,
.product-table td {
  text-align: left;
  padding: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-table thead tr th:first-child {
  width: 40%;
}
.product-table thead tr th:not(:first-child) {
  width: 12%;
} */

.product-table .thumbnail {
  margin-right: 0.5rem;
  vertical-align: middle;
  background-color: var(--background);
  border: 1px solid var(--border);
  padding: 0.25rem;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.star {
  font-size: 1.5rem;

  color: var(--border);
  background: var(--border);

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.star.half {
  background: linear-gradient(
    to right,
    var(--primary),
    var(--primary) 50%,
    var(--border) 50%,
    var(--border)
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.star.full {
  background: var(--primary);

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hover-image {
  position: absolute;
  width: 120px;
  height: auto;
  pointer-events: none;
  display: none;
  background-color: var(--background);
  border: 1px solid var(--border);
  padding: 0.25rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

footer {
  text-align: center;
  padding: 2rem;
  font-style: italic;
}

@media (min-width: 1280px) {
  .container {
    flex-wrap: nowrap;
  }

  .filter {
    flex: 1;
  }

  .product-table {
    display: table;
    border-collapse: collapse;
  }

  .product-table thead {
    display: table-header-group;
  }

  .product-table tbody {
    display: table-row-group;
  }

  .product-table th,
  .product-table td {
    text-align: left;
    padding: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-table tr {
    display: table-row;
    margin: 0;
    padding: 0;
  }

  .product-table tbody tr:nth-child(odd) {
    background-color: #f7f7f7;
  }

  .product-table td {
    display: table-cell;
    padding: 0;
  }

  .product-table td:before {
    display: none;
  }

  .product-table thead tr th:first-child {
    width: 40%;
  }
  .product-table thead tr th:not(:first-child) {
    width: 12%;
  }
}
