/* ==============================================================================
   ESTRUTURA BASE DO CARDÁPIO & CARRINHO (COMPARTILHADA POR TODOS OS TEMAS)
   ============================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header & Banner */
.store-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.store-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 3px solid #ffffff;
}

.store-info-main {
    flex: 1;
}

.store-badges-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* Barra de Navegação de Categorias */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.category-nav-inner {
    display: flex;
    gap: 12px;
}

/* Seções do Menu */
.menu-section {
    padding: 30px 0;
}

.section-heading {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* Card: coluna fixa — imagem + corpo; rodapé sempre visível */
.product-card {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0;
    overflow: hidden;
}

.product-card-image {
    width: 100%;
    height: 120px;
    max-height: 120px;
    flex: 0 0 120px;
    overflow: hidden;
    background: rgba(0,0,0,0.06);
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-card-image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-muted, #94a3b8);
    font-size: 28px;
    opacity: 0.45;
    height: 80px;
    max-height: 80px;
    flex: 0 0 80px;
}

.product-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
    gap: 10px;
}

.product-title {
    font-size: 17px !important;
    line-height: 1.3;
    margin: 0;
}

.product-desc {
    font-size: 13px;
    color: var(--theme-text-muted);
    margin: 4px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 10px;
}

.product-price {
    font-size: 16px !important;
    font-weight: 800;
    line-height: 1.35;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
}

.product-price .price-old {
    font-size: 13px !important;
    font-weight: 500;
    text-decoration: line-through;
    opacity: 0.55;
}

.product-price .price-current {
    font-size: 17px;
    font-weight: 800;
    color: var(--theme-primary);
}

.product-footer .btn-add-cart {
    width: 100%;
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .product-card-image {
        height: 100px;
        max-height: 100px;
        flex-basis: 100px;
    }
}

/* Botão Flutuante do Carrinho */
.cart-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    z-index: 999;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cart-floating-btn:hover {
    transform: scale(1.05);
}

.cart-count-badge {
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
}

/* Drawer / Gaveta do Carrinho */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.25);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--theme-border);
    background-color: var(--theme-surface, #ffffff);
}

.modal-box-body::-webkit-scrollbar,
.cart-items-list::-webkit-scrollbar {
    width: 6px;
}
.modal-box-body::-webkit-scrollbar-thumb,
.cart-items-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--theme-border);
}

.cart-item-title {
    font-weight: 600;
    font-size: 15px;
}

.cart-item-sub {
    font-size: 12px;
    color: var(--theme-text-muted);
    margin-top: 4px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--theme-border);
    background: transparent;
    color: var(--theme-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--theme-border);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border: none;
    background: var(--theme-primary);
    color: #ffffff;
    transition: opacity 0.2s;
}

.btn-checkout:hover {
    opacity: 0.9;
}

/* Modal de Detalhes do Produto & Checkout */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 520px;
    background-color: var(--theme-surface, #ffffff);
    color: var(--theme-text, #1e293b);
    border: 1px solid var(--theme-border, #e2e8f0);
    border-radius: var(--theme-radius, 14px);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1020;
}

.modal-box-body {
    padding: 24px;
    overflow-y: auto;
    background-color: var(--theme-surface, #ffffff);
}

.option-group {
    margin-top: 20px;
}

.option-group-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--theme-text-muted);
}

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.option-row:hover {
    background: var(--theme-surface-hover);
}

/* Responsivo */
@media (max-width: 600px) {
    .store-hero {
        flex-direction: column;
        text-align: center;
    }
    .store-badges-row {
        justify-content: center;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .cart-drawer {
        max-width: 100%;
    }
}
.menu-empty-state{max-width:720px;margin:70px auto;padding:55px 25px;text-align:center;border:1px dashed var(--theme-border);border-radius:18px;color:var(--theme-text-muted)}.menu-empty-state i{font-size:46px;color:var(--theme-primary);margin-bottom:16px}.menu-empty-state h2{color:var(--theme-text);margin-bottom:7px}.menu-empty-state p{margin-bottom:18px}.btn-empty-menu{display:inline-block;padding:11px 16px;border-radius:9px;background:var(--theme-primary);color:#fff;text-decoration:none;font-weight:700}
