/* Requires assets/css/home.css for shared header, footer and variables. */
.products-page {
  color: var(--ah-ink);
  background: var(--ah-cream);
}
.products-page__hero {
  padding: 38px 0 46px;
  border-bottom: 1px solid var(--ah-line);
  background: linear-gradient(112deg, #fdfaf3 0%, #f0f3eb 100%);
}
.products-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 27px;
  color: var(--ah-muted);
  font-size: 0.81rem;
  font-weight: 700;
}
.products-breadcrumb a {
  color: var(--ah-olive);
  text-decoration: none;
}
.products-breadcrumb a:hover {
  color: var(--ah-terracotta);
}
.products-breadcrumb i {
  color: #a4aea6;
  font-size: 0.65rem;
}
.products-page__hero-content {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.products-page__hero h1 {
  margin: 0;
  color: var(--ah-olive-deep);
  font-family: Marcellus, Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 400;
  line-height: 1;
}
.products-page__hero p {
  max-width: 500px;
  margin: 13px 0 0;
  color: var(--ah-muted);
  font-size: 1.03rem;
}
.products-page__catalogue {
  padding: 32px 0 84px;
}
.products-page__search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  margin-bottom: 30px;
}
.products-search {
  position: relative;
  display: flex;
  width: min(100%, 580px);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--ah-line);
  border-radius: 12px;
  background: var(--ah-paper);
}
.products-search > i {
  margin-left: 15px;
  color: var(--ah-muted);
}
.products-search input {
  width: 100%;
  min-width: 0;
  height: 51px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--ah-ink);
  background: transparent;
}
.products-search input::placeholder {
  color: #99a199;
}
.products-search:focus-within {
  border-color: var(--ah-olive);
  box-shadow: 0 0 0 4px rgba(97, 116, 93, 0.1);
}
.products-search button {
  align-self: stretch;
  padding: 0 20px;
  border: 0;
  color: #fff;
  background: var(--ah-olive);
  font-size: 0.84rem;
  font-weight: 800;
}
.products-search button:hover {
  background: var(--ah-terracotta);
}
.products-page__reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ah-olive-deep);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.products-page__reset:hover {
  color: var(--ah-terracotta);
}
.products-categories {
  padding: 21px;
  border: 1px solid var(--ah-line);
  border-radius: 15px;
  background: var(--ah-paper);
}
.products-categories__heading {
  margin-bottom: 13px;
}
.products-categories__heading span {
  color: var(--ah-terracotta);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.products-categories__heading h2 {
  margin: 4px 0 0;
  color: var(--ah-olive-deep);
  font-family: Marcellus, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
}
.products-categories__toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
}
.products-categories__toggle i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ah-terracotta);
  font-family: "bootstrap-icons";
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}
.products-categories__toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}
.products-categories__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid #eee8dd;
  color: var(--ah-ink);
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
}
.products-categories__link i {
  color: #a7b0a8;
  font-size: 0.78rem;
}
.products-categories__link:hover,
.products-categories__link.is-active {
  color: var(--ah-terracotta);
}
.products-categories__link:hover i,
.products-categories__link.is-active i {
  color: var(--ah-terracotta);
  transform: translateX(3px);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.catalogue-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ah-line);
  border-radius: 15px;
  background: var(--ah-paper);
  transition: 0.22s ease;
}
.catalogue-product-card:hover {
  border-color: #d4c4af;
  box-shadow: 0 14px 29px rgba(55, 72, 57, 0.11);
  transform: translateY(-4px);
}
.catalogue-product-card__image {
  position: relative;
  display: grid;
  min-height: 224px;
  place-items: center;
  padding: 18px;
  background: #fff;
}
.catalogue-product-card__image > img:not(.catalogue-product-card__label) {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
}
.catalogue-product-card__label {
  position: absolute;
  z-index: 1;
  top: 11px;
  left: 11px;
  max-width: 68px;
  max-height: 42px;
  object-fit: contain;
}
.catalogue-product-card__body {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 16px;
}
.catalogue-product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ah-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.catalogue-product-card h2 {
  min-height: 58px;
  margin: 10px 0 15px;
  color: var(--ah-ink);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.42;
}
.catalogue-product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #eee8dd;
}
.catalogue-product-card__footer strong {
  color: var(--ah-olive-deep);
  font-size: 0.8rem;
}
.catalogue-product-card__footer > span {
  color: var(--ah-muted);
  font-size: 0.73rem;
  font-weight: 700;
}
.catalogue-product-card__footer a {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ah-terracotta);
  text-decoration: none;
}
.catalogue-product-card__footer a:hover {
  background: var(--ah-olive);
  transform: rotate(4deg);
}
.products-empty-state {
  padding: 65px 25px;
  border: 1px dashed #cfd8d1;
  border-radius: 15px;
  background: var(--ah-paper);
  text-align: center;
}
.products-empty-state > i {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 17px;
  place-items: center;
  border-radius: 50%;
  color: var(--ah-terracotta);
  background: #fbede7;
  font-size: 1.45rem;
}
.products-empty-state h2 {
  margin: 0;
  color: var(--ah-olive-deep);
  font-family: Marcellus, Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
}
.products-empty-state p {
  margin: 8px 0 19px;
  color: var(--ah-muted);
}
.products-empty-state a {
  color: var(--ah-terracotta);
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 992px) {
  .products-categories {
    position: sticky;
    top: calc(var(--ah-header-height) + 24px);
    max-height: calc(100vh - var(--ah-header-height) - 48px);
    overflow-y: auto;
  }
}

@media (max-width: 1199.98px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .products-categories {
    margin-bottom: 4px;
  }
  .products-categories__menu {
    padding-top: 5px;
  }
  .products-categories__link {
    display: inline-flex;
    width: 50%;
    padding-right: 18px;
  }
}
@media (max-width: 767.98px) {
  .products-page__hero {
    padding: 26px 0 32px;
  }
  .products-page__hero-content {
    display: block;
  }
  .products-page__search-row {
    align-items: stretch;
    flex-direction: column;
  }
  .products-search {
    width: 100%;
  }
}
@media (max-width: 575.98px) {
  .products-page__catalogue {
    padding: 22px 0 55px;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .products-categories {
    padding: 17px;
  }
  .products-categories__menu {
    padding-top: 4px;
  }
  .products-categories__link {
    width: 100%;
  }
  .catalogue-product-card {
    border-radius: 12px;
  }
  .catalogue-product-card__image {
    min-height: 145px;
    padding: 10px;
  }
  .catalogue-product-card__image > img:not(.catalogue-product-card__label) {
    height: 125px;
  }
  .catalogue-product-card__body {
    padding: 12px;
  }
  .catalogue-product-card__meta {
    display: block;
    line-height: 1.55;
  }
  .catalogue-product-card h2 {
    min-height: 74px;
    margin: 8px 0 11px;
    font-size: 0.8rem;
  }
  .catalogue-product-card__footer strong {
    font-size: 0.69rem;
  }
  .catalogue-product-card__footer > span {
    font-size: 0.64rem;
  }
}
