/* BJ Móveis — Catálogo premium v5 */
body.bj-catalog { background: var(--bj-background); }

/* Product / ambient media helpers */
.product-media {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
  background: var(--snow); border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.product-media img {
  width: 100%; height: 100%; object-fit: contain;
  object-position: center; padding: clamp(1.15rem, 2.5vw, 1.75rem);
  transition: transform 0.7s var(--ease);
}
.ambient-media {
  aspect-ratio: 16/10; overflow: hidden; background: var(--snow);
}
.ambient-media img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Compact catalog intro */
.cat-intro {
  background: var(--bj-background); border-bottom: 1px solid var(--bj-border);
}
.cat-intro__inner { padding-block: 1.75rem 1.5rem; max-width: 48rem; }
.cat-intro h1 {
  font-family: var(--sans); font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.cat-intro .lead { font-size: 0.9375rem; margin-bottom: 0; }
.cat-intro__stats {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem;
  margin-top: 1rem; font-size: 0.75rem; color: var(--bj-text-muted);
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500;
}
.cat-intro__stats strong { color: var(--bj-text); font-weight: 700; }

/* Context bar */
.cat-context {
  position: sticky; top: calc(var(--bj-topbar-height) + var(--bj-header-height) + env(safe-area-inset-top)); z-index: 210;
  background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--bj-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.cat-context__inner {
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
  padding-block: 0.75rem;
}
.cat-context__inner::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  transition: all 0.3s var(--ease);
}
.cat-chip:hover { border-color: var(--dark); color: var(--text); }
.cat-chip.is-active {
  background: var(--dark); color: #fff; border-color: var(--dark);
}

/* Shell layout */
.catalog-shell {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 2.5rem; padding-block: 1.5rem 4rem; align-items: start;
}
.catalog-shell--home { grid-template-columns: 1fr; }
.catalog-sidebar {
  position: sticky; top: calc(var(--bj-topbar-height) + var(--bj-header-height) + 56px + env(safe-area-inset-top));
}
.catalog-sidebar.is-hidden { display: none; }
.catalog-sidebar__inner {
  background: transparent; border: none;
  border-radius: 0; padding: 0;
}
.catalog-sidebar__title {
  font-size: 0.6875rem; font-weight: 700; color: var(--bj-text-muted);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem;
}
.catalog-sidebar__nav { display: grid; gap: 0; margin-bottom: 1.5rem; border-top: 1px solid var(--bj-border); }
.catalog-acc { border-bottom: 1px solid var(--bj-border); }
.catalog-acc__sum {
  list-style: none; cursor: pointer; padding: 0.85rem 0;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--bj-text); display: flex; justify-content: space-between; align-items: center;
}
.catalog-acc__sum::-webkit-details-marker { display: none; }
.catalog-acc__sum::after { content: "+"; font-weight: 500; color: var(--bj-text-muted); }
.catalog-acc[open] > .catalog-acc__sum::after { content: "−"; }
.catalog-acc__body { padding-bottom: 0.35rem; }
.catalog-sidebar__link {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; text-align: left; padding: 0.55rem 0;
  font-size: 0.875rem; font-weight: 500; border-radius: 0;
  border-bottom: none;
  transition: color 0.2s;
}
.catalog-sidebar__link span { font-size: 0.75rem; color: var(--bj-text-muted); font-weight: 600; }
.catalog-sidebar__link:hover { color: var(--bj-text); }
.catalog-sidebar__link.is-active { color: var(--bj-text); font-weight: 700; background: transparent; }
.catalog-sidebar__link.is-active span { color: var(--bj-text); }
.catalog-sidebar__search label {
  display: block; font-size: 0.6875rem; font-weight: 700; color: var(--bj-text-muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.45rem;
}
.catalog-sidebar__search input {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--bj-border);
  border-radius: var(--radius-btn); font-size: 0.875rem;
  background: var(--bj-background-soft);
}
.catalog-sidebar__search input:focus { border-color: var(--bj-text); outline: none; background: #fff; }
.catalog-sidebar__clear { width: 100%; margin-top: 1rem; }
.catalog-search-wrap { position: relative; }
.catalog-search-clear {
  position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; color: var(--bj-text-muted);
  font-size: 1.1rem; line-height: 1; display: none; place-items: center;
}
.catalog-search-clear.is-visible { display: grid; }
.catalog-search-clear:hover { color: var(--bj-text); background: var(--bj-background-soft); }

/* Category cards (home) */
.cat-nav__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.cat-nav__card {
  text-align: left; overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color 0.4s, box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.cat-nav__card:hover { border-color: transparent; box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.cat-nav__card.is-active { border-color: var(--dark); }
.cat-nav__img { background: var(--snow); overflow: hidden; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.cat-nav__img img { transition: transform 0.7s var(--ease); }
.cat-nav__card:hover .cat-nav__img img { transform: scale(1.06); }
.cat-nav__body { padding: 1rem 1.1rem 1.15rem; }
.cat-nav__body h3 {
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 0.2rem;
}
.cat-nav__meta { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bj-text-muted); }

/* Toolbar */
.catalog-toolbar {
  background: transparent; border: none;
  border-radius: 0; padding: 0 0 1.25rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.catalog-toolbar__row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 1.25rem; align-items: center;
}
.catalog-search {
  width: 100%; padding: 0.75rem 2.5rem 0.75rem 0.95rem;
  border: 1px solid var(--bj-border); border-radius: var(--radius-btn);
  background: var(--bj-background-soft);
  font-family: inherit; font-size: 0.9375rem; font-weight: 500;
}
.catalog-search:focus { border-color: var(--bj-text); outline: none; background: #fff; }
.catalog-toolbar__meta {
  display: flex; align-items: center; gap: 0.85rem; white-space: nowrap;
}
.catalog-count { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.catalog-clear {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, color 0.25s;
}
.catalog-clear.visible { opacity: 1; pointer-events: auto; }
.catalog-clear:hover { color: var(--dark); }
.cat-mobile-btn, .filter-toggle {
  display: none; min-height: 40px; padding: 0.5rem 0.95rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--white);
}
.filter-toggle__badge {
  display: inline-block; min-width: 18px; height: 18px; margin-left: 0.35rem;
  background: var(--dark); color: #fff; font-size: 0.625rem; font-weight: 700;
  border-radius: 999px; line-height: 18px; text-align: center;
}
.subfilters {
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
  padding-top: 1rem; margin-top: 0.85rem; border-top: 1px solid var(--line);
}
.subfilters::-webkit-scrollbar { display: none; }
.subfilter {
  flex-shrink: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em;
  color: var(--muted); padding: 0.45rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line); transition: all 0.25s;
}
.subfilter.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }
.subfilter:hover:not(.is-active) { border-color: var(--dark); color: var(--text); }

/* Filter drawer */
.filter-drawer-bg {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(17,17,17,0.4); opacity: 0; visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.filter-drawer-bg.open { opacity: 1; visibility: visible; }
.filter-drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 510;
  background: var(--white); border-radius: var(--radius-card) var(--radius-card) 0 0;
  transform: translateY(100%); transition: transform 0.4s var(--ease);
  max-height: 85dvh; display: flex; flex-direction: column;
}
.filter-drawer.open { transform: none; }
.filter-drawer__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--line);
}
.filter-drawer__head h2 { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; }
.filter-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.filter-drawer__group { margin-bottom: 1.25rem; }
.filter-drawer__label {
  font-size: 0.75rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.65rem;
}
.filter-drawer__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-pill {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; color: var(--muted);
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  transition: all 0.25s;
}
.filter-pill.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }
.filter-drawer__foot {
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: grid; gap: 0.5rem;
}

/* Home sections */
.cat-home { padding-bottom: 1rem; }
.cat-launches { margin-bottom: 2.5rem; }
.cat-highlights { margin-bottom: 1rem; }
.cat-highlights .section-title { margin-bottom: 1.25rem; }
.cat-home__all { text-align: center; margin-top: 2rem; }

/* Launches carousel */
.carousel { position: relative; margin-top: 1.25rem; }
.carousel-viewport { overflow: hidden; cursor: grab; }
.carousel-viewport.is-dragging { cursor: grabbing; }
.carousel-track {
  display: flex; gap: 1.15rem; align-items: stretch;
  transition: transform 0.45s var(--ease); will-change: transform;
}
.carousel-slide { flex: 0 0 calc((100% - 3.45rem) / 4); }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--card-border); background: var(--white);
  color: var(--text); font-size: 1.35rem; z-index: 2;
}
.carousel-btn:disabled { opacity: 0.35; pointer-events: none; }
.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }
.carousel-progress {
  height: 2px; background: var(--line); margin-top: 1.25rem;
  border-radius: 2px; overflow: hidden;
}
.carousel-progress-bar {
  display: block; height: 100%; width: 0; background: var(--bj-text);
  transition: width 0.35s var(--ease);
}

/* Results head */
.catalog-head { margin-bottom: 1.25rem; }
.catalog-head__row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1.5rem; flex-wrap: wrap;
}
.catalog-desc { color: var(--muted); font-size: 0.9375rem; max-width: 36rem; margin-top: 0.35rem; }
.catalog-sort {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
}
.catalog-sort select {
  min-width: 150px; padding: 0.55rem 0.75rem;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  font-size: 0.875rem; background: var(--white);
}
.breadcrumb { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.5rem; }
.breadcrumb a:hover { color: var(--bj-text); }
.breadcrumb-sep { margin: 0 0.35rem; }
.breadcrumb-current { color: var(--text); font-weight: 600; }

/* Product grid — 4 colunas no desktop */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; transition: opacity 0.25s;
}
.grid--highlights { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid.is-updating { opacity: 0.55; }

/* Product card */
.pcard, .product-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--bj-background); border: none;
  border-radius: var(--radius-card); overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
  animation: softScaleIn 0.55s var(--ease) both;
}
.pcard:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.pcard:hover .product-media img { transform: scale(1.06); }
.pcard:hover .pcard-name { opacity: 0.7; }
.pcard.is-selected { outline: 1.5px solid var(--bj-text); outline-offset: 2px; }
.pcard:nth-child(1) { animation-delay: 0ms; }
.pcard:nth-child(2) { animation-delay: 50ms; }
.pcard:nth-child(3) { animation-delay: 100ms; }
.pcard:nth-child(4) { animation-delay: 150ms; }
.pcard:nth-child(5) { animation-delay: 200ms; }
.pcard:nth-child(6) { animation-delay: 250ms; }
.pcard:nth-child(7) { animation-delay: 300ms; }
.pcard:nth-child(8) { animation-delay: 350ms; }
.pcard:nth-child(9) { animation-delay: 400ms; }
.pcard:nth-child(10) { animation-delay: 450ms; }
.pcard:nth-child(11) { animation-delay: 500ms; }
.pcard:nth-child(12) { animation-delay: 550ms; }
@keyframes selPulse {
  0% { box-shadow: 0 0 0 0 rgba(17,17,17,0.2); }
  100% { box-shadow: 0 0 0 14px rgba(17,17,17,0); }
}
.pcard-img, .product-card__media { cursor: pointer; }
.pcard-badge {
  position: absolute; top: 0.65rem; left: 0.65rem;
  background: var(--dark); color: #fff;
  font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3rem 0.55rem; border-radius: 2px;
}
.pcard-sel-badge {
  position: absolute; top: 0.65rem; right: 0.65rem;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--dark); color: #fff; font-size: 0.75rem; font-weight: 700;
  display: grid; place-items: center;
}
.pcard-body, .product-card__body {
  display: flex; flex-direction: column;
  padding: 1rem 0.15rem 0.25rem; flex: 1;
}
.pcard-cat {
  font-size: 0.625rem; font-weight: 700; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.3rem;
}
.pcard-name, .product-card__title {
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 600;
  line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 0.25rem;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  transition: opacity 0.3s;
}
.pcard-dim { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.85rem; min-height: 1.2em; }
.pcard-dim--empty { visibility: hidden; }
.pcard-actions { margin-top: auto; }
.btn-add {
  width: 100%; min-height: 44px; padding: 0.65rem 1rem;
  background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius-btn); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.btn-add:hover { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-add.is-selected { background: var(--dark); border-color: var(--dark); color: #fff; }

/* Pagination */
.pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.35rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.pagination__btn, .pagination__num {
  min-height: 42px; min-width: 42px; padding: 0.45rem 0.75rem;
  font-size: 0.8125rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--white); transition: all 0.2s;
}
.pagination__num.is-active {
  background: var(--dark); color: #fff; border-color: var(--dark);
}
.pagination__btn:disabled { opacity: 0.4; pointer-events: none; }
.pagination__btn:hover:not(:disabled),
.pagination__num:hover:not(.is-active) { border-color: var(--dark); }
.pagination__gap { padding: 0 0.25rem; color: var(--muted); }

/* States */
.state { text-align: center; padding: 4rem 1.5rem; color: var(--muted); }
.state h3 { font-family: var(--sans); font-size: 1.35rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.sk-cell {
  aspect-ratio: var(--ratio);
  background: linear-gradient(110deg, #f0f0f0 25%, #fafafa 50%, #f0f0f0 75%);
  background-size: 200% 100%; animation: sk 1.3s ease-in-out infinite;
  border-radius: var(--radius-card);
}
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* CTA */
.cat-cta {
  background: var(--choco); color: #fff; text-align: center;
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}
.cat-cta h2 {
  font-family: var(--sans); font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600;
  letter-spacing: -0.03em; margin-bottom: 0.85rem;
}
.cat-cta p { color: rgba(255,255,255,0.7); margin-bottom: 1.75rem; max-width: 32rem; margin-inline: auto; }

/* Modal + drawer */
.modal {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(29,27,25,0.88); }
.modal-panel {
  position: relative; z-index: 1; width: min(920px, 96vw);
  max-height: 92dvh; background: var(--white);
  border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 1fr;
  transform: scale(0.98); transition: transform 0.35s var(--ease);
}
.modal.open .modal-panel { transform: none; }
.modal-x {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 40px; height: 40px; border: 1px solid var(--line);
  background: var(--white); border-radius: var(--radius-btn); font-size: 1.2rem;
}
.modal-img {
  background: var(--snow); display: flex; align-items: center;
  justify-content: center; padding: 1.5rem; min-height: 260px;
}
.modal-img img { max-width: 100%; max-height: 55vh; object-fit: contain; }
.modal-body { padding: 1.75rem; }
.modal-body h2 { font-family: var(--sans); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }

.drawer-bg {
  position: fixed; inset: 0; z-index: 550;
  background: rgba(29,27,25,0.45); opacity: 0; visibility: hidden;
  transition: opacity 0.35s;
}
.drawer-bg.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 560;
  width: min(420px, 100vw); background: var(--white);
  border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform 0.38s;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; }
.drawer-empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); }
.drawer-empty strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 0.35rem; }
.drawer-list { flex: 1; overflow-y: auto; padding: 0 1.5rem; }
.drawer-form {
  padding: 1rem 1.5rem; border-top: 1px solid var(--line);
  display: grid; gap: 0.55rem;
}
.drawer-form label {
  font-size: 0.8125rem; font-weight: 600; color: var(--muted);
  display: grid; gap: 0.25rem;
}
.drawer-form input, .drawer-form select, .drawer-form textarea {
  padding: 0.65rem 0.85rem; border: 1px solid var(--line);
  border-radius: var(--radius-btn); font-size: 1rem; font-family: inherit;
}
.drawer-foot {
  padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: grid; gap: 0.5rem;
}
.sel-row {
  display: flex; gap: 0.75rem; padding: 0.85rem 0;
  border-bottom: 1px solid var(--line); align-items: center;
}
.sel-row img {
  width: 52px; height: 68px; object-fit: contain;
  background: #f8f7f4; border-radius: 6px; flex-shrink: 0; padding: 4px;
}
.sel-row-info { flex: 1; min-width: 0; }
.sel-row-info strong { font-size: 0.9rem; display: block; }
.sel-row-info span { font-size: 0.8125rem; color: var(--muted); }
.sel-qty { display: flex; align-items: center; gap: 0.35rem; }
.sel-qty button {
  width: 28px; height: 28px; border: 1px solid var(--line);
  border-radius: 4px; font-size: 1rem; line-height: 1;
}
.sel-qty span { min-width: 1.25rem; text-align: center; font-size: 0.875rem; font-weight: 600; }
.sel-remove { color: var(--muted); font-size: 1.25rem; padding: 0.25rem; }
.sel-remove:hover { color: var(--text); }

/* Mobile selection bar */
.sel-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem) calc(0.75rem + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: 0 -4px 20px rgba(29,27,25,0.08);
  transform: translateY(100%); transition: transform 0.35s var(--ease);
}
.sel-bar.is-visible { display: flex; transform: none; }
.sel-bar__text { font-size: 0.9375rem; font-weight: 600; }
.sel-bar__btn { flex-shrink: 0; }

.sel-fab {
  position: fixed; bottom: calc(5rem + env(safe-area-inset-bottom));
  right: calc(1.25rem + env(safe-area-inset-right)); z-index: 145;
  width: 48px; height: 48px; background: var(--white); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); display: grid; place-items: center;
}
.sel-fab.has-items { border-color: var(--bj-text); background: var(--bj-background-soft); }
.sel-fab svg { width: 20px; }
.sel-fab-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  background: var(--bj-text); color: #fff; font-size: 0.625rem; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center;
}

@media (min-width: 768px) {
  #hdrSelMobile { display: none; }
}
@media (max-width: 767px) {
  .hdr-nav .hdr-sel-btn,
  .hdr-nav .hdr-cta,
  .hdr-nav .hdr-search { display: none; }
  .catalog-shell { grid-template-columns: 1fr; padding-block: 1rem 2rem; }
  .catalog-sidebar { display: none !important; }
  .catalog-toolbar__row { grid-template-columns: 1fr; }
  .cat-mobile-btn, .filter-toggle { display: inline-flex; align-items: center; }
  .grid, .sk-grid { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
  .grid--highlights { grid-template-columns: repeat(2, 1fr); }
  .cat-nav__grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-slide { flex: 0 0 78%; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-panel {
    width: 100%; max-height: 94dvh;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
  }
  .drawer {
    width: 100%; max-height: 92dvh; top: auto; bottom: 0; right: 0; left: 0;
    border-left: none; border-top: 1px solid var(--line);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    transform: translateY(100%);
  }
  .drawer.open { transform: none; }
  .sel-fab { display: none; }
  .wa-fab { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 1199px) {
  .grid, .sk-grid, .grid--highlights { grid-template-columns: repeat(3, 1fr); }
  .carousel-slide { flex: 0 0 calc((100% - 2.3rem) / 3); }
}
@media (max-width: 1023px) {
  .grid, .sk-grid, .grid--highlights { grid-template-columns: repeat(2, 1fr); }
  .carousel-slide { flex: 0 0 calc((100% - 2.3rem) / 3); }
}
@media (min-width: 1200px) {
  .grid, .sk-grid, .grid--highlights { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .modal-panel { grid-template-columns: 1.1fr 0.9fr; max-height: 88dvh; }
}
@media (max-width: 420px) {
  .grid, .sk-grid, .cat-nav__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .carousel-track { transition: none; }
}

/* Auth & preços */
.hdr-auth { display: flex; align-items: center; gap: 0.65rem; margin-left: 0.25rem; }
.hdr-auth__login,
.hdr-auth__btn,
.hdr-auth__admin {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}
.hdr-auth__login { color: var(--bj-text); text-decoration: underline; text-underline-offset: 3px; }
.hdr-auth__admin { color: var(--bj-text-muted); }
.hdr-auth__name { font-size: 0.75rem; color: var(--muted); max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; font-weight: 500; }
.menu-auth { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.5rem 0; }
.cat-login-hint { font-size: 0.9rem; color: var(--muted); margin-top: 0.65rem; }
.cat-login-hint a { color: var(--bj-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pcard-price { font-size: 0.875rem; font-weight: 700; color: var(--text); margin: 0.15rem 0 0.5rem; }
.sel-row-price { display: block; font-size: 0.8rem; color: var(--text); font-weight: 700; margin-top: 0.15rem; }

/* Páginas auth/admin */
.bj-auth-page { min-height: 100dvh; background: var(--warm); }
.auth-wrap { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-logo { margin-bottom: 1.5rem; }
.auth-card { width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 2rem; box-shadow: var(--shadow-md); }
.auth-card h1 { font-family: var(--sans); font-size: 1.5rem; font-weight: 600; margin: 0.35rem 0 0.5rem; }
.auth-card .lead { color: var(--muted); margin-bottom: 1.25rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.875rem; font-weight: 600; }
.auth-form input, .auth-form select, .auth-form textarea {
  font: inherit; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--white);
}
.auth-alert { padding: 0.75rem; border-radius: var(--radius-btn); font-size: 0.875rem; margin-bottom: 1rem; }
.auth-alert--error { background: #fdecea; color: #8a1f17; }
.auth-footer { margin-top: 1.25rem; font-size: 0.875rem; text-align: center; }
.auth-footer a { color: var(--bj-text); }

.bj-admin-page { background: var(--warm); min-height: 100dvh; }
.admin-shell { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-head h1 { font-family: var(--sans); font-size: 1.5rem; font-weight: 600; margin: 0; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.admin-toolbar input, .admin-toolbar select { min-width: 180px; }
.admin-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--card-border); border-radius: var(--radius-card); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th, .admin-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-weight: 600; background: rgba(247,245,241,0.6); }
.admin-table img { width: 48px; height: 64px; object-fit: cover; border-radius: 4px; }
.admin-actions { display: flex; gap: 0.35rem; }
.admin-form-panel { display: none; }
.admin-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.admin-modal.hidden { display: none; }
.admin-modal__bg { position: absolute; inset: 0; background: rgba(29,27,25,0.45); }
.admin-modal__panel {
  position: relative; width: 100%; max-width: 400px; background: var(--white);
  border-radius: var(--radius-card); padding: 1.5rem; box-shadow: var(--shadow-md);
}
.admin-modal__panel h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; margin: 0 0 1rem; }
.admin-modal__panel form { display: flex; flex-direction: column; gap: 0.85rem; }
.admin-modal__panel label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.875rem; font-weight: 600; }
.admin-modal__panel select {
  font: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: var(--white);
}
.admin-modal__panel .modal-x { position: absolute; top: 0.75rem; right: 0.75rem; }
.admin-modal__photo { text-align: center; margin-bottom: 0.5rem; cursor: pointer; }
.admin-modal__photo img {
  display: block; margin: 0 auto 0.4rem; width: 140px; height: 186px;
  object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--warm);
}
.admin-modal__photo-hint { font-size: 0.8125rem; font-weight: 600; color: var(--bj-text); }
.admin-modal__photo:hover img { opacity: 0.92; }
.admin-table__thumb { width: 44px; height: 58px; object-fit: cover; border-radius: 4px; vertical-align: middle; }
.admin-form-foot { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.admin-toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--choco); color: var(--white); padding: 0.75rem 1rem; border-radius: var(--radius-btn); font-size: 0.875rem; z-index: 999; }
.admin-toast.hidden { display: none; }
@media (max-width: 767px) {
  .hdr-auth__name { display: none; }
}
