/**
 * Product catalog styles.
 */

.lx-breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.lx-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-muted, #5c564c);
}

.lx-breadcrumbs__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  opacity: 0.55;
}

.lx-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.lx-breadcrumbs a:hover {
  color: var(--highlight, #1d5599);
}

.lx-products-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .lx-products-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: start;
    gap: 1.75rem;
  }
}

.lx-products-filters {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border, rgba(28, 25, 21, 0.12));
  background: var(--bg-elevated, #ffffff);
}

@media (min-width: 960px) {
  .lx-products-filters {
    position: sticky;
    top: calc(var(--header-h, 4.25rem) + 0.75rem);
    max-height: calc(100vh - var(--header-h, 4.25rem) - 1.5rem);
    overflow: auto;
  }
}

.lx-products-filters h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
}

.lx-products-filters ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.lx-products-filters a {
  color: inherit;
  text-decoration: none;
}

.lx-products-filters a.is-active,
.lx-products-filters a:hover {
  color: var(--highlight, #1d5599);
}

.lx-products-main {
  min-width: 0;
}

.lx-products-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.lx-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border, rgba(28, 25, 21, 0.12));
  background: var(--bg-elevated, #faf9f7);
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.lx-product-card:hover {
  border-color: color-mix(in srgb, var(--accent, #f0d060) 50%, transparent);
  transform: translateY(-2px);
}

.lx-product-card__media {
  aspect-ratio: 4 / 3;
  background: #ebe7e1;
  overflow: hidden;
}

html[data-theme="dark"] .lx-product-card__media {
  background: #221f1a;
}

.lx-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lx-product-card__body {
  padding: 0.9rem 1rem 1.1rem;
}

.lx-product-card__title {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
  line-height: 1.3;
}

.lx-product-card__meta {
  margin: 0.35rem 0 0;
  color: var(--text-muted, #5c564c);
  font-size: 0.85rem;
}

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

.lx-product-hero {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .lx-product-hero {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    align-items: start;
  }
}

.lx-product-gallery {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.lx-product-gallery__main {
  position: relative;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 1 / 1;
  max-height: min(22rem, 70vw);
  border: 1px solid var(--border, rgba(28, 25, 21, 0.12));
  background: var(--bg-muted, #f4f4f2);
  overflow: hidden;
}

.lx-product-gallery__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.lx-product-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lx-product-gallery__thumb {
  padding: 0;
  border: 1px solid var(--border, rgba(28, 25, 21, 0.12));
  background: var(--bg-elevated, #fff);
  cursor: pointer;
}

.lx-product-gallery__thumb img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  display: block;
}

.lx-product-summary .page-header--product {
  padding-top: 0;
  margin-bottom: 0.75rem;
}

.lx-product-section {
  margin-top: 2rem;
  padding-top: 0.25rem;
}

.lx-product-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display, inherit);
}

.lx-specs-wrap {
  overflow-x: auto;
}

.lx-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.lx-specs th,
.lx-specs td {
  border-bottom: 1px solid var(--border, rgba(28, 25, 21, 0.12));
  padding: 0.65rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.lx-specs th {
  font-family: var(--font-display, inherit);
  font-weight: 600;
}

.lx-product-lists {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .lx-product-lists {
    grid-template-columns: 1fr 1fr;
  }
}

.lx-product-lists ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.lx-related-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  margin-top: 1rem;
}

.lx-downloads-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.lx-downloads-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border, rgba(28, 25, 21, 0.12));
  text-decoration: none;
  color: inherit;
  background: var(--bg-elevated, #faf9f7);
}
