/* Shared styling for the products landing page and all product category pages */

.breadcrumb{font-size:0.78rem;color:var(--paper-dim);}
.breadcrumb a:hover{color:var(--accent);}

.cat-hero{padding:56px 32px 48px;border-bottom:1px solid var(--line);}
.cat-hero .mono{color:var(--accent);margin-bottom:14px;display:block;}
.cat-hero h1{font-size:clamp(2.2rem,5vw,3.4rem);max-width:700px;}
.cat-hero p{margin-top:20px;max-width:560px;color:var(--paper-dim);font-size:1.02rem;}

.grid-section{padding:64px 32px 90px;}
.grid-section .wrap{padding-left:0; padding-right:0;}
.subranges{padding:64px 32px;}
.subranges .section-head{margin-bottom:40px;}
.section-head span{color:var(--accent);display:block;margin-bottom:12px;}
.section-head h2{font-size:clamp(1.6rem,3vw,2.2rem);max-width:600px;}

.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:970px;margin:0 auto;}
.cat-card{
  background:var(--card-bg);
  border-radius:22px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid rgba(255,255,255,0.16);
  box-shadow:0 20px 40px -18px rgba(255,255,255,0.16), 0 8px 22px rgba(0,0,0,0.35);
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover{
  transform:translateY(-4px);
  box-shadow:0 26px 50px -16px rgba(255,255,255,0.22), 0 12px 28px rgba(0,0,0,0.4);
}
.cat-card .illus{
  flex:1;
  padding:28px 20px 14px;
  display:flex;align-items:center;justify-content:center;
  min-height:190px;
}
.cat-card .illus img{
  max-width:150px;
  max-height:150px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.cat-card .illus svg{width:100%;max-width:150px;height:auto;color:var(--ink);}
.cat-card .illus img.illus-tall{max-height:120px;}
.cat-card .panel{background:var(--ink);padding:20px 22px 24px;text-align:center;}
.cat-card .panel h3{
  color:var(--paper);font-size:1.1rem;margin-bottom:14px;letter-spacing:0.02em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.cat-card .panel .count{
  display:block;color:var(--paper-dim);font-size:0.76rem;margin-bottom:16px;
  font-family:'IBM Plex Mono',monospace;text-transform:uppercase;letter-spacing:0.06em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.view-btn{
  display:inline-flex;align-items:center;gap:8px;
  border:1px solid rgba(255,255,255,0.35);color:var(--paper);
  padding:10px 22px;border-radius:24px;font-family:'Inter',sans-serif;font-size:0.9rem;
  transition:background 0.15s, border-color 0.15s;
}
.view-btn:hover{background:rgba(255,255,255,0.08);border-color:var(--accent);}
.view-btn svg{width:14px;height:14px;}

/* ---------- sub-range pill navigation ---------- */
.subnav-wrap{
  position:sticky; top:var(--header-height, 90px); z-index:40;
  background:rgba(18,22,26,0.96);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.subnav{
  display:flex; gap:10px; align-items:center;
  padding:16px 32px;
  max-width:1180px; margin:0 auto;
  overflow-x:auto;
  -ms-overflow-style:none; scrollbar-width:none;
}
.subnav::-webkit-scrollbar{display:none;}
.subnav a{
  flex:0 0 auto;
  font-family:'IBM Plex Mono',monospace;
  font-size:0.76rem;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--paper-dim);
  border:1px solid var(--line);
  border-radius:20px;
  padding:9px 18px;
  transition:border-color 0.15s, color 0.15s, background 0.15s;
}
.subnav a:hover, .subnav a.active{
  color:var(--paper);
  border-color:var(--accent);
  background:rgba(79,143,209,0.12);
}

/* ---------- product sections & photo cards ---------- */
.product-section{padding:64px 32px;scroll-margin-top:calc(var(--sticky-stack-height, 162px) + 10px);}
.product-section .wrap{padding-left:0; padding-right:0;}
.product-section:nth-child(even){background:var(--steel);}
.product-section:nth-child(even) .product-card .info{background:var(--steel);}
.product-section-head{margin-bottom:36px;}
.product-section-head .mono{color:var(--accent); display:block; margin-bottom:10px;}
.product-section-head h2{font-size:clamp(1.5rem,2.8vw,2rem); max-width:600px;}
.product-section-head p{color:var(--paper-dim); max-width:520px; margin-top:10px; font-size:0.95rem;}

.product-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
}
.product-card{
  background:var(--card-bg);
  border-radius:22px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid rgba(255,255,255,0.16);
  box-shadow:0 20px 40px -18px rgba(255,255,255,0.16), 0 8px 22px rgba(0,0,0,0.35);
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 26px 50px -16px rgba(255,255,255,0.22), 0 12px 28px rgba(0,0,0,0.4);
}
.product-card .photo{
  aspect-ratio:1 / 1;
  overflow:hidden;
}
.product-card .photo img{width:100%;height:100%;object-fit:contain;display:block;}
.product-card .info{
  background:var(--ink);
  position:relative;
  margin-top:-13.35%;
  margin-bottom:24px;
  padding:20px 20px 20px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  flex:1;
}
.product-card .tag{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-family:'IBM Plex Mono',monospace;
  font-size:0.7rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  font-weight:600;
  color:var(--accent);
  margin-bottom:10px;
}
.product-card .tag::before{
  content:'';
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--accent);
  flex:0 0 auto;
}
.product-card h4{
  font-family:'Inter',sans-serif;
  font-weight:600;
  text-transform:none;
  font-size:0.94rem;
  color:var(--paper);
  line-height:1.35;
  margin-bottom:12px;
  align-self:stretch;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.product-card .product-link{
  display:flex; align-items:center; justify-content:center; gap:6px;
  align-self:stretch;
  font-size:0.8rem;
  color:var(--paper);
  font-weight:600;
  border:1px solid rgba(238,241,245,0.35);
  border-radius:10px;
  padding:8px 16px;
  margin-top:16px;
  transition:background 0.15s ease, border-color 0.15s ease;
}
.product-card .product-link svg{width:11px;height:11px;}
.product-card:hover .product-link{background:rgba(238,241,245,0.08); border-color:var(--accent);}

@media (max-width:1100px){
  .card-grid{grid-template-columns:repeat(3,1fr);}
  .product-grid{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:900px){
  .card-grid{grid-template-columns:repeat(2,1fr);}
  .product-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .grid-section{padding:48px 20px;}
  .card-grid{gap:16px;}
  .cat-card .illus{min-height:0; padding:18px 14px 6px;}
  .cat-card .illus img{max-width:100px; max-height:100px;}
  .cat-card .illus img.illus-tall{max-height:100px;}
  .cat-card .illus svg{max-width:100px;}
  .cat-card .panel{padding:14px 14px 16px;}
  .cat-card .panel h3{
    font-size:0.86rem; line-height:1.3; margin-bottom:12px;
    min-height:2.6em;
    display:flex; align-items:center; justify-content:center;
    white-space:normal; overflow:visible; text-overflow:clip; text-align:center;
  }
  .cat-card .panel .count{display:none;}
  .view-btn{padding:7px 14px; font-size:0.72rem; gap:5px;}
  .view-btn svg{width:11px; height:11px;}
  .product-section{padding:48px 20px;}
  .product-grid{grid-template-columns:repeat(2, 1fr); gap:16px;}
  .product-card .info{padding:16px 12px 18px; justify-content:flex-start;}
  .product-card .tag{font-size:0.64rem; margin-bottom:8px;}
  .product-card h4{
    font-size:0.84rem; line-height:1.3; margin-bottom:10px;
    white-space:normal; overflow:visible; text-overflow:clip;
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
    min-height:2.6em;
  }
  .product-card .product-link{margin-top:auto; padding:8px 10px; font-size:0.74rem; white-space:nowrap; gap:4px;}
}

@media (max-width:420px){
  .cat-hero{padding-left:22px; padding-right:22px;}
  .cat-hero h1{font-size:clamp(1.55rem,8vw,2.2rem); overflow-wrap:anywhere;}
}

@media (max-width:600px){
  .cat-hero{padding-left:20px; padding-right:20px;}
  .cat-hero .wrap{padding-left:0; padding-right:0;}
}
