.availability--in_stock {
  background: var(--color-success);
}

.availability--low_stock {
  background: var(--color-low-stock);
}

.availability--out_of_stock,
.availability--unknown {
  background: var(--color-text-secondary);
}

.filters-reset {
  display: block;
}

.mobile-filter-reset {
  display: grid;
  place-items: center;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding-block: 48px;
  color: var(--color-text-secondary);
  text-align: center;
}

.product-status--low_stock .product-status__dot {
  background: var(--color-low-stock);
}

.product-status--out_of_stock .product-status__dot,
.product-status--unknown .product-status__dot {
  background: var(--color-text-secondary);
}

.product-gallery__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f4f1ea;
}

.product-image-placeholder {
  background: #f4f1ea;
}

/* CMS-selected backgrounds retain the approved gradients and geometry. */
.template-homepage .hero--custom-image {
  background-image:
    linear-gradient(90deg, rgb(2 37 25 / 94%) 0%, rgb(2 37 25 / 69%) 34%, rgb(2 37 25 / 14%) 72%),
    var(--home-hero-image-desktop);
}

.template-homepage .about--custom-image {
  background-image:
    linear-gradient(90deg, rgb(2 37 25 / 94%) 0%, rgb(2 37 25 / 74%) 38%, rgb(2 37 25 / 18%) 74%),
    var(--home-about-image-desktop);
}

.about-page .company-hero--custom-image {
  background-image:
    linear-gradient(90deg, rgb(2 37 25 / 96%) 0%, rgb(2 37 25 / 79%) 35%, rgb(2 37 25 / 12%) 78%),
    var(--about-hero-image-desktop);
}

.about-page .production-section--custom-image {
  background-image:
    linear-gradient(90deg, rgb(2 37 25 / 96%) 0%, rgb(2 37 25 / 78%) 38%, rgb(2 37 25 / 14%) 78%),
    var(--production-image-desktop);
}

@media (min-width: 768px) and (max-width: 1199px) {
  .template-homepage .hero--custom-image {
    background-image:
      linear-gradient(90deg, rgb(2 37 25 / 94%) 0%, rgb(2 37 25 / 69%) 34%, rgb(2 37 25 / 14%) 72%),
      var(--home-hero-image-tablet);
  }

  .template-homepage .about--custom-image {
    background-image:
      linear-gradient(90deg, rgb(2 37 25 / 94%) 0%, rgb(2 37 25 / 74%) 38%, rgb(2 37 25 / 18%) 74%),
      var(--home-about-image-tablet);
  }

  .about-page .company-hero--custom-image {
    background-image:
      linear-gradient(90deg, rgb(2 37 25 / 96%) 0%, rgb(2 37 25 / 79%) 35%, rgb(2 37 25 / 12%) 78%),
      var(--about-hero-image-tablet);
  }

  .about-page .production-section--custom-image {
    background-image:
      linear-gradient(90deg, rgb(2 37 25 / 96%) 0%, rgb(2 37 25 / 78%) 38%, rgb(2 37 25 / 14%) 78%),
      var(--production-image-tablet);
  }
}

@media (max-width: 767px) {
  .template-homepage .hero--custom-image {
    background-image:
      linear-gradient(90deg, rgb(2 37 25 / 91%) 0%, rgb(2 37 25 / 69%) 58%, rgb(2 37 25 / 24%) 100%),
      var(--home-hero-image-mobile);
  }

  .template-homepage .about--custom-image {
    background-image:
      linear-gradient(90deg, rgb(2 37 25 / 93%) 0%, rgb(2 37 25 / 73%) 70%, rgb(2 37 25 / 28%) 100%),
      var(--home-about-image-mobile);
  }

  .about-page .company-hero--custom-image,
  .about-page .production-section--custom-image {
    background: none;
  }

  .about-page .company-hero--custom-image::before {
    background-image:
      linear-gradient(90deg, rgb(2 37 25 / 95%) 0%, rgb(2 37 25 / 78%) 48%, rgb(2 37 25 / 20%) 100%),
      var(--about-hero-image-mobile);
  }

  .about-page .production-section--custom-image::before {
    background-image:
      linear-gradient(90deg, rgb(2 37 25 / 96%) 0%, rgb(2 37 25 / 76%) 56%, rgb(2 37 25 / 18%) 100%),
      var(--production-image-mobile);
  }
}

.error-page {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}

.price-list {
  padding-block: clamp(42px, 6vw, 80px);
}

.price-list__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--color-brand-gold);
}

.price-list__header h1,
.price-list__group h2 {
  color: var(--color-brand-green-strong);
  font-family: var(--font-display);
}

.price-list__header h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.08;
}

.price-list__company {
  margin: 16px 0 0;
  color: var(--color-text-primary);
  font-size: 20px;
  font-weight: 700;
}

.price-list__updated {
  margin: 8px 0 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.price-list__print {
  flex: 0 0 auto;
}

.price-list__group {
  margin-top: 42px;
}

.price-list__group h2 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.2;
}

.price-list__table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid #d8d3c8;
}

.price-list__table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.price-list__table th,
.price-list__table td {
  padding: 13px 16px;
  border-bottom: 1px solid #ddd8ce;
  text-align: left;
  vertical-align: top;
}

.price-list__table th {
  color: var(--color-brand-green-strong);
  background: #f2eee5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.price-list__table th:first-child,
.price-list__table td:first-child {
  width: 20%;
  white-space: nowrap;
}

.price-list__table th:nth-child(3),
.price-list__table td:nth-child(3),
.price-list__table th:nth-child(4),
.price-list__table td:nth-child(4) {
  width: 18%;
  white-space: nowrap;
}

.price-list__empty {
  margin: 48px 0;
  color: var(--color-text-secondary);
}

@media (max-width: 767px) {
  .price-list {
    padding-block: 32px 48px;
  }

  .price-list__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .price-list__header h1 {
    font-size: 36px;
  }

  .price-list__group {
    margin-top: 34px;
  }

  .price-list__group h2 {
    font-size: 26px;
  }

  .price-list__table {
    min-width: 620px;
    font-size: 14px;
  }

  .price-list__table th,
  .price-list__table td {
    padding: 11px 12px;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  .price-list-page {
    background: #fff;
    color: #111;
  }

  .price-list-page .site-header,
  .price-list-page .site-footer,
  .price-list-page .mobile-menu,
  .price-list-page .skip-link,
  .price-list-page .price-list__print,
  .price-list-page .wagtail-userbar {
    display: none !important;
  }

  .price-list {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .price-list__header {
    padding-bottom: 8mm;
    border-color: #333;
  }

  .price-list__header h1,
  .price-list__group h2,
  .price-list__table th {
    color: #111;
  }

  .price-list__group {
    margin-top: 8mm;
  }

  .price-list__group h2 {
    break-after: avoid-page;
  }

  .price-list__table-scroll {
    overflow: visible;
  }

  .price-list__table {
    min-width: 0;
    font-size: 10pt;
  }

  .price-list__table thead {
    display: table-header-group;
  }

  .price-list__table tr {
    break-inside: avoid;
  }

  .price-list__table th {
    background: transparent;
  }
}

.error-page > .site-header,
.error-page > .site-footer {
  flex: 0 0 auto;
}

.error-page > .error-main {
  display: grid;
  min-height: 0;
  flex: 1 0 auto;
  place-items: center;
}

.error-state {
  display: grid;
  width: min(calc(100% - (2 * var(--page-padding))), 760px);
  justify-items: center;
  gap: 18px;
  padding-block: clamp(56px, 8vh, 96px);
  text-align: center;
}

.error-state__code {
  margin: 0;
  color: var(--color-brand-gold);
  font-family: var(--font-display);
  font-size: clamp(76px, 8vw, 108px);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 0.9;
}

.error-state h1 {
  margin: 4px 0 0;
  color: var(--color-brand-green-strong);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
}

.error-state > p {
  max-width: 590px;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 17px;
  line-height: 1.55;
}

.error-state > .error-state__secondary {
  max-width: 520px;
  margin-top: -8px;
  font-size: 14px;
}

.error-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.error-state__actions .button {
  width: 168px;
  height: 48px;
  padding-inline: 20px;
  box-shadow: none;
}

@media (max-width: 767px) {
  .error-state {
    gap: 15px;
    padding-block: 48px;
  }

  .error-state__code {
    font-size: clamp(72px, 23vw, 92px);
  }

  .error-state h1 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .error-state > p {
    font-size: 15px;
    line-height: 1.5;
  }

  .error-state__actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
  }

  .error-state__actions .button {
    width: min(100%, 240px);
  }
}

.gallery-arrow:disabled {
  cursor: default;
  opacity: 0.45;
}

.product-page .related-products {
  height: auto;
  padding-bottom: 48px;
}

.product-gallery__thumbnails {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.product-gallery__thumbnails::-webkit-scrollbar {
  display: none;
}

.product-gallery__thumbnails .gallery-thumbnail {
  flex: 0 0 140px;
}

.product-description {
  height: auto;
  min-height: 220px;
  margin-top: 32px;
  padding-bottom: 56px;
}

.product-description .container {
  padding-top: 34px;
  border-top: 1px solid #dfddd6;
}

.product-description > .container > h2 {
  color: var(--color-brand-green-strong);
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
}

.product-description__content {
  max-width: 880px;
  margin-top: 22px;
  color: var(--color-text-primary);
  font-size: 16px;
  line-height: 1.65;
}

.product-description__content p {
  width: 100%;
  margin: 0 0 14px;
  font: inherit;
}

.product-description__content p:last-child,
.product-description__content > .rich-text > :last-child {
  margin-bottom: 0;
}

.product-description__content ul,
.product-description__content ol {
  gap: 8px;
  margin: 18px 0;
  font-size: inherit;
  line-height: inherit;
}

.product-description__content ul {
  padding-left: 0;
}

.product-description__content ol {
  display: grid;
  padding-left: 24px;
  list-style: decimal;
}

.product-description__content ol li::before {
  display: none;
  content: none;
}

.product-description__content h2,
.product-description__content h3 {
  color: var(--color-brand-green-strong);
  font-weight: 700;
}

.product-description__content h2 {
  margin: 30px 0 14px;
  font-size: 24px;
  line-height: 30px;
}

.product-description__content h3 {
  margin: 24px 0 12px;
  font-size: 20px;
  line-height: 26px;
}

.product-description__content a {
  color: var(--color-brand-green-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.product-description + .related-products {
  margin-top: 0;
}

/* AboutPage keeps the approved fixed sections while allowing optional CMS blocks. */
.about-page .about-main {
  height: auto;
  padding-bottom: 48px;
}

.production-section__richtext > .rich-text > p {
  width: 610px;
  margin-top: 24px;
  color: rgb(255 255 255 / 90%);
  font-size: 16px;
  line-height: 24px;
}

.production-section__richtext > .rich-text > ul,
.production-section__richtext > .rich-text > ol {
  display: grid;
  grid-template-columns: repeat(2, 272px);
  column-gap: 28px;
  row-gap: 30px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 24px;
}

.production-section__richtext li::before {
  display: inline-block;
  width: 28px;
  color: var(--color-brand-gold);
  font-weight: 700;
  content: "✓";
}

.articles-page .articles-main,
.article-page .article-main {
  height: auto;
  padding-bottom: 48px;
}

.article-categories a {
  display: grid;
  height: 36px;
  flex: 0 0 auto;
  padding-inline: 18px;
  border: var(--border-default);
  border-radius: 18px;
  place-items: center;
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.article-categories a[aria-current="page"] {
  border-color: var(--color-brand-green-strong);
  color: #fff;
  background: var(--color-brand-green-strong);
  font-weight: 600;
}

.articles-list {
  height: auto;
  min-height: 394px;
}

.articles-empty {
  grid-column: 1 / -1;
  padding-block: 64px;
  color: var(--color-text-secondary);
  text-align: center;
}

.article-card__image--placeholder,
.featured-article__image--placeholder,
.article-lead-image--placeholder {
  background: #f0ece3;
}

.article-layout {
  min-height: 0;
}

.article-section--rich {
  min-height: 160px;
  margin-top: 40px;
}

.article-section__richtext {
  margin-top: 14px;
  font-size: 16px;
  line-height: 26px;
}

.article-section__richtext p + p,
.article-section__richtext ul,
.article-section__richtext ol {
  margin-top: 14px;
}

.article-section__richtext ul,
.article-section__richtext ol {
  padding-left: 24px;
}

.article-section__richtext ul {
  list-style: disc;
}

.article-section__richtext ol {
  list-style: decimal;
}

.article-related-products,
.article-read-also {
  height: auto;
  min-height: 0;
  padding-bottom: 48px;
}

/* About contact headings share the card columns on desktop. */
.about-page .contact-location__headings > h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
}

.about-page .contact-location__map-heading {
  display: none;
}

/* The About contact layout becomes two-column only at the desktop breakpoint. */
@media (min-width: 768px) and (max-width: 1199px) {
  .about-page .location-card {
    display: block;
    height: auto;
    padding: 18px 20px;
  }

  .about-page .location-card .about-map {
    width: 100%;
    height: 340px;
    min-height: 340px;
    margin-top: 12px;
  }
}

@media (min-width: 1200px) {
  .about-page .contact-location__headings {
    display: grid;
    grid-template-columns: 500px 748px;
    gap: 32px;
  }

  .about-page .contact-location__map-heading {
    display: block;
  }

  .about-page .contact-location__grid {
    align-items: stretch;
  }

  .about-page .location-card {
    display: block;
    width: 100%;
    height: 330px;
    padding: 0;
    overflow: hidden;
  }

  .about-page .location-card h3 {
    display: none;
  }

  .about-page .location-card .about-map {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border-radius: inherit;
  }
}

@media (min-width: 1200px) {
  .product-main-layout--dimensions,
  .product-main-layout--dimensions .product-info {
    height: 690px;
  }

  .product-main-layout--dimensions .product-specs {
    height: auto;
    min-height: 304px;
  }

  .catalog-page .catalog-content {
    align-items: start;
    height: auto;
  }

  .catalog-page .catalog-sidebar {
    position: sticky;
    top: 16px;
    height: min(720px, calc(100vh - 32px));
    min-height: 560px;
    overflow: hidden;
  }

  .catalog-page .filters-form {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .filters-form__content {
    min-height: 0;
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    scrollbar-gutter: stable;
  }

  .catalog-filter-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
  }

  .catalog-filter-pair .filter-group--grade {
    min-width: 0;
    margin-top: 0;
  }
}

.dimension-filters {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border: 0;
}

.dimension-filters legend {
  margin-bottom: 2px;
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.dimension-filters > label {
  display: grid;
  gap: 4px;
  color: #2b312e;
  font-size: 12px;
  line-height: 16px;
}

.dimension-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dimension-range input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding-inline: 10px;
  border: var(--border-default);
  border-radius: var(--radius-input);
  color: var(--color-text-primary);
  background: #fff;
  font: inherit;
}

.dimension-range input:focus-visible {
  outline: 2px solid var(--color-brand-gold);
  outline-offset: 1px;
}

.filters-actions {
  position: sticky;
  z-index: 1;
  bottom: 0;
  flex: 0 0 auto;
  padding: 12px 16px 10px;
  border-top: 1px solid #e4e1da;
  background: #fff;
  box-shadow: 0 -8px 16px rgb(14 19 17 / 5%);
}

.filters-actions .filters-apply {
  width: 100%;
  margin-top: 0;
}

.filters-actions .filters-reset {
  display: grid;
  width: 100%;
  margin-top: 6px;
  place-items: center;
  text-align: center;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .product-main-layout--dimensions .product-info {
    height: 690px;
  }

  .product-main-layout--dimensions .product-specs {
    height: auto;
    min-height: 304px;
  }
}

@media (max-width: 1199px) {
  .filter-overlay {
    overflow: hidden;
  }

  .filter-panel {
    display: flex;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
  }

  .filter-panel__header {
    flex: 0 0 auto;
  }

  .mobile-filters-form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    padding: 0;
  }

  .mobile-filters-form__content {
    min-height: 0;
    flex: 1;
    padding: 12px 20px 24px;
    overflow-y: auto;
  }

  .dimension-filters--mobile {
    margin-top: 4px;
  }

  .dimension-filters--mobile legend,
  .dimension-filters--mobile > label {
    font-size: 14px;
    line-height: 20px;
  }

  .dimension-filters--mobile .dimension-range input {
    height: 44px;
    padding-inline: 12px;
    font-size: 15px;
  }

  .mobile-filter-actions {
    position: sticky;
    z-index: 1;
    bottom: 0;
    flex: 0 0 auto;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #e4e1da;
    background: #f9f7f1;
    box-shadow: 0 -8px 16px rgb(14 19 17 / 8%);
  }

  .mobile-filter-actions .mobile-filter-apply,
  .mobile-filter-actions .mobile-filter-reset {
    margin-top: 0;
  }

  .mobile-filter-actions .mobile-filter-reset {
    display: grid;
    margin-top: 8px;
    place-items: center;
  }
}

@media (max-width: 767px) {
  .site-footer {
    min-height: 481px;
  }

  .footer__bottom {
    display: flex;
    height: 58px;
  }

  .footer__copyright {
    position: static;
    margin-top: 0;
  }

  .product-gallery__thumbnails .gallery-thumbnail {
    flex-basis: 80px;
  }

  .product-main-layout.container {
    height: auto;
  }

  .product-info {
    height: auto;
    padding-bottom: 32px;
  }

  .product-contact {
    position: relative;
    top: auto;
    left: auto;
    margin-top: 22px;
  }

  .product-specs--desktop {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    height: auto;
    min-height: 0;
    margin-top: 16px;
  }

  .product-specs dl div {
    grid-template-columns: minmax(130px, 46%) minmax(0, 1fr);
    height: auto;
    min-height: 36px;
    padding-block: 5px;
  }

  .product-description {
    min-height: 0;
    margin-top: 0;
    padding-bottom: 40px;
  }

  .product-description .container {
    padding-top: 28px;
  }

  .product-description > .container > h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .product-description__content {
    max-width: 100%;
    margin-top: 18px;
  }

  .product-description__content ul,
  .product-description__content ol {
    gap: 8px;
    margin-block: 16px;
    line-height: 1.6;
  }

  .about-page .about-main {
    height: auto;
    padding-bottom: 32px;
  }

  .about-page .contact-location.container {
    height: 870px;
  }

  .about-page .contact-location__headings > h2 {
    font-size: 28px;
    line-height: 34px;
  }

  .about-page .location-card {
    height: 430px;
    padding-top: 24px;
  }

  .about-page .location-card .about-map {
    width: 100%;
    height: 340px;
    margin-top: 16px;
  }

  .production-section__richtext > .rich-text > p {
    width: 100%;
    margin-top: 14px;
    font-size: 15px;
    line-height: 23px;
  }

  .production-section__richtext > .rich-text > ul,
  .production-section__richtext > .rich-text > ol {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 18px;
    font-size: 15px;
    line-height: 28px;
  }

  .articles-page .articles-main,
  .article-page .article-main {
    height: auto;
    padding-bottom: 32px;
  }

  .article-categories a {
    height: 44px;
    padding-inline: 16px;
    border-radius: 22px;
  }

  .articles-list.container {
    height: auto;
    min-height: 388px;
    padding-bottom: 20px;
  }

  .article-section--rich {
    height: auto;
    min-height: 240px;
    margin-top: 0;
  }

  .article-section__richtext {
    font-size: 15px;
    line-height: 24px;
  }

  .article-related-products.container,
  .article-read-also.container {
    height: auto;
    padding-bottom: 32px;
  }

}
