* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #111827;
  background: #ffffff;
}

button,
input {
  font: inherit;
}

.page-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.page-header {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #005746;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  color: #111827;
}

.page-desc {
  max-width: 680px;
  margin: 0;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.7;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid #005746;
  border-radius: 999px;
  background: #ffffff;
  color: #005746;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: #005746;
  color: #ffffff;
}

.filter-btn:focus-visible,
.page-btn:focus-visible,
.qty-btn:focus-visible,
.add-to-cart:focus-visible {
  outline: 3px solid rgba(0, 87, 70, 0.28);
  outline-offset: 2px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px 24px 24px;
  border: 1px solid #b9b9b9;
  background: #ffffff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.badge {
  position: absolute;
  top: 10px;
  left: 0;
  z-index: 3;
  min-width: 68px;
  padding: 7px 14px;
  background: #005746;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1;
}

.product-image-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.86;
  overflow: hidden;
  background: #ffffff;
}

.image-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.image-box .scene-img {
  opacity: 0;
}

.product-card:hover .image-box .product-img,
.product-card:focus-within .image-box .product-img,
.product-card.is-touch-active .image-box .product-img {
  opacity: 0;
  transform: scale(1.03);
}

.product-card:hover .image-box .scene-img,
.product-card:focus-within .image-box .scene-img,
.product-card.is-touch-active .image-box .scene-img {
  opacity: 1;
  transform: scale(1.03);
}

.category-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 14px 0 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff7f4;
  color: #005746;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-title {
  margin: 0 0 14px;
  min-height: 48px;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 400;
}

.product-title a {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-title a:hover {
  color: #005746;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  color: #005746;
  font-size: 19px;
  line-height: 1;
}

.rating-count {
  color: #111827;
  font-size: 13px;
  margin-left: 3px;
}

.product-bottom {
  margin-top: auto;
}

.price-qty-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.price {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
}

.shipping {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #111827;
  font-size: 11px;
  font-style: italic;
}

.shipping svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #8cc63f;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.qty-input {
  width: 38px;
  height: 38px;
  border: 1px solid #b9b9b9;
  text-align: center;
  font-size: 18px;
  color: #111827;
}

.add-to-cart {
  width: 100%;
  height: 46px;
  border: 0;
  background: #005746;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease;
}

.add-to-cart:hover {
  background: #003f34;
}

.empty-state {
  margin: 40px 0;
  padding: 28px;
  border: 1px dashed #b9b9b9;
  color: #4b5563;
  text-align: center;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination[hidden] {
  display: none;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #c6c6c6;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-btn:hover:not(:disabled),
.page-btn.is-active {
  border-color: #005746;
  background: #005746;
  color: #ffffff;
}

.page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 900px) {
  .page-wrap {
    padding: 0 18px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .page-wrap {
    margin: 24px auto;
    padding: 0 12px;
  }

  .page-header {
    margin-bottom: 18px;
  }

  .category-filter {
    gap: 8px;
    margin-bottom: 18px;
  }

  .filter-btn {
    min-height: 36px;
    padding: 8px 13px;
    font-size: 13px;
  }

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

  .product-card {
    padding: 14px 16px 20px;
  }

  .image-box {
    aspect-ratio: 1 / 0.82;
  }

  .product-title {
    min-height: 46px;
    font-size: 16px;
  }

  .price-qty-row {
    gap: 10px;
  }
}
