/* =========================================================
   SUMISU — catalogue pages (products list + product detail)
   Extends style.css; shares the same tokens.
   ========================================================= */

/* ---------------- Shared page hero ---------------- */
.cat-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(34px, 5vw, 64px));
  padding-bottom: clamp(52px, 6vw, 80px);
  background: radial-gradient(120% 110% at 82% 0%, #10202c 0%, #0a1119 48%, #060b11 100%);
  color: #fff;
  overflow: hidden;
}
.cat-hero .hero-grid { opacity: .5; }
.cat-hero-inner { position: relative; z-index: 2; }
.crumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}
.crumb a { color: rgba(255, 255, 255, .62); transition: color .25s; }
.crumb a:hover { color: var(--accent-2); }
.crumb i { font-style: normal; color: rgba(255, 255, 255, .25); }
.crumb b { font-weight: 700; color: #fff; letter-spacing: .12em; }
.cat-title {
  font: 600 clamp(42px, 5.4vw, 78px)/1.02 var(--display);
  letter-spacing: -.045em;
  margin: 22px 0 20px;
}
.cat-title em { font-style: normal; color: var(--accent-2); }
.cat-lead {
  max-width: 560px;
  font-size: 14px; line-height: 1.85; color: rgba(255, 255, 255, .52);
  margin: 0;
}
.cat-hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; margin-top: 40px;
}
.cat-stats { display: flex; gap: clamp(24px, 4vw, 56px); }
.cat-stat strong {
  display: block; font: 600 clamp(24px, 2.6vw, 34px)/1 var(--display);
  letter-spacing: -.02em; color: #fff;
}
.cat-stat span {
  display: block; margin-top: 8px; font-size: 9px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .38);
}

/* ---------------- Sticky filter toolbar ---------------- */
.cat-toolbar {
  position: sticky; top: 66px; z-index: 70;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.cat-toolbar-inner {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  min-height: 74px; padding-top: 12px; padding-bottom: 12px;
}
.chip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px; border-radius: 100px;
  border: 1px solid var(--line); background: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink);
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.chip b { font: 600 10px var(--display); color: var(--muted); }
.chip:hover { border-color: rgba(11, 169, 220, .45); transform: translateY(-2px); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active b { color: var(--accent-2); }
.cat-search {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 14px; min-width: 230px;
  border: 1px solid var(--line); border-radius: 100px; background: #fff;
}
.cat-search svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.cat-search input {
  border: 0; outline: 0; background: none; width: 100%;
  font-size: 12px; color: var(--ink);
}
.cat-search input::placeholder { color: #9aa7b3; }
.cat-count { font-size: 10.5px; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.cat-count b { font: 600 13px var(--display); color: var(--ink); }

/* ---------------- Catalogue grid ---------------- */
.cat-section { padding: clamp(44px, 5vw, 70px) 0 clamp(80px, 9vw, 120px); background: var(--paper-2); }
.cat-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.model-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(16, 28, 40, .07);
  border-radius: 14px; overflow: hidden; position: relative;
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .45s var(--ease), border-color .45s, transform .45s var(--ease);
}
.model-card:hover {
  border-color: rgba(11, 169, 220, .32);
  box-shadow: 0 26px 54px rgba(11, 25, 40, .13);
}
.model-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(11, 169, 220, .08), transparent 70%);
  opacity: 0; transition: opacity .4s;
}
.model-card:hover::after { opacity: 1; }
.mc-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, #f1f4f9, #e6ebf2);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.mc-media img {
  width: 100%; height: 100%; object-fit: contain;
  mix-blend-mode: multiply; transition: transform .75s var(--ease);
}
.model-card:hover .mc-media img { transform: scale(1.07) rotate(-1.6deg); }
.mc-tag {
  position: absolute; left: 12px; top: 12px;
  font: 700 8.5px var(--display); letter-spacing: .14em;
  padding: 5px 8px; border-radius: 3px;
  background: rgba(255, 255, 255, .82); color: var(--ink);
  backdrop-filter: blur(4px);
}
.mc-body { padding: 16px 17px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.mc-series {
  font: 800 8.5px var(--display); letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}
.mc-title { font: 600 18px/1.1 var(--display); letter-spacing: -.01em; margin: 0; }
.mc-name { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 0; }
.mc-spec {
  display: flex; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 11px; margin-top: auto;
}
.mc-spec > div { display: flex; flex-direction: column; gap: 2px; }
.mc-spec b { font: 600 12.5px var(--display); color: var(--ink); }
.mc-spec span {
  font-size: 8px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.mc-go {
  position: absolute; right: 14px; bottom: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: background .3s, border-color .3s, color .3s, transform .35s;
}
.mc-go svg { width: 12px; height: 12px; }
.model-card:hover .mc-go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 80px 20px;
  border: 1px dashed rgba(16, 28, 40, .16); border-radius: 16px; background: #fff;
}
.empty-state strong { display: block; font: 600 20px var(--display); margin-bottom: 10px; }
.empty-state span { font-size: 12.5px; color: var(--muted); }

/* ---------------- Portfolio note strip ---------------- */
.portfolio-note {
  margin-top: 28px; padding: 22px 24px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.portfolio-note p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); max-width: 720px; }
.portfolio-note p b { color: var(--ink); font-weight: 700; }
.portfolio-note .text-link { font-size: 12px; white-space: nowrap; }

/* =========================================================
   Product detail
   ========================================================= */
.pd-hero { padding-top: calc(var(--header-h) + 30px); padding-bottom: clamp(40px, 5vw, 64px); }
.pd-grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 4.5vw, 72px); align-items: start; margin-top: 26px;
}
.pd-stage {
  position: sticky; top: 110px;
  border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(90% 80% at 50% 0%, #ffffff, #eef2f7 70%),
    linear-gradient(155deg, #f4f7fa, #e8edf3);
  padding: clamp(22px, 3vw, 42px);
  min-height: clamp(340px, 42vw, 500px);
  display: grid; place-items: center; overflow: hidden;
}
.pd-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(16, 28, 40, .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(16, 28, 40, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 78%);
}
.pd-stage img {
  position: relative; z-index: 1;
  width: 100%; max-height: clamp(260px, 34vw, 420px);
  object-fit: contain; mix-blend-mode: multiply;
  animation: pdFloat 7s ease-in-out infinite;
}
@keyframes pdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.pd-stage-meta {
  position: absolute; left: 18px; right: 18px; top: 16px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  font: 700 8.5px var(--display); letter-spacing: .16em; color: var(--muted);
}
.pd-stage-meta .dots { display: flex; gap: 5px; }
.pd-stage-meta .dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(16, 28, 40, .18); }
.pd-stage-meta .dots i:first-child { background: var(--accent); }
.pd-stage-foot {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2;
  display: flex; justify-content: space-between;
  font: 600 8.5px var(--display); letter-spacing: .13em; color: var(--muted);
}

.pd-hero .crumb { color: var(--muted); }
.pd-hero .crumb a { color: var(--ink); }
.pd-hero .crumb i { color: rgba(16, 28, 40, .28); }
.pd-hero .crumb b { color: var(--muted); }
.pd-info .crumb { color: var(--muted); }
.pd-info .crumb a { color: var(--ink); }
.pd-info .crumb i { color: rgba(16, 28, 40, .25); }
.pd-info .crumb b { color: var(--muted); }
.pd-kicker { display: block; margin: 22px 0 12px; text-transform: none; letter-spacing: .16em; }
.pd-model {
  font: 600 clamp(44px, 5.6vw, 76px)/.98 var(--display);
  letter-spacing: -.045em; margin: 0;
}
.pd-series {
  display: block; margin-top: 12px;
  font: 500 15px/1.5 var(--display); color: var(--muted); letter-spacing: .01em;
}
.pd-lead {
  font-size: 13.5px; line-height: 1.85; color: var(--muted);
  margin: 20px 0 24px; max-width: 460px;
}
.pd-keys {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; margin-bottom: 24px;
}
.pd-key { background: #fff; padding: 16px 14px; }
.pd-key b { display: block; font: 600 19px/1 var(--display); letter-spacing: -.02em; }
.pd-key b em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 3px; }
.pd-key span {
  display: block; margin-top: 7px; font-size: 8px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-actions .btn { height: 48px; padding: 0 22px; font-size: 12.5px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #17222e; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 16, 22, .22); }
.btn-line { border: 1px solid var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-line svg { width: 14px; height: 14px; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pd-badges span {
  font: 700 9px var(--display); letter-spacing: .12em;
  border: 1px solid var(--line); border-radius: 100px; padding: 7px 11px; color: var(--muted);
}

/* ---------------- Technical data ---------------- */
.pd-section { padding: clamp(56px, 6vw, 90px) 0; }
.pd-section.alt { background: var(--paper-2); }
.pd-two {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(30px, 5vw, 90px); align-items: start;
}
.pd-section-head h2 {
  font: 600 clamp(30px, 3.4vw, 46px)/1.08 var(--display);
  letter-spacing: -.035em; margin: 16px 0 16px;
}
.pd-section-head p { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 0 0 22px; max-width: 380px; }
.doc-note {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px dashed rgba(16, 28, 40, .2);
  background: #fff; border-radius: 10px; padding: 12px 14px;
  font-size: 10.5px; line-height: 1.65; color: var(--muted);
}
.doc-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: var(--accent); }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table tr:nth-child(even) { background: #fafcfd; }
.spec-table th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted);
  padding: 13px 18px; width: 48%;
}
.spec-table td {
  text-align: right; padding: 13px 18px;
  font: 600 12.5px var(--display); color: var(--ink);
}
.spec-table tr.key td { color: var(--accent); }

/* ---------------- Feature cards ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px 24px; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(11, 25, 40, .09); border-color: rgba(11, 169, 220, .3); }
.feature-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(11, 169, 220, .08); color: var(--accent);
}
.feature-icon svg { width: 19px; height: 19px; }
.feature-card h4 { font: 600 14px/1.35 var(--display); margin: 0 0 8px; letter-spacing: -.01em; }
.feature-card p { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ---------------- Related ---------------- */
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: 34px; }

.site-header:not(.is-scrolled) ~ main .cat-toolbar { top: var(--header-h); }

@media (max-width: 1280px) {
  .cat-grid, .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .cat-toolbar { top: 66px; }
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-stage { position: relative; top: 0; min-height: 320px; }
  .pd-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .cat-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-hero-foot { align-items: flex-start; }
  .cat-search { min-width: 0; width: 100%; }
  .cat-count { display: none; }
  .spec-table th, .spec-table td { padding: 11px 14px; }
}
@media (max-width: 520px) {
  .cat-grid, .related-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-actions .btn { width: 100%; }
  .cat-title { font-size: 38px; }
  .mc-media { aspect-ratio: 16 / 11; }
}
