/* ===== Novo menu: abas de lojas, categorias na lateral, barra inferior no celular ===== */

/* Cabecalho com busca */
.mca-nv .header-container { gap: 16px; }
.mca-busca { flex: 1; max-width: 560px; margin: 0 auto; }
.mca-busca input {
    width: 100%; height: 42px; border: 0; border-radius: 999px; padding: 0 16px 0 44px;
    background: rgba(255,255,255,0.12) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.5-3.5'/></svg>") no-repeat 15px center;
    background-size: 18px; color: #fff; font-size: 0.9rem; outline: none;
}
.mca-busca input::placeholder { color: rgba(255,255,255,0.65); }
.mca-busca input:focus { background-color: rgba(255,255,255,0.2); box-shadow: 0 0 0 2px var(--primary); }

/* Abas de lojas */
.mca-tabs { background: #fff; border-bottom: 1px solid #e2e8f0; }
.mca-tabs-in { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.mca-tabs-in::-webkit-scrollbar { display: none; }
.mca-tab { display: flex; align-items: center; gap: 8px; padding: 13px 14px; font-size: 0.88rem; font-weight: 600; color: #64748b; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.mca-tab:hover { color: #1e293b; }
.mca-tab.on { color: #1e293b; font-weight: 800; border-bottom-color: var(--primary); }
.mca-tab img { width: 22px; height: 22px; object-fit: contain; }
.mca-tab-cupons { margin-left: auto; color: #c2410c; }
.mca-tab-cupons.on { color: #c2410c; border-bottom-color: #ea580c; }

/* Corpo: lateral + conteudo */
.mca-shell { display: flex; gap: 20px; align-items: flex-start; max-width: 1400px; width: 100%; margin: 18px auto 0; padding: 0 20px; flex: 1; }
.mca-main { flex: 1; min-width: 0; }
.mca-main .hero-heading, .mca-main .hero-sub, .mca-main .catalogo-intro { max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; text-align: left; }
.mca-main .hero-heading { margin-top: 0; }
.mca-main .product-grid { max-width: none; margin: 12px 0 24px; padding: 0; grid-template-columns: repeat(4, 1fr); }
.mca-main .paginacao { justify-content: flex-start; padding: 0; }

.mca-side { width: 236px; flex: none; position: sticky; top: 84px; background: #fff; border-radius: 16px; padding: 12px 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); max-height: calc(100vh - 104px); overflow-y: auto; }
.mca-side-t { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #64748b; padding: 4px 10px 8px; }
.mca-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 0.86rem; font-weight: 600; color: #1e293b; text-decoration: none; }
.mca-row:hover { background: #f1f5f9; }
.mca-row.on { background: #dbeafe; color: #1d4ed8; font-weight: 800; }
.mca-ic { font-size: 1.05rem; width: 22px; text-align: center; flex: none; }
.mca-rn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mca-row em, .mca-sh-i em { font-style: normal; font-size: 0.72rem; font-weight: 600; color: #94a3b8; }
.mca-row.on em { color: #3b82f6; }

/* Barra inferior + janela de categorias (so celular) */
.mca-bottom { display: none; }
.mca-sheet { display: none; }

@media (max-width: 1100px) {
    .mca-main .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .mca-side { display: none; }
    .mca-shell { padding: 0 10px; margin-top: 12px; }
    .mca-tabs-in { padding: 0 10px; }
    .mca-nv .nav-links .nav-item[aria-label="Início"] { display: none; }
    .mca-nv .nav-links { gap: 0; }
    .mca-nv .highlight-btn { padding: 8px 10px !important; }
    .mca-nv .header-container { gap: 10px; }
    .mca-nv .logo-wrapper { flex: none; }

    .main-footer { padding-bottom: 76px; }

    .mca-bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; background: #fff; border-top: 1px solid #e2e8f0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 12px rgba(0,0,0,0.06); }
    .mca-bt { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; font-size: 0.7rem; font-weight: 600; color: #64748b; text-decoration: none; cursor: pointer; padding: 4px 0; }
    .mca-bi { font-size: 1.25rem; line-height: 1.2; filter: grayscale(1); opacity: 0.75; }
    .mca-bt.on { color: #2563eb; font-weight: 800; }
    .mca-bt.on .mca-bi { filter: none; opacity: 1; }

    .mca-sheet { position: fixed; inset: 0; z-index: 1200; background: rgba(15,23,42,0.5); }
    .mca-sheet.aberto { display: block; }
    .mca-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 14px calc(18px + env(safe-area-inset-bottom)); }
    .mca-sheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 1rem; color: #1e293b; }
    .mca-sheet-x { background: #f1f5f9; border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1; color: #475569; cursor: pointer; }
    .mca-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .mca-sh-i { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; align-items: center; min-width: 0; padding: 10px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 0.8rem; font-weight: 700; color: #1e293b; text-decoration: none; }
    .mca-sh-i .mca-ic { grid-row: 1 / span 2; }
    .mca-sh-i .mca-rn { white-space: normal; line-height: 1.2; overflow: visible; }
    .mca-sh-i em { grid-column: 2; }
    .mca-sh-i .mca-ic { font-size: 1.15rem; }
}

.mca-main .hero-sub { margin-top: 0; }

@media (max-width: 650px) {
    .mca-main .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .mca-main .hero-heading { font-size: 1.05rem; }
    .mca-nv ~ .hero-heading { font-size: 0.92rem; margin: 12px auto 10px; padding: 0 14px; line-height: 1.3; }
    .mca-busca input { font-size: 0.8rem; padding-left: 40px; background-position: 13px center; }
    .mca-tab { padding: 12px 10px; }
}
