.mb-category-module{width:100%}
.mb-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.mb-category-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e6eaf2;border-radius:20px;overflow:hidden;box-shadow:0 14px 35px rgba(7,27,77,.08);text-decoration:none;color:inherit;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.mb-category-card:hover{transform:translateY(-3px);box-shadow:0 18px 45px rgba(7,27,77,.13);border-color:rgba(193,154,69,.45)}
.mb-category-card__media{aspect-ratio:1/1;background:linear-gradient(135deg,#f4f7fb,#e9eef8);overflow:hidden}
.mb-category-card__img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .28s ease}
.mb-category-card:hover .mb-category-card__img{transform:scale(1.05)}
.mb-category-card__placeholder{height:100%;display:grid;place-content:center;gap:9px;text-align:center;color:#667085;font-weight:800;padding:18px}
.mb-category-card__placeholder i{font-size:34px;color:#071B4D;opacity:.35}
.mb-category-card__body{display:grid;gap:7px;justify-items:stretch;text-align:center;padding:15px}
.mb-category-card__name{margin:0;color:#071B4D;font-size:18px;line-height:1.2;font-weight:900;text-align:center}
.mb-category-card__desc{margin:0;color:#667085;font-size:13px;line-height:1.45;text-align:center;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:34px}
.mb-category-card__cta{display:inline-flex;align-items:center;justify-content:flex-start;gap:5px;width:100%;margin-top:0;padding-top:8px;border-top:1px solid #edf1f7;color:#071B4D;font-size:13px;font-weight:800;line-height:1;text-align:left;text-decoration:none;transition:color .18s ease}
.mb-category-card__cta::after{content:'→';font-size:14px;line-height:1;color:#C19A45;transition:transform .18s ease}
.mb-category-card:hover .mb-category-card__cta{color:#071B4D}
.mb-category-card:hover .mb-category-card__cta::after{transform:translateX(3px)}
.mb-category-card__empty{background:#fff;border:1px dashed #cbd5e1;border-radius:18px;padding:22px;color:#667085;text-align:center;line-height:1.45}
.mb-category-card__empty strong{display:block;color:#071B4D}
.mb-category-carousel{position:relative;margin:0 -4px}
.mb-category-carousel__viewport{overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:4px 4px 18px;scrollbar-width:none;-ms-overflow-style:none}
.mb-category-carousel__track{display:flex;gap:18px;align-items:stretch}
.mb-category-carousel .mb-category-card{flex:0 0 calc((100% - 54px)/4);scroll-snap-align:start}
.mb-category-carousel__btn{position:absolute;top:calc(50% - 24px);z-index:3;width:44px;height:44px;border:0;border-radius:999px;background:#fff;color:#071B4D;box-shadow:0 12px 32px rgba(7,27,77,.18);display:grid;place-items:center;cursor:pointer;transition:opacity .18s ease,transform .18s ease}
.mb-category-carousel__btn:hover{transform:translateY(-1px)}
.mb-category-carousel__btn:disabled{opacity:.32;cursor:not-allowed;transform:none}
.mb-category-carousel__btn--prev{left:-10px}
.mb-category-carousel__btn--next{right:-10px}
.mb-category-pill-row{display:flex;align-items:center;gap:10px;overflow-x:auto;white-space:nowrap;padding:4px 2px 12px;scrollbar-width:none;-ms-overflow-style:none}
.mb-category-pill{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border:1px solid #d9e1ef;border-radius:999px;background:#fff;color:#071B4D;text-decoration:none;font-size:13px;font-weight:900;padding:9px 15px;box-shadow:0 8px 20px rgba(7,27,77,.06);transition:background .18s ease,border-color .18s ease,transform .18s ease}
.mb-category-pill:hover{background:#fff7df;border-color:rgba(193,154,69,.55);transform:translateY(-1px)}
.mb-category-card-test-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:20px}
.mb-category-card-test-head h1{margin:0 0 6px;color:#071B4D}
.mb-category-card-test-head p{margin:0;color:#667085;line-height:1.5}
.mb-category-card-test-section{margin-top:26px}
.mb-category-card-test-section h2{margin:0 0 10px;color:#071B4D;font-size:22px}
.mb-category-card-test-section .muted{margin:0 0 14px;color:#667085;font-size:13px;line-height:1.5}
.mb-category-card-test-pill{display:inline-flex;align-items:center;gap:8px;border-radius:999px;background:#fff7df;color:#8a5b00;padding:9px 13px;font-size:12px;font-weight:900;white-space:nowrap}
@media(max-width:1100px){.mb-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mb-category-carousel .mb-category-card{flex-basis:calc((100% - 36px)/3)}}
@media(max-width:800px){.mb-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mb-category-carousel .mb-category-card{flex-basis:44%}.mb-category-card-test-head{flex-direction:column}.mb-category-carousel__btn{display:none}}
@media(max-width:520px){.mb-category-grid{grid-template-columns:1fr}.mb-category-carousel .mb-category-card{flex-basis:82%}.mb-category-carousel__track{gap:14px}.mb-category-carousel__viewport{padding-right:18%}.mb-category-card__name{font-size:17px}}

.mb-category-carousel__viewport::-webkit-scrollbar,.mb-category-pill-row::-webkit-scrollbar{display:none}
.mb-category-carousel__btn:disabled{opacity:1;cursor:pointer}

/* v553 - Categorias em Alta mobile: ajuste apenas do carrossel/viewport.
   O visual interno do Category Card Global permanece intacto. */
@media(max-width:520px){
  .mb-category-module[data-category-mode="homeTrendingCategories"] .mb-category-carousel{
    margin:0;
    width:100%;
    overflow:visible;
  }
  .mb-category-module[data-category-mode="homeTrendingCategories"] .mb-category-carousel__viewport{
    padding:4px 0 18px;
    overflow-x:auto;
    scroll-padding-left:0;
  }
  .mb-category-module[data-category-mode="homeTrendingCategories"] .mb-category-carousel__track{
    gap:14px;
    padding-left:0;
    padding-right:24%;
  }
  .mb-category-module[data-category-mode="homeTrendingCategories"] .mb-category-carousel .mb-category-card{
    flex:0 0 76%;
    max-width:76%;
    scroll-snap-align:start;
  }
}
