/* Mayoristas Cobo — estilos sobre Framework7 (claro/oscuro con variables F7). */
:root {
  --mc-primary: #0d5ec1;
  --mc-primary-soft: rgba(13, 94, 193, .1);
  --mc-ok: #1a8f4e;
  --mc-warn: #b26a00;
  --mc-error: #c62828;
  --mc-card-bg: #fff;
  --mc-muted: #6b7785;
  --mc-border: rgba(0, 0, 0, .08);
  --mc-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
  --f7-page-bg-color: #f3f5f8;
}
.dark {
  --mc-card-bg: #1c1c1e;
  --mc-muted: #9aa4b0;
  --mc-border: rgba(255, 255, 255, .1);
  --mc-primary-soft: rgba(80, 150, 240, .16);
  --mc-shadow: none;
  --f7-page-bg-color: #000;
}

.hidden { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.svg-icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.svg-sm { width: 18px; height: 18px; }
.svg-xs { width: 14px; height: 14px; }
.svg-xl { width: 56px; height: 56px; }
.muted { color: var(--mc-muted); }
.tax-note { color: var(--mc-muted); font-size: 12.5px; margin: 6px 0 0; }
.noscript { padding: 24px; text-align: center; }

/* Tabbar: badge sobre icono */
.tabbar .icon, .navbar .icon { position: relative; }
.tabbar .badge, .navbar .icon .badge { position: absolute; top: -4px; left: 60%; min-width: 18px; }

/* ---------- Login ---------- */
.login-screen .page.login-page { background: linear-gradient(160deg, #0d5ec1 0%, #0a3f86 100%); }
.login-box { --f7-list-bg-color: var(--mc-card-bg); --f7-list-strong-bg-color: var(--mc-card-bg); --f7-input-outline-border-color: var(--mc-border); }
.login-box .item-floating-label { background: var(--mc-card-bg); }
.login-content { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 24px 0; }
.login-box { width: min(92vw, 420px); background: var(--mc-card-bg); border-radius: 22px; padding: 28px 8px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); text-align: center; }
.login-logo { width: 80px; height: 80px; border-radius: 20px; }
.login-box h1 { margin: 12px 0 4px; font-size: 24px; }
.login-sub { color: var(--mc-muted); margin: 0 16px 8px; }
.login-list { text-align: left; margin-top: 12px; }
.login-help { color: var(--mc-muted); font-size: 13px; margin: 4px 20px 0; }
.login-alert { margin: 12px 16px 0; padding: 10px 12px; border-radius: 10px; background: rgba(198, 40, 40, .1); color: var(--mc-error); font-size: 14px; text-align: left; }

/* ---------- Inicio ---------- */
.hero { padding: 16px 16px 4px; }
.hero-hello { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.hero-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--mc-card-bg); color: var(--mc-muted); box-shadow: var(--mc-shadow); border: 1px solid var(--mc-border); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.section-head .link { font-size: 15px; font-weight: 500; }
.category-scroller { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 112px; gap: 10px; overflow-x: auto; padding: 0 16px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.category-scroller::-webkit-scrollbar { display: none; }
.cat-tile { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; background: var(--mc-card-bg); box-shadow: var(--mc-shadow); border: 1px solid var(--mc-border); color: inherit; min-height: 92px; }
.cat-initial { width: 34px; height: 34px; border-radius: 10px; background: var(--mc-primary-soft); color: var(--mc-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cat-name { font-size: 13px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-count { font-size: 11px; color: var(--mc-muted); margin-top: auto; }

/* ---------- Catalogo ---------- */
.catalog-tools { position: sticky; top: 0; z-index: 5; background: var(--f7-page-bg-color); padding: 8px 0 4px; }
.catalog-search { background: transparent; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding: 6px 16px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chips-row .chip { flex-shrink: 0; width: auto; cursor: pointer; border: 0; font: inherit; }
.chip-active { background: var(--mc-primary) !important; color: #fff !important; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 16px; }
.stock-toggle { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sort-button { display: inline-flex; gap: 6px; align-items: center; width: auto; }
.sort-button .svg-icon { width: 16px; height: 16px; }
.result-count { font-size: 12.5px; color: var(--mc-muted); padding: 2px 16px 6px; min-height: 16px; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 12px 16px; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0 20px 20px; } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.product-grid > .empty-state { grid-column: 1 / -1; }

.pcard { display: flex; flex-direction: column; background: var(--mc-card-bg); border-radius: 14px; overflow: hidden; box-shadow: var(--mc-shadow); border: 1px solid var(--mc-border); min-width: 0; }
.pcard.is-out { opacity: .72; }
.pcard-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pcard-incart { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; background: var(--mc-ok); color: #fff; font-size: 12px; font-weight: 700; }
.pcard-body { display: flex; flex-direction: column; gap: 3px; padding: 10px; flex: 1; }
.pcard-name { color: inherit; font-weight: 600; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard-ref { font-size: 11.5px; color: var(--mc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-price { margin-top: 4px; display: flex; align-items: baseline; gap: 3px; }
.pcard-price strong { font-size: 18px; color: var(--mc-primary); }
.dark .pcard-price strong { color: #6aa8ff; }
.pcard-price span { font-size: 12px; color: var(--mc-muted); }
.pcard-pack { font-size: 12px; color: var(--mc-muted); }
.pcard-action { margin-top: auto; padding-top: 8px; }
.pcard-action .stepper { width: 100%; }
.pcard-action .stepper .stepper-input-wrap { flex: 1; }
.add-btn { display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.avail { font-size: 11.5px; font-weight: 600; }
.avail-in { color: var(--mc-ok); }
.avail-low { color: var(--mc-warn); }
.avail-out { color: var(--mc-error); }
.qty-stepper input { font-weight: 700; text-align: center; width: 100%; }
.qty-stepper .stepper-button-plus.disabled { opacity: .4; pointer-events: none; }
.skel-btn { height: 30px; border-radius: 8px; margin-top: 8px; }
.skel-card { height: 120px; border-radius: 14px; margin-bottom: 12px; }
.infinite-scroll-preloader { margin: 12px auto 24px; display: block; }

/* ---------- Producto ---------- */
.product-gallery { background: #fff; }
.product-hero, .product-swiper img { width: 100%; max-height: 52vh; aspect-ratio: 1 / 1; object-fit: contain; display: block; margin: 0 auto; }
.product-title { font-size: 20px; line-height: 1.3; margin: 0 0 4px; }
.product-meta { color: var(--mc-muted); font-size: 13px; }
.product-price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.product-price { font-size: 28px; font-weight: 800; color: var(--mc-primary); }
.dark .product-price { color: #6aa8ff; }
.product-price-unit { color: var(--mc-muted); }
.product-text { font-size: 14.5px; line-height: 1.55; white-space: normal; }
.qty-help { font-size: 14px; }
.product-buybar .toolbar-inner, .checkout-bar .toolbar-inner { padding: 0 12px; gap: 12px; justify-content: space-between; }
.buybar-price { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.buybar-price strong { font-size: 18px; }
.buybar-price span { font-size: 11.5px; color: var(--mc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar-action { min-width: 150px; display: flex; justify-content: flex-end; }
.buybar-action .button { min-width: 140px; }
.checkout-bar .button { width: auto; padding: 0 22px; }
.button[disabled], .button.disabled { opacity: .4; pointer-events: none; filter: grayscale(.6); }
@media (min-width: 900px) {
  .page[data-name="product"] .page-content, .page[data-name="checkout"] .page-content, .page[data-name="order"] .page-content { max-width: 860px; margin: 0 auto; }
}

/* ---------- Carrito ---------- */
.sync-status { padding: 8px 16px 0; min-height: 20px; }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.sync-ok { color: var(--mc-ok); }
.sync-pending { color: var(--mc-muted); }
.sync-warn { color: var(--mc-warn); }
.cart-seller { display: flex; justify-content: space-between; gap: 12px; }
.cart-list .item-media img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--mc-border); }
.cart-list .item-title { color: inherit; white-space: normal; font-weight: 600; font-size: 14px; line-height: 1.3; }
.cart-list .item-title-row { align-items: flex-start; gap: 8px; }
.cart-remove { color: var(--mc-muted); padding: 2px; }
.cart-line-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; }
.cart-line-bottom .stepper { min-width: 120px; }
.line-total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.line-total span { font-size: 12px; color: var(--mc-muted); }
.line-issue { color: var(--mc-error); font-size: 12.5px; margin-top: 4px; }
.cart-line.has-issue { background: rgba(198, 40, 40, .05); }
.cart-summary .sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.cart-summary .sum-total { font-size: 18px; font-weight: 800; border-top: 1px solid var(--mc-border); padding-top: 10px; margin-top: 4px; }
.cart-summary .muted { font-size: 13.5px; }
.cart-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Checkout ---------- */
.notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice-warn { background: rgba(178, 106, 0, .12); color: var(--mc-warn); }
.notice-error { background: rgba(198, 40, 40, .1); color: var(--mc-error); }
.co-lines .item-title { white-space: normal; font-size: 14px; }
.co-lines .item-after.ok { color: var(--mc-ok); }
.co-lines .item-after.ko { color: var(--mc-error); font-weight: 700; }
.free { color: var(--mc-ok); font-weight: 700; }
.address-list .item-text { -webkit-line-clamp: 3; }

/* ---------- Pedidos / cuenta ---------- */
.status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--mc-primary-soft); color: var(--mc-primary); }
.status-paid, .status-prepared { background: rgba(26, 143, 78, .12); color: var(--mc-ok); }
.status-cancelled { background: rgba(198, 40, 40, .1); color: var(--mc-error); }
.order-head { display: flex; flex-direction: column; gap: 6px; }
.order-address { font-size: 14px; }
.more-orders { text-align: center; }
.account-head { display: flex; gap: 14px; align-items: center; padding: 20px 16px 4px; }
.account-head h2 { margin: 0; font-size: 19px; }
.account-head p { margin: 2px 0 0; color: var(--mc-muted); font-size: 14px; word-break: break-all; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--mc-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex-shrink: 0; }
.app-version { text-align: center; }

/* ---------- Estados ---------- */
.empty-state { text-align: center; padding: 40px 24px; color: var(--mc-muted); }
.empty-state h3 { color: var(--f7-text-color, inherit); margin: 12px 0 6px; }
.empty-state .button { display: inline-flex; width: auto; padding: 0 20px; margin-top: 10px; }
.empty-icon { color: var(--mc-primary); opacity: .5; }
.done-block { text-align: center; padding-top: 20px; }
.done-block .button { margin-top: 10px; }
.done-icon { width: 84px; height: 84px; border-radius: 50%; background: rgba(26, 143, 78, .12); color: var(--mc-ok); display: inline-flex; align-items: center; justify-content: center; }
.adj-list { text-align: left; padding-left: 18px; margin: 0; }
.button-loading { pointer-events: none; opacity: .7; }
.app-toast .toast-content { justify-content: center; }

/* ---------- Tiendas ---------- */
.small { font-size: 13px; }
.seller-list { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 0 12px 20px; }
@media (min-width: 700px) { .seller-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .seller-list { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 20px 24px; } }
.seller-card { position: relative; display: block; background: var(--mc-card-bg); border-radius: 16px; overflow: hidden; box-shadow: var(--mc-shadow); border: 1px solid var(--mc-border); color: inherit; }
.seller-card.is-locked { opacity: .78; }
.seller-card-banner { height: 72px; background: linear-gradient(120deg, var(--mc-primary) 0%, #4f8fe0 100%); }
.seller-card-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seller-card-body { display: flex; gap: 12px; padding: 0 14px 14px; align-items: flex-start; }
.seller-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: #fff; border: 3px solid var(--mc-card-bg); box-shadow: var(--mc-shadow); margin-top: -28px; flex-shrink: 0; }
.seller-logo-initial { display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: var(--mc-primary); background: var(--mc-primary-soft); }
.seller-logo-lg { width: 84px; height: 84px; border-radius: 20px; margin-top: -42px; }
.seller-card-main { min-width: 0; flex: 1; padding-top: 8px; }
.seller-card-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; }
.seller-card-summary { margin: 4px 0 0; font-size: 13px; color: var(--mc-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fact { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: var(--mc-primary-soft); color: var(--mc-primary); white-space: nowrap; }
.dark .fact { color: #8fbcff; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tag-ok { background: rgba(26, 143, 78, .12); color: var(--mc-ok); }
.tag-warn { background: rgba(178, 106, 0, .14); color: var(--mc-warn); }
.tag-ko { background: rgba(198, 40, 40, .1); color: var(--mc-error); }
.tag-lock { background: rgba(100, 110, 125, .14); color: var(--mc-muted); }
.seller-cart-pill { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--mc-ok); color: #fff; font-size: 12px; font-weight: 700; }

.seller-hero { background: var(--mc-card-bg); border-bottom: 1px solid var(--mc-border); }
.seller-hero-banner { height: 120px; background: linear-gradient(120deg, var(--mc-primary) 0%, #4f8fe0 100%); }
@media (min-width: 900px) { .seller-hero-banner { height: 200px; } }
.seller-hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seller-hero-body { display: flex; gap: 14px; padding: 0 16px 16px; }
.seller-hero-main { padding-top: 10px; min-width: 0; }
.seller-hero-main h1 { margin: 0 0 4px; font-size: 21px; line-height: 1.2; }
.store-search { display: flex; align-items: center; gap: 10px; margin: 14px 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--mc-card-bg); color: var(--mc-muted); border: 1px solid var(--mc-border); box-shadow: var(--mc-shadow); }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 12px 8px; }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 0 20px 8px; } }
.cat-grid .cat-tile { min-height: 104px; }
.cat-tile-all .cat-initial { background: var(--mc-primary); color: #fff; }
.notice-lock { background: rgba(100, 110, 125, .1); color: inherit; }
.notice-lock p { margin: 8px 0 0; }
.rich { font-size: 14.5px; line-height: 1.55; }
.product-seller-link { display: inline-block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pcard-seller { font-size: 11.5px; color: var(--mc-primary); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Barra de carrito de la tienda */
.seller-cartbar .toolbar-inner { padding: 0 12px; gap: 12px; justify-content: space-between; }
.seller-cartbar { height: auto; min-height: var(--f7-toolbar-height); }
.seller-cartbar .toolbar-inner { position: relative; padding-top: 6px; padding-bottom: 6px; }
.cartbar-empty { color: var(--mc-muted); font-size: 13px; width: 100%; text-align: center; }
.cartbar-info { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.cartbar-info strong { font-size: 17px; }
.cartbar-info > span { font-size: 11.5px; color: var(--mc-muted); }
.seller-cartbar .button { width: auto; padding: 0 18px; flex-shrink: 0; }

/* Progreso hacia pedido minimo / envio gratis */
.minprog { margin-top: 6px; }
.minprog-bar { height: 6px; border-radius: 999px; background: var(--mc-border); overflow: hidden; }
.minprog-bar span { display: block; height: 100%; border-radius: inherit; transition: width .3s ease; }
.minprog-warn .minprog-bar span { background: #e09a1a; }
.minprog-ok .minprog-bar span { background: var(--mc-ok); }
.minprog-label { font-size: 12px; margin-top: 4px; }
.minprog-warn .minprog-label { color: var(--mc-warn); }
.minprog-ok .minprog-label { color: var(--mc-ok); }
.minprog-compact { margin-top: 3px; }
.minprog-compact .minprog-bar { height: 4px; }
.minprog-compact .minprog-label { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Tarjetas de carrito por tienda */
.cart-card { display: block; margin: 0 12px 12px; padding: 14px; border-radius: 16px; background: var(--mc-card-bg); border: 1px solid var(--mc-border); box-shadow: var(--mc-shadow); color: inherit; }
@media (min-width: 900px) { .cart-card { max-width: 760px; margin-left: auto; margin-right: auto; } }
.cart-card-head { display: flex; align-items: center; gap: 12px; }
.cart-card-head .seller-logo { margin-top: 0; width: 48px; height: 48px; border-radius: 12px; border-width: 1px; box-shadow: none; }
.cart-card-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cart-card-title span { font-size: 12.5px; color: var(--mc-muted); }
.cart-card-total { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; font-size: 17px; }
.cart-card-total small { font-size: 11px; font-weight: 400; color: var(--mc-muted); }
.cart-card-thumbs { display: flex; gap: 6px; margin: 12px 0 4px; }
.cart-card-thumbs img, .cart-card-thumbs .more { width: 46px; height: 46px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--mc-border); }
.cart-card-thumbs .more { display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--mc-muted); background: var(--mc-primary-soft); }
.cart-card-cta { margin-top: 12px; }
.sc-progress { margin-top: 8px; margin-bottom: 0; }

/* =====================================================================
   Barras compactas y barra inferior comun a todas las paginas
   ===================================================================== */
:root {
  --mc-tabbar-h: 54px;
  --mc-bar-h: 0px;
}
.md, .ios { --f7-navbar-height: 48px; --f7-navbar-title-font-size: 17px; }
.md .navbar .title { font-weight: 600; }
.navbar .link.icon-only { min-width: 40px; padding: 0 4px; }
.navbar .right { gap: 2px; }

/* Barra de pestañas a nivel de vista: siempre visible y mas baja */
.view-main > .app-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 600;
  height: calc(var(--mc-tabbar-h) + var(--f7-safe-area-bottom, 0px));
  --f7-toolbar-height: var(--mc-tabbar-h);
  --f7-tabbar-icons-height: var(--mc-tabbar-h);
  --f7-tabbar-label-font-size: 10.5px;
  --f7-tabbar-icon-size: 22px;
}
.app-tabbar .toolbar-inner { height: var(--mc-tabbar-h); }
.app-tabbar .tab-link { padding-top: 4px; padding-bottom: 4px; gap: 2px; }
.app-tabbar .icon, .app-tabbar .svg-icon { width: 22px; height: 22px; }
.md .app-tabbar .tab-link i + span, .app-tabbar .tabbar-label { margin-top: 0; font-size: 10.5px; line-height: 1.1; }
.md .app-tabbar .tab-link .icon { width: 48px; height: 26px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.md .app-tabbar .tab-link-active .icon { background: var(--mc-primary-soft); }
.md .app-tabbar .tab-link::before, .md .app-tabbar .tab-link-highlight { display: none !important; }

/* Espacio inferior de todas las paginas: barra de pestañas + barra propia de la pagina */
.page.has-bottom-bar { --mc-bar-h: 60px; }
.view-main .page-content {
  padding-bottom: calc(var(--mc-tabbar-h) + var(--mc-bar-h) + var(--f7-safe-area-bottom, 0px) + 8px) !important;
}

/* Barra propia de pagina (carrito de la tienda, comprar, confirmar) encima de las pestañas */
.bottom-bar {
  position: absolute; left: 0; right: 0; z-index: 550;
  bottom: calc(var(--mc-tabbar-h) + var(--f7-safe-area-bottom, 0px));
  min-height: var(--mc-bar-h, 60px);
  background: var(--f7-bars-bg-color, var(--mc-card-bg));
  border-top: 1px solid var(--mc-border);
  box-shadow: 0 -2px 10px rgba(16, 24, 40, .06);
}
.bottom-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 12px; min-height: 60px; box-sizing: border-box; }
.bottom-bar .button { width: auto; padding: 0 18px; flex-shrink: 0; height: 40px; }
.bottom-bar .button-large { height: 42px; }
.cartbar-info strong, .buybar-price strong { font-size: 16px; }

/* Busqueda oculta hasta pulsar el icono */
.catalog-tools { padding-top: 6px; }
.catalog-search.hidden + .chips-row { padding-top: 2px; }
.filter-row { padding-top: 2px; padding-bottom: 6px; }
.filter-row .result-count { padding: 0; min-height: 0; }

/* Inicio compacto */
.hero { padding: 12px 16px 0; }
.hero-hello { font-size: 19px; margin-bottom: 2px; }

/* Selector de categoria en la barra superior */
.cat-picker-btn {
  display: inline-flex; align-items: center; gap: 6px; max-width: 58vw;
  padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--mc-primary);
  background: var(--mc-card-bg); color: var(--mc-primary); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.cat-picker-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page[data-name="seller-products"] .navbar .title { overflow: visible; }
.cat-picker-list .is-active { color: var(--mc-primary); font-weight: 700; background: var(--mc-primary-soft); }

/* Navegacion entre productos */
.product-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; background: var(--mc-card-bg); border-bottom: 1px solid var(--mc-border); }
.pnav-btn { width: 36px; height: 32px; border-radius: 10px; border: 1px solid var(--mc-border); background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pnav-label { font-size: 12.5px; color: var(--mc-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes mc-slide-next { from { transform: translateX(28%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mc-slide-prev { from { transform: translateX(-28%); opacity: 0; } to { transform: none; opacity: 1; } }
.product-content.slide-next > * { animation: mc-slide-next .22s ease-out; }
.product-content.slide-prev > * { animation: mc-slide-prev .22s ease-out; }
@media (prefers-reduced-motion: reduce) { .product-content > * { animation: none !important; } }

/* Direcciones */
.address-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.address-actions .button { width: auto; display: inline-flex; gap: 4px; align-items: center; padding: 0 12px; }
.address-inuse { font-size: 12px; color: var(--mc-muted); }
.address-add-row { margin-top: 4px; }
.address-add-row .button { width: auto; display: inline-flex; gap: 4px; align-items: center; }
.field-error { color: var(--mc-error); font-size: 12px; min-height: 0; }
.form-alert { margin-bottom: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(198, 40, 40, .1); color: var(--mc-error); font-size: 14px; }
.address-popup select { width: 100%; }

/* Ajuste fino de la barra de pestañas: icono + etiqueta sin recortes */
:root { --mc-tabbar-h: 56px; }
.app-tabbar .toolbar-inner { align-items: stretch; }
.app-tabbar .tab-link { height: 100%; padding: 0 !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.md .app-tabbar .tab-link .icon { height: 24px; border-radius: 12px; }
.app-tabbar .tabbar-label { display: block; overflow: visible; }
.address-popup .item-input-wrap select { height: 40px; }
.seller-hero-banner { height: 76px; }
@media (min-width: 900px) { .seller-hero-banner { height: 160px; } }
.seller-logo-lg { width: 72px; height: 72px; margin-top: -36px; }
.seller-hero-main h1 { font-size: 19px; }
