/* MAXSOFT Catálogo v49 — organização inspirada em grandes marketplaces */
:root {
  --catalog-blue: #3483fa;
  --catalog-blue-dark: #2968c8;
  --catalog-green: #00a650;
  --catalog-orange: #ff6b2c;
  --catalog-ink: #333;
  --catalog-muted: #6b7280;
  --catalog-border: #e5e7eb;
  --catalog-canvas: #ededed;
  --catalog-white: #fff;
}

.ms-catalog-page { background: var(--catalog-canvas); min-height: 100vh; padding: 18px 0 40px; }
.ms-catalog-shell { width: min(100% - 28px, 1200px); margin: 0 auto; }
.ms-catalog-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 14px; color:#667085; font-size:13px; }
.ms-catalog-breadcrumb a { color:var(--catalog-blue); text-decoration:none; }
.ms-catalog-breadcrumb a:hover { text-decoration:underline; }
.ms-catalog-breadcrumb i { color:#a3a8b1; font-size:9px; }

.ms-catalog-heading { margin-bottom:18px; }
.ms-catalog-heading__top { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; }
.ms-catalog-heading__copy { min-width:0; }
.ms-catalog-heading h1 { margin:0; color:#222; font-size:28px; font-weight:700; line-height:1.15; letter-spacing:-.02em; }
.ms-catalog-heading p { margin:8px 0 0; color:#737373; font-size:14px; }
.ms-catalog-heading p strong { color:#333; font-weight:600; }
.ms-catalog-heading__trust { flex:0 0 auto; display:flex; align-items:center; gap:10px; color:#4b5563; font-size:12px; }
.ms-catalog-heading__trust span { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; color:var(--catalog-green); background:#eaf8f0; }
.ms-catalog-active-filters { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.ms-catalog-active-filter { display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:0 10px; border:1px solid #d9dde3; border-radius:6px; color:#4b5563; background:#fff; font-size:12px; text-decoration:none; }
.ms-catalog-active-filter i { color:#9ca3af; }

.ms-catalog-mobilebar { display:none; }
.ms-catalog-layout { display:grid; grid-template-columns: 250px minmax(0,1fr); gap:24px; align-items:start; }
.ms-catalog-sidebar { min-width:0; }
.ms-catalog-results { min-width:0; }

.ms-catalog-filter-card { position:sticky; top:116px; overflow:hidden; border:1px solid var(--catalog-border); border-radius:8px; background:#fff; }
.ms-catalog-filter-section { padding:20px 18px; border-bottom:1px solid #eceff2; }
.ms-catalog-filter-section:last-child { border-bottom:0; }
.ms-catalog-filter-title { margin:0 0 13px; color:#333; font-size:14px; font-weight:700; }
.ms-catalog-filter-link { min-height:34px; padding:7px 2px; display:flex; align-items:center; justify-content:space-between; gap:10px; color:#555; font-size:13px; line-height:1.3; text-decoration:none; }
.ms-catalog-filter-link:hover { color:var(--catalog-blue); }
.ms-catalog-filter-link.is-active { color:var(--catalog-blue); font-weight:700; }
.ms-catalog-filter-count { color:#999; font-size:11px; }
.ms-catalog-filter-scroll { max-height:280px; overflow:auto; scrollbar-width:thin; scrollbar-color:#d0d5dd transparent; }
.ms-catalog-filter-pills { display:flex; flex-wrap:wrap; gap:8px; }
.ms-catalog-filter-pill { min-height:32px; padding:0 10px; display:inline-flex; align-items:center; border:1px solid #ddd; border-radius:6px; color:#555; background:#fff; font-size:12px; font-weight:600; text-decoration:none; }
.ms-catalog-filter-pill:hover, .ms-catalog-filter-pill.is-active { border-color:#b7cff4; color:var(--catalog-blue); background:#f4f8ff; }
.ms-catalog-filter-toggle { min-height:40px; padding:0 12px; display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid #e2e5e9; border-radius:7px; color:#4b5563; background:#fff; font-size:13px; text-decoration:none; }
.ms-catalog-filter-toggle + .ms-catalog-filter-toggle { margin-top:8px; }
.ms-catalog-filter-toggle i { color:#b0b7c3; }
.ms-catalog-filter-toggle.is-active { border-color:#bad0f3; color:#1f68d7; background:#f4f8ff; }
.ms-catalog-filter-toggle.is-active i { color:var(--catalog-blue); }
.ms-catalog-price-form { display:grid; grid-template-columns:1fr 12px 1fr 36px; gap:6px; align-items:center; }
.ms-catalog-price-field { position:relative; }
.ms-catalog-price-field span { position:absolute; left:9px; top:50%; transform:translateY(-50%); color:#999; font-size:10px; }
.ms-catalog-price-field input { width:100%; height:38px; padding:0 7px 0 27px; border:1px solid #ddd; border-radius:6px; outline:none; color:#333; background:#fff; font-size:12px; }
.ms-catalog-price-field input:focus { border-color:var(--catalog-blue); box-shadow:0 0 0 2px rgba(52,131,250,.12); }
.ms-catalog-price-submit { width:36px; height:36px; display:grid; place-items:center; border:0; border-radius:50%; color:#fff; background:var(--catalog-blue); cursor:pointer; }

.ms-catalog-toolbar { min-height:58px; margin-bottom:12px; padding:12px 14px 12px 18px; display:flex; align-items:center; justify-content:space-between; gap:16px; border:1px solid var(--catalog-border); border-radius:8px; background:#fff; }
.ms-catalog-toolbar__copy h2 { margin:0; color:#333; font-size:17px; font-weight:600; }
.ms-catalog-toolbar__copy p { margin:4px 0 0; color:#888; font-size:12px; }
.ms-catalog-sort { display:flex; align-items:center; gap:9px; color:#666; font-size:12px; }
.ms-catalog-sort select { min-width:178px; height:36px; padding:0 34px 0 11px; border:1px solid #d9dde3; border-radius:6px; color:#333; background:#fff; font-size:12px; font-weight:600; outline:none; }

.ms-catalog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:stretch; }
.ms-catalog-grid > div { min-width:0; }
.ms-catalog-grid .ms-product-card { border-radius:8px; box-shadow:none; }
.ms-catalog-grid .ms-product-card:hover { transform:none; border-color:#d5d9df; box-shadow:0 4px 16px rgba(0,0,0,.09); }
.ms-catalog-grid .ms-product-card__content { min-height:186px; }

.ms-catalog-empty { grid-column:1/-1; padding:60px 22px; border:1px solid var(--catalog-border); border-radius:8px; background:#fff; text-align:center; }
.ms-catalog-empty__icon { width:64px; height:64px; margin:0 auto 18px; display:grid; place-items:center; border-radius:50%; color:#a9b0bb; background:#f5f6f7; font-size:25px; }
.ms-catalog-empty h3 { margin:0; color:#333; font-size:20px; }
.ms-catalog-empty p { margin:9px auto 0; max-width:440px; color:#777; font-size:14px; }

.ms-catalog-pagination { display:flex; justify-content:center; flex-wrap:wrap; gap:7px; margin-top:24px; }
.ms-catalog-pagination a { min-width:38px; height:38px; padding:0 9px; display:grid; place-items:center; border:1px solid #ddd; border-radius:6px; color:#555; background:#fff; font-size:13px; font-weight:600; text-decoration:none; }
.ms-catalog-pagination a.is-active { border-color:var(--catalog-blue); color:#fff; background:var(--catalog-blue); }

@media (max-width: 1023px) {
  .ms-catalog-page { padding-top:10px; }
  .ms-catalog-heading__trust { display:none; }
  .ms-catalog-heading h1 { font-size:22px; }
  .ms-catalog-layout { display:block; }
  .ms-catalog-sidebar { display:none; }
  .ms-catalog-mobilebar { position:sticky; top:58px; z-index:40; margin:0 -14px 12px; padding:9px 14px; display:flex; align-items:center; justify-content:space-between; border-top:1px solid #e6e8eb; border-bottom:1px solid #e1e4e8; background:rgba(255,255,255,.97); backdrop-filter:blur(10px); }
  .ms-catalog-mobilebar strong { color:#333; font-size:13px; }
  .ms-catalog-mobilebar button { min-height:36px; padding:0 14px; display:inline-flex; align-items:center; gap:7px; border:1px solid #bdd2f4; border-radius:6px; color:#1f68d7; background:#f5f9ff; font-size:12px; font-weight:700; }
  .ms-catalog-toolbar { min-height:auto; padding:12px; }
  .ms-catalog-toolbar__copy h2 { font-size:15px; }
  .ms-catalog-sort span { display:none; }
  .ms-catalog-sort select { min-width:145px; max-width:150px; }
  .ms-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
}

@media (max-width: 560px) {
  .ms-catalog-shell { width:min(100% - 16px, 1200px); }
  .ms-catalog-breadcrumb { display:none; }
  .ms-catalog-heading { margin-bottom:8px; }
  .ms-catalog-heading h1 { font-size:20px; }
  .ms-catalog-heading p { font-size:12px; }
  .ms-catalog-toolbar { align-items:flex-end; }
  .ms-catalog-toolbar__copy p { display:none; }
  .ms-catalog-sort select { min-width:132px; max-width:132px; height:34px; font-size:11px; }
  .ms-catalog-grid .ms-product-card__content { min-height:168px; }
  .ms-catalog-grid .ms-product-card__media { aspect-ratio:1/1; }
}

/* Bottom sheet mobile */
.ms-catalog-overlay { position:fixed; inset:0; z-index:9998; opacity:0; pointer-events:none; background:rgba(0,0,0,.48); transition:opacity .22s ease; }
.ms-catalog-drawer { position:fixed; left:0; right:0; bottom:0; z-index:9999; max-height:88vh; overflow:hidden; display:flex; flex-direction:column; border-radius:18px 18px 0 0; background:#f5f5f5; transform:translateY(102%); transition:transform .28s ease; box-shadow:0 -18px 42px rgba(0,0,0,.22); }
body.ms-catalog-drawer-open { overflow:hidden; }
body.ms-catalog-drawer-open .ms-catalog-overlay { opacity:1; pointer-events:auto; }
body.ms-catalog-drawer-open .ms-catalog-drawer { transform:translateY(0); }
.ms-catalog-drawer__head { padding:14px 16px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #e1e4e8; background:#fff; }
.ms-catalog-drawer__head h3 { margin:0; color:#333; font-size:17px; }
.ms-catalog-drawer__head button { width:34px; height:34px; display:grid; place-items:center; border:0; border-radius:50%; color:#555; background:#f1f2f4; }
.ms-catalog-drawer__body { padding:12px; overflow:auto; }
.ms-catalog-drawer .ms-catalog-filter-card { position:static; }
.ms-catalog-drawer__apply { width:100%; min-height:46px; margin-top:12px; border:0; border-radius:8px; color:#fff; background:var(--catalog-blue); font-weight:700; }

/* SEO Engine v2 — conteúdo editorial sem alterar o grid do catálogo */
.ms-catalog-heading__seo-intro{max-width:760px!important;margin-top:8px!important;color:#667085!important;font-size:13px!important;line-height:1.65!important;font-weight:400!important}
.ms-catalog-seo-copy{margin:28px 0 6px;padding:22px 24px;border:1px solid #e7e9ee;border-radius:14px;background:#fff;color:#667085;font-size:13px;line-height:1.75}
@media(max-width:767px){.ms-catalog-heading__seo-intro{font-size:12px!important}.ms-catalog-seo-copy{margin:20px 0 4px;padding:18px 16px;border-radius:12px;font-size:12px}}
