/* ===== Tokmar v2: menu Ocasião / Pessoa / Produto, banners rotativos, blocos da home, modelos prontos ===== */

/* Topo */
.top-in { grid-template-columns: auto auto 1fr auto; gap: 18px; }
.menu-btn { display: none; }
.main-nav { display: flex; gap: 2px; }
.nav-btn { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--ink); }
.nav-btn .ic { transition: transform .2s; }
.nav-btn:hover, .nav-btn.is-on { background: var(--mist); }
.nav-btn.is-on .ic { transform: rotate(180deg); }
.search { justify-self: end; width: min(380px, 100%); display: flex; align-items: center; padding: 4px 4px 4px 18px; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; height: 38px; }
.search-go { width: 38px; height: 38px; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(27,20,22,.12); animation: fade .15s; }
.mega-in { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter) 28px; }
.mega-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.mega-head h2 { font-family: var(--display); font-weight: 800; font-stretch: 80%; text-transform: uppercase; font-size: 26px; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 8px; }
.mega-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.mega-link .ic { color: var(--ribbon); }
.mega-link i { margin-left: auto; font-style: normal; font-size: 12px; color: var(--mute); font-weight: 500; }
.mega-link:hover { background: var(--mist); }
.mega-agora { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.agora-card { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 14px; background: var(--ribbon-soft); text-decoration: none; min-width: 240px; }
.agora-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; }
.agora-card small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ribbon); }
.agora-card b { font-size: 18px; }
.agora-card:hover { background: #fbd5d5; }
.menu-bg { position: fixed; inset: 0; background: rgba(27,20,22,.45); z-index: 60; animation: fade .2s; }
.side-menu { position: fixed; z-index: 61; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); background: #fff; overflow: auto; display: flex; flex-direction: column; animation: slideL .25s cubic-bezier(.2,.7,.2,1); padding-bottom: env(safe-area-inset-bottom, 0px); }
@keyframes slideL { from { transform: translateX(-100%); } }
.sm-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sm-group { border-bottom: 1px solid var(--line); }
.sm-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px; font-weight: 700; font-size: 17px; cursor: pointer; }
.sm-group summary::-webkit-details-marker { display: none; }
.sm-group[open] summary .ic { transform: rotate(180deg); }
.sm-links { display: grid; padding: 0 8px 12px; }
.sm-links a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.sm-links a .ic { color: var(--ribbon); }
.sm-links a em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--ribbon); padding: 2px 8px; border-radius: 999px; }
.sm-links a:hover { background: var(--mist); }
.sm-foot { padding: 16px; display: grid; gap: 10px; margin-top: auto; }
.sm-foot a { font-weight: 600; }

/* Banners rotativos */
.carousel { position: relative; background: var(--ribbon); overflow: hidden; }
.car-track { display: grid; }
.car-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.car-slide.is-on { opacity: 1; visibility: visible; }
.car-slide .hs-in { min-height: 500px; padding-bottom: 72px; }
.hs-h { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; font-size: clamp(38px, 5.2vw, 80px); text-wrap: balance; }
.car-ctrl { position: absolute; left: 0; right: 0; bottom: 18px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 10px; }
.car-arrow { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; cursor: pointer; }
.car-arrow:hover { background: rgba(255,255,255,.32); }
.car-dots { display: flex; gap: 8px; align-items: center; }
.car-dots button { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width .2s, background .2s; }
.car-dots button[aria-current] { width: 26px; background: #fff; }
.ship-in { justify-content: center; text-align: center; }
.ship-in p { flex: initial; }

/* Seções da home */
.kicker { display: block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ribbon); margin-bottom: 6px; }
.boards-5 { grid-template-columns: repeat(5, 1fr); gap: 20px 16px; }
.board-ph { position: relative; }
.board-now { position: absolute; left: 10px; top: 10px; background: var(--ribbon); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.boards-5 .board-tx h3 { font-size: 17px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 22px 12px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; text-align: center; }
.person-ph { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: var(--mist); display: grid; place-items: center; color: var(--ribbon); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ribbon); margin-bottom: 6px; transition: transform .2s; }
.person-ph img { width: 100%; height: 100%; object-fit: cover; }
.person:hover .person-ph { transform: scale(1.05); }
.person b { font-size: 15px; line-height: 1.2; }
.person small { color: var(--mute); font-size: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; align-items: start; }
.tile { display: flex; flex-direction: column; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile-ph { background: var(--mist); overflow: hidden; }
.tile-ph img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.tile-tx { padding: 8px 10px 10px; font-size: 13.5px; font-weight: 600; line-height: 1.25; }

/* Catálogo */
.crumbs-in { padding: 0 0 6px; }
.seg-toggle { display: inline-flex; background: var(--mist); border-radius: 12px; padding: 4px; }
.seg-toggle button { height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; cursor: pointer; color: var(--mute); white-space: nowrap; }
.seg-toggle button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(27,20,22,.12); }
.type-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; padding-bottom: 2px; }
.type-chips::-webkit-scrollbar { display: none; }
.type-chips .pill { flex: none; }
.pill.is-on { background: var(--ink); color: #fff; }
.card-badge-ready { background: var(--ink); color: #fff; }
.card-badge-live { background: var(--ribbon); color: #fff; }
.tag-ask { background: var(--mist); color: var(--ink-2); font-size: 13px; }
.tag-ask::before { background: #fff; }
.card-ready { cursor: zoom-in; }

/* Janela rápida (modelo pronto) */
.modal-quick { width: min(940px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
.qk-x { position: absolute; right: 10px; top: 10px; z-index: 2; background: #fff; box-shadow: var(--shadow); }
.qk { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.qk-media { background: var(--mist); padding: 16px; border-radius: 22px 0 0 22px; }
.qk-media > img { width: 100%; max-height: 68vh; object-fit: contain; border-radius: 12px; }
.qk-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.qk-thumbs button { flex: 0 0 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; }
.qk-thumbs button.is-on { border-color: var(--ink); }
.qk-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qk-info { padding: 32px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.qk-info h2 { font-family: var(--display); font-weight: 800; font-stretch: 82%; font-size: 30px; line-height: 1.02; }
.qk-info .eyebrow { margin-bottom: 0; align-self: flex-start; }
.qk-desc { margin: 0; color: var(--ink-2); }
.qk-lead { margin: 0; font-size: 14px; color: var(--mute); }
.qk-info .qty-row { margin: 0; padding-top: 12px; }
.qk-info .field { margin: 0; }

/* Produto: palco fixo com prévia e miniaturas */
.stage { display: grid; gap: 10px; align-self: start; align-content: start; }
.stage .live { position: relative; top: auto; box-shadow: none; }
.stage-photo { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--mist); aspect-ratio: 1; }
.stage-photo img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.thumb { flex: 0 0 72px; height: 72px; padding: 0; border-radius: 10px; border: 2px solid transparent; overflow: hidden; background: var(--mist); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: var(--ink); }
.thumb-live { display: grid; place-items: center; align-content: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--ribbon); }
.live-tools { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(27,20,22,.86); color: #fff; border-radius: 999px; padding: 6px 6px 6px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.live-tools span { display: inline-flex; align-items: center; gap: 6px; }
.live-tools button { border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; padding: 6px 12px; cursor: pointer; }
canvas.can-drag { cursor: grab; touch-action: none; }
canvas.dragging { cursor: grabbing; }
.tiers { margin: -8px 0 16px; font-size: 14px; color: var(--ink-2); }
.custom-link { margin: 4px 0 18px; }
.qty-sum b { color: var(--ink); }
.mini-live { width: 150px; height: 150px; }
@media (min-width: 901px) {
  .pdp-media { align-self: stretch; }
  .stage { position: sticky; top: 92px; }
  .pdp-media .live { position: relative; top: auto; }
}

@media (max-width: 1180px) {
  .boards-5 { grid-template-columns: repeat(3, 1fr); }
  .nav-btn { padding: 0 10px; }
}
@media (max-width: 900px) {
  .top-in { grid-template-columns: auto auto 1fr auto; gap: 8px; }
  .menu-btn { display: grid; }
  .main-nav { display: none; }
  .search { width: 100%; padding-left: 14px; }
  .mega { display: none; }
  .car-slide .hs-in { min-height: 0; padding-bottom: 64px; }
  .car-ctrl { justify-content: center; }
  .boards-5 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .boards-5 .board { flex: 0 0 74%; scroll-snap-align: start; }
  .people { display: flex; overflow-x: auto; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter); scrollbar-width: none; }
  .person { flex: 0 0 86px; }
  .person-ph { width: 80px; height: 80px; }
  .person b { font-size: 13px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qk { grid-template-columns: minmax(0, 1fr); }
  .qk-media { border-radius: 22px 22px 0 0; }
  .qk-media > img { max-height: 46vh; }
  .cat-tools { width: 100%; }
}
@media (max-width: 560px) {
  .seg-toggle { width: 100%; }
  .seg-toggle button { flex: 1; padding: 0 8px; }
  .chip-btn { flex: 1; justify-content: center; }
  .logo-img { height: 32px; }
  .list-btn { padding: 0 10px; }
  .live-tools { bottom: 46px; font-size: 12px; }
}
@media (max-width: 560px) {
  .top-in { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 6px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .top .logo { min-width: 0; }
  .top .logo-img { height: 28px; width: auto; max-width: 96px; }
  .menu-btn { width: 36px; height: 36px; }
  .search { padding: 3px 3px 3px 12px; }
  .search input { font-size: 14px; height: 34px; }
  .search-go { width: 34px; height: 34px; }
  .list-btn { height: 40px; padding: 0 8px; gap: 4px; }
}

/* logo oficial (PNG horizontal) */
.top .logo-img { height: 54px; width: auto; }
@media (max-width: 900px) { .top .logo-img { height: 46px; } }
@media (max-width: 560px) { .top .logo-img { height: 36px; max-width: 112px; } }
.foot .logo-img { height: 56px; filter: none; background: #fff; padding: 8px 12px; border-radius: 12px; }
