/* =====================================================================
   Cardápio Drinkelas — port fiel do protótipo HTML.
   Vermelho (#CC0000) + preto + creme. Fontes Bebas Neue + Barlow.
   ===================================================================== */

/* ---- Tokens ---- */
:root {
    --red: #CC0000;
    --red-dark: #990000;
    --red-light: #FF3333;
    --black: #111111;
    --white: #FFFFFF;
    --gray-bg: #F5F2EF;
    --gray-card: #F5F5F5;
    --gray-border: #E8E8E8;
    --text: #111111;
    --text-muted: #888888;
    --green-success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, .08);
    --shadow-lg: 0 14px 38px rgba(204, 0, 0, .18);

    --radius: 14px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-pill: 999px;

    --container-max: 1280px;
    --header-h: 78px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    --font-display: 'Bebas Neue', 'Arial Black', sans-serif;
    --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-sans: 'Barlow', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    background: var(--gray-bg);
    color: var(--black);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }

/* =====================================================================
   HEADER (sticky vermelho)
   ===================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--red);
    color: var(--white);
    box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
}
.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
}
.logo-mark {
    width: 60px;
    height: 80px;
    display: grid;
    place-items: center;
}
.logo-mark svg,
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-word {
    font-family: var(--font-display);
    font-size: 30px;
    letter-spacing: 2px;
    line-height: 1;
}
.logo-tag {
    font-family: var(--font-cond);
    font-size: 11px;
    letter-spacing: 3px;
    opacity: .85;
    text-transform: uppercase;
}
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.btn-pill-w, .btn-ghost-w {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: transform .15s ease, background .2s ease;
    cursor: pointer;
}
.btn-pill-w {
    background: var(--white);
    color: var(--red);
}
.btn-pill-w:hover {
    transform: translateY(-1px);
}
.btn-ghost-w {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, .85);
}
.btn-ghost-w:hover {
    background: rgba(255, 255, 255, .12);
}
.btn-cart-header {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    color: var(--red);
    transition: transform .15s ease, background .2s ease;
    cursor: pointer;
    border: none;
}
.btn-cart-header:hover { transform: translateY(-1px); background: var(--gray-card); }
.cart-count-pill {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--black);
    color: var(--white);
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 11px;
    display: grid;
    place-items: center;
    border: 2px solid var(--red);
}
.cart-count-pill.zero { display: none; }
.cart-count-pill.pulse {
    animation: cart-pill-pulse 0.6s ease-out;
}
@keyframes cart-pill-pulse {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.45); background: #fff; color: var(--red); }
    100% { transform: scale(1); }
}

/* Toast container global — usado por todas as interações de carrinho sem reload. */
.cardapio-toasts {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.cardapio-toast-item {
    pointer-events: auto;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: var(--font-cond);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    transform: translateX(380px);
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
    max-width: 340px;
}
.cardapio-toast-item.is-visible { transform: translateX(0); opacity: 1; }
.cardapio-toast-item.is-success { background: #1f7a3f; color: #fff; }
.cardapio-toast-item.is-error   { background: #b3261e; color: #fff; }

.user-greet {
    color: var(--white);
    font-family: var(--font-cond);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .92;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .btn-ghost-w .hide-sm { display: none; }
    .btn-ghost-w { padding: 10px; width: 44px; justify-content: center; }
    .logo-tag { display: none; }
    .user-greet { display: none; }
}

/* =====================================================================
   INFO BAR
   ===================================================================== */
.info-bar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-border);
}
.info-bar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    flex-wrap: wrap;
    font-size: 14px;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.status-badge.open { background: var(--green-success); color: var(--white); }
.status-badge.closed { background: var(--black); color: var(--white); }
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.status-badge.open .status-dot {
    animation: pulse-dot 1.8s ease-out infinite;
    box-shadow: 0 0 0 0 currentColor;
}
@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
    100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}
.info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
}
.info-item strong { color: var(--black); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    background: radial-gradient(circle at 20% 30%, var(--red-light) 0%, var(--red) 38%, var(--red-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 56px 24px;
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero::before {
    width: 380px;
    height: 380px;
    top: -120px;
    right: -80px;
    background: rgba(255, 255, 255, .07);
}
.hero::after {
    width: 240px;
    height: 240px;
    bottom: -120px;
    left: 6%;
    background: rgba(0, 0, 0, .12);
}
.hero-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.hero-text { max-width: 720px; }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 84px);
    line-height: 1.1;
    margin: 0 0 14px 0;
    letter-spacing: 1px;
}
.hero h1 .accent {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 2px 18px 6px 18px;
    transform: rotate(-2deg);
    margin-right: 22px;
    margin-bottom: 10px;
}
.hero-sub {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(15px, 1.6vw, 18px);
    opacity: .95;
    max-width: 540px;
    margin: 0 0 24px 0;
}
.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-cond);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hero-chip.pulse { animation: chip-pulse 2.2s ease-in-out infinite; }
@keyframes chip-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
.hero-glass {
    width: 360px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35));
}
@media (max-width: 760px) {
    .hero-glass { display: none; }
}

/* =====================================================================
   TICKER
   ===================================================================== */
.ticker {
    background: var(--black);
    color: var(--white);
    overflow: hidden;
    border-top: 3px solid var(--red);
    border-bottom: 3px solid var(--red);
}
.ticker-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    padding: 14px 0;
    animation: ticker-scroll 28s linear infinite;
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; }
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =====================================================================
   LAYOUT
   ===================================================================== */
.layout {
    flex: 1 0 auto;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    padding: 28px 24px 80px 24px;
}
.main { min-width: 0; }

/* =====================================================================
   CAT NAV (sticky)
   ===================================================================== */
.cat-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 30;
    background: var(--gray-bg);
    margin: 0 -24px 22px -24px;
    padding: 4px 0 0 0;
    border-bottom: 1px solid var(--gray-border);
}
.cat-nav-inner {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 24px;
    scroll-behavior: smooth;
}
.cat-nav-inner::-webkit-scrollbar { display: none; height: 0; }
.cat-tab {
    flex-shrink: 0;
    padding: 12px 18px 14px 18px;
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: color .15s ease, border-color .15s ease, background .15s;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
    background: transparent;
}
.cat-tab:hover { color: var(--black); background: rgba(0, 0, 0, .03); }
.cat-tab.active { color: var(--red); border-bottom-color: var(--red); }

/* =====================================================================
   SEARCH
   ===================================================================== */
.search-wrap {
    position: relative;
    margin-bottom: 22px;
}
.search-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-pill);
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.search:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(204, 0, 0, .12);
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { margin-bottom: 36px; scroll-margin-top: 140px; }
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--black);
    padding-bottom: 8px;
    gap: 14px;
    flex-wrap: wrap;
}
.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 1.5px;
    margin: 0;
    line-height: 1;
    flex: 1;
    min-width: 0;
}
.section-count {
    font-family: var(--font-cond);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* =====================================================================
   FEATURED GRID (primeira categoria)
   ===================================================================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 700px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
.featured-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-border);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
    display: flex;
    flex-direction: column;
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--red);
}
.featured-card.out { opacity: .65; }
.featured-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
}
/* Botão "Pedir" fixo no rodapé do card featured. AJAX via [data-add-to-cart]. */
.featured-card__add {
    margin: 0 14px 14px;
    padding: 10px 14px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
    box-shadow: 0 4px 10px rgba(204, 0, 0, .22);
}
.featured-card__add:hover { transform: translateY(-1px); background: #b00000; box-shadow: 0 6px 14px rgba(204, 0, 0, .35); }
.featured-card__add:disabled,
.featured-card__add--disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.featured-card__add.is-loading { opacity: .75; }
.featured-img {
    aspect-ratio: 1 / 1;
    background: var(--gray-card);
    position: relative;
    overflow: hidden;
}
.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}
.featured-card:hover .featured-img img { transform: scale(1.04); }
.featured-img__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(204, 0, 0, .25);
    font-size: 56px;
    background: linear-gradient(135deg, var(--gray-card), var(--white));
}
.badges-tl {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}
.badges-tr {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    pointer-events: none;
}
.badge {
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}
.badge.age { background: var(--black); color: var(--white); }
.badge.hot { background: var(--red); color: var(--white); }
.badge.new { background: #1e6df0; color: var(--white); }
.badge.out { background: rgba(17, 17, 17, .85); color: var(--white); }
.badge.hot.pulse { animation: badge-pulse 1.6s ease-in-out infinite; }
@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.featured-body {
    padding: 14px 14px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.featured-body h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
.featured-body .price {
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 17px;
    color: var(--red);
    margin-top: auto;
    padding-top: 8px;
}
.featured-body .price small {
    display: block;
    font-weight: 500;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================================
   PRODUCT ROW CARDS
   ===================================================================== */
.product-list { display: flex; flex-direction: column; gap: 12px; }
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    grid-template-columns: 86px 1fr auto;
    gap: 16px;
    align-items: start;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--red);
}
.product-card.out { opacity: .65; }
.product-thumb {
    width: 86px;
    height: 86px;
    background: var(--gray-card);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-thumb__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 38px;
    color: rgba(204, 0, 0, .25);
}
.product-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-info-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.product-info-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.product-info h3 {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
}
.product-info h3 a { color: inherit; }
.product-info h3 a:hover { color: var(--red); }
.product-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}
.product-price {
    font-family: var(--font-cond);
    font-weight: 800;
    font-size: 17px;
    color: var(--red);
    white-space: nowrap;
    line-height: 1;
    text-align: right;
}
.product-price small {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 500;
}
.btn-order {
    background: var(--black);
    color: var(--white);
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background .15s ease, transform .15s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.btn-order:hover { background: var(--red); transform: translateY(-1px); }
.btn-order:disabled { opacity: .5; cursor: not-allowed; transform: none; }

@media (max-width: 560px) {
    .product-card { grid-template-columns: 70px 1fr; }
    .product-thumb { width: 70px; height: 70px; }
    .product-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* =====================================================================
   EMPTY STATE
   ===================================================================== */
.empty-state {
    text-align: center;
    padding: 36px 16px;
    background: var(--white);
    border: 1px dashed var(--gray-border);
    border-radius: var(--radius);
    color: var(--text-muted);
}
.empty-state .ico { font-size: 36px; margin-bottom: 6px; }
.empty-state .txt {
    font-family: var(--font-cond);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 15px;
    text-transform: uppercase;
}
.empty-state h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin: 0 0 6px;
    color: var(--black);
}
.empty-state p {
    margin: 0 auto 18px;
    max-width: 420px;
    font-size: 14px;
}

/* =====================================================================
   BUTTONS (utilitários)
   ===================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--white);
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background .15s, transform .15s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover:not(:disabled) { background: var(--red-dark); transform: translateY(-1px); color: var(--white); }
.btn-primary:disabled, .btn-primary.disabled {
    background: var(--gray-border);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}
.btn-primary.block { display: flex; width: 100%; padding: 14px; font-size: 15px; letter-spacing: 2px; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--black);
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid var(--gray-border);
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
    background: var(--black);
    color: rgba(255, 255, 255, .7);
    padding: 24px 0;
    text-align: center;
    font-family: var(--font-cond);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
.footer strong { color: var(--white); }

.footer-sep {
    display: inline-block;
    margin: 0 8px;
    opacity: .6;
}
.footer-credits {
    display: inline-block;
}
.footer-link {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    transition: border-color .2s ease, color .2s ease;
}
.footer-link:hover,
.footer-link:focus {
    color: var(--accent, #cc0000);
    border-bottom-color: currentColor;
}

/* =====================================================================
   AUTH (login + register, mantém compat com classes "cardapio-auth*")
   ===================================================================== */
.cardapio-auth {
    padding: 40px 24px;
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
}
.cardapio-auth__inner {
    width: 100%;
    display: flex;
    justify-content: center;
}
.cardapio-auth__card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 18px;
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
}
.cardapio-auth__head { text-align: center; margin-bottom: 26px; }
.cardapio-auth__title {
    font-family: var(--font-display);
    font-size: 36px;
    letter-spacing: 1.5px;
    margin: 0 0 6px;
    color: var(--black);
}
.cardapio-auth__sub {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
}
.cardapio-auth__alt {
    text-align: center;
    margin: 20px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}
.cardapio-auth__alt a {
    color: var(--red);
    font-weight: 600;
}

.cardapio-auth__forgot {
    text-align: right;
    margin: -4px 0 0;
    font-size: 13px;
}
.cardapio-auth__forgot a {
    color: var(--red);
    font-weight: 600;
}

.cardapio-form { display: flex; flex-direction: column; gap: 14px; }
.cardapio-field { display: flex; flex-direction: column; gap: 6px; }
.cardapio-field__label {
    font-family: var(--font-cond);
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.cardapio-field__hint { font-size: 12px; color: var(--text-muted); }
.cardapio-field__error { font-size: 13px; color: var(--danger); min-height: 1em; }
.cardapio-input {
    padding: 12px 14px;
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    font: inherit;
    background: var(--white);
    color: var(--black);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    min-height: 46px;
    font-size: 16px;
}
.cardapio-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(204, 0, 0, .12);
}
.cardapio-input::placeholder { color: var(--text-muted); }
.cardapio-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}
.cardapio-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}
.cardapio-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--gray-border);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.cardapio-checkbox input[type="checkbox"]:checked {
    background: var(--red);
    border-color: var(--red);
}
.cardapio-checkbox input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.cardapio-validation {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .25);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--danger);
    font-size: 13px;
}
.cardapio-validation:empty { display: none; }
.cardapio-validation ul { margin: 0; padding-left: 18px; }

.cardapio-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .cardapio-form-grid { grid-template-columns: repeat(6, 1fr); }
    .cardapio-field--cep         { grid-column: span 2; }
    .cardapio-field--rua         { grid-column: span 4; }
    .cardapio-field--numero      { grid-column: span 2; }
    .cardapio-field--bairro      { grid-column: span 4; }
    .cardapio-field--complemento { grid-column: span 3; }
    .cardapio-field--referencia  { grid-column: span 3; }
}

/* =====================================================================
   TOASTS (sucesso/erro)
   ===================================================================== */
.cardapio-toast {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    border: 1px solid transparent;
}
.cardapio-toast--success {
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .35);
    color: #15803d;
}
.cardapio-toast--error {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .35);
    color: #b91c1c;
}

/* =====================================================================
   CARRINHO (página standalone)
   ===================================================================== */
.cardapio-carrinho { padding: 0; }
.cardapio-carrinho__head {
    margin: 0 0 22px;
    border-bottom: 2px solid var(--black);
    padding-bottom: 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.cardapio-carrinho__title {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 1.5px;
    margin: 0;
}
.cardapio-carrinho__eyebrow {
    font-family: var(--font-cond);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.cardapio-carrinho__layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .cardapio-carrinho__layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        align-items: start;
    }
}
.cardapio-carrinho__itens {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cardapio-item {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    gap: 14px;
    grid-template-columns: 86px 1fr;
    grid-template-areas:
        "media info"
        "media actions"
        "subtotal subtotal";
}
@media (min-width: 600px) {
    .cardapio-item {
        grid-template-columns: 96px 1fr auto;
        grid-template-areas:
            "media info subtotal"
            "media actions subtotal";
        align-items: center;
    }
}
.cardapio-item__media {
    grid-area: media;
    width: 86px;
    height: 86px;
    background: var(--gray-card);
    border-radius: 10px;
    overflow: hidden;
}
@media (min-width: 600px) { .cardapio-item__media { width: 96px; height: 96px; } }
.cardapio-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cardapio-item__placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 32px;
    color: rgba(204, 0, 0, .25);
}
.cardapio-item__info { grid-area: info; min-width: 0; }
.cardapio-item__category {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--font-cond);
}
.cardapio-item__title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 4px;
    line-height: 1.25;
}
.cardapio-item__title a { color: var(--black); }
.cardapio-item__title a:hover { color: var(--red); }
.cardapio-item__unit { font-size: 12px; color: var(--text-muted); margin: 0; }
.cardapio-item__actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.cardapio-item__qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.cardapio-item__qty-label {
    font-family: var(--font-cond);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
.cardapio-item__qty-input {
    width: 64px;
    text-align: center;
    font-weight: 700;
    min-height: 38px;
    padding: 6px 8px;
}
/* Widget +/− pro carrinho. Sem botão Atualizar — clique em + ou − dispara JSON. */
.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--gray-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--white);
    transition: opacity .15s ease;
}
.qty-stepper.is-loading { opacity: .55; pointer-events: none; }
.qty-stepper__btn {
    width: 38px;
    height: 38px;
    background: transparent;
    color: var(--red);
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    line-height: 1;
    transition: background .15s ease;
}
.qty-stepper__btn:hover { background: rgba(204, 0, 0, .08); }
.qty-stepper__btn:active { background: rgba(204, 0, 0, .16); }
.qty-stepper__value {
    min-width: 32px;
    padding: 0 6px;
    text-align: center;
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    user-select: none;
}

.cardapio-item__remove { margin: 0; }
.cardapio-item__remove-btn {
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    padding: 4px 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    border: none;
}
.cardapio-item__remove-btn:hover { color: var(--danger); }

.cardapio-item__subtotal {
    grid-area: subtotal;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 10px;
    border-top: 1px solid var(--gray-border);
    gap: 12px;
}
@media (min-width: 600px) {
    .cardapio-item__subtotal {
        flex-direction: column;
        align-items: flex-end;
        border-top: none;
        padding-top: 0;
        min-width: 90px;
    }
}
.cardapio-item__subtotal-label {
    font-family: var(--font-cond);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}
.cardapio-item__subtotal-value {
    font-family: var(--font-cond);
    font-size: 18px;
    color: var(--red);
    font-weight: 800;
}

/* Resumo lateral */
.cardapio-resumo {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: calc(var(--header-h) + 14px);
}
.cardapio-resumo__title {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 1.2px;
    margin: 0 0 14px;
}
.cardapio-resumo__lines {
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cardapio-resumo__line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}
.cardapio-resumo__line dd { margin: 0; font-weight: 600; color: var(--black); }
.cardapio-resumo__line--total {
    padding-top: 10px;
    border-top: 1px solid var(--gray-border);
    margin-top: 4px;
    color: var(--black);
}
.cardapio-resumo__line--total dt {
    font-family: var(--font-cond);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
}
.cardapio-resumo__line--total dd {
    font-family: var(--font-display);
    font-size: 26px;
    color: var(--black);
    letter-spacing: 1px;
}
.cardapio-resumo__free { color: var(--green-success); font-weight: 700; }
.cardapio-resumo__hint {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--gray-border);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.cardapio-resumo__continue {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 8px 0;
}
.cardapio-resumo__continue:hover { color: var(--red); }
.cardapio-resumo__limpar {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--gray-border);
    text-align: center;
}
.cardapio-resumo__limpar-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-family: var(--font-cond);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.cardapio-resumo__limpar-btn:hover { color: var(--danger); }
.cardapio-resumo__note {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin: 10px 0 0;
}

/* Barra de progresso de frete grátis */
.cardapio-frete-bar { margin-bottom: 14px; }
.cardapio-frete-bar__track {
    height: 6px;
    background: var(--gray-card);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 6px;
}
.cardapio-frete-bar__fill {
    height: 100%;
    background: var(--red);
    border-radius: var(--radius-pill);
    transition: width 350ms ease;
}
.cardapio-frete-bar--ok .cardapio-frete-bar__fill { background: var(--green-success); }
.cardapio-frete-bar__text {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}
.cardapio-frete-bar__text strong { color: var(--red); }
.cardapio-frete-bar__text--ok { color: var(--green-success); font-weight: 700; }

/* =====================================================================
   CHECKOUT (cards brancos + radios)
   ===================================================================== */
.cardapio-checkout { padding: 0; }
.cardapio-checkout__head { margin: 0 0 22px; padding-bottom: 10px; border-bottom: 2px solid var(--black); }
.cardapio-checkout__eyebrow {
    font-family: var(--font-cond);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 4px;
}
.cardapio-checkout__title {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 1.5px;
    margin: 0;
}
.cardapio-checkout__layout {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .cardapio-checkout__layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        align-items: start;
    }
}
.cardapio-checkout__main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cardapio-section {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 22px;
}
.cardapio-section[hidden] { display: none; }
.cardapio-section__title {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 1.2px;
    margin: 0 0 12px;
}
.cardapio-section__sub { color: var(--text-muted); font-size: 13px; margin: 0 0 14px; }

/* Checkout 3-etapas: stepper visual no topo. */
.checkout-steps {
    display: flex;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    gap: 8px;
    counter-reset: step;
}
.checkout-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--gray-card);
    border: 1.5px solid var(--gray-border);
    color: var(--text-muted);
    transition: all .2s ease;
}
.checkout-step__bullet {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gray-border); color: var(--text-muted);
    display: grid; place-items: center;
    font-family: var(--font-cond);
    font-weight: 700; font-size: 13px;
    flex-shrink: 0;
}
.checkout-step__label {
    font-family: var(--font-cond); font-weight: 600;
    font-size: 13px; letter-spacing: .5px;
    text-transform: uppercase;
}
.checkout-step.is-active {
    background: var(--white); border-color: var(--red);
    color: var(--text); box-shadow: 0 4px 10px rgba(204,0,0,.12);
}
.checkout-step.is-active .checkout-step__bullet { background: var(--red); color: var(--white); }
.checkout-step.is-done { background: var(--white); border-color: var(--gray-border); color: var(--text); }
.checkout-step.is-done .checkout-step__bullet { background: #1f7a3f; color: var(--white); }
.checkout-step.is-done .checkout-step__bullet::before { content: '✓'; }
.checkout-step.is-done .checkout-step__bullet { font-size: 0; }
.checkout-step.is-done .checkout-step__bullet::before { font-size: 14px; }

.checkout-step-actions {
    display: flex; justify-content: space-between; gap: 12px;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--gray-border);
}

/* Resumo da Etapa 3 (revisão antes de confirmar). */
.checkout-resumo {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 600px) {
    .checkout-resumo { grid-template-columns: 1fr; }
}
.checkout-resumo__bloco {
    background: var(--gray-card); border-radius: var(--radius-md);
    padding: 14px 16px; border: 1.5px solid var(--gray-border);
}
.checkout-resumo__bloco h3 {
    margin: 0 0 8px; font-family: var(--font-display);
    font-size: 14px; letter-spacing: 1px; color: var(--red);
}
.checkout-resumo__bloco dl { margin: 0; }
.checkout-resumo__bloco dl > div {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 4px 0; font-size: 14px;
}
.checkout-resumo__bloco dt { color: var(--text-muted); }
.checkout-resumo__bloco dd { margin: 0; font-weight: 600; color: var(--text); text-align: right; }
.checkout-resumo__endereco { font-size: 13px; color: var(--text); margin: 4px 0 0; }

.checkout-status-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: var(--radius-pill);
    background: rgba(31,122,63,.08); color: #1f7a3f;
    border: 1px solid rgba(31,122,63,.3);
    font-family: var(--font-cond); font-weight: 600; font-size: 13px;
}
.checkout-status-pill__dot {
    width: 8px; height: 8px; border-radius: 50%; background: #1f7a3f;
    animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(1.25); }
}

/* Bloco informativo do endereço da loja na opção Retirada. */
.cardapio-retirada-info {
    background: var(--gray-card);
    border: 1.5px dashed var(--gray-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    line-height: 1.45;
}
.cardapio-retirada-info__nome {
    font-family: var(--font-display);
    font-size: 18px;
    margin: 0 0 4px;
    color: var(--text);
    letter-spacing: 1px;
}
.cardapio-retirada-info__endereco { margin: 0 0 4px; color: var(--text); font-size: 14px; }
.cardapio-retirada-info__ref { margin: 0; color: var(--text-muted); font-size: 13px; font-style: italic; }
.cardapio-section__opt {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 14px;
    font-family: var(--font-sans);
    text-transform: none;
    letter-spacing: normal;
}

.cardapio-radios {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) {
    .cardapio-radios { grid-template-columns: repeat(2, 1fr); }
}
.cardapio-radio {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.cardapio-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cardapio-radio__inner {
    display: block;
    padding: 12px 14px;
    background: var(--gray-card);
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    transition: border-color .15s, background .15s;
}
.cardapio-radio__inner strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}
.cardapio-radio__inner small {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}
.cardapio-radio:hover .cardapio-radio__inner { border-color: var(--red); }
.cardapio-radio input[type="radio"]:checked + .cardapio-radio__inner {
    border-color: var(--red);
    background: rgba(204, 0, 0, .06);
}

.cardapio-resumo__itens {
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--gray-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}
.cardapio-resumo__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: baseline;
    font-size: 13px;
}
.cardapio-resumo__item-qty { color: var(--red); font-weight: 700; min-width: 28px; }
.cardapio-resumo__item-name {
    color: var(--black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cardapio-resumo__item-value { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* =====================================================================
   PEDIDOS — lista
   ===================================================================== */
.cardapio-pedidos { padding: 0; }
.cardapio-pedidos__head { margin: 0 0 22px; padding-bottom: 10px; border-bottom: 2px solid var(--black); }
.cardapio-pedidos__eyebrow {
    font-family: var(--font-cond);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 4px;
}
.cardapio-pedidos__title {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 1.5px;
    margin: 0;
}

.cardapio-pedido-list {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
@media (min-width: 700px) { .cardapio-pedido-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cardapio-pedido-list { grid-template-columns: repeat(3, 1fr); } }
.cardapio-pedido-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cardapio-pedido-card:hover {
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.cardapio-pedido-card__link { display: block; padding: 16px 18px; }
.cardapio-pedido-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.cardapio-pedido-card__numero {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 1px;
    color: var(--black);
}
.cardapio-pedido-card__data { color: var(--text-muted); font-size: 13px; margin: 0 0 4px; }
.cardapio-pedido-card__meta { color: var(--text-muted); font-size: 12px; margin: 0; }
.cardapio-pedido-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--gray-border);
}
.cardapio-pedido-card__total {
    font-family: var(--font-cond);
    font-weight: 800;
    font-size: 18px;
    color: var(--red);
}
.cardapio-pedido-card__cta { color: var(--text-muted); font-size: 13px; }
.cardapio-pedido-card:hover .cardapio-pedido-card__cta { color: var(--red); }

/* Pedido detalhes */
.cardapio-pedido-detalhes { padding: 0; }
.cardapio-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.cardapio-breadcrumb a:hover { color: var(--red); }
.cardapio-breadcrumb__sep { color: var(--text-muted); }
.cardapio-breadcrumb__current { color: var(--black); font-weight: 600; }

.cardapio-pedido-detalhes__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--black);
}
.cardapio-pedido-detalhes__eyebrow {
    font-family: var(--font-cond);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 4px;
}
.cardapio-pedido-detalhes__numero {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 1.5px;
    margin: 0 0 4px;
}
.cardapio-pedido-detalhes__data { color: var(--text-muted); font-size: 14px; margin: 0; }
.cardapio-pedido-detalhes__layout {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .cardapio-pedido-detalhes__layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
}
.cardapio-pedido-detalhes__main { display: flex; flex-direction: column; gap: 16px; }

.cardapio-pedido-itens {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cardapio-pedido-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-border);
}
.cardapio-pedido-item:last-child { border-bottom: none; padding-bottom: 0; }
.cardapio-pedido-item__main { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.cardapio-pedido-item__qty { color: var(--red); font-weight: 700; min-width: 32px; }
.cardapio-pedido-item__nome {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cardapio-pedido-item__valores { text-align: right; flex-shrink: 0; }
.cardapio-pedido-item__unit { display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 2px; }
.cardapio-pedido-item__sub {
    display: block;
    font-family: var(--font-cond);
    color: var(--red);
    font-weight: 800;
    font-size: 16px;
}

.cardapio-pedido-detalhes__entrega-tipo,
.cardapio-pedido-detalhes__pagamento,
.cardapio-pedido-detalhes__obs,
.cardapio-pedido-detalhes__endereco { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.cardapio-pedido-detalhes__entrega-tipo strong,
.cardapio-pedido-detalhes__pagamento strong { color: var(--black); }
.cardapio-pedido-detalhes__pagamento small {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}
.cardapio-pedido-detalhes__endereco {
    background: var(--gray-card);
    border: 1px solid var(--gray-border);
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--black);
    margin-top: 8px;
}
.cardapio-pedido-detalhes__endereco-ref { margin-top: 6px; color: var(--text-muted); font-size: 13px; font-style: italic; }

.cardapio-aviso {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}
.cardapio-aviso--age {
    background: rgba(239, 68, 68, .08);
    border: 1px solid rgba(239, 68, 68, .25);
    color: #991b1b;
}
.cardapio-aviso strong { color: var(--danger); }

/* =====================================================================
   STATUS BADGES
   ===================================================================== */
.cardapio-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-family: var(--font-cond);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}
.cardapio-status--lg { font-size: 13px; padding: 6px 14px; }
.cardapio-status--pending { background: rgba(245, 158, 11, .12); color: #b45309; border-color: rgba(245, 158, 11, .35); }
.cardapio-status--ok { background: rgba(30, 109, 240, .10); color: #1e40af; border-color: rgba(30, 109, 240, .32); }
.cardapio-status--done { background: rgba(34, 197, 94, .12); color: #15803d; border-color: rgba(34, 197, 94, .35); }
.cardapio-status--cancel { background: rgba(239, 68, 68, .10); color: #991b1b; border-color: rgba(239, 68, 68, .32); }

/* =====================================================================
   DETALHES DO PRODUTO (página completa)
   ===================================================================== */
.cardapio-detalhes { padding: 0; }
.cardapio-detalhes__grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .cardapio-detalhes__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
}
.cardapio-detalhes__media {
    position: relative;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.cardapio-detalhes__img { width: 100%; height: 100%; object-fit: cover; }
.cardapio-detalhes__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 96px;
    color: rgba(204, 0, 0, .2);
    background: linear-gradient(135deg, var(--gray-card), var(--white));
}
.cardapio-detalhes__badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.cardapio-detalhes__info { display: flex; flex-direction: column; gap: 14px; }
.cardapio-detalhes__category {
    display: inline-block;
    font-family: var(--font-cond);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--red);
    font-weight: 700;
}
.cardapio-detalhes__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 38px);
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.1;
}
.cardapio-detalhes__price {
    font-family: var(--font-cond);
    font-weight: 800;
    font-size: clamp(28px, 5vw, 34px);
    color: var(--red);
    margin: 0;
}
.cardapio-detalhes__desc p { color: var(--text-muted); line-height: 1.6; margin: 0; font-size: 15px; }
.cardapio-detalhes__section-title {
    font-family: var(--font-cond);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 6px;
    font-weight: 700;
}
.cardapio-detalhes__specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--gray-card);
    border-radius: 10px;
    margin: 0;
}
.cardapio-detalhes__spec { margin: 0; }
.cardapio-detalhes__spec dt {
    font-family: var(--font-cond);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2px;
}
.cardapio-detalhes__spec dd { margin: 0; font-size: 14px; font-weight: 600; }
.cardapio-detalhes__status--ok { color: var(--green-success); }
.cardapio-detalhes__status--out { color: var(--danger); }
.cardapio-detalhes__add { display: flex; flex-direction: column; gap: 10px; }
.cardapio-detalhes__qty {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-cond);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}
.cardapio-detalhes__qty-input { width: 80px; text-align: center; font-weight: 700; }
.cardapio-detalhes__cta-note { color: var(--text-muted); font-size: 13px; margin: 8px 0 0; text-align: center; }
.cardapio-detalhes__cta-note a { color: var(--red); font-weight: 600; }
.cardapio-detalhes__back {
    color: var(--text-muted);
    font-size: 14px;
    align-self: flex-start;
    padding: 6px 0;
}
.cardapio-detalhes__back:hover { color: var(--red); }

/* =====================================================================
   PEDIDO — Sucesso (tela pós-checkout)
   ===================================================================== */
.sucesso {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    max-width: 560px;
    margin: 24px auto 60px;
    box-shadow: var(--shadow-sm);
}
.sucesso__icone {
    font-size: 64px;
    margin-bottom: 8px;
    line-height: 1;
}
.sucesso__eyebrow {
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 12px;
    color: var(--green-success);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.sucesso__numero {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 48px);
    letter-spacing: 1.5px;
    margin: 0 0 12px;
    color: var(--black);
}
.sucesso__msg {
    color: var(--text-muted);
    margin: 0 auto 24px;
    max-width: 380px;
    font-size: 15px;
}
.sucesso__highlight {
    background: var(--gray-card);
    border-radius: 12px;
    padding: 18px;
    margin: 0 0 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sucesso__highlight-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    color: var(--text-muted);
}
.sucesso__highlight-line strong {
    color: var(--black);
    font-weight: 700;
}
.sucesso__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: var(--white);
    padding: 16px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background .15s, transform .15s;
}
.btn-whatsapp:hover {
    background: #1ebc59;
    color: var(--white);
    transform: translateY(-1px);
}
.sucesso__cta-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: -4px 0 6px;
    line-height: 1.4;
}
.sucesso__link {
    color: var(--text-muted);
    font-size: 14px;
    padding: 8px 0;
    text-align: center;
}
.sucesso__link:hover { color: var(--red); }

/* Aviso de auto-redirect: timer + opção pra cancelar. */
.sucesso__redirect-hint {
    margin: 16px 0 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
.sucesso__redirect-hint strong { color: var(--red); font-weight: 700; }
.sucesso__redirect-cancel {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    font-size: 13px;
    padding: 0 4px;
}
.sucesso__redirect-cancel:hover { color: var(--red); }

/* =====================================================================
   Botões principais do cardápio — referenciados por views de carrinho,
   checkout, sucesso, login e registro. Tema vermelho/preto/creme.
   ===================================================================== */
.cardapio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-family: var(--font-cond);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .15s ease;
    line-height: 1;
    min-height: 44px;
}
.cardapio-btn:hover { transform: translateY(-1px); }
.cardapio-btn:active { transform: translateY(0); }
.cardapio-btn:disabled, .cardapio-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cardapio-btn--primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 6px 14px rgba(204, 0, 0, .25);
}
.cardapio-btn--primary:hover {
    background: var(--red-dark);
    color: var(--white);
    box-shadow: 0 10px 22px rgba(204, 0, 0, .38);
}

.cardapio-btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--gray-border);
}
.cardapio-btn--ghost:hover {
    background: var(--gray-card);
    border-color: var(--text-muted);
    color: var(--text);
}

.cardapio-btn--block {
    display: flex;
    width: 100%;
}

.cardapio-btn--sm {
    padding: 8px 14px;
    font-size: 12px;
    min-height: 36px;
}
