.filter-tag-inner,
.products-row,
.products {
  display: flex;
  align-items: center;
}
.products {
  width: 1280px;
  height: auto;
  background-color: #fcfdfd;
  flex-direction: column;
  padding: 65px 0 0;
  box-sizing: border-box;
  gap: 30px;
}
.products-row {
  align-self: stretch;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-size: 14px;
  color: #586f47;
  font-family: Sen;
}
.product-card-inner,
.product-card {
  display: flex;
  align-items: flex-start;
}
.product-card {
  box-shadow: 1.3px 1.3px 6px rgba(250, 250, 250, 0.5);
  border-radius: 7px;
  background-color: #fff;
  justify-content: center;
}
.product-card-inner {
  height: 272px;
  width: 234px;
  flex-direction: column;
}
.product-img {
  align-self: stretch;
  flex: 1;
  border-radius: 6px 6px 0 0;
  max-width: 100%;
  overflow: hidden;
  max-height: 100%;
  object-fit: cover;
}
.footer {
  align-self: stretch;
  height: 38px;
  border-radius: 0 0 6px 6px;
  background-color: #fff;
  border-top: 2px solid #fafafa;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 15px;
}
.product-name,
.product-price {
  height: 16px;
  position: relative;
  display: inline-block;
}
.product-name {
  width: 186px;
  font-weight: 500;
}
.product-price {
  width: 19px;
  color: #00d5c0;
}
.price-amount {
  font-family: Sen;
}
.price-currency {
  font-size: 12px;
}
.pagination {
  display: flex;
  align-items: center;
  padding: 35px 0;
  gap: 19.1px;
}
.pagination-arrow {
  margin: 0;
  height: 54px;
  position: relative;
  font-size: inherit;
  font-weight: 400;
  font-family: inherit;
  display: inline-block;
  flex-shrink: 0;
}
.pagination-btn-wide {
  cursor: pointer;
  border: 1px solid #e3e3e3;
  padding: 0 9px;
  background-color: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pagination-btn-wide:hover,
.pagination-btn:hover {
  background-color: #e6e6e6;
  border: 1px solid #c9c9c9;
  box-sizing: border-box;
}
.pagination-num {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  font-family: Saira;
  color: #444;
  text-align: left;
}
.pagination-btn {
  cursor: pointer;
  border: 1px solid #e3e3e3;
  padding: 0 7px;
  background-color: #fff;
  width: 26px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.pagination-btn-active,
.pagination-btn-active:hover {
  box-sizing: border-box;
}
.pagination-btn-active {
  cursor: pointer;
  border: 1px solid #ff7b2b;
  padding: 1px 8px;
  background-color: #fff;
  width: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pagination-btn-active:hover {
  background-color: #e6e6e6;
  border: 1px solid #cc4700;
}

/* ── Tablet: up to 1280px ───────────────────────────────────────── */
@media screen and (max-width: 1280px) {
  .products {
    width: 100%;
    box-sizing: border-box;
  }
  .products-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

/* ── Tablet: up to 1024px ───────────────────────────────────────── */
@media screen and (max-width: 1024px) {
  .products {
    padding: 24px 8px 0;
  }
  .product-card-inner {
    width: 200px;
  }
}

/* ── Mobile: up to 768px ────────────────────────────────────────── */
@media screen and (max-width: 768px) {
  /* products: 2 per row */
  .products {
    padding: 20px 8px 0;
  }
  .products-row {
    gap: 10px;
    justify-content: center;
  }
  .product-card-inner {
    width: 160px;
    height: 220px;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
    justify-content: center;
  }
  .pagination-arrow {
    font-size: 22px;
    height: auto;
  }
}

/* ── Small mobile: up to 480px ─────────────────────────────────── */
@media screen and (max-width: 480px) {
  .products-row {
    gap: 8px;
  }
  .product-card-inner {
    width: 140px;
    height: 200px;
  }
  .footer {
    padding: 0 10px;
  }
  .product-name {
    width: 90px;
    font-size: 12px;
  }
  .product-price {
    font-size: 11px;
  }
  .pagination-btn,
  .pagination-btn-wide,
  .pagination-btn-active {
    padding: 0 6px;
    min-width: 24px;
  }
  .pagination-num {
    font-size: 13px;
  }
}

.product-card[data-model-url] {
  cursor: pointer;
}

.product-card[data-model-url]:focus-visible {
  outline: 2px solid #00d5c0;
  outline-offset: 3px;
}

.products-empty-message {
  width: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #586f47;
  font-family: Sen, sans-serif;
}

/* Product grid should stay Figma-like: five fixed cards per row, left aligned. */
.products {
  width: 1280px;
  max-width: 100%;
  align-items: stretch;
  padding-top: 65px;
}

.products-row {
  display: grid;
  grid-template-columns: repeat(5, 234px);
  justify-content: start;
  align-items: start;
  column-gap: 27px;
  row-gap: 30px;
  width: 100%;
}

.product-card,
.product-card-inner {
  width: 234px;
}

.product-card {
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 234px;
  flex: 0 0 234px;
  object-fit: cover;
}

.footer {
  justify-content: space-between;
  gap: 8px;
}

.product-name {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price {
  flex: 0 0 auto;
  width: auto;
  min-width: 24px;
  text-align: right;
}

.pagination [data-model-page] {
  cursor: pointer;
}

.products-empty {
  width: 1280px;
  max-width: 100%;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
}

.products-empty .products-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.products-empty-message {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}
