/* === VARIAVEIS GLOBAIS === */
:root {
    --primary: #4A154B;
    --primary-light: #7B2D7E;
    --success: #25D366;
    --bg-gray: #F8F9FA;
    --border-color: #E9ECEF;
    --text-dark: #212529;
    --text-muted: #6C757D;
    --shadow-soft: 0 8px 20px rgba(0,0,0,0.06);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* === UTILITÁRIOS === */
.hidden { display: none !important; }
.active { display: block !important; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }
.font-medium { font-weight: 500; }
.btn-block { display: flex; width: 100%; justify-content: space-between; align-items: center; }

/* === STORE HEADER (Ajustado para Açaí Shake) === */
.store-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2D0A2E 100%);
    padding-bottom: 30px;
    position: relative;
}
.store-cover { height: 80px; }
.store-info-card {
    background: white;
    margin: 0 20px;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transform: translateY(-20px);
}
.store-logo {
    width: 70px; height: 70px;
    background: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -50px auto 10px;
    color: white;
    font-size: 32px;
    border: 4px solid white;
}
.store-name { font-size: 22px; font-weight: 700; }
.store-status { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.status-dot { width: 8px; height: 8px; background: #28A745; border-radius: 50%; }

/* === CATEGORY NAV === */
.category-nav {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}
.category-item {
    background: white;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.category-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* === PRODUCT GRID === */
.products-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 8px 20px;
}
.product-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.1s;
    border: 1px solid rgba(0,0,0,0.02);
}
.product-card:active { transform: scale(0.97); }
.product-img {
    width: 100%;
    height: 130px;
    background-size: cover;
    background-position: center;
    background-color: #e9d5ff;
}
.product-info { padding: 14px; }
.product-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.product-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.product-price { font-weight: 800; color: var(--primary); font-size: 18px; }

/* === MODAL (Bottom Sheet) === */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.25s ease;
}
.btn-close-modal {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px; height: 40px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.product-hero-bg {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-light);
}
.modal-body { padding: 20px; }
.product-title-big { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.product-desc-big { color: var(--text-muted); margin-bottom: 24px; }

/* === MODIFICADORES (Estilo Referência Image 3) === */
.modifier-group { margin-bottom: 24px; }
.modifier-group h4 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.modifier-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}
.custom-radio {
    width: 24px; height: 24px;
    border: 2px solid #ccc;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.custom-radio.active {
    background: var(--primary);
    border-color: var(--primary);
}
.ingredients-grid-modal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
}
.ing-modal-item {
    background: #F1F3F5;
    padding: 12px 6px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid transparent;
    cursor: pointer;
}
.ing-modal-item.selecionado {
    background: #F3E8FF;
    border-color: var(--primary);
    color: var(--primary);
}
.ing-modal-item.premium {
    background: #FFF3CD;
    border-color: #FFC107;
}

/* === QUANTIDADE E OBS === */
.qty-selector-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #F1F3F5;
    padding: 6px;
    border-radius: 40px;
}
.qty-control button {
    background: white;
    border: none;
    width: 36px; height: 36px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.custom-obs textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    font-size: 15px;
    resize: none;
    background: white;
}

/* === STICKY BOTTOM BAR === */
.sticky-bottom-bar {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
}
.btn-primary {
    background: var(--success);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: 0.15s;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}
.btn-primary:active { transform: scale(0.97); }

/* === FLOATING CART BAR === */
#floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 500;
    max-width: 500px;
    margin: 0 auto;
}
.cart-btn-internal {
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(74, 21, 75, 0.3);
    display: flex;
    justify-content: space-between;
}
.cart-left, .cart-right { display: flex; align-items: center; gap: 8px; }

/* === CHECKOUT & SUCCESS (Estilos já estão inline no HTML, mantidos) === */
.payment-option { cursor: pointer; }

/* Animações */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
