.products-catalog-page {
  position: relative;
  isolation: isolate;
}

.products-catalog-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--products-page-bg);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.78;
}

.products-catalog-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(253, 248, 239, 0.64) 0%, rgba(245, 236, 222, 0.38) 100%);
}

.products-catalog-page > * {
  position: relative;
  z-index: 1;
}

.products-catalog-shell {
  width: min(calc(100vw - clamp(36px, 3vw, 96px)), 2200px);
  margin: clamp(24px, 2vw, 34px) auto clamp(44px, 4vw, 66px);
  display: grid;
  gap: clamp(18px, 1.8vw, 28px);
}

.products-catalog-shell .section-panel {
  padding: clamp(22px, 2vw, 34px);
  border: 1px solid rgba(111, 78, 48, 0.18);
  border-radius: 8px;
  background: rgba(251, 246, 237, 0.72);
  box-shadow: 0 18px 40px rgba(61, 38, 21, 0.12);
  backdrop-filter: blur(3px);
}

.products-catalog-hero {
  text-align: center;
  justify-items: center;
}

.products-catalog-hero__brand {
  display: block;
  width: clamp(122px, 9vw, 172px);
  height: auto;
}

.products-catalog-hero__eyebrow,
.product-card__eyebrow,
.product-single__eyebrow,
.product-card__meta,
.product-single__taxonomy-item span {
  margin: 0;
  color: #87552c;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.products-catalog-hero h1,
.product-card h2,
.product-card h3,
.product-single h1,
.product-gallery h2,
.product-description h2,
.related-products h2,
.products-empty-state h2 {
  margin: 0;
  color: #4d2c19;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  line-height: 0.98;
}

.products-catalog-hero h1 {
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.products-catalog-hero__summary,
.product-card__descriptor,
.product-card__summary,
.product-single__descriptor,
.product-single__summary,
.product-single__meta-list p,
.product-description__content,
.products-empty-state p {
  margin: 0;
  color: rgba(73, 46, 27, 0.9);
  font-size: clamp(1rem, 0.44vw + 0.94rem, 1.12rem);
  line-height: 1.72;
}

.products-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  align-items: end;
}

.products-filter-field {
  display: grid;
  gap: 8px;
}

.products-filter-field--search {
  grid-column: span 2;
}

.products-filter-field span {
  color: #5d3922;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.products-filter-field input,
.products-filter-field select {
  width: 100%;
  min-height: 48px;
  padding: 0.82rem 0.92rem;
  border: 1px solid rgba(111, 78, 48, 0.18);
  border-radius: 8px;
  background: rgba(255, 251, 246, 0.88);
  color: #4d2c19;
  font: inherit;
}

.products-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 1.8vw, 28px);
  align-items: stretch;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  border: 1px solid rgba(111, 78, 48, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.84);
  box-shadow: 0 14px 28px rgba(61, 38, 21, 0.1);
  overflow: hidden;
}

.product-card.is-featured {
  box-shadow: 0 18px 34px rgba(61, 38, 21, 0.14);
}

.product-card__seal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: clamp(54px, 4.5vw, 72px);
  z-index: 2;
}

.product-card__seal img {
  display: block;
  width: 100%;
  height: auto;
}

.product-card__media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 320px;
  padding: 24px 24px 0;
  text-decoration: none;
}

.product-card__image,
.product-gallery__item img {
  display: block;
  width: min(100%, 250px);
  height: auto;
  object-fit: contain;
}

.product-card__body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px 22px 24px;
}

.product-card__meta {
  font-size: 0.82rem;
}

.product-card h2,
.product-card h3 {
  font-size: clamp(1.75rem, 2vw, 2.28rem);
}

.product-card h2 a,
.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.product-card__descriptor {
  font-weight: 700;
}

.product-card__summary {
  color: rgba(73, 46, 27, 0.78);
  font-size: 0.98rem;
}

.product-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card__chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: rgba(92, 57, 34, 0.1);
  color: #5c3922;
  font-size: 0.92rem;
  font-weight: 700;
}

.product-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.18rem;
  border: 1px solid rgba(92, 57, 34, 0.24);
  border-radius: 8px;
  background: #5c3922;
  color: #fff5e8;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.product-card__button:hover,
.product-card__button:focus-visible {
  transform: translateY(-1px);
  background: #4d2c19;
  color: #fff9f0;
  outline: none;
}

.product-card__button--ghost {
  background: rgba(255, 251, 246, 0.6);
  color: #5c3922;
}

.product-card__button--ghost:hover,
.product-card__button--ghost:focus-visible {
  background: rgba(255, 248, 237, 0.9);
  color: #4d2c19;
}

.product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 250px);
  min-height: 320px;
  padding: 24px;
  border: 1px dashed rgba(92, 57, 34, 0.22);
  border-radius: 8px;
  color: rgba(92, 57, 34, 0.7);
  text-align: center;
}

.products-pagination {
  display: flex;
  justify-content: center;
}

.products-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.products-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.84);
  color: #5c3922;
  font-weight: 700;
  text-decoration: none;
}

.products-pagination .page-numbers.current {
  background: #5c3922;
  color: #fff6ea;
}

.product-single {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 2.2vw, 38px);
  align-items: start;
}

.product-single__media {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 480px;
  padding: clamp(20px, 2vw, 32px);
  border-radius: 8px;
  background: rgba(255, 251, 246, 0.64);
}

.product-card__seal--single {
  width: clamp(72px, 7vw, 96px);
}

.product-single__image {
  display: block;
  width: min(100%, 420px);
  height: auto;
  object-fit: contain;
}

.product-single__copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.product-single h1 {
  font-size: clamp(2.6rem, 4.3vw, 4.6rem);
}

.product-single__descriptor {
  font-size: clamp(1.08rem, 0.5vw + 1rem, 1.22rem);
  font-weight: 700;
}

.product-single__summary {
  color: rgba(73, 46, 27, 0.82);
}

.product-single__taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-single__taxonomy-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(111, 78, 48, 0.16);
  border-radius: 8px;
  background: rgba(255, 251, 246, 0.56);
}

.product-single__taxonomy-item strong {
  color: #4d2c19;
  font-size: 1rem;
}

.product-card__chips--single span {
  font-size: 0.96rem;
}

.product-single__meta-list {
  display: grid;
  gap: 8px;
}

.product-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-gallery__item {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 16px;
  border: 1px solid rgba(111, 78, 48, 0.14);
  border-radius: 8px;
  background: rgba(255, 251, 246, 0.58);
}

.product-gallery__item img {
  width: 100%;
  max-width: 260px;
}

.product-description__content {
  display: grid;
  gap: 14px;
}

.product-description__content > :first-child {
  margin-top: 0;
}

.product-description__content > :last-child {
  margin-bottom: 0;
}

.products-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card--related .product-card__media {
  min-height: 220px;
}

.products-empty-state {
  text-align: center;
  justify-items: center;
}

.products-bean-strip {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: end;
  overflow: hidden;
}

.products-bean-strip__image {
  display: block;
  width: 100%;
  height: clamp(116px, 10vw, 188px);
  object-fit: cover;
  object-position: center bottom;
}

@media (max-width: 1200px) {
  .products-grid,
  .products-grid--related,
  .product-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-single {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .board-header-shell--product {
    justify-items: end;
  }

  .board-header-shell--product .board-header-brand {
    justify-self: center;
  }

  .products-filter-field--search {
    grid-column: auto;
  }

  .product-single__taxonomy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .products-grid,
  .products-grid--related,
  .product-gallery__grid {
    grid-template-columns: 1fr;
  }

  .product-card__media,
  .product-single__media {
    min-height: auto;
  }

  .products-filter-actions,
  .product-single__actions {
    flex-direction: column;
  }

  .product-card__button {
    width: 100%;
  }

  .products-bean-strip {
    grid-template-columns: 1fr;
  }

  .products-bean-strip__image:nth-child(2) {
    display: none;
  }
}


