/* Shared page structure */
.section {
  padding-block: 80px;
}

.section--white {
  background: var(--white);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.15;
}

.page-header {
  padding-block: 48px 46px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.page-header h1 {
  max-width: 900px;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.12;
}

.page-header > .shell > p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.breadcrumbs {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.breadcrumbs svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.breadcrumbs a:hover {
  color: var(--heritage-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs span {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 18px;
}

.product-card {
  min-width: 0;
}

.product-card__link {
  display: block;
}

.product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid #e2e5e0;
  border-radius: var(--radius-control);
  background: #f0f2ee;
}

.product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity var(--motion-standard) ease, transform 260ms ease;
}

.product-card__image--secondary {
  opacity: 0;
}

.product-card__link:hover .product-card__image--primary:has(+ .product-card__image--secondary) {
  opacity: 0;
}

.product-card__link:hover .product-card__image--secondary {
  opacity: 1;
  transform: scale(1.015);
}

.status-badge,
.draft-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 9px;
  border-radius: var(--radius-small);
  background: #575c58;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.draft-badge {
  top: auto;
  bottom: 12px;
  background: #edcf7d;
  color: #3f300d;
}

.product-card__details {
  padding-top: 15px;
}

.product-card__meta {
  display: flex;
  min-height: 18px;
  margin-bottom: 7px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.product-card__meta span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card h3 {
  min-height: 46px;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.35;
}

.product-card__link:hover h3 {
  color: var(--heritage-green);
}

.product-card__price {
  margin: 0;
  color: var(--heritage-green);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

/* Shared empty states */
.empty-state {
  display: flex;
  min-height: 420px;
  padding: 60px 24px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
}

.empty-state h2 {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 30px;
}

.empty-state > p:not(.eyebrow) {
  max-width: 460px;
  margin-bottom: 25px;
  color: var(--muted);
}

.empty-state--inline {
  min-height: 180px;
}

.empty-state--inline p {
  margin: 0;
}
