/* ============================================================
   CARDÁPIO DIGITAL — CSS PRINCIPAL
   Desktop: sidebar + grid  |  Mobile: pills + lista
   ============================================================ */

:root {
    --cat-shadow-sm: 0 1px 4px rgba(0,0,0,.06);
    --cat-shadow:    0 4px 16px rgba(0,0,0,.08);
    --cat-shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    --cat-radius:    14px;
}

*, *::before, *::after { box-sizing: border-box; }

.catalog-app {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--cat-bg, #f5f4f0);
    color: var(--cat-text, #1a1a1a);
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── HERO MOBILE ─────────────────────────────────────────── */
.cat-hero {
    background: linear-gradient(135deg, var(--cat-hero-from, var(--arena-primary)) 0%, var(--cat-hero-to, var(--arena-primary-hover)) 100%);
    padding: 24px 16px;
    display: none;
    align-items: center;
    gap: 16px;
}
@media (max-width: 860px) {
    .cat-hero { display: flex; }
}
.cat-hero-logo {
    width: 68px; height: 68px; border-radius: 16px; object-fit: cover;
    border: 3px solid rgba(255,255,255,.3); flex-shrink: 0;
}
.cat-hero-info { min-width: 0; }
.cat-hero-name { font-size: 20px; font-weight: 900; color: #fff; margin: 0 0 4px; letter-spacing: -.02em; }
.cat-hero-sub { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; }
.cat-hero-mesa {
    display: inline-block; margin-top: 8px;
    background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
    color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.cat-hero-orders {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
    color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
    text-decoration: none;
}

/* ── STAFF BAR ─────────────────────────────────────────── */
.catalog-staff-bar {
    background: #111827;
    color: #9ca3af;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 24px;
}
.catalog-staff-bar a {
    color: #f87171;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.catalog-staff-bar a.muted { color: #6b7280; font-weight: 400; }
.catalog-staff-bar a.ml-auto { margin-left: auto; }

/* ── TOPBAR (homepage) ──────────────────────────────────── */
.cat-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--cat-card);
    border-bottom: 1px solid var(--cat-border);
    box-shadow: var(--cat-shadow-sm);
}
@media (max-width: 860px) {
    /* No mobile o hero colorido é o cabeçalho; evita duplicar a marca */
    .cat-topbar { display: none; }
}
.cat-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.cat-topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}
.cat-topbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--cat-border);
    flex-shrink: 0;
}
.cat-topbar-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--cat-text);
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cat-topbar-tagline {
    font-size: 12px;
    color: var(--cat-muted);
    display: none;
}
@media (min-width: 640px) { .cat-topbar-tagline { display: block; } }

.cat-topbar-orders {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 10px 14px;
    border: 1px solid var(--cat-border);
    border-radius: 10px;
    background: transparent;
    color: var(--cat-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}
.cat-topbar-orders:hover {
    border-color: var(--arena-primary);
    color: var(--arena-primary);
}

.cat-topbar-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: var(--arena-primary);
    color: var(--arena-button-text, #fff);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity .15s;
}
.cat-topbar-cart:hover { opacity: .85; }
.cat-topbar-cart-count {
    background: rgba(255,255,255,.25);
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cat-topbar-cart.hidden { display: none; }

/* ── LAYOUT PRINCIPAL ───────────────────────────────────── */
.cat-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 80px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 860px) {
    .cat-layout {
        grid-template-columns: 1fr;
        padding: 0 0 80px;
        gap: 0;
    }
}
@media (max-width: 480px) {
    .cat-layout { padding-bottom: 100px; }
}

/* ── SIDEBAR DE CATEGORIAS (desktop) ────────────────────── */
.cat-sidebar {
    position: sticky;
    top: 80px;
    background: var(--cat-card);
    border: 1px solid var(--cat-border);
    border-radius: var(--cat-radius);
    overflow: hidden;
    box-shadow: var(--cat-shadow-sm);
}
.cat-sidebar-title {
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--cat-muted);
    border-bottom: 1px solid var(--cat-border);
}
.cat-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cat-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .15s;
    cursor: pointer;
}
.cat-sidebar-item:hover {
    background: var(--cat-bg);
    color: var(--arena-primary);
}
.cat-sidebar-item.active {
    border-left-color: var(--arena-primary);
    color: var(--arena-primary);
    background: var(--cat-soft);
}
.cat-sidebar-item .icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.cat-sidebar-item .count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--cat-muted);
    background: var(--cat-bg);
    border-radius: 999px;
    padding: 1px 7px;
}
@media (max-width: 860px) { .cat-sidebar { display: none; } }

/* ── PILLS MOBILE ───────────────────────────────────────── */
.cat-pills-nav {
    display: none;
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--cat-card);
    border-bottom: 1px solid var(--cat-border);
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 16px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.cat-pills-nav::-webkit-scrollbar { display: none; }
@media (max-width: 860px) { .cat-pills-nav { display: block; } }

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-right: 6px;
    border-radius: 999px;
    border: 1px solid var(--cat-border);
    background: #fff;
    color: var(--cat-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}
.cat-pill:hover {
    border-color: var(--arena-primary);
    color: var(--arena-primary);
}
.cat-pill.active {
    background: var(--arena-primary);
    border-color: var(--arena-primary);
    color: var(--arena-button-text, #fff);
    box-shadow: 0 2px 8px var(--cat-soft);
}
.cat-pill.active:hover {
    color: var(--arena-button-text, #fff);
    opacity: .92;
}

/* ── BUSCA ──────────────────────────────────────────────── */
.cat-search-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px 0;
}
@media (max-width: 860px) {
    .cat-search-wrap { padding: 10px 16px; }
}
.cat-search {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 340px;
    background: var(--cat-bg);
    border: 1px solid var(--cat-border);
    border-radius: 999px;
    padding: 0 12px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
@media (max-width: 860px) {
    .cat-search { max-width: none; }
}
.cat-search:focus-within {
    background: var(--cat-card);
    border-color: var(--arena-primary);
    box-shadow: 0 0 0 3px var(--cat-soft);
}
.cat-search > i {
    color: var(--cat-muted);
    font-size: 13px;
    flex-shrink: 0;
}
.cat-search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    outline: none;
    padding: 9px 0;
    font-size: 14px;
    color: var(--cat-text);
    font-family: inherit;
}
.cat-search input::-webkit-search-cancel-button { display: none; }
.cat-search-clear {
    border: none;
    background: var(--cat-border);
    color: var(--cat-muted);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.cat-search-clear:hover { background: var(--cat-border); color: var(--cat-text); }
.cat-search-clear.hidden { display: none; }

/* ── SEM RESULTADOS ─────────────────────────────────────── */
.cat-no-results {
    text-align: center;
    padding: 56px 20px;
    color: var(--cat-muted);
}
.cat-no-results .icon { font-size: 40px; display: block; margin-bottom: 12px; }
.cat-no-results p { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.cat-no-results.hidden { display: none; }
@media (max-width: 860px) {
    .cat-no-results { padding: 40px 16px; }
}

/* ── AJUSTES MOBILE (busca + filtros) ───────────────────── */
@media (max-width: 860px) {
    /* Evita zoom automático do iOS ao focar o campo */
    .cat-search input { font-size: 16px; }
    .cat-search { padding: 0 12px; }

    .cat-pills-nav {
        padding: 10px 12px;
        display: flex;
        gap: 8px;
    }
    .cat-pill {
        padding: 9px 15px;
        margin-right: 0;
        font-size: 14px;
        flex-shrink: 0;
    }

    /* Compensa a barra de filtros fixa ao rolar até a categoria */
    .cat-section { scroll-margin-top: 72px; }
}

/* ── BANNER FECHADO ─────────────────────────────────────── */
.cat-closed-banner {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
@media (max-width: 860px) {
    .cat-closed-banner { margin: 12px 16px; border-radius: 10px; }
}

/* ── SEÇÃO DE CATEGORIA ─────────────────────────────────── */
.cat-section { margin-bottom: 36px; }
@media (max-width: 860px) {
    .cat-section { padding: 16px 16px 0; margin-bottom: 8px; }
}
.cat-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--cat-border);
    letter-spacing: -.01em;
}
.cat-section-title .icon { font-size: 22px; }
@media (max-width: 860px) {
    .cat-section-title { font-size: 16px; margin-bottom: 12px; }
}

/* ── GRID DE PRODUTOS ───────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 1000px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
    .cat-grid { grid-template-columns: 1fr; gap: 8px; }
}

/* ── CARD DE PRODUTO ────────────────────────────────────── */
.cat-product {
    background: var(--cat-card);
    border: 1px solid var(--cat-border);
    border-radius: var(--cat-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    cursor: pointer;
}
.cat-product:hover {
    box-shadow: var(--cat-shadow);
    transform: translateY(-2px);
}
.cat-product-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #f3f4f6;
    display: block;
}
.cat-product-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cat-product-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cat-text);
}
.cat-product-desc {
    font-size: 12px;
    color: var(--cat-muted);
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-product-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.cat-product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--arena-accent, var(--arena-primary));
}
.cat-product-price-from {
    font-size: 11px;
    font-weight: 500;
    color: var(--cat-muted);
    display: block;
    margin-bottom: 1px;
}

/* Layout horizontal em mobile para não desperdiçar espaço */
@media (max-width: 640px) {
    .cat-product {
        flex-direction: row;
        border-radius: 12px;
        align-items: stretch;
    }
    .cat-product:active {
        transform: scale(.985);
    }
    .cat-product-img {
        width: 104px;
        min-width: 104px;
        height: auto;
        align-self: stretch;
        aspect-ratio: auto;
    }
    .cat-product-body {
        padding: 10px 12px;
        gap: 3px;
    }
    .cat-product-name {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .cat-product-desc {
        -webkit-line-clamp: 1;
        font-size: 12px;
    }
    .cat-product-footer { margin-top: 8px; }
    .cat-product-price { font-size: 15px; }
    .cat-btn-add {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 17px;
    }
}

/* Telas bem pequenas */
@media (max-width: 380px) {
    .cat-product-img { width: 92px; min-width: 92px; }
    .cat-product-body { padding: 9px 10px; }
    .cat-product-name { font-size: 13px; }
    .cat-hero { padding: 20px 14px; gap: 12px; }
    .cat-hero-logo { width: 56px; height: 56px; }
    .cat-hero-name { font-size: 18px; }
}

.cat-btn-add {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: none;
    border-radius: 10px;
    background: var(--arena-primary);
    color: var(--arena-button-text, #fff);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .15s, transform .1s;
}
.cat-btn-add:hover { opacity: .85; }
.cat-btn-add:active { transform: scale(.93); }

/* ── BARRA INFERIOR DO CARRINHO ─────────────────────────── */
.cat-cart-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    z-index: 55;
    width: calc(100% - 32px);
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 16px;
    text-decoration: none;
    background: var(--arena-primary);
    color: var(--arena-button-text, #fff);
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--cat-shadow-lg);
    transition: opacity .2s, transform .2s;
}
.cat-cart-bar.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(16px);
}
.cat-cart-bar-label { display: flex; align-items: center; gap: 8px; }
.cat-cart-bar-count {
    background: rgba(255,255,255,.25);
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── HEADER PÁGINAS INTERNAS ────────────────────────────── */
.catalog-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    min-height: 58px;
    padding: 0 8px;
    background: var(--cat-card);
    border-bottom: 1px solid var(--cat-border);
    box-shadow: var(--cat-shadow-sm);
}
.catalog-header-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--cat-text);
    text-decoration: none;
    font-size: 18px;
    border-radius: 10px;
    transition: background .15s;
}
.catalog-header-back:hover { background: var(--cat-bg); }
.catalog-header-title {
    margin: 0;
    text-align: center;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
}

/* ── LAYOUT INNER PAGES ─────────────────────────────────── */
.catalog-main {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px 48px;
}
.catalog-main--totalizer {
    padding-bottom: calc(240px + env(safe-area-inset-bottom));
}
@media (min-width: 700px) {
    .catalog-main { padding-left: 0; padding-right: 0; }
    .catalog-main--totalizer {
        padding-bottom: calc(220px + env(safe-area-inset-bottom));
    }
}

/* ── CARDS GENÉRICOS ────────────────────────────────────── */
.catalog-card {
    background: var(--cat-card);
    border: 1px solid var(--cat-border);
    border-radius: var(--cat-radius);
    padding: 16px;
    margin: 12px 16px;
    box-shadow: var(--cat-shadow-sm);
}
@media (min-width: 700px) {
    .catalog-card { margin-left: 0; margin-right: 0; }
}

/* ── CAMPOS DE FORMULÁRIO ───────────────────────────────── */
.catalog-field { margin-bottom: 14px; }
.catalog-field:last-child { margin-bottom: 0; }
.catalog-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--cat-muted);
    margin-bottom: 6px;
}
.catalog-input, .catalog-textarea, .catalog-select {
    width: 100%;
    border: 1.5px solid var(--cat-border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fafafa;
    color: var(--cat-text);
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.catalog-input:focus, .catalog-textarea:focus, .catalog-select:focus {
    border-color: var(--arena-primary);
    box-shadow: 0 0 0 3px var(--cat-soft);
    background: #fff;
}
.catalog-textarea { resize: vertical; min-height: 88px; }

.catalog-input[readonly] {
    background: #f0f0f0;
    color: var(--cat-muted);
    cursor: default;
}

.viacep-loading {
    opacity: 0.7;
    animation: viacep-pulse 1s ease-in-out infinite;
}

@keyframes viacep-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ── LINHAS DO CARRINHO ─────────────────────────────────── */
.catalog-line {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--cat-border);
}
.catalog-line:last-child { border-bottom: none; }
.catalog-line-info { flex: 1; min-width: 0; }
.catalog-line-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.catalog-line-meta { font-size: 12px; color: var(--cat-muted); margin-top: 2px; }
.catalog-line-price { font-weight: 800; color: var(--cat-text); white-space: nowrap; }
.catalog-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cat-bg);
    border: 1px solid var(--cat-border);
    border-radius: 10px;
    padding: 2px 4px;
}
.catalog-qty button {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    color: var(--cat-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .1s;
}
.catalog-qty button:hover { background: var(--cat-border); }
.catalog-qty span { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }

/* ── TOTALIZADOR ────────────────────────────────────────── */
.catalog-totalizer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: var(--cat-card);
    border-top: 1px solid var(--cat-border);
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
@media (min-width: 700px) {
    .catalog-totalizer {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 720px;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
}
.catalog-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--cat-muted);
}
.catalog-total-row.bold {
    font-weight: 800;
    font-size: 17px;
    color: var(--cat-text);
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--cat-border);
}

/* ── BOTÕES ─────────────────────────────────────────────── */
.catalog-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    background: var(--arena-primary);
    color: var(--arena-button-text, #fff);
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    transition: opacity .15s, transform .1s;
}
.catalog-btn-primary:hover { opacity: .9; }
.catalog-btn-primary:active { transform: scale(.98); }
.catalog-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.catalog-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1.5px solid var(--arena-primary);
    border-radius: 12px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    color: var(--arena-primary);
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    transition: background .15s;
}
.catalog-btn-outline:hover { background: var(--cat-soft); }

/* ── CHECKOUT / IDENTIFICAÇÃO ───────────────────────────── */
.catalog-client-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.catalog-client-box .name { font-weight: 800; font-size: 15px; display: block; }
.catalog-client-box .phone { font-size: 13px; color: var(--cat-muted); display: block; margin-top: 2px; }

.catalog-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border: 1.5px solid var(--cat-border);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .15s;
}
.catalog-option:hover { border-color: var(--arena-primary); }
.catalog-option.selected {
    border-color: var(--arena-primary);
    background: var(--cat-soft);
}
.catalog-option .radio {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    transition: all .15s;
}
.catalog-option.selected .radio {
    border-color: var(--arena-primary);
    background: radial-gradient(circle, var(--arena-primary) 45%, transparent 46%);
}

/* ── MODAL ADICIONAR PRODUTO ────────────────────────────── */
.catalog-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}
.catalog-modal.open { opacity: 1; visibility: visible; }
.catalog-modal-sheet {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 20px 20px 24px;
    box-shadow: var(--cat-shadow-lg);
}
.catalog-modal-drag {
    width: 40px;
    height: 4px;
    background: var(--cat-border);
    border-radius: 999px;
    margin: 0 auto 16px;
}
@media (min-width: 640px) {
    .catalog-modal { align-items: center; }
    .catalog-modal-sheet { border-radius: 20px; }
}

.catalog-var-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1.5px solid var(--cat-border);
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all .15s;
}
.catalog-var-option:has(input:checked) {
    border-color: var(--arena-primary);
    background: var(--cat-soft);
}

/* ── PÁGINA DE SUCESSO ──────────────────────────────────── */
.catalog-success {
    text-align: center;
    padding: 48px 24px;
    max-width: 440px;
    margin: 0 auto;
}
.catalog-success .icon { font-size: 60px; margin-bottom: 16px; display: block; }

/* ── UTILITÁRIOS ────────────────────────────────────────── */
.catalog-option.hidden { display: none !important; }
.hidden { display: none !important; }

/* ── PÁGINA VAZIA ───────────────────────────────────────── */
.cat-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--cat-muted);
}
.cat-empty .icon { font-size: 48px; margin-bottom: 12px; display: block; opacity: .5; }

/* ── DESKTOP: páginas internas centralizadas ───────────── */
@media (min-width: 700px) {
    .catalog-main { max-width: 680px; padding-left: 0; padding-right: 0; }
    .catalog-card { margin-left: 0; margin-right: 0; }
    .catalog-totalizer {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 680px;
        border-radius: 20px 20px 0 0;
    }
    .catalog-main > p { padding-left: 0; padding-right: 0; }
}
