/* JLC product-list styles extracted from the approved products design. */
:root {
        --ink: #11161b;
        --steel: #7d8a92;
        --steel-deep: #303942;
        --paper: #eceff0;
        --cloud: #d8dde0;
        --metal-bright: #f9fbfc;
        --navy: #1d252c;
        --white: #ffffff;
        --muted: #5d666d;
        --line: rgba(17, 22, 27, 0.14);
        --shadow: 0 24px 60px rgba(17, 22, 27, 0.16);
        --brushed: linear-gradient(105deg, #f7f9fa 0%, #bac4ca 28%, #eef2f4 48%, #7f8c94 76%, #dce2e5 100%);
      }

      * {
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      body {
        margin: 0;
        font-family: "IBM Plex Sans", Arial, sans-serif;
        line-height: 1.55;
        color: var(--ink);
        background:
          linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(171, 181, 188, 0.22), rgba(255, 255, 255, 0.52)),
          linear-gradient(180deg, var(--paper), #f8fafb);
        overflow-x: hidden;
      }

      a {
        color: inherit;
        text-decoration: none;
      }

      img {
        display: block;
        max-width: 100%;
      }

      button,
input {
        font: inherit;
      }

      .container {
        width: min(1180px, calc(100% - 40px));
        margin: 0 auto;
      }

      .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid transparent;
        padding: 11px 18px;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
      }

      .btn:hover {
        transform: translateY(-2px);
      }

      .btn-primary {
        border-color: rgba(255, 255, 255, 0.34);
        background: var(--brushed);
        color: var(--navy);
        box-shadow: 0 18px 36px rgba(35, 41, 45, 0.24);
      }

      .btn-dark {
        background: linear-gradient(135deg, #151a1f, #343d44);
        color: var(--white);
      }

      .catalog-hero {
        position: relative;
        padding: 128px 0 38px;
        color: var(--white);
        background:
          linear-gradient(90deg, rgba(10, 14, 18, 0.78), rgba(16, 22, 28, 0.38)),
          url("/skin/static/images/jlc/product-banner-mold.png") center / cover no-repeat;
        overflow: hidden;
      }

      .catalog-hero::after {
        content: "";
        position: absolute;
        inset: auto 0 0;
        height: 1px;
        background: rgba(255, 255, 255, 0.18);
      }

      .catalog-hero-grid {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: end;
      }

      .eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: rgba(255, 255, 255, 0.78);
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
      }

      .eyebrow::before {
        content: "";
        width: 34px;
        height: 2px;
        background: #b9c6cd;
      }

      h1,
h2,
h3 {
        font-family: "Archivo", sans-serif;
      }

      h1 {
        max-width: 820px;
        margin: 18px 0 18px;
        font-size: 64px;
        line-height: 0.98;
        font-weight: 800;
      }

      .hero-copy {
        max-width: 690px;
        margin: 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 18px;
      }

      .catalog-section {
        padding: 54px 0 0;
      }

      .catalog-toolbar {
        margin-bottom: 18px;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
      }

      .category-panel {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
      }

      .primary-categories {
        display: flex;
        flex-wrap: wrap;
        gap: 18px;
        padding: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
      }

      .primary-category {
        border: 0;
        padding: 0;
        color: var(--muted);
        background: transparent;
        cursor: pointer;
        font-weight: 800;
        text-align: left;
        transition: color 0.2s ease;
      }

      .primary-category:hover,
.primary-category.is-active {
        color: var(--ink);
        text-decoration: underline;
        text-underline-offset: 6px;
      }

      .secondary-categories {
        padding: 0;
      }

      .secondary-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 16px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
      }

      .secondary-tab {
        border: 0;
        padding: 0;
        color: var(--muted);
        background: transparent;
        cursor: pointer;
        font-size: 13px;
        font-weight: 700;
        transition: color 0.2s ease;
      }

      .secondary-tab:hover,
.secondary-tab.is-active {
        color: var(--ink);
        text-decoration: underline;
        text-underline-offset: 4px;
      }

      .product-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
      }

      .product-card {
        display: grid;
        grid-template-rows: auto auto;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 18px 40px rgba(17, 22, 27, 0.08);
        color: inherit;
        overflow: hidden;
        transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
      }

      .product-card:hover {
        transform: translateY(-5px);
        border-color: rgba(17, 22, 27, 0.28);
        box-shadow: var(--shadow);
      }

      .product-media {
        position: relative;
        overflow: hidden;
        background: var(--cloud);
      }

      .product-media img {
        width: 100%;
        aspect-ratio: 1.5;
        object-fit: cover;
        filter: saturate(0.95) contrast(1.02);
        transition: transform 0.34s ease, filter 0.34s ease;
      }

      .product-card:hover .product-media img {
        transform: scale(1.05);
        filter: saturate(1) contrast(1.04) brightness(1.04);
      }

      .product-body {
        padding: 18px 20px 20px;
      }

      .product-body h2 {
        margin: 0;
        font-size: 24px;
        line-height: 1.12;
      }

      .catalog-empty {
        display: none;
        padding: 34px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.72);
        color: var(--muted);
        text-align: center;
        font-weight: 700;
      }

      .catalog-empty.show {
        display: block;
      }

      .catalog-cta {
        margin-top: 34px;
        width: 100%;
        height: 100%;
        min-height: 220px;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 24px;
        align-items: center;
        padding: 58px max(30px, calc((100vw - 1180px) / 2 + 30px));
        border-radius: 0;
        color: var(--white);
        background:
          linear-gradient(135deg, rgba(21, 26, 31, 0.9), rgba(68, 78, 86, 0.76)),
          url("/skin/static/images/jlc/welding-assembly.png") center / cover no-repeat;
        box-shadow: none;
      }

      .catalog-cta h2 {
        margin: 0 0 8px;
        font-size: 36px;
        line-height: 1;
      }

      .catalog-cta p {
        margin: 0;
        color: rgba(255, 255, 255, 0.74);
      }

      .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.64s ease, transform 0.64s ease;
      }

      .reveal.is-visible {
        opacity: 1;
        transform: translateY(0);
      }

      @media (max-width: 980px) {

        .catalog-hero-grid,
.catalog-cta {
          grid-template-columns: 1fr;
        }

        .product-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }

      @media (max-width: 680px) {
        .container {
          width: min(100% - 28px, 1180px);
        }

        .catalog-hero {
          padding: 104px 0 30px;
        }

        h1 {
          font-size: 44px;
        }

        .product-grid {
          grid-template-columns: 1fr;
        }

        .category-panel {
          grid-template-columns: 1fr;
        }

        .primary-categories {
          flex-wrap: nowrap;
          gap: 16px;
          width: calc(100vw - 40px);
          max-width: calc(100vw - 40px);
          overflow-x: auto;
          scrollbar-width: none;
        }

        .primary-categories::-webkit-scrollbar,
.secondary-tabs::-webkit-scrollbar {
          display: none;
        }

        .primary-category,
.secondary-tab {
          flex: 0 0 auto;
          white-space: nowrap;
        }

        .secondary-tabs {
          flex-wrap: nowrap;
          gap: 14px;
          width: calc(100vw - 40px);
          max-width: calc(100vw - 40px);
          overflow-x: auto;
          scrollbar-width: none;
        }

        .catalog-section {
          padding: 38px 0 0;
        }

        .product-body {
          padding: 18px;
        }

        .catalog-cta {
          min-height: 260px;
          padding: 52px 20px;
        }

        .catalog-cta h2 {
          font-size: 32px;
        }
      }
      /* End unified homepage navigation */

/* EmpireCMS product-list additions */
.primary-category,
.secondary-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-category {
  position: relative;
  padding-bottom: 7px;
}

.primary-category:hover,
.primary-category.is-active {
  color: var(--ink);
  text-decoration: none;
}

.primary-category:hover::after,
.primary-category.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
}

.jlc-product-pagebar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.jlc-product-pagebar a,
.jlc-product-pagebar b {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 700;
}

.jlc-product-pagebar b,
.jlc-product-pagebar a:hover {
  border-color: var(--steel-deep);
  background: var(--steel-deep);
  color: var(--white);
}
