/* Paraeng — catálogo, página de produto e biblioteca CAD */

.catalog-top { padding: clamp(40px, 6vw, 72px) 0 28px; position: relative; overflow: hidden; }
.catalog-heading { display: grid; gap: 16px; max-width: 880px; margin-top: 18px; }
.catalog-heading h1 { font: 800 italic clamp(2.4rem, 5.6vw, 4.6rem)/.95 var(--f-display); text-transform: uppercase; letter-spacing: -.025em; }
.catalog-heading p { font-size: 1.1rem; color: var(--c-muted); max-width: 64ch; }
.crumbs [data-listing-crumb-sep] { display: none; }
.crumbs [data-listing-crumb-parent]::after { content: ' /'; opacity: .45; margin-right: 6px; }

.cat-tools { position: sticky; top: 92px; z-index: 20; padding-block: 14px; background: linear-gradient(180deg, var(--c-paper) 75%, rgba(244,242,236,0)); }
.cat-search { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29,39,51,.12), 0 14px 40px -26px rgba(29,39,51,.5); }
.cat-search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: none; color: var(--c-steel); font-size: 16px; }
.cat-search .ico { color: var(--c-steel-muted); }
.cat-search button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--c-steel-muted); }
.cat-search button:hover { background: var(--c-paper); }
.fam-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; }
.fam-tabs::-webkit-scrollbar, .category-chips::-webkit-scrollbar { display: none; }
.category-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; padding-bottom: 2px; }
.category-chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--c-steel); font-size: 13.5px; box-shadow: inset 0 0 0 1px rgba(29,39,51,.12); white-space: nowrap; transition: background-color .3s, color .3s; }
.category-chip:hover { box-shadow: inset 0 0 0 1px rgba(29,39,51,.3); }
.category-chip.is-active, .category-chip[aria-pressed="true"] { background: var(--c-steel); color: #fff; box-shadow: none; }
.category-chip .count { opacity: .55; font-size: 12px; }
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 18px; color: var(--c-steel-muted); font-size: 14px; }
.cat-bar select { min-height: 42px; padding: 0 14px; border-radius: 999px; border: 0; background: #fff; color: var(--c-steel); box-shadow: inset 0 0 0 1px rgba(29,39,51,.14); }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgba(29,39,51,.07); color: var(--c-steel); font-size: 13px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.products-grid[aria-busy="true"] .sk { aspect-ratio: 3 / 4; border-radius: 26px; background: linear-gradient(100deg, #ebe8df 30%, #f6f4ef 50%, #ebe8df 70%) 0 0 / 300% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -150% 0; } }
.catalog-index-fallback { columns: 3 240px; padding-left: 18px; color: var(--c-steel); }
.catalog-index-fallback a { text-decoration: underline; }
.catalog-empty { display: none; padding: 60px 20px; text-align: center; color: var(--c-steel-muted); }
.catalog-empty.is-visible { display: grid; gap: 14px; justify-items: center; }

.pcard { display: flex; flex-direction: column; border-radius: 26px; padding: 5px; background: rgba(29,39,51,.04); box-shadow: inset 0 0 0 1px rgba(29,39,51,.08); transition: transform .6s var(--ease-out), box-shadow .5s; animation: cin .6s var(--ease-out) backwards; }
@keyframes cin { from { opacity: 0; transform: translateY(14px); } }
.pcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(29,39,51,.12), 0 30px 60px -36px rgba(29,39,51,.55); }
.pcard__img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 21px; overflow: hidden; background: #fff; }
.pcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: transform .8s var(--ease-out), opacity .5s; }
.pcard__img img + img { opacity: 0; }
.pcard:hover .pcard__img img:first-child { transform: scale(1.05); }
.pcard:hover .pcard__img img + img { opacity: 1; }
.pcard__fam { position: absolute; left: 12px; top: 12px; }
.pcard__body { display: grid; gap: 6px; padding: 14px 14px 6px; flex: 1; align-content: start; }
.pcard__cat { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #6b5000; font-weight: 600; }
.pcard__name { font-weight: 600; font-size: 15.5px; line-height: 1.3; color: var(--c-steel); }
.pcard__name a::after { content: ''; position: absolute; inset: 0; }
.pcard__sku { font-size: 12.5px; color: var(--c-steel-muted); }
.pcard__actions { position: relative; z-index: 1; display: flex; gap: 6px; padding: 8px; }
.pcard__actions .btn { flex: 1; justify-content: space-between; }
.pcard { position: relative; }

/* ---------- Página de produto ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pdp-gallery { position: sticky; top: 104px; display: grid; gap: 10px; }
.pdp-main { position: relative; aspect-ratio: 1 / 1; border-radius: 30px; background: #fff; overflow: hidden; cursor: zoom-in; box-shadow: inset 0 0 0 1px rgba(29,39,51,.08); }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .3s var(--ease-out); transform-origin: var(--zx, 50%) var(--zy, 50%); }
.pdp-main.is-zoom img { transform: scale(2); }
.pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; }
.pdp-thumbs button { flex: none; width: 76px; height: 76px; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(29,39,51,.1); }
.pdp-thumbs button[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--c-steel); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pdp-info { display: grid; gap: 18px; }
.pdp-info h1 { font: 800 italic clamp(2rem, 4vw, 3.3rem)/.98 var(--f-display); text-transform: uppercase; color: var(--c-steel); }
.pdp-info .code { display: inline-flex; padding: 6px 12px; border-radius: 99px; background: rgba(29,39,51,.07); color: var(--c-steel); font-size: 13px; font-weight: 600; justify-self: start; }
.pdp-short-desc { color: var(--c-steel-muted); font-size: 1.08rem; }
.variants { display: grid; gap: 8px; }
.variants legend { font-weight: 600; color: var(--c-steel); margin-bottom: 6px; padding: 0; }
.variants fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 340px; overflow-y: auto; }
.vopt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29,39,51,.1); cursor: pointer; font-size: 14px; color: var(--c-steel); }
.vopt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--c-steel); }
.vopt input { accent-color: var(--c-steel); }
.pdp-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29,39,51,.08); }
.pdp-buy .qty { box-shadow: inset 0 0 0 1px rgba(29,39,51,.18); color: var(--c-steel); }
.pdp-buy .btn { flex: 1; justify-content: space-between; min-width: 220px; }
.btn--wa { --bg: #25d366; --fg: #06301a; }
.btn--wa .btn__ico { background: rgba(6,48,26,.12); }
.pdp-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 13px; color: var(--c-steel-muted); }
.pdp-trust div { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: rgba(29,39,51,.04); }
.pdp-trust .ico { color: #8a6a10; }
.pdp-desc { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; }
.pdp-desc .prose { color: var(--c-steel); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(29,39,51,.1); }
.prose th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-steel-muted); }
.prose tbody tr:hover { background: rgba(29,39,51,.03); }
.side-cad .bezel__core { padding: 22px; display: grid; gap: 14px; }
.side-cad a.mini { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; font-size: 13.5px; color: var(--c-steel); }
.side-cad a.mini img { width: 72px; height: 44px; object-fit: cover; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29,39,51,.1); }
.related { margin-top: clamp(56px, 8vw, 96px); }
@media (max-width: 960px) { .pdp, .pdp-desc { grid-template-columns: minmax(0, 1fr); } .pdp-gallery { position: static; } .pdp-trust { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Biblioteca CAD ---------- */
.cad-hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 40px; }
.cad-hero h1 { font: 800 italic clamp(2.5rem, 6vw, 5rem)/.94 var(--f-display); text-transform: uppercase; letter-spacing: -.025em; }
.cad-hero__stats { display: flex; flex-wrap: wrap; gap: 10px; }
.cad-hero__stats span { padding: 8px 14px; border-radius: 99px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 13.5px; }
.cad-hero__stats b { color: var(--c-bolt); }
.cad-unlocked { display: none; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(61,220,151,.08); color: var(--c-ok); font-size: 14px; box-shadow: inset 0 0 0 1px rgba(61,220,151,.25); }
.has-cad-access .cad-unlocked { display: inline-flex; }
.cad-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.cad-side { position: sticky; top: 100px; display: grid; gap: 4px; max-height: calc(100dvh - 120px); overflow-y: auto; padding: 8px; border-radius: 24px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--c-line); }
.cad-side h2 { font: 600 11px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--c-bolt); padding: 14px 12px 6px; }
.cad-side button { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 14px; text-align: left; color: #c8cfd8; transition: background-color .25s, color .25s; }
.cad-side button:hover { background: rgba(255,255,255,.05); color: #fff; }
.cad-side button[aria-pressed="true"] { background: var(--c-bolt); color: var(--c-ink); font-weight: 600; }
.cad-side button small { opacity: .6; }
.cad-search { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 18px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--c-line-2); margin-bottom: 18px; }
.cad-search input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: none; font-size: 16px; }
.cad-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.cad-group-head:first-child { margin-top: 0; }
.cad-group-head h2 { font: 800 italic clamp(1.4rem, 2.6vw, 2rem)/1 var(--f-display); text-transform: uppercase; }
.cad-group-head h2 span { color: var(--c-bolt); }
.cad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cad-card { position: relative; display: flex; flex-direction: column; border-radius: 22px; padding: 5px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--c-line); transition: box-shadow .4s, transform .5s var(--ease-out); }
.cad-card:hover { box-shadow: var(--glow); transform: translateY(-3px); }
.cad-card__img { display: block; aspect-ratio: 5 / 3; border-radius: 17px; overflow: hidden; background: #fff; }
.cad-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.cad-card:hover .cad-card__img img { transform: scale(1.04); }
.cad-card__body { padding: 12px 10px 6px; display: grid; gap: 4px; flex: 1; }
.cad-card__code { font-size: 12px; font-weight: 700; color: var(--c-bolt); letter-spacing: .06em; }
.cad-card__title { font-size: 14.5px; line-height: 1.35; font-weight: 500; }
.cad-card__title a::after { content: ''; position: absolute; inset: 0; }
.cad-card__act { position: relative; z-index: 1; display: flex; gap: 6px; padding: 8px; }
.cad-card__act button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--c-line-2); transition: background-color .3s, color .3s; }
.cad-card__act button:hover { background: var(--c-bolt); color: var(--c-ink); box-shadow: none; }
.cad-card__act .ico { width: 16px; height: 16px; }
@media (max-width: 960px) { .cad-layout { grid-template-columns: minmax(0, 1fr); } .cad-side { position: static; max-height: none; display: flex; overflow-x: auto; } .cad-side h2 { display: none; } .cad-side button { flex: none; width: auto; white-space: nowrap; } }

/* Detalhe CAD */
.cad-detail { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cad-detail__view { border-radius: 28px; padding: 6px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--c-line); }
.cad-detail__view .frame { position: relative; border-radius: 23px; overflow: hidden; background: #fff; aspect-ratio: 5 / 3; }
.cad-detail__view img { width: 100%; height: 100%; object-fit: contain; }
.cad-detail__view .wm { position: absolute; inset: auto 14px 14px auto; padding: 6px 12px; border-radius: 99px; background: rgba(8,9,11,.75); color: #fff; font-size: 12px; }
.cad-detail__info { display: grid; gap: 18px; position: sticky; top: 104px; }
.cad-detail__info h1 { font: 800 italic clamp(1.9rem, 3.6vw, 2.9rem)/1 var(--f-display); text-transform: uppercase; }
.cad-dl { display: grid; gap: 10px; }
.cad-dl .btn { justify-content: space-between; }
.cad-files { display: grid; gap: 8px; font-size: 13.5px; color: var(--c-muted); }
.cad-files li { display: flex; gap: 10px; align-items: center; }
.cad-files .ico { color: var(--c-bolt); }
.cad-sibs { margin-top: clamp(48px, 7vw, 88px); }
@media (max-width: 960px) { .cad-detail { grid-template-columns: minmax(0, 1fr); } .cad-detail__info { position: static; } }
.section--paper .crumbs, .section--paper .catalog-heading p, .flow-page .breadcrumb { color: var(--c-steel-muted); }
.pcard__more { height: 1px; grid-column: 1 / -1; }
.category-chip .count { opacity: 1; color: var(--c-steel-muted); }
.category-chip.is-active .count, .category-chip[aria-pressed="true"] .count { color: rgba(255,255,255,.75); }
.cad-card__act button { color: var(--c-text); transition: background-color .3s; }
.cad-card__act button:hover { color: var(--c-ink); }

/* ---------- Coluna de categorias (desktop) ---------- */
.cat-side { display: none; }
@media (min-width: 1024px) {
  .cat-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 8px; }
  .cat-side { position: sticky; top: 104px; display: grid; gap: 2px; max-height: calc(100dvh - 124px); overflow-y: auto; padding: 10px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px rgba(29,39,51,.08), 0 20px 50px -36px rgba(29,39,51,.45); scrollbar-width: thin; }
  .cat-side h2 { font: 700 11px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: #6b5000; padding: 16px 12px 6px; }
  .side-cat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 14px; color: var(--c-steel); transition: background-color .25s, color .25s; }
  .side-cat span { font-size: 12px; color: var(--c-steel-muted); }
  .side-cat:hover { background: var(--c-paper); }
  .side-cat[aria-current="true"] { background: var(--c-steel); color: #fff; font-weight: 600; }
  .side-cat[aria-current="true"] span { color: rgba(255,255,255,.75); }
  .side-cat--all { font-weight: 600; }
  .cat-tools { position: static; padding-bottom: 0; }
  .cat-tools .category-chips { display: none; }
  .cat-layout .cat-bar { margin-top: 0; }
  .cat-layout .products-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
