:root {
    --bg-body: #f5f5f7;
    --bg-card: #ffffff;
    --bg-accent: #e11d48;
    --bg-accent-soft: #fee2e2;
    --border-soft: #e5e7eb;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;
    --radius-card: 16px;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --transition: 0.18s ease-out;
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
}

/* HEADER / LOJA */

.store-header {
    position: relative;
    background: linear-gradient(135deg, #e11d48, #f97316);
    padding-bottom: 72px;
    color: #fff;
}

.store-cover {
    height: 140px;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 60%);
}

.store-info {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-end;
    transform: translateY(-48px);
}

.store-logo {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
    flex-shrink: 0;
}

.store-logo span {
    font-weight: 700;
    font-size: 28px;
    color: #f9fafb;
}

.store-texts h1 {
    margin: 0 0 4px;
    font-size: clamp(22px, 3vw, 26px);
}

.store-description {
    margin: 0;
    font-size: 13px;
    color: #fde68a;
}

.store-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #fffbeb;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* CONTAINER DO CARDÁPIO */

.menu-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px 32px;
}

/* SEÇÕES / CATEGORIAS */

.menu-section {
    margin-bottom: 32px;
}

.menu-section-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

/* GRID DE PRODUTOS */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(148, 163, 184, 0.18);
    transform: translateY(0);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: default;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    border-color: rgba(248, 113, 113, 0.7);
}

.product-card-added {
    outline: 2px solid #22c55e;
    outline-offset: -2px;
}

/* IMAGEM DO PRODUTO */

.product-image-wrapper {
    position: relative;
    padding-top: 68%; /* proporção 4:3 aproximada */
    overflow: hidden;
    background: #f3f4f6;
}

.product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

/* CONTEÚDO DO PRODUTO */

.product-body {
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product-price-line {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.product-price {
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
}

.product-unit {
    font-size: 12px;
    color: var(--text-soft);
}

.product-name {
    margin: 2px 0 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

.product-description {
    margin: 4px 0 0;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* AÇÕES / BOTÃO ADICIONAR */

.product-actions {
    padding: 8px 12px 10px;
    display: flex;
    justify-content: flex-end;
}

.btn-add {
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-accent);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.3);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-add:hover {
    background: #be123c;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.35);
}

.btn-add:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(185, 28, 28, 0.2);
}

/* MENSAGEM VAZIA */

.empty-message {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 40px;
}

/* BARRA DO CARRINHO */

.cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.98);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    z-index: 40;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #e5e7eb;
    font-size: 13px;
}

.cart-summary span:first-child {
    font-weight: 600;
}

.cart-button {
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    background: #22c55e;
    color: #022c22;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 10px 22px rgba(34, 197, 94, 0.45);
}

.cart-button:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(34, 197, 94, 0.55);
}

.cart-button:active {
    transform: translateY(0);
}

/* RESPONSIVO */

@media (max-width: 640px) {
    .store-info {
        align-items: center;
        transform: translateY(-40px);
    }

    .store-logo {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }

    .store-texts h1 {
        font-size: 20px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .product-card {
        border-radius: 14px;
    }
}
/* Layout geral */
body {
    background: #f3f4f6;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
}

.cardapio-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 12px 80px;
}

/* Cabeçalho estilo app */

.loja-header {
    margin-bottom: 12px;
    background: radial-gradient(circle at top left, #ffedd5 0, #fefce8 30%, #f3f4f6 100%);
    border-radius: 24px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
}

.loja-header-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
}

/* Lado esquerdo: cover + logo + infos */

.loja-header-left {
    flex: 1.6;
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.loja-cover-mini {
    width: 96px;
    border-radius: 18px;
    overflow: hidden;
    background: #e5e7eb;
    flex-shrink: 0;
}

.loja-cover-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loja-main-info {
    flex: 1;
    display: flex;
    gap: 10px;
}

.loja-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #6b7280;
    overflow: hidden;
    flex-shrink: 0;
}

.loja-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loja-text-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.loja-text-block strong {
    font-size: 18px;
    line-height: 1.2;
}

.loja-tagline {
    font-size: 13px;
    color: #4b5563;
}

.loja-meta {
    font-size: 12px;
    color: #9ca3af;
}

.loja-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.badge-pill {
    font-size: 11px;
    border-radius: 999px;
    padding: 3px 9px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
}

.badge-primary {
    background: #ff7200;
    border-color: #ff7200;
    color: #ffffff;
}

/* Lado direito: status + idiomas */

.loja-header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.loja-status {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #4b5563;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.status-text {
    font-weight: 600;
    color: #166534;
}

.status-time {
    color: #6b7280;
}

.loja-language-switcher {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.lang-btn {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 4px 8px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.lang-btn span {
    font-weight: 500;
    color: #4b5563;
}

.lang-active {
    border-color: #ff7200;
    background: #fff7ed;
}

/* Responsivo */

@media (max-width: 640px) {
    .cardapio-wrap {
        padding: 8px 8px 80px;
    }

    .loja-header {
        border-radius: 0 0 18px 18px;
        margin: -8px -8px 12px;
        border-left: none;
        border-right: none;
    }

    .loja-header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .loja-header-left {
        flex-direction: row;
    }

    .loja-header-right {
        align-items: flex-start;
    }

    .loja-language-switcher {
        justify-content: flex-start;
    }
}
