/* Mobile app layer */

:root {
  --mobile-bg: #f7faf9;
  --mobile-surface: #ffffff;
  --mobile-ink: #18231d;
  --mobile-muted: #65736b;
  --mobile-line: rgba(24, 35, 29, 0.12);
  --mobile-primary: var(--primary-strong, #5f9b77);
  --mobile-accent: #2563eb;
  --mobile-danger: var(--danger, #d85f6f);
  --mobile-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  --mobile-topbar: 78px;
  --mobile-bottom-nav: 78px;
}

@media (max-width: 760px) {
  body.page-catalogo .delivery-hero {
    padding: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10) !important;
  }

  body.page-catalogo .delivery-hero h2 {
    margin-bottom: 12px !important;
    color: #0f172a !important;
    font-size: clamp(1.2rem, 5vw, 1.55rem) !important;
    line-height: 1.18 !important;
  }

  body.page-catalogo .delivery-hero p {
    margin-bottom: 18px !important;
    color: #475569 !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
  }

  body.page-catalogo .delivery-search {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 88px !important;
    min-height: 42px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06) !important;
    overflow: hidden !important;
  }

  body.page-catalogo .delivery-search:focus-within {
    border-color: #2e9870 !important;
    box-shadow: 0 0 0 3px rgba(46, 152, 112, 0.14), 0 10px 22px rgba(15, 23, 42, 0.08) !important;
  }

  body.page-catalogo .delivery-search input {
    min-width: 0;
    min-height: 42px !important;
    padding: 0 12px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    font-size: 0.86rem !important;
    font-weight: 650 !important;
  }

  body.page-catalogo .delivery-search input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
  }

  body.page-catalogo .delivery-search button,
  body.page-catalogo .delivery-search .button {
    min-width: 88px !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    background: #2e9870 !important;
    font-size: 0.82rem !important;
    font-weight: 850 !important;
  }
}

.install-app-action {
  display: none !important;
}

html[data-install-ready="true"] .install-app-action {
  display: inline-flex !important;
}

button.install-app-action {
  border: 0;
  font: inherit;
}

@media (display-mode: standalone) {
  .install-app-action {
    display: none !important;
  }
}

@media (max-width: 1099px) {
  html {
    min-height: 100%;
    scroll-padding-top: calc(var(--mobile-topbar) + 12px);
  }

  body {
    min-height: 100vh;
    color: var(--mobile-ink);
    background: var(--mobile-bg);
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
  }

  body::before,
  body::after {
    display: none;
  }

  .page-chrome {
    min-height: 100vh;
    padding: max(10px, env(safe-area-inset-top)) 10px calc(var(--mobile-bottom-nav) + max(16px, env(safe-area-inset-bottom)));
  }

  body[data-role="administrador"] .page-chrome,
  body[data-role="subadmin"] .page-chrome,
  body[data-role="vendedor"] .page-chrome {
    padding-bottom: 16px;
  }

  .topbar {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    z-index: 120;
    margin: 0 0 12px;
    padding: 0;
  }

  .topbar-inner {
    min-height: var(--mobile-topbar);
    padding: 10px;
    gap: 10px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--mobile-shadow);
    overflow: visible;
  }

  .topbar-inner::after,
  .brand-mark::after,
  .page-title-art {
    display: none;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
  }

  .brand-mark img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }

  .brand-copy strong {
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.15;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-copy small {
    overflow: hidden;
    max-width: 48vw;
    color: var(--mobile-muted);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .session-box {
    gap: 8px;
    margin-left: 0;
  }

  .menu-button,
  .menu-close,
  .location-modal-close,
  .order-detail-modal-close,
  .close-modal,
  .picker-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 95, 111, 0.28);
    border-radius: 8px;
    color: #ffffff;
    background: var(--mobile-danger);
    box-shadow: 0 8px 18px rgba(216, 95, 111, 0.22);
    opacity: 1;
  }

  .menu-button {
    color: var(--mobile-primary);
    background: #ffffff;
    border-color: var(--mobile-line);
    box-shadow: none;
  }

  .menu-button:hover,
  .menu-close:hover,
  .location-modal-close:hover,
  .order-detail-modal-close:hover,
  .close-modal:hover,
  .picker-close:hover {
    color: #ffffff;
    background: #c94d60;
    transform: none;
  }

  .menu-button:hover {
    color: var(--mobile-primary);
    background: #f3f8f5;
  }

  .close-modal {
    padding: 0;
    font-size: 1.7rem;
    line-height: 1;
  }

  .page-overlay {
    background: rgba(12, 18, 24, 0.5);
  }

  .side-menu {
    top: max(10px, env(safe-area-inset-top));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: min(380px, calc(100vw - 20px));
    padding: 12px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.24);
  }

  .menu-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--mobile-line);
    background: #ffffff;
  }

  .menu-link {
    min-height: 50px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--mobile-ink);
    background: transparent;
  }

  .menu-link.active,
  .menu-link:hover {
    color: var(--mobile-primary);
    border-color: rgba(95, 155, 119, 0.18);
    background: rgba(95, 155, 119, 0.1);
    transform: none;
  }

  .menu-link::after {
    display: none;
  }

  .menu-link.install-app-action {
    width: 100%;
    color: #ffffff;
    background: var(--mobile-accent);
  }

  .shell,
  #page-content {
    gap: 12px;
  }

  .page-title,
  .dashboard-hero,
  .work-panel,
  .gps-panel,
  .form-card,
  .table-box,
  .summary-card,
  .product-card,
  .empty-state,
  .catalog-empty,
  .cart-summary-card,
  .checkout-card,
  .store-dashboard-hero,
  .store-compact-header,
  .store-logo-field,
  .sale-payment-summary {
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: var(--mobile-surface);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  }

  .page-title,
  .dashboard-hero,
  .work-panel,
  .gps-panel,
  .form-card,
  .empty-state,
  .catalog-toolbar {
    padding: 14px;
  }

  .page-title-copy h1,
  .dashboard-hero h2,
  .delivery-hero h2,
  .work-panel h2,
  .empty-state h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.12;
    letter-spacing: 0;
  }

  .page-title-copy p,
  .dashboard-hero p,
  .work-panel p,
  .empty-state p,
  .catalog-toolbar p {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .dashboard-hero,
  .delivery-hero {
    color: var(--mobile-ink);
    background: #ffffff;
  }

  .dashboard-hero p,
  .delivery-hero p,
  .delivery-hero .muted {
    color: var(--mobile-muted);
  }

  .summary-grid,
  .product-grid,
  .store-summary-cards,
  .store-dashboard-grid,
  .store-dashboard-hero,
  .store-profile-form,
  .store-profile-fields,
  .checkout-grid,
  .presencial-sale-grid {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .product-card-body {
    padding: 14px;
  }

  .summary-card::before,
  .form-card::before,
  .product-media::after {
    display: none;
  }

  .summary-card:hover,
  .product-card:hover,
  .tab-item:hover {
    transform: none;
  }

  .product-grid {
    gap: 12px;
  }

  .product-card {
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-rows: auto;
    overflow: hidden;
  }

  .product-media {
    height: 100%;
    min-height: 132px;
    aspect-ratio: auto;
    background: #eef4f0;
  }

  .product-card-body {
    gap: 8px;
  }

  .product-card-body h2 {
    font-size: 1rem;
    line-height: 1.22;
  }

  .product-card-body p {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .product-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .product-footer strong {
    font-size: 1.18rem;
  }

  .product-footer .button {
    width: 100%;
    min-width: 0;
  }

  .button,
  .picker-button {
    min-height: 44px;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: none;
  }

  .button.primary,
  .picker-button.primary {
    background: var(--mobile-primary);
    border-color: var(--mobile-primary);
  }

  .button.secondary {
    color: var(--mobile-primary);
    background: rgba(95, 155, 119, 0.1);
    border-color: rgba(95, 155, 119, 0.2);
  }

  .category-rail {
    margin: 0 -10px;
    padding: 2px 10px 8px;
    gap: 8px;
  }

  .category-chip {
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 8px;
    box-shadow: none;
  }

  input,
  select,
  textarea,
  .short-input,
  .form-card input,
  .form-card select,
  .form-card textarea,
  .checkout-field input,
  .checkout-field textarea,
  .sale-payment-summary input {
    min-height: 44px;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
  }

  .table-box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 680px;
  }

  .modal {
    align-items: stretch;
    padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  }

  .modal-content,
  .modal-large,
  .location-modal-dialog,
  .order-detail-modal-dialog {
    width: 100%;
    max-width: 100%;
    max-height: none;
    border-radius: 8px;
  }

  .modal-header,
  .location-modal-header-row,
  .order-detail-modal-header {
    gap: 10px;
  }

  .modal-header h2,
  .location-modal-header h3 {
    min-width: 0;
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .bottom-nav {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 110;
    min-height: var(--mobile-bottom-nav);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(62px, 1fr);
    grid-template-columns: none;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    scrollbar-width: none;
  }

  .bottom-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-item {
    min-width: 62px;
    min-height: 58px;
    padding: 7px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--mobile-muted);
    font-size: 0.7rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .tab-item.active {
    color: var(--mobile-primary);
    background: rgba(95, 155, 119, 0.12);
  }

  .tab-item.logout-tab {
    color: #ffffff;
    background: var(--mobile-danger);
  }

  .tab-item.install-app-action {
    color: #ffffff;
    background: var(--mobile-accent);
  }
}

@media (max-width: 480px) {
  .brand-copy small {
    display: none;
  }

  .product-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .product-media {
    min-height: 122px;
  }

  .store-row,
  .product-store {
    font-size: 0.78rem;
  }
}

/* Formal mobile refinement */
:root {
  --mobile-bg: #eef2f6;
  --mobile-surface: #ffffff;
  --mobile-ink: #17212b;
  --mobile-muted: #647282;
  --mobile-line: #d9e1ea;
  --mobile-primary: #164f68;
  --mobile-accent: #2c7a5b;
  --mobile-danger: #b42335;
  --mobile-shadow: 0 1px 2px rgba(20, 32, 44, 0.06), 0 12px 28px rgba(20, 32, 44, 0.10);
  --mobile-topbar: 68px;
  --mobile-bottom-nav: 74px;
}

@media (max-width: 1099px) {
  body {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(238, 242, 246, 0.98) 28rem),
      var(--mobile-bg);
  }

  .page-chrome {
    padding: max(10px, env(safe-area-inset-top)) 10px calc(var(--mobile-bottom-nav) + max(14px, env(safe-area-inset-bottom)));
  }

  body[data-role="administrador"] .page-chrome,
  body[data-role="subadmin"] .page-chrome,
  body[data-role="vendedor"] .page-chrome {
    padding-bottom: 14px;
  }

  .topbar-inner {
    border-color: var(--mobile-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--mobile-shadow);
  }

  .brand-mark {
    border-color: var(--mobile-line);
    background: #f8fafc;
  }

  .brand-copy strong {
    color: var(--mobile-ink);
    font-weight: 800;
  }

  .brand-copy small,
  .session-copy span {
    color: var(--mobile-muted);
  }

  .menu-button,
  .menu-close,
  .location-modal-close,
  .order-detail-modal-close,
  .close-modal,
  .picker-close {
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    color: var(--mobile-primary);
    background: #ffffff;
    box-shadow: none;
  }

  .menu-button:hover,
  .menu-close:hover,
  .location-modal-close:hover,
  .order-detail-modal-close:hover,
  .close-modal:hover,
  .picker-close:hover {
    color: #ffffff;
    background: var(--mobile-primary);
  }

  .side-menu {
    border-color: var(--mobile-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 58px rgba(20, 32, 44, 0.22);
  }

  .menu-header {
    border-bottom-color: var(--mobile-line);
  }

  .menu-link {
    border-radius: 8px;
    color: #4c5d6e;
  }

  .menu-link.active,
  .menu-link:hover {
    color: var(--mobile-primary);
    border-color: #c8d8e4;
    background: #e7f3f7;
  }

  .page-title,
  .dashboard-hero,
  .work-panel,
  .gps-panel,
  .form-card,
  .table-box,
  .summary-card,
  .product-card,
  .empty-state,
  .catalog-empty,
  .cart-summary-card,
  .checkout-card,
  .store-dashboard-hero,
  .store-compact-header,
  .store-logo-field,
  .sale-payment-summary,
  .catalog-toolbar,
  .delivery-hero {
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--mobile-shadow);
  }

  .page-title,
  .dashboard-hero,
  .work-panel,
  .gps-panel,
  .form-card,
  .table-box,
  .cart-summary-card,
  .checkout-card,
  .catalog-toolbar,
  .delivery-hero {
    padding: 14px;
  }

  .page-title-copy h1,
  .dashboard-hero-copy h2,
  .work-panel h2,
  .catalog-toolbar h2,
  .empty-state h2,
  .auth-card-head h2 {
    color: #111c27;
    font-weight: 800;
    letter-spacing: 0;
  }

  .page-title-copy p,
  .dashboard-hero-copy p,
  .work-panel p,
  .catalog-toolbar p,
  .empty-state p,
  .gps-panel p {
    color: var(--mobile-muted);
  }

  .summary-card strong,
  .dashboard-hero-side strong {
    color: #102033;
  }

  .button,
  .picker-button {
    min-height: 42px;
    border-radius: 8px;
    font-weight: 800;
  }

  .button.primary,
  .picker-button.primary {
    border-color: var(--mobile-primary);
    background: var(--mobile-primary);
  }

  .button.secondary,
  .picker-button.light {
    color: var(--mobile-primary);
    border-color: #c8d8e4;
    background: #e7f3f7;
  }

  .button.light,
  .button.ghost-light {
    color: var(--mobile-ink);
    border-color: var(--mobile-line);
    background: #ffffff;
  }

  .button.danger,
  .tab-item.logout-tab,
  .button.light.session-action {
    color: #ffffff;
    border-color: var(--mobile-danger);
    background: var(--mobile-danger);
  }

  input,
  select,
  textarea,
  .short-input,
  .form-card input,
  .form-card select,
  .form-card textarea,
  .checkout-field input,
  .checkout-field textarea,
  .sale-payment-summary input {
    min-height: 42px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    color: var(--mobile-ink);
    background: #ffffff;
  }

  input:focus,
  select:focus,
  textarea:focus,
  .short-input:focus,
  .form-card input:focus,
  .form-card select:focus,
  .form-card textarea:focus {
    border-color: #1f6f8b;
    box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.15);
  }

  .data-table thead th,
  .product-table thead th {
    color: #334455;
    background: #f4f7fa;
    letter-spacing: 0;
  }

  .bottom-nav {
    border-color: var(--mobile-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(20, 32, 44, 0.16);
  }

  .tab-item {
    border-radius: 8px;
    color: var(--mobile-muted);
  }

  .tab-item.active {
    color: var(--mobile-primary);
    background: #e7f3f7;
  }
}

/* Catalog app feel */
@media (max-width: 760px) {
  :root {
    --mobile-bg: #f4f6f8;
    --mobile-primary: #14516a;
    --mobile-accent: #2c8a68;
    --mobile-danger: #b72d3c;
    --mobile-topbar: 62px;
    --mobile-bottom-nav: 72px;
  }

  body.page-catalogo {
    background: #f4f6f8;
  }

  body.page-catalogo .page-chrome {
    padding-inline: 8px;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  body.page-catalogo .topbar {
    top: 0;
    margin-bottom: 10px;
  }

  body.page-catalogo .topbar-inner {
    min-height: var(--mobile-topbar);
    padding: 8px 10px;
    border-radius: 0 0 8px 8px;
    border-top: 0;
    box-shadow: 0 8px 20px rgba(20, 32, 44, 0.10);
  }

  body.page-catalogo .brand {
    gap: 9px;
  }

  body.page-catalogo .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  body.page-catalogo .brand-mark img {
    width: 34px;
    height: 34px;
  }

  body.page-catalogo .brand-copy strong {
    font-size: 0.95rem;
  }

  body.page-catalogo .brand-copy small,
  body.page-catalogo .session-copy {
    display: none;
  }

  body.page-catalogo .session-box .button.light {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 8px;
    background: var(--mobile-danger);
    border-color: var(--mobile-danger);
    color: #ffffff;
    font-size: 0.78rem;
  }

  body.page-catalogo .delivery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 10px;
    align-items: start;
    margin-bottom: 10px;
    padding: 14px !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 18px rgba(20, 32, 44, 0.08) !important;
  }

  body.page-catalogo .delivery-hero-copy {
    gap: 8px;
  }

  body.page-catalogo .delivery-hero h2 {
    max-width: 15rem;
    margin: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1.12 !important;
  }

  body.page-catalogo .delivery-hero p {
    margin: 0 0 4px !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
  }

  body.page-catalogo .delivery-hero-visual {
    display: grid;
    width: 56px;
    height: 56px;
    min-height: 0;
    place-items: center;
    padding: 6px;
    border: 1px solid var(--mobile-line);
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: none;
  }

  body.page-catalogo .delivery-hero-visual img,
  body.page-catalogo .catalog-store-logo {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain;
  }

  body.page-catalogo .delivery-search {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 48px !important;
    min-height: 46px !important;
    margin-top: 2px;
    border-color: #cbd6df !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  body.page-catalogo .delivery-search input {
    min-height: 46px !important;
    padding-inline: 13px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
  }

  body.page-catalogo .delivery-search .search-button {
    min-width: 48px !important;
    min-height: 46px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mobile-accent) !important;
  }

  body.page-catalogo .delivery-search .search-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body.page-catalogo .store-rail,
  body.page-catalogo .category-rail {
    margin-inline: -8px;
    padding: 2px 8px 8px;
    gap: 7px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  body.page-catalogo .store-rail {
    margin-top: 0;
  }

  body.page-catalogo .category-chip {
    min-height: 36px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-radius: 8px;
    border-color: #d4dde6;
    background: #ffffff;
    color: #173041;
    font-size: 0.78rem;
    font-weight: 850;
    box-shadow: none;
  }

  body.page-catalogo .store-chip {
    min-width: 112px;
    max-width: 138px;
    justify-content: flex-start;
    gap: 7px;
  }

  body.page-catalogo .store-chip img {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  body.page-catalogo .category-chip.active {
    color: #ffffff;
    border-color: var(--mobile-primary);
    background: var(--mobile-primary);
  }

  body.page-catalogo .product-grid {
    gap: 9px;
    margin-top: 2px;
  }

  body.page-catalogo .product-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 132px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(20, 32, 44, 0.08);
  }

  body.page-catalogo .product-media {
    min-height: 132px;
    background: #eef3f6;
  }

  body.page-catalogo .product-card-body {
    padding: 11px;
  }

  body.page-catalogo .product-card-body h2 {
    font-size: 0.96rem;
  }

  body.page-catalogo .product-category,
  body.page-catalogo .promo-chip {
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  body.page-catalogo .product-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: auto;
  }

  body.page-catalogo .product-footer strong {
    font-size: 1.05rem;
    line-height: 1.1;
  }

  body.page-catalogo .product-footer .button {
    width: auto;
    min-width: 82px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--mobile-accent);
    border-color: var(--mobile-accent);
    font-size: 0.76rem;
  }

  body.page-catalogo .bottom-nav {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    min-height: var(--mobile-bottom-nav);
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: none;
    overflow: visible;
    padding: 7px;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(20, 32, 44, 0.18);
  }

  body.page-catalogo .tab-item {
    min-width: 0;
    min-height: 56px;
    gap: 4px;
    padding: 7px 4px;
    white-space: normal;
    font-size: 0.68rem;
    font-weight: 800;
  }

  body.page-catalogo .tab-item .icon {
    width: 1.15rem;
    height: 1.15rem;
  }

  body.page-catalogo .tab-item.active {
    color: var(--mobile-primary);
    background: #e5f1f5;
  }
}
