.ff-inventory {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.ff-inventory-filter {
  background: #173d2d;
  border-radius: 1.25rem;
  box-shadow: 0 22px 60px rgba(23, 61, 45, 0.14);
  color: #fff;
  margin-bottom: 2.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.ff-inventory-filter__heading {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.ff-inventory-filter__heading strong,
.ff-inventory-filter__eyebrow {
  display: block;
}

.ff-inventory-filter__heading strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.1;
}

.ff-inventory-filter__eyebrow {
  color: #f0b44d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.ff-inventory-filter__updated {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  max-width: 260px;
  text-align: right;
}

.ff-inventory-filter__fields {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
}

.ff-inventory-filter label > span {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.ff-inventory-filter input,
.ff-inventory-filter select,
.ff-inventory-filter button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.65rem;
  box-sizing: border-box;
  font: inherit;
  min-height: 3rem;
  width: 100%;
}

.ff-inventory-filter input,
.ff-inventory-filter select {
  background: #fff;
  color: #17211c;
  padding: 0.65rem 0.8rem;
}

.ff-inventory-filter button {
  background: #d96a2b;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  padding: 0.65rem 1.3rem;
  width: auto;
}

.ff-inventory-filter button:hover,
.ff-inventory-filter button:focus-visible {
  background: #bd5722;
}

.ff-inventory__grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ff-product-card {
  background: #fff;
  border: 1px solid #dde3dc;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ff-product-card:hover {
  border-color: #bdc9bf;
  box-shadow: 0 16px 40px rgba(23, 61, 45, 0.1);
  transform: translateY(-2px);
}

.ff-product-card__image {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #f7f1e5;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.ff-product-card__image img {
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  width: 100%;
}

.ff-product-card__placeholder {
  align-items: center;
  background: #173d2d;
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  font-weight: 700;
  height: 5rem;
  justify-content: center;
  width: 5rem;
}

.ff-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem;
}

.ff-product-card__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: space-between;
}

.ff-stock {
  align-items: center;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 0.4rem;
}

.ff-stock::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 0.5rem;
  width: 0.5rem;
}

.ff-stock--in {
  color: #267243;
}

.ff-stock--low {
  color: #a66313;
}

.ff-stock--out {
  color: #8a4a43;
}

.ff-product-card__sku {
  color: #65736b;
  font-size: 0.7rem;
}

.ff-product-card__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0.85rem 0 0;
}

.ff-product-card__title a {
  color: #173d2d;
  text-decoration: none;
}

.ff-product-card__description {
  color: #65736b;
  font-size: 0.86rem;
  line-height: 1.55;
  margin-top: 0.65rem;
}

.ff-product-card__footer {
  align-items: flex-end;
  border-top: 1px solid #edf0ec;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
}

.ff-product-card__price {
  color: #17211c;
  font-size: 1.05rem;
  font-weight: 800;
}

.ff-product-card__price del {
  color: #65736b;
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
}

.ff-product-card__link {
  color: #d96a2b;
  font-size: 0.8rem;
  font-weight: 800;
}

.ff-inventory__empty {
  align-items: center;
  background: #f7f1e5;
  border: 1px solid #dde3dc;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.ff-inventory__empty span {
  color: #65736b;
  margin-top: 0.25rem;
}

.ff-inventory__pagination {
  margin-top: 2rem;
}

.ff-inventory__pagination .page-numbers {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ff-inventory__pagination a,
.ff-inventory__pagination span {
  align-items: center;
  border: 1px solid #dde3dc;
  border-radius: 999px;
  display: flex;
  justify-content: center;
  min-height: 2.5rem;
  min-width: 2.5rem;
  padding: 0.25rem 0.75rem;
  text-decoration: none;
}

.ff-inventory__pagination .current {
  background: #173d2d;
  border-color: #173d2d;
  color: #fff;
}

.ff-inventory__notice {
  background: #f7f1e5;
  border-left: 4px solid #d96a2b;
  padding: 1rem;
}

@media (max-width: 980px) {
  .ff-inventory-filter__fields {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 600px) {
  .ff-inventory-filter__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .ff-inventory-filter__updated {
    text-align: left;
  }

  .ff-inventory-filter__fields,
  .ff-inventory__grid {
    grid-template-columns: 1fr;
  }

  .ff-inventory-filter button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-product-card {
    transition: none;
  }
}

