/* Business Area · Articles (/business-area/articles/) — 2026-10-29
   Lista completa de artigos por marca, detalhe lateral um a um, seleção e Excel. Base: ba.css (.ba-filters, .ba-table, .ba-chip). */

.ba-art__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 0.9rem; }
.ba-art__back { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: #4A65D8; text-decoration: none; }
.ba-art__back svg { width: 16px; height: 16px; }
.ba-art__count { font-size: 0.8rem; color: #6B6B6B; }

.ba-filters .ba-art__chip { font-family: inherit; font-size: 0.78rem; font-weight: 600; padding: 0.42rem 0.75rem; border-radius: 999px; border: 1px solid #d8dae6; background: #fff; color: #555; cursor: pointer; }
.ba-filters .ba-art__chip[aria-pressed="true"] { background: #4A65D8; border-color: #4A65D8; color: #fff; }
.ba-filters .ba-art__chip--outlet[aria-pressed="true"] { background: #b71c1c; border-color: #b71c1c; }

.ba-art__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; }
.ba-art__bar-sel { font-size: 0.8rem; color: #333; margin-right: auto; }
.ba-art__bar-sel b { color: #4A65D8; }
.ba-art__btn { font-family: inherit; font-size: 0.78rem; font-weight: 600; padding: 0.45rem 0.8rem; border-radius: 8px; border: 1px solid #d8dae6; background: #fff; color: #444; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
.ba-art__btn:hover { border-color: #9aa2c4; }
.ba-art__btn:disabled { opacity: 0.45; cursor: default; }
.ba-art__btn--primary { background: #4A65D8; border-color: #4A65D8; color: #fff; }
.ba-art__btn--primary:hover { background: #3A4FA8; }
.ba-art__btn svg { width: 15px; height: 15px; }

.ba-art-table .ba-table td { padding: 0.5rem 0.7rem; }
.ba-art-table .ba-table th { padding: 0.6rem 0.7rem; white-space: nowrap; }
.ba-art-table .ba-table tbody tr { cursor: pointer; }
.ba-art-table .ba-table tbody tr.is-sel td { background: #F0F3FF; }
.ba-art-table .ba-table td.ba-art__chk, .ba-art-table .ba-table th.ba-art__chk { width: 30px; text-align: center; padding-right: 0; }
.ba-art-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: #4A65D8; cursor: pointer; }
.ba-art__thumb { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #f4f4f4; display: block; }
.ba-art-table .ba-table td.ba-art__cell-name { min-width: 200px; }
.ba-art__name { font-weight: 600; color: #222; font-size: 0.84rem; line-height: 1.3; }
.ba-art__sub { font-size: 0.74rem; color: #6B6B6B; }
.ba-art__mono { font-variant-numeric: tabular-nums; font-size: 0.82rem; color: #444; white-space: nowrap; }
.ba-art__price { font-variant-numeric: tabular-nums; font-weight: 700; color: #4A65D8; white-space: nowrap; }
.ba-art__price--pvp { font-weight: 500; color: #555; }
.ba-art__outlet { display: inline-block; padding: 1px 6px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #b71c1c; background: rgba(198,40,40,0.08); border: 1px solid rgba(198,40,40,0.35); border-radius: 3px; vertical-align: middle; margin-left: 0.35rem; }
.ba-art__msg { margin: 0.75rem 0 0; font-size: 0.85rem; color: #6B6B6B; }
.ba-art__msg.is-err { color: #b71c1c; }

/* Detalhe lateral */
.ba-art-detail { position: fixed; inset: 0; z-index: 1005; visibility: hidden; opacity: 0; transition: opacity 0.18s ease, visibility 0.18s ease; font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; }
.ba-art-detail.is-open { visibility: visible; opacity: 1; }
.ba-art-detail__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.ba-art-detail__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,0.18); display: flex; flex-direction: column; transform: translateX(24px); transition: transform 0.2s ease-out; }
.ba-art-detail.is-open .ba-art-detail__panel { transform: none; }
.ba-art-detail__hd { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid #eef0f8; }
.ba-art-detail__nav, .ba-art-detail__x { font-family: inherit; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #d8dae6; background: #fff; color: #444; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.ba-art-detail__nav:disabled { opacity: 0.35; cursor: default; }
.ba-art-detail__pos { font-size: 0.78rem; color: #6B6B6B; min-width: 70px; text-align: center; }
.ba-art-detail__x { margin-left: auto; font-size: 0.9rem; }
.ba-art-detail__body { padding: 1rem 1.25rem 1.5rem; overflow-y: auto; }
.ba-art-detail__img { display: block; width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 0.5rem; border-radius: 12px; background: #f4f4f4; }
.ba-art-detail__alts { display: flex; gap: 0.4rem; justify-content: center; margin: 0 0 0.9rem; }
.ba-art-detail__alts img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #f4f4f4; border: 2px solid transparent; cursor: pointer; }
.ba-art-detail__alts img.is-on { border-color: #4A65D8; }
.ba-art-detail__brand { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4A65D8; margin: 0 0 0.2rem; }
.ba-art-detail__title { margin: 0 0 0.2rem; font-size: 1.15rem; font-weight: 700; color: #111; line-height: 1.3; }
.ba-art-detail__sku { font-size: 0.8rem; color: #6B6B6B; margin: 0 0 0.9rem; }
.ba-art-detail__prices { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.ba-art-detail__price { flex: 1 1 120px; padding: 0.6rem 0.75rem; border-radius: 10px; background: #F0F3FF; border: 1px solid #e0e4ff; }
.ba-art-detail__price--pvp { background: #F2F2F2; border-color: #e6e6e6; }
.ba-art-detail__price-k { display: block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #6B6B6B; }
.ba-art-detail__price-v { display: block; font-size: 1.1rem; font-weight: 700; color: #4A65D8; font-variant-numeric: tabular-nums; }
.ba-art-detail__price--pvp .ba-art-detail__price-v { color: #333; }
.ba-art-detail__price-v small { font-size: 0.7rem; font-weight: 500; color: #6B6B6B; }
.ba-art-detail__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1rem; margin: 0 0 1rem; }
.ba-art-detail__k { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #9aa2c4; }
.ba-art-detail__v { font-size: 0.88rem; color: #222; word-break: break-word; }
.ba-art-detail__v--mono { font-variant-numeric: tabular-nums; }
.ba-art-detail__h { margin: 0.9rem 0 0.4rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #4A65D8; }
.ba-art-detail__feat { list-style: none; margin: 0 0 0.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ba-art-detail__feat li { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; padding: 0.3rem 0.55rem; border-radius: 999px; background: #F2F2F2; color: #333; }
.ba-art-detail__feat li.is-no { color: #999; text-decoration: line-through; }
.ba-art-detail__feat img { width: 18px; height: 18px; }
.ba-art-detail__spec { margin: 0 0 0.5rem; font-size: 0.82rem; color: #444; }
.ba-art-detail__desc { margin: 0; font-size: 0.85rem; line-height: 1.6; color: #333; }
.ba-art-detail__desc small { display: block; margin-top: 0.3rem; font-size: 0.68rem; color: #999; }

@media (max-width: 720px) {
  .ba-art-detail__grid { grid-template-columns: 1fr; }
  .ba-art-table .ba-table .ba-art__hide-sm { display: none; }
}

/* Escolha de colunas antes do Excel */
.ba-art-cols { position: fixed; inset: 0; z-index: 1006; display: none; align-items: center; justify-content: center; padding: 1.5rem; font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; }
.ba-art-cols.is-open { display: flex; }
.ba-art-cols__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.ba-art-cols__box { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 3rem); overflow-y: auto; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.18); padding: 1.2rem 1.4rem 1.3rem; }
.ba-art-cols__title { margin: 0 0 0.3rem; font-size: 1.1rem; font-weight: 700; color: #222; }
.ba-art-cols__sub { margin: 0 0 0.9rem; font-size: 0.85rem; color: #6B6B6B; }
.ba-art-cols__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.35rem 0.8rem; margin: 0 0 1rem; }
.ba-art-cols__opt { display: flex; align-items: center; gap: 0.45rem; font-size: 0.84rem; color: #333; padding: 0.3rem 0.4rem; border-radius: 6px; cursor: pointer; }
.ba-art-cols__opt:hover { background: #F0F3FF; }
.ba-art-cols__opt input { accent-color: #4A65D8; width: 15px; height: 15px; }
.ba-art-cols__actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
.ba-art-cols__actions .ba-art__btn[data-all] { margin-right: auto; }

/* Vista lista / galeria (2026-10-29), como na página de encomendas */
.ba-filters .ba-art__views { display: inline-flex; margin-left: auto; border: 1px solid #d8dae6; border-radius: 8px; overflow: hidden; background: #fff; }
.ba-art__view { width: 36px; height: 34px; border: 0; background: #fff; color: #666; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ba-art__view + .ba-art__view { border-left: 1px solid #d8dae6; }
.ba-art__view svg { width: 18px; height: 18px; }
.ba-art__view.is-active { background: #4A65D8; color: #fff; }
.ba-art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.9rem; }
.ba-art-card { position: relative; background: #fff; border: 1px solid rgba(74,101,216,0.16); border-radius: 12px; padding: 0.7rem; cursor: pointer; display: flex; flex-direction: column; transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.ba-art-card:hover { box-shadow: 0 6px 20px rgba(74,101,216,0.12); border-color: rgba(74,101,216,0.4); }
.ba-art-card.is-sel { border-color: #4A65D8; background: #F7F8FF; }
.ba-art-card__chk { position: absolute; top: 10px; right: 10px; z-index: 2; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.9); border-radius: 6px; }
.ba-art-card__chk input { width: 15px; height: 15px; accent-color: #4A65D8; cursor: pointer; }
.ba-art-card__img-wrap { position: relative; width: 100%; aspect-ratio: 1; background: #f5f5f5; border-radius: 8px; overflow: hidden; margin-bottom: 0.5rem; }
.ba-art-card__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ba-art-card__badge { position: absolute; top: 6px; left: 6px; margin: 0; }
.ba-art-card__sku { font-family: monospace; font-size: 0.72rem; color: #666; }
.ba-art-card__name { font-size: 0.8rem; font-weight: 600; color: #222; line-height: 1.3; margin: 0.15rem 0 0.2rem; min-height: 2.6em; }
.ba-art-card__sub { font-size: 0.7rem; color: #6B6B6B; margin-bottom: 0.4rem; }
.ba-art-card__price { margin-top: auto; font-size: 0.85rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; }
.ba-art-card__pvp { font-size: 0.7rem; color: #6B6B6B; margin-left: auto; }
.ba-art-cols__lang { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 0.8rem; font-size: 0.84rem; color: #333; }
.ba-art-cols__lang span { font-weight: 600; color: #6B6B6B; }
.ba-art-cols__lang label { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; }
.ba-art-cols__lang input { accent-color: #4A65D8; }
