:root { --gutter: clamp(20px, 3.4vw, 64px); }
.wrap { width: 100%; max-width: 2400px; margin-inline: auto; padding-inline: var(--gutter); }

/* Aviso e navegação */
.announce { background: var(--bg-2); color: var(--ink-2); font-size: .8rem; text-align: center; padding: .7rem var(--gutter); letter-spacing: -.01em; }
.announce:has(span:empty) { display: none; }
.nav { position: sticky; top: 0; z-index: 50; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-bottom-color: var(--line-2); }
.nav__inner { display: flex; align-items: center; gap: 2.25rem; height: 56px; }
.brand { font-size: 1.3rem; font-weight: 600; letter-spacing: -.025em; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.nav__links { display: flex; gap: 1.75rem; flex: 1; min-width: 0; }
.nav__links button { border: 0; background: none; padding: 0; font-size: .8rem; color: var(--ink); opacity: .82; letter-spacing: -.005em; white-space: nowrap; transition: opacity .2s; }
.nav__links button:hover { opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.search { position: relative; display: block; }
.search__icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.search input { width: 200px; height: 34px; border-radius: 10px; border: 0; background: var(--bg-2); padding: 0 .85rem 0 2.1rem; font-size: .84rem; transition: width .35s var(--ease-out), box-shadow .2s, background .2s; }
.search input:focus { outline: none; width: 280px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 0 0 4px rgba(0, 113, 227, .14); }
.bag { position: relative; width: 36px; height: 36px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); border-radius: 50%; transition: background .2s; }
.bag:hover { background: var(--bg-2); }
.bag > span:first-child { width: 20px; height: 20px; }
.bag__count { position: absolute; top: 1px; right: -1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--inv-bg); color: var(--inv-fg); font-size: .62rem; font-weight: 600; display: grid; place-items: center; letter-spacing: 0; }
.bag__count[hidden] { display: none; }
.bag.is-bump .bag__count { animation: bump .5s var(--ease-out); }
@keyframes bump { 35% { transform: scale(1.35); } }

/* Abertura */
.hero { padding: clamp(3rem, 7vw, 6.5rem) 0 0; }
.hero__head { text-align: center; max-width: 980px; margin: 0 auto; }
.hero__kicker { margin: 0 0 .9rem; font-size: 1.05rem; font-weight: 600; color: var(--new); letter-spacing: -.01em; }
.hero__kicker:empty { display: none; }
.hero h1 { margin: 0 auto; font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.hero__lead { margin: 1.25rem auto 0; max-width: 680px; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.38; color: var(--muted); letter-spacing: -.015em; font-weight: 400; text-wrap: pretty; }
.hero__cta { display: flex; justify-content: center; align-items: center; gap: 1.75rem; margin-top: 2rem; flex-wrap: wrap; }
.link-more { color: var(--link); text-decoration: none; font-size: 1.02rem; background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: .1rem; }
.link-more::after { content: '›'; font-size: 1.25em; line-height: 1; margin-left: .2rem; transform: translateY(-.04em); transition: transform .25s var(--ease-out); }
.link-more:hover { text-decoration: underline; }
.link-more:hover::after { transform: translate(3px, -.04em); }

.stage { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); height: clamp(380px, 52vw, 720px); border-radius: 32px; background: radial-gradient(120% 90% at 50% 18%, var(--st1) 0%, var(--st2) 58%, var(--st3) 100%); overflow: hidden; cursor: pointer; }
.stage__img { position: absolute; inset: 4% 18% 10%; display: grid; place-items: center; transition: transform 1.2s var(--ease-out); }
.stage__img svg { width: 100%; height: 100%; }
.stage:hover .stage__img { transform: scale(1.025); }
.stage__caption { position: absolute; left: clamp(1.5rem, 3vw, 3rem); bottom: clamp(1.5rem, 3vw, 2.75rem); display: grid; gap: .2rem; }
.stage__caption small { font-size: .8rem; color: var(--new); font-weight: 600; }
.stage__caption strong { font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 600; letter-spacing: -.03em; }
.stage__caption span { color: var(--muted); font-size: 1rem; }
.stage__caption .link-more { margin-top: .4rem; }
.stage__stats { position: absolute; right: clamp(1.5rem, 3vw, 3rem); bottom: clamp(1.5rem, 3vw, 2.75rem); display: flex; gap: clamp(1.5rem, 3vw, 3rem); text-align: right; }
.stage__stats div { display: grid; }
.stage__stats strong { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stage__stats span { font-size: .78rem; color: var(--muted); }

/* Valores */
.values { padding: clamp(2.5rem, 4vw, 3.5rem) 0 0; }
.values__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 1.4vw, 1.5rem); }
.value { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: 1.4rem 1.6rem; border-radius: 18px; background: var(--bg-2); }
.value__icon { width: 26px; height: 26px; color: var(--ink); }
.value__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.value p { margin: 0; font-size: 1rem; font-weight: 500; letter-spacing: -.015em; }

/* Secções */
.section { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.section--gray { background: var(--bg-2); }
.section__head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section__head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.section__head h2 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 3rem); letter-spacing: -.035em; font-weight: 600; line-height: 1.08; text-wrap: balance; }
.section__head h2 span { color: var(--muted); }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.4vw, 1.5rem); }
.cat { position: relative; display: flex; flex-direction: column; border: 0; background: var(--bg-2); border-radius: var(--radius); padding: clamp(1.5rem, 2.2vw, 2.25rem); text-align: left; overflow: hidden; min-height: clamp(280px, 26vw, 400px); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.cat:hover { transform: scale(1.012); box-shadow: var(--shadow-2); }
.cat h3 { margin: 0; font-size: clamp(1.3rem, 1.8vw, 1.75rem); letter-spacing: -.03em; font-weight: 600; }
.cat p { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; max-width: 32ch; }
.cat__count { margin-top: .9rem; font-size: .95rem; color: var(--link); }
.cat__count::after { content: ' ›'; }
.cat__img { flex: 1; min-height: 120px; margin: .5rem -10% -12% 18%; }
.cat__img svg { width: 100%; height: 100%; }

/* Catálogo */
.toolbar { display: flex; align-items: center; gap: 1rem; }
.toolbar__count { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.sort .select { height: 38px; border-radius: 10px; min-width: 220px; font-size: .88rem; border-color: transparent; background-color: var(--card); }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: clamp(1.25rem, 2.4vw, 2rem); }
.tab { height: 38px; padding: 0 1.1rem; border-radius: 999px; border: 0; background: var(--card); font-size: .88rem; color: var(--ink); display: inline-flex; align-items: center; gap: .45rem; transition: background .25s, color .25s; }
.tab small { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tab:hover { background: var(--tab-hover); }
.tab[aria-selected="true"] { background: var(--inv-bg); color: var(--inv-fg); }
.tab[aria-selected="true"] small { color: inherit; opacity: .55; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 19vw, 320px), 1fr)); gap: clamp(.75rem, 1.4vw, 1.5rem); }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); animation: rise .7s var(--ease-out) both; }
.card:hover { transform: scale(1.015); box-shadow: var(--shadow-2); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.card__media { position: relative; aspect-ratio: 1 / .9; cursor: pointer; margin: .6rem .6rem 1.1rem; padding: 4% 8%; border-radius: 16px; background: radial-gradient(110% 95% at 50% 15%, var(--st1) 0%, var(--st2) 62%, var(--st3) 100%); }
.card__media svg { width: 100%; height: 100%; transition: transform .9s var(--ease-out); }
.card:hover .card__media svg { transform: scale(1.04); }
.card.is-out .card__media svg { opacity: .55; }
.card__body { padding: 0 clamp(1.25rem, 1.6vw, 1.6rem) clamp(1.25rem, 1.6vw, 1.6rem); display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.flag { font-size: .78rem; font-weight: 600; color: var(--new); letter-spacing: -.005em; min-height: 1.2em; }
.flag--muted { color: var(--muted); }
.card__name { margin: 0; padding: 0; border: 0; background: none; text-align: left; font-size: 1.12rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; cursor: pointer; color: var(--ink); }
.card__desc { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; }
.price { display: grid; font-variant-numeric: tabular-nums; }
.price strong { font-size: 1.02rem; font-weight: 500; letter-spacing: -.015em; }
.price s { color: var(--muted); font-size: .8rem; }
.buy-btn { height: 32px; padding: 0 1rem; border-radius: 980px; border: 0; background: var(--accent); color: #fff; font-size: .82rem; font-weight: 500; white-space: nowrap; transition: background .2s; }
.buy-btn:hover { background: var(--accent-hover); }
.buy-btn[disabled] { background: var(--bg-2); color: var(--muted); cursor: default; }
.stock { font-size: .78rem; display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); }
.stock .dot { width: 6px; height: 6px; }
.stock--ok .dot { background: var(--ok); }
.stock--low { color: var(--warn); }
.stock--out { color: var(--muted); }

.empty { text-align: center; padding: 5rem 1rem; background: var(--card); border-radius: var(--radius); }
.empty strong { font-size: 1.3rem; letter-spacing: -.02em; }
.empty p { color: var(--muted); margin: .4rem 0 1rem; }

/* Rodapé */
.footer { background: var(--bg-2); color: var(--muted); font-size: .76rem; padding: 2rem 0 1.5rem; border-top: 1px solid var(--line-2); }
.footer__note { margin: 0 0 1.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); line-height: 1.5; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; padding-bottom: 1.5rem; }
.footer h3 { margin: 0 0 .6rem; color: var(--ink); font-size: .76rem; font-weight: 600; letter-spacing: -.005em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer ul a, .footer ul button { color: var(--ink-2); text-decoration: none; font-size: .76rem; background: none; border: 0; padding: 0; }
.footer ul a:hover, .footer ul button:hover { text-decoration: underline; color: var(--ink); }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.techlab { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink-2); text-decoration: none; }
.techlab:hover span { text-decoration: underline; }
.techlab img { height: 18px; width: auto; }

/* Detalhe do produto */
.modal, .drawer { position: fixed; inset: 0; z-index: 100; }
.modal__backdrop, .drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s var(--ease); }
.modal.is-open .modal__backdrop, .drawer.is-open .drawer__backdrop { opacity: 1; }
.modal__panel { position: absolute; left: 50%; top: 50%; width: min(1180px, calc(100% - 2 * var(--gutter))); max-height: calc(100% - 48px); overflow: auto; background: var(--card); border-radius: 28px; box-shadow: var(--shadow-3); display: grid; grid-template-columns: 1.15fr 1fr; opacity: 0; transform: translate(-50%, -48%) scale(.98); transition: opacity .35s var(--ease), transform .55s var(--ease-out); }
.modal.is-open .modal__panel { opacity: 1; transform: translate(-50%, -50%); }
.modal__media { background: radial-gradient(110% 90% at 50% 20%, var(--st1), var(--st2) 65%, var(--st3)); padding: 6%; min-height: 420px; }
.modal__media svg { width: 100%; height: 100%; }
.modal__info { padding: clamp(2rem, 3.5vw, 3.25rem); display: flex; flex-direction: column; gap: 1.1rem; }
.modal__close { position: absolute; top: 18px; right: 18px; z-index: 2; border: 0; background: var(--bg-2); }
.modal__close:hover { background: var(--line-2); }
.modal__info h2 { margin: 0; font-size: clamp(1.8rem, 2.8vw, 2.5rem); letter-spacing: -.04em; line-height: 1.08; font-weight: 600; }
.modal__price { font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.modal__price s { color: var(--muted); font-size: 1rem; margin-left: .5rem; }
.modal__desc { color: var(--ink-2); margin: 0; font-size: 1.02rem; line-height: 1.5; }
.specs { margin: .25rem 0 0; border-top: 1px solid var(--line-2); }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; text-align: right; }
.buy { display: flex; gap: .75rem; align-items: center; margin-top: auto; padding-top: .5rem; }
.buy .btn { flex: 1; height: 50px; font-size: 1rem; }
.buy .stepper { height: 50px; }
.buy .stepper button { width: 44px; height: 48px; }
.modal__note { margin: 0; font-size: .78rem; color: var(--muted); }

/* Carrinho */
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--card); box-shadow: var(--shadow-3); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .55s var(--ease-out); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 1.75rem 1.1rem; }
.drawer__head h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.035em; font-weight: 600; }
.drawer__head h2 small { color: var(--muted); font-weight: 400; font-size: .95rem; margin-left: .4rem; letter-spacing: -.01em; }
.drawer__head .icon-btn { border: 0; background: var(--bg-2); }
.drawer__body { flex: 1; overflow: auto; padding: 0 1.75rem; }
.drawer__foot { padding: 1.25rem 1.75rem 1.75rem; border-top: 1px solid var(--line-2); display: grid; gap: 1rem; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.line__art { width: 84px; height: 84px; border-radius: 14px; background: var(--bg-2); padding: 6px; }
.line__art svg { width: 100%; height: 100%; }
.line__name { font-weight: 600; font-size: .98rem; margin: 0 0 .1rem; letter-spacing: -.02em; }
.line__sub { font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.line__right { display: grid; justify-items: end; gap: .55rem; align-self: stretch; align-content: space-between; }
.line__right strong { font-variant-numeric: tabular-nums; font-size: .98rem; font-weight: 500; }
.line__remove { border: 0; background: none; padding: 0; color: var(--link); font-size: .82rem; }
.line__remove:hover { text-decoration: underline; }
.line .stepper { height: 32px; }
.line .stepper button { width: 30px; height: 30px; }
.totals { display: grid; gap: .5rem; font-size: .92rem; }
.totals div { display: flex; justify-content: space-between; }
.totals span { color: var(--muted); }
.totals .totals__grand { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; padding-top: .6rem; border-top: 1px solid var(--line-2); margin-top: .2rem; }
.totals .totals__grand span { color: var(--ink); }
.drawer__empty { text-align: center; padding: 5rem 1rem; display: grid; justify-items: center; gap: .5rem; }
.drawer__empty strong { font-size: 1.25rem; letter-spacing: -.02em; }
.drawer__empty p { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.checkout { display: grid; gap: 1rem; padding: .5rem 1.75rem 1.25rem; align-content: start; }
.notice { padding: .9rem 1rem; border-radius: 12px; background: var(--bg-2); color: var(--ink-2); font-size: .84rem; line-height: 1.45; }
.summary-mini { display: grid; gap: .45rem; font-size: .88rem; padding-top: .5rem; }
.summary-mini div { display: flex; justify-content: space-between; gap: 1rem; }
.summary-mini span:first-child { color: var(--muted); }
.done { text-align: center; padding: 4rem .5rem; display: grid; justify-items: center; gap: .5rem; }
.done__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin-bottom: .75rem; animation: pop .6s var(--ease-out); }
.done__icon svg { width: 30px; height: 30px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.done h3 { margin: 0; font-size: 1.6rem; letter-spacing: -.035em; font-weight: 600; }
.done p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 32ch; }
.done .order-no { font-weight: 500; color: var(--ink); font-size: 1rem; margin: .6rem 0 1.4rem; font-variant-numeric: tabular-nums; }

body.is-locked { overflow: hidden; }

/* Responsivo */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat { min-height: 300px; }
}
@media (max-width: 860px) {
  .values__row { grid-template-columns: 1fr; }
  .stage { height: 520px; }
  .stage__img { inset: 2% 6% 34%; }
  .stage__stats { left: clamp(1.5rem, 3vw, 3rem); right: auto; bottom: auto; top: clamp(1.25rem, 3vw, 2rem); text-align: left; }
  .modal__panel { grid-template-columns: 1fr; top: auto; bottom: 0; transform: translate(-50%, 6%); width: 100%; border-radius: 28px 28px 0 0; max-height: 92%; }
  .modal.is-open .modal__panel { transform: translate(-50%, 0); }
  .modal__media { min-height: 0; aspect-ratio: 16 / 11; padding: 4% 14%; }
}
@media (max-width: 640px) {
  .nav__inner { gap: .75rem; }
  .nav__actions { flex: 1; }
  .search { flex: 1; }
  .search input, .search input:focus { width: 100%; }
  .hero h1 { font-size: 2.5rem; }
  .cat { min-height: 230px; padding: 1.1rem; }
  .cat p { display: none; }
  .cat__img { margin: .5rem -14% -16% 10%; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card__desc { display: none; }
  .card__foot { flex-direction: column; align-items: stretch; gap: .6rem; }
  .buy-btn { width: 100%; }
  .stage__stats strong { font-size: 1.3rem; }
  .toolbar { width: 100%; justify-content: space-between; }
  .sort .select { min-width: 0; }
}

/* Logótipo TechLab conforme o tema */
.techlab .logo-dark { display: none; }
[data-theme="dark"] .techlab .logo-light { display: none; }
[data-theme="dark"] .techlab .logo-dark { display: block; }

.section__head h2 .h2-main { color: var(--ink); }


/* Painel de demonstração (segmentos) */
.hero__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); align-items: center; }
.hero__spacer { display: none; }
.demo { width: 100%; max-width: 1100px; margin-inline: auto; padding: 1rem; border-radius: 24px; background: var(--bg-2); }
.demo__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .35rem .55rem .85rem; }
.demo__eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.demo__title { margin: .2rem 0 0; font-size: 1.02rem; font-weight: 600; letter-spacing: -.02em; }
.demo__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.demo__item { width: 100%; display: flex; align-items: center; gap: .7rem; padding: .55rem .55rem .55rem .7rem; border: 0; border-radius: 13px; background: transparent; color: var(--ink); font-size: .9rem; font-weight: 500; letter-spacing: -.012em; text-align: left; transition: background .2s; }
.demo__item:hover { background: var(--tab-hover); }
.demo__item[aria-checked="true"] { background: var(--card); box-shadow: var(--shadow-1); }
.demo__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--c); }
.demo__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__track { position: relative; flex-shrink: 0; width: 58px; height: 26px; border-radius: 999px; background: var(--switch-off, #D5D5DA); transition: background .3s var(--ease); }
.demo__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: transform .35s var(--ease-out); }
.demo__item[aria-checked="true"] .demo__track { background: var(--c); }
.demo__item[aria-checked="true"] .demo__knob { transform: translateX(32px); }
.demo__note { margin: .8rem .55rem .2rem; font-size: .74rem; color: var(--muted); line-height: 1.4; }
.hero__kicker { transition: color .3s; }

@media (min-width: 1680px) {
  .hero__layout { grid-template-columns: minmax(300px, 1fr) minmax(0, 900px) minmax(300px, 1fr); }
  .hero__spacer { display: block; }
  .demo { justify-self: end; width: min(320px, 100%); min-width: 0; padding: .85rem; }
  .demo__head { display: block; padding-bottom: .7rem; }
  .demo__list { grid-template-columns: 1fr; gap: 2px; }
  .demo__item { padding-block: .48rem; }
}
@media (max-width: 640px) {
  .demo { padding: .75rem; border-radius: 20px; }
  .demo__head { display: block; }
  .demo__list { grid-template-columns: 1fr 1fr; }
  .demo__item { gap: .45rem; padding: .5rem; font-size: .82rem; }
  .demo__dot { display: none; }
  .demo__track { width: 44px; height: 24px; }
  .demo__knob { width: 18px; height: 18px; }
  .demo__item[aria-checked="true"] .demo__knob { transform: translateX(20px); }
}

/* Fotografias dos segmentos */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease), transform .9s var(--ease-out); }
.photo.is-loaded { opacity: 1; }
.card__media.has-photo { padding: 0; overflow: hidden; background: var(--bg-2); }
.card:hover .card__media.has-photo .photo { transform: scale(1.04); }
.modal__media.has-photo { padding: 0; overflow: hidden; background: var(--bg-2); }
.modal__media.has-photo .photo { min-height: 100%; }
.line__art.has-photo { padding: 0; overflow: hidden; }
.cat__photo { display: block; flex: 1; min-height: clamp(150px, 14vw, 230px); margin-top: 1.1rem; border-radius: 16px; overflow: hidden; background: var(--line-2); }
.cat:hover .cat__photo .photo { transform: scale(1.04); }
.stage__photo { position: absolute; inset: 0; }
.stage--photo:hover .stage__photo .photo { transform: scale(1.02); }
.stage--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .18) 38%, rgba(0, 0, 0, 0) 60%); pointer-events: none; }
.stage--photo .stage__caption, .stage--photo .stage__stats { z-index: 2; color: #fff; }
.stage--photo .stage__caption small { color: #fff; opacity: .85; }
.stage--photo .stage__caption span, .stage--photo .stage__stats span { color: rgba(255, 255, 255, .78); }
.stage--photo .link-more { color: #fff; }
@media (max-width: 860px) {
  .stage--photo::after { background: linear-gradient(to top, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, .45) 100%); }
}

/* Caixa 3D (modelo Limpo) */
.cube3d { container-type: size; position: relative; width: 100%; height: 100%; display: grid; place-items: center; perspective: 1100px; perspective-origin: 50% 35%; }
.cube3d__box { --w: 44cqmin; --h: 36cqmin; --d: 36cqmin; --a: calc(var(--spin, 0deg) + var(--o, 0deg));
  position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: translateY(-4cqmin) rotateX(-18deg) rotateY(var(--a)); will-change: transform; }
.cf { position: absolute; left: 50%; top: 50%; display: block; background: linear-gradient(180deg, #FBFBFC 0%, #EEEEF1 55%, #E2E2E7 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.cf::before { content: ''; position: absolute; left: 0; right: 0; top: 13%; height: 1px; background: rgba(0, 0, 0, .07); box-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.cf--front, .cf--back { width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); }
.cf--right, .cf--left { width: var(--d); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--d) / -2); }
.cf--top, .cf--bottom { width: var(--w); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--w) / -2); }
.cf--front { transform: translateZ(calc(var(--d) / 2)); filter: brightness(calc(.86 + .14 * cos(var(--a) + 25deg))); }
.cf--right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); filter: brightness(calc(.86 + .14 * cos(var(--a) + 115deg))); }
.cf--back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); filter: brightness(calc(.86 + .14 * cos(var(--a) + 205deg))); }
.cf--left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); filter: brightness(calc(.86 + .14 * cos(var(--a) + 295deg))); }
.cf--top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background: linear-gradient(135deg, #FFFFFF, #F2F2F5); }
.cf--top::before { inset: 28% 32%; top: 28%; height: auto; border-radius: 999px; background: none; border: 1px solid rgba(0, 0, 0, .06); box-shadow: none; }
.cf--bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: #CFCFD5; }
.cf--bottom::before { display: none; }
.cube3d__shadow { position: absolute; left: 50%; top: 50%; width: 62cqmin; height: 9cqmin; transform: translate(-50%, 17cqmin); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)); filter: blur(2.5cqmin); }
[data-theme="dark"] .cube3d__shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.stage__img .cube3d__box { --w: 40cqmin; --h: 33cqmin; --d: 33cqmin; }
@media (prefers-reduced-motion: reduce) { .cube3d__box { will-change: auto; } }
.cat__img:has(.cube3d) { margin: .75rem 0 -.5rem; min-height: clamp(150px, 13vw, 220px); }

/* Fotos recortadas: produto sobre o fundo de estúdio, sem fundo próprio */
.photo--cut { object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .14)); }
[data-theme="dark"] .photo--cut { filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.card__media.has-photo { padding: 7% 9%; background: radial-gradient(110% 95% at 50% 15%, var(--st1) 0%, var(--st2) 62%, var(--st3) 100%); overflow: visible; }
.modal__media.has-photo { padding: 8%; background: radial-gradient(110% 90% at 50% 20%, var(--st1), var(--st2) 65%, var(--st3)); }
.line__art.has-photo { padding: 8px; }
.cat__photo { background: radial-gradient(110% 95% at 50% 15%, var(--st1) 0%, var(--st2) 62%, var(--st3) 100%); padding: 6% 10%; }
.cat__photo .photo--cut { max-height: 100%; }

/* Redes sociais no topo */
.social { display: flex; align-items: center; gap: .15rem; }
.social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: background .2s, color .2s; }
.social a:hover { background: var(--bg-2); color: var(--ink); }
.social svg { width: 17px; height: 17px; }
@media (max-width: 640px) { .social { display: none; } }

.account { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background .2s; }
.account:hover { background: var(--bg-2); }
.account svg { width: 21px; height: 21px; }
