/* =============================================
   PRODUCTS PAGE STYLES
   Feature sections: products hero, category quick navigation, product category cards, private-label capabilities, expertise showcase and hero fade override.
   Comments are intentionally grouped by page feature so future edits can be made safely without changing layout behavior.
   ============================================= */

/* --------------------------------------------------------------------------
   SECTION 1: Products Page Theme Tokens
   --------------------------------------------------------------------------
   Establishes local CSS variable overrides specifically for the Products subpage.
   Configures the palette parameters, border radii, and soft card shadow assets.
   -------------------------------------------------------------------------- */
:root {
  --products-ink: var(--primary-color);
  --products-paper: #fbfaf7;
  --products-muted: #f3f1ec;
  --products-line: rgba(17, 17, 17, 0.1);
  --products-glass: rgba(255, 255, 255, 0.12);
  --products-dark-glass: rgba(17, 17, 17, 0.58);
  --products-radius-xl: 28px;
  --products-radius-lg: 20px;
  --products-radius-md: 14px;
  --products-shadow: 0 34px 90px -42px rgba(0, 0, 0, 0.52);
  --products-shadow-strong: 0 45px 120px -48px rgba(0, 0, 0, 0.72);
}
.products-page {
  background:
    radial-gradient(
      circle at 8% 8%,
      rgba(166, 138, 100, 0.12),
      transparent 28vw
    ),
    linear-gradient(180deg, var(--white) 0%, var(--products-paper) 100%);
  color: var(--products-ink);
}
.products-page .container {
  position: relative;
}
/* --------------------------------------------------------------------------
   SECTION 2: Products Hero Section
   --------------------------------------------------------------------------
   Sets up the full-bleed parallax background header, overlay dark washes, 
   text alignments, and responsive spacing controls.
   -------------------------------------------------------------------------- */
.products-hero {
  min-height: 480px;
  height: 64vh;
  isolation: isolate;
  background: var(--primary-color);
}
.products-hero .parallax-bg {
  height: 116%;
  filter: saturate(0.9) contrast(1.08) brightness(0.82);
  transform-origin: center top;
}
.products-hero .hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.58) 42%,
      rgba(0, 0, 0, 0.22) 100%
    ),
    radial-gradient(
      circle at 68% 34%,
      rgba(166, 138, 100, 0.3),
      transparent 34vw
    );
}
.products-hero::before,
.products-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.products-hero::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 72%);
  opacity: 0.35;
}
.products-hero::after {
  left: 0;
  right: 0;
  bottom: -1px;
  height: 32%;
  background: linear-gradient(to top, var(--products-paper), transparent);
  z-index: 2;
}
.products-hero-content {
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding-top: 86px;
  padding-bottom: 34px;
}
.products-hero-copy {
  max-width: 860px;
}
.products-hero-title {
  font-size: clamp(2.5rem, 5.5vw, 5.2rem) !important;
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin-bottom: 18px !important;
  max-width: 860px;
}
.products-hero-title span {
  display: block;
}
.products-hero-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.68;
  margin-bottom: 0;
}
.products-hero-card {
  justify-self: end;
  width: min(100%, 340px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.055)
  );
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 20px;
  padding: 16px 18px;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.products-hero-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(166, 138, 100, 0.32);
  filter: blur(30px);
}
.products-hero-card > * {
  position: relative;
  z-index: 1;
}
.products-hero-card-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.products-hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.products-hero-metric {
  min-height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.18);
}
.products-hero-metric strong {
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.05em;
}
.products-hero-metric span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.35;
}
.products-hero-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
}
.products-hero-note i {
  color: var(--accent-color);
  font-size: 15px;
  margin-top: 1px;
}
.products-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  writing-mode: vertical-rl;
}
.products-scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 32px;
  margin: 10px auto 0;
  background: linear-gradient(to bottom, var(--accent-color), transparent);
  animation: productsLineDrift 2.2s var(--ease-premium) infinite;
}
/* --------------------------------------------------------------------------
   SECTION 3: Product Category Quick Navigation
   --------------------------------------------------------------------------
   Styles the category horizontal links bar, handling active button pill highlights 
   and smooth hover shifts on user interaction.
   -------------------------------------------------------------------------- */
.products-quicknav-wrap {
  position: sticky;
  top: 76px;
  z-index: 80;
  background: rgba(251, 250, 247, 0.82);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.products-quicknav {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.products-quicknav::-webkit-scrollbar {
  display: none;
}
.products-quicknav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(17, 17, 17, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  transition:
    transform 0.45s var(--ease-premium),
    background 0.45s var(--ease-premium),
    color 0.45s var(--ease-premium),
    border-color 0.45s var(--ease-premium);
}
.products-quicknav a::after {
  display: none !important;
}
.products-quicknav a:hover,
.products-quicknav a:focus-visible,
.products-quicknav a.active {
  transform: translateY(-2px);
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  outline: none;
}
/* --------------------------------------------------------------------------
   SECTION 4: Products Intro Section
   --------------------------------------------------------------------------
   Styles the intro grids, kicker titles, and body texts detailing the 
   divisions under Blue Bay Asia's private label network.
   -------------------------------------------------------------------------- */
.products-intro {
  padding: 105px 0 70px;
  background: var(--products-paper);
  overflow: hidden;
}
.products-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.products-intro-copy .section-title {
  margin-bottom: 28px;
}
.products-intro-copy p {
  color: var(--text-light);
  font-size: 18px;
  line-height: 1.78;
  max-width: 690px;
}
.products-bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.products-bento-card {
  min-height: 170px;
  grid-column: span 3;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: var(--products-radius-lg);
  padding: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 70px -58px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.65s var(--ease-premium),
    box-shadow 0.65s var(--ease-premium),
    border-color 0.65s var(--ease-premium);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.products-bento-card:first-child,
.products-bento-card:nth-child(4) {
  grid-column: span 6;
}
.products-bento-card:hover {
  transform: translateY(-8px);
  border-color: rgba(166, 138, 100, 0.34);
  box-shadow: var(--products-shadow);
}
.products-bento-card i {
  color: var(--accent-color);
  font-size: 28px;
  display: inline-block;
  margin-bottom: 18px;
}
.products-bento-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}
.products-bento-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 1.7;
}
.product-category-block {
  position: relative;
  padding: 118px 0;
  overflow: hidden;
  background: var(--white);
}
.product-category-block.is-muted {
  background: linear-gradient(180deg, #f8f7f3 0%, #f2f0ea 100%);
}
.product-category-block::before {
  content: attr(data-section-label);
  position: absolute;
  top: 34px;
  right: clamp(20px, 5vw, 74px);
  font-weight: 800;
  font-size: clamp(4.5rem, 11vw, 10rem);
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(17, 17, 17, 0.035);
  pointer-events: none;
}
.product-category-block.is-muted::before {
  color: rgba(17, 17, 17, 0.045);
}
.category-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.34fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 42px;
  position: relative;
}
.category-subtitle {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.category-title {
  font-size: clamp(2.55rem, 5.8vw, 5.7rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: var(--primary-color);
  margin: 0;
}
.category-copy {
  color: var(--text-light);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.72;
  max-width: 720px;
  margin-top: 24px;
}
.category-meta {
  justify-self: end;
  display: grid;
  gap: 12px;
  width: min(100%, 260px);
}
.category-meta-item {
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  padding-top: 14px;
}
.category-meta-item strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.category-meta-item span {
  display: block;
  margin-top: 7px;
  color: var(--text-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  align-items: stretch;
}
.product-showcase-card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  grid-column: span 2;
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border-radius: var(--products-radius-lg);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 52px -38px rgba(0, 0, 0, 0.7);
  transition:
    transform 0.65s var(--ease-premium),
    box-shadow 0.65s var(--ease-premium),
    border-color 0.65s var(--ease-premium);
  will-change: transform;

  -webkit-mask-image: -webkit-radial-gradient(white, black);
  -webkit-backface-visibility: hidden;
  -webkit-transform-style: flat;
  transform-style: flat;
}
.product-showcase-card.reveal.active {
  transform: perspective(1000px) translateY(var(--lift)) rotateX(var(--rx))
    rotateY(var(--ry));
}
.product-showcase-card:nth-child(1),
.product-showcase-card:nth-child(2) {
  grid-column: span 3;
  min-height: 510px;
}
.product-showcase-card:nth-last-child(2):nth-child(3n),
.product-showcase-card:nth-last-child(1):nth-child(3n + 1) {
  grid-column: span 3;
}
.product-showcase-card:nth-last-child(1):nth-child(3n) {
  grid-column: span 6;
}
.product-showcase-card:focus-visible {
  outline: 3px solid rgba(166, 138, 100, 0.72);
  outline-offset: 4px;
}
.product-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.26),
    transparent 32%
  );
  mix-blend-mode: screen;
  transition: opacity 0.45s var(--ease-premium);
}
.product-showcase-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 5;
  border-radius: calc(var(--products-radius-lg) - 1px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
.product-showcase-card:hover,
.product-showcase-card:focus-visible {
  --lift: -12px;
  border-color: rgba(166, 138, 100, 0.48);
  box-shadow: var(--products-shadow-strong);
}
.product-showcase-card:hover::before,
.product-showcase-card:focus-visible::before {
  opacity: 1;
}
.product-card-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
}
.product-showcase-card .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02) translateY(0) !important;
  filter: saturate(0.95) contrast(1.04);
  transition:
    transform 1.35s var(--ease-premium),
    filter 1.2s var(--ease-premium) !important;
  will-change: transform;
}
.product-showcase-card:hover .product-image,
.product-showcase-card:focus-visible .product-image {
  transform: scale(1.115) translateY(-8px) !important;
  filter: saturate(1.08) contrast(1.08) brightness(1.03);
}
.product-card-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.52) 42%,
      rgba(0, 0, 0, 0.05) 100%
    ),
    linear-gradient(135deg, rgba(166, 138, 100, 0.22), transparent 42%);
  transition:
    opacity 0.7s var(--ease-premium),
    background 0.7s var(--ease-premium);
}
.product-showcase-card:hover .product-card-scrim,
.product-showcase-card:focus-visible .product-card-scrim {
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.58) 48%,
      rgba(0, 0, 0, 0.1) 100%
    ),
    linear-gradient(135deg, rgba(166, 138, 100, 0.32), transparent 46%);
}
.product-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(24px, 3vw, 36px);
  color: var(--white);
  transform: translateY(10px);
  transition: transform 0.65s var(--ease-premium);
}
.product-showcase-card:hover .product-card-content,
.product-showcase-card:focus-visible .product-card-content {
  transform: translateY(0);
}
.product-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 13px;
}
.product-card-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-color);
}
.product-showcase-card .product-title {
  color: var(--white);
  font-size: clamp(1.45rem, 2vw, 2.28rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.product-showcase-card .product-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  line-height: 1.62;
  max-width: 340px;
  margin: 0;
}
.product-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.62s var(--ease-premium),
    transform 0.62s var(--ease-premium);
}
.product-showcase-card:hover .product-card-footer,
.product-showcase-card:focus-visible .product-card-footer {
  opacity: 1;
  transform: translateY(0);
}
.product-card-footer span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
}
.product-number {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.24);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}
/* --------------------------------------------------------------------------
   SECTION 5: Private Label Capability Section
   --------------------------------------------------------------------------
   Styles card grids, hover animations, and text alignment parameters 
   representing private label design capabilities.
   -------------------------------------------------------------------------- */
.products-private-label {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(
      circle at 76% 26%,
      rgba(166, 138, 100, 0.34),
      transparent 28vw
    ),
    linear-gradient(135deg, #0a0a0a 0%, #151515 58%, #0a0a0a 100%);
}
.products-private-label::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
}
.private-label-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}
.private-label-feature {
  position: sticky;
  top: 130px;
}
.products-private-label .category-title,
.products-expertise .category-title {
  color: var(--primary-color);
}
.products-private-label .category-copy {
  color: rgba(255, 255, 255, 0.72);
}
.private-label-signature {
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--products-radius-lg);
  padding: 22px;
  backdrop-filter: blur(18px);
}
.private-label-signature strong {
  display: block;
  color: var(--accent-color);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.06em;
}
.private-label-signature span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.private-label-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.capability-item {
  --mx: 50%;
  --my: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: var(--products-radius-lg);
  background: rgba(255, 255, 255, 0.88);
  padding: 26px;
  box-shadow: 0 24px 72px -56px rgba(0, 0, 0, 0.62);
  transition:
    transform 0.62s var(--ease-premium),
    box-shadow 0.62s var(--ease-premium),
    border-color 0.62s var(--ease-premium),
    background 0.62s var(--ease-premium);
  min-height: 190px;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.products-private-label .capability-item {
  border-color: rgba(255, 255, 255, 0.13);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.055)
  );
  color: var(--white);
  backdrop-filter: blur(20px);
}
.capability-item::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(166, 138, 100, 0.22),
    transparent 34%
  );
  transition: opacity 0.48s var(--ease-premium);
}
.capability-item:hover,
.capability-item:focus-within {
  transform: translateY(-9px);
  border-color: rgba(166, 138, 100, 0.36);
  box-shadow: var(--products-shadow);
}
.capability-item:hover::before {
  opacity: 1;
}
.capability-icon {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(166, 138, 100, 0.13);
  color: var(--accent-color);
  font-size: 27px;
  margin-bottom: 22px;
}
.capability-content,
.capability-item h4,
.capability-item p {
  position: relative;
  z-index: 2;
}
.capability-item h4 {
  font-size: 1.08rem;
  margin: 0 0 12px;
  letter-spacing: 0.05em;
}
.capability-item p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.68;
  font-size: 14.5px;
}
.products-private-label .capability-item p {
  color: rgba(255, 255, 255, 0.68);
}
/* --------------------------------------------------------------------------
   SECTION 6: Manufacturing Expertise Showcase
   --------------------------------------------------------------------------
   Configures grid components showing factory machines, knitting technologies, 
   and bulk fabrication limits.
   -------------------------------------------------------------------------- */
.products-expertise {
  background: var(--white);
}
.products-expertise .category-header {
  grid-template-columns: 1fr;
  max-width: 860px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.products-expertise .category-subtitle {
  justify-content: center;
}

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

.expertise-text {
  max-width: 100%;
  padding-top: 12px;
}

.expertise-text .category-copy {
  max-width: 100% !important;
  text-align: left;
}

@keyframes productsLineDrift {
  0%,
  100% {
    transform: scaleY(0.45);
    transform-origin: top;
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
}
/* --------------------------------------------------------------------------
   SECTION 7: Products Media Queries & Responsive Rules
   --------------------------------------------------------------------------
   Specifies column wraps and typography shifts for mobile, tablet, and narrow 
   layout dimensions to ensure design integrity.
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .products-hero-content,
  .products-intro-grid,
  .private-label-layout {
    grid-template-columns: 1fr;
  }
  .products-hero-card,
  .category-meta {
    justify-self: start;
  }
  .products-scroll-cue {
    display: none;
  }
  .private-label-feature {
    position: relative;
    top: auto;
  }
  .product-showcase-card,
  .product-showcase-card:nth-child(1),
  .product-showcase-card:nth-child(2) {
    grid-column: span 3;
    min-height: 410px;
  }
  .product-showcase-card:nth-last-child(2):nth-child(3n),
  .product-showcase-card:nth-last-child(1):nth-child(3n + 1),
  .product-showcase-card:nth-last-child(1):nth-child(3n) {
    grid-column: span 3;
  }
}
@media (max-width: 900px) {
  .products-hero {
    height: auto;
    min-height: 560px;
    padding: 120px 0 60px;
  }
  .products-hero-content {
    padding-top: 0;
  }
  .category-header {
    grid-template-columns: 1fr;
  }
  .category-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .product-showcase-card,
  .product-showcase-card:nth-child(1),
  .product-showcase-card:nth-child(2) {
    grid-column: span 3;
    min-height: 390px;
  }
  .product-showcase-card:nth-last-child(2):nth-child(3n),
  .product-showcase-card:nth-last-child(1):nth-child(3n + 1),
  .product-showcase-card:nth-last-child(1):nth-child(3n) {
    grid-column: span 3;
  }
  .expertise-grid,
  .private-label-grid {
    grid-template-columns: 1fr;
  }

  .expertise-text-block {
    min-height: 260px;
    padding: 42px 28px;
  }
}
@media (max-width: 680px) {
  .products-quicknav {
    padding: 12px 20px;
  }
  .products-quicknav-wrap {
    top: 74px;
  }
  .products-hero {
    min-height: 500px;
    padding-top: 105px;
    padding-bottom: 50px;
  }
  .products-hero-title {
    font-size: clamp(2.3rem, 10.5vw, 3.6rem) !important;
  }
  .products-bento-grid,
  .category-meta {
    grid-template-columns: 1fr;
  }
  .products-hero-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .products-bento-card,
  .products-bento-card:first-child,
  .products-bento-card:nth-child(4) {
    grid-column: span 6;
  }
  .product-category-block,
  .products-intro {
    padding: 82px 0;
  }
  .product-showcase-grid {
    gap: 18px;
  }
  .product-showcase-card,
  .product-showcase-card:nth-child(1),
  .product-showcase-card:nth-child(2) {
    grid-column: span 6;
    min-height: 380px;
    border-radius: 18px;
  }
  .product-showcase-card:nth-last-child(2):nth-child(3n),
  .product-showcase-card:nth-last-child(1):nth-child(3n + 1),
  .product-showcase-card:nth-last-child(1):nth-child(3n) {
    grid-column: span 6;
  }
  .product-card-footer {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .products-scroll-cue::after,
  .product-showcase-card,
  .product-showcase-card .product-image,
  .product-card-content,
  .product-card-footer,
  .capability-item {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .product-showcase-card.reveal.active {
    transform: none !important;
  }
}

/* Product page cleanup fix: private-label title sits on a dark section, so it must remain white. */
.products-private-label .category-title {
  color: var(--white) !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

/* Products Page Hero Feature
   Removes the bottom gradient fade/shadow below the product hero while keeping
   the hero overlay, grid texture, content layout, and all animations intact. */
.products-page .products-hero::after {
  display: none !important;
  height: 0 !important;
  background: none !important;
}

/* Gallery commitment heading width alignment */
.gallery-page .gallery-commitment .category-header {
  max-width: 100%;
}

.gallery-page .gallery-commitment .category-title,
.gallery-page .gallery-commitment .expertise-text .category-copy {
  max-width: 100% !important;
}
