/**
 * ===================================
 * PEDEFÁCIL - CSS BASE PARA TODAS AS PÁGINAS
 * ===================================
 * 
 * Estilos comuns: Header, Bottom Navigation, Loading, etc.
 * Baseado no PedeFácil Admin com identidade visual laranja
 */

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    color: #333;
    padding-bottom: 75px;
    /* Espaço para bottom navigation */
}

/* ===== VARIÁVEIS CSS ===== */
:root {
    --primary-color: #FF6600;
    --primary-light: #FF7043;
    --primary-dark: #e55a00;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #e9ecef;
    --gray-200: #dee2e6;
    --gray-300: #ced4da;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --gray-700: #343a40;
    --gray-800: #212529;
    --gray-900: #000000;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: var(--primary-color);
}

.loading-content i {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

.loading-content h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.loading-content p {
    color: #666;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== HEADER LARANJA ESTILO ADMIN ===== */
.header {
    /* background: linear-gradient(135deg, #FF6600 0%, #FF7043 100%); */
    background: linear-gradient(120deg, #FF6600 0%, #fca063 20%, #fd0238 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-acheipoa {
    width: 55px;
    height: 55px;
    background-image: url('../../../../images/logo_app.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.service-info {
    display: flex;
    flex-direction: column;
    transition: all var(--transition-normal);
}

.title-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

/* Logo será adicionado via ::before no mobile */

.divider {
    color: rgb(255, 255, 255);
    font-weight: normal;
    margin: 0 8px;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.company-name-mobile {
    display: none;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 2px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Container para carrinho e sair na mesma linha (mobile) */
.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ===== ÍCONE DO CARRINHO ===== */
.carrinho-icon {
    position: relative;
    background: rgb(236, 221, 3);
    border: 1px solid rgba(255, 255, 255, 1.0);
    color: white;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    backdrop-filter: blur(10px);
}

.carrinho-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carrinho-icon i {
    font-size: 1.2rem;
    color: white;
}

.carrinho-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.user-info {
    text-align: right;
    line-height: 1.3;
    margin-right: 10px;
}

.user-line {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.user-line span:first-child {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-line span:last-child {
    font-size: 0.8rem;
    opacity: 0.8;
}

.btn-user {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 44px;
}

.btn-user:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-user i {
    font-size: 1rem;
    transition: transform var(--transition-normal);
}

/* ===== BOTÃO VOLTAR PERSONALIZADO ===== */
.btn-voltar {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-voltar:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-voltar i {
    font-size: 1rem;
    transition: transform var(--transition-normal);
}

.btn-voltar:hover i {
    transform: translateX(-2px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    gap: 60px;
    width: 100%;
}

.nav-item {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: var(--border-radius-md);
    min-width: 70px;
    position: relative;
}

.nav-item:hover {
    color: var(--primary-color);
    background: rgba(255, 102, 0, 0.1);
}

.nav-item.active {
    color: var(--primary-color);
    background: rgba(255, 102, 0, 0.15);
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
}

/* ===== BOTÕES DESABILITADOS ===== */
.nav-item:disabled,
.nav-item.disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    color: var(--gray-400) !important;
    pointer-events: none !important;
    background: rgba(108, 117, 125, 0.1) !important;
    border: 1px solid rgba(108, 117, 125, 0.2) !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

.nav-item:disabled i,
.nav-item.disabled i {
    color: var(--gray-400) !important;
}

.nav-item:disabled:hover,
.nav-item.disabled:hover {
    color: var(--gray-400) !important;
    background: rgba(108, 117, 125, 0.1) !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.4 !important;
}

/* Estilos específicos para navegação inferior */
.bottom-nav .nav-item.disabled {
    background: rgba(108, 117, 125, 0.1) !important;
    border: 1px solid rgba(108, 117, 125, 0.2) !important;
}

.bottom-nav .nav-item.disabled .badge {
    background: var(--gray-400) !important;
    color: white !important;
}

/* Override para garantir que botões desabilitados não tenham efeitos hover */
.bottom-nav .nav-item.disabled:hover,
.bottom-nav .nav-item.disabled:active,
.bottom-nav .nav-item.disabled:focus {
    background: rgba(108, 117, 125, 0.1) !important;
    color: var(--gray-400) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== BADGE DO CARRINHO NA BOTTOM NAVIGATION ===== */
.carrinho-badge-bottom {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* ===== BOTÃO DASHBOARD NO HEADER ===== */
.btn-dashboard {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    height: 44px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-dashboard:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-dashboard i {
    font-size: 1rem;
    transition: transform var(--transition-normal);
}

.btn-dashboard:hover i {
    transform: scale(1.1);
}



/* ===== BOTÃO FLUTUANTE DE LOGIN ===== */
.btn-login-flutuante {
    position: fixed;
    bottom: 95px;
    right: 20px;
    background: linear-gradient(135deg, #f3044c, #fc6d62, #faf620);
    background-size: 200% 200%;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(237, 253, 7, 0.4), 0 0 20px rgba(253, 228, 129, 0.3);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #1af409 !important;
    border: none;
    animation: gradientShift 3s ease-in-out infinite, float 3s ease-in-out infinite;
}

.btn-login-flutuante:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.btn-login-flutuante:active {
    transform: translateY(0);
}

.btn-login-flutuante i {
    font-size: 16px;
}



/* Animações para o botão */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }

    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .btn-login-flutuante {
        bottom: 95px;
        right: 20px;
        padding: 12px 20px;
        font-size: 13px;
        animation: gradientShift 4s ease-in-out infinite, float 4s ease-in-out infinite;
        min-width: 140px;
        max-width: 200px;
    }

    .btn-login-flutuante:hover {
        transform: translateY(-2px) scale(1.03);
    }
}

.badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.badge.hidden {
    display: none;
}

/* ===== SEÇÕES DE PÁGINA ===== */
.page-section {
    margin-bottom: 40px;
}

.section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-content {
    padding: 0;
}

.section-title {
    color: #FF6600;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== CARDS ===== */
.info-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-content {
    padding: 25px;
}

/* ===== BOTÕES DE DEMONSTRAÇÃO ===== */
.demo-buttons {
    margin-top: 20px;
}

.button-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.button-row:last-child {
    margin-bottom: 0;
}

.demo-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    color: var(--gray-700);
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.demo-btn:active {
    transform: translateY(0);
}

.demo-btn i {
    font-size: 1rem;
    flex-shrink: 0;
}

.demo-btn span {
    white-space: nowrap;
}

/* Variações de cores dos botões */
.demo-btn.success {
    background: linear-gradient(135deg, var(--success), #20a737);
    color: white;
}

.demo-btn.success:hover {
    background: linear-gradient(135deg, #20a737, #1e7e34);
}

.demo-btn.error {
    background: linear-gradient(135deg, var(--danger), #c82333);
    color: white;
}

.demo-btn.error:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
}

.demo-btn.warning {
    background: linear-gradient(135deg, var(--warning), #e0a800);
    color: var(--gray-800);
}

.demo-btn.warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
}

.demo-btn.info {
    background: linear-gradient(135deg, var(--info), #138496);
    color: white;
}

.demo-btn.info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
}

.demo-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.demo-btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
}

.demo-btn.secondary {
    background: linear-gradient(135deg, var(--gray-500), var(--gray-600));
    color: white;
}

.demo-btn.secondary:hover {
    background: linear-gradient(135deg, var(--gray-600), var(--gray-700));
}

/* ===== SISTEMA DE TOAST MESSAGES ===== */
.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
    opacity: 0;
    transition: all 0.3s ease-out;
    backdrop-filter: blur(2px);
}

.toast {
    min-width: 350px;
    max-width: 500px;
    width: 90%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
    transition: all 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast-content {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    font-size: 1.5rem;
}

.toast-icon.success {
    color: var(--success);
}

.toast-icon.error {
    color: var(--danger);
}

.toast-icon.warning {
    color: var(--warning);
}

.toast-icon.info {
    color: var(--info);
}

.toast-text {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--gray-800);
}

.toast-message {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.toast-close:hover {
    background: var(--gray-100);
    color: var(--gray-600);
}

/* Animações removidas - usando apenas transições CSS simples para melhor compatibilidade */

/* ===== LOADING COMPONENTS ===== */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--gray-300);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gray-700);
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 20px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: left;
        padding: 0 15px;
    }

    /* Primeira linha: Logo + PedeFácil | Web Store */
    .header-left {
        flex-direction: row;
        gap: 12px;
        flex: 1;
        width: 100%;
        justify-content: center;
    }

    /* Esconder logo original no mobile */
    .logo-section {
        display: none;
    }

    /* Logo adicionado automaticamente via ::before */

    .service-info {
        flex: 1;
        text-align: center;
    }

    .service-info .title-line {
        font-size: 1.3rem;
        flex-direction: row;
        gap: 8px;
        margin-bottom: 0;
        justify-content: center;
    }

    .brand {
        gap: 6px;
    }

    /* Adicionar logo via CSS dentro do brand no mobile */
    .brand::before {
        content: '';
        width: 35px;
        height: 35px;
        background-image: url('../../../../images/logo_app.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border-radius: 6px;
        flex-shrink: 0;
        margin-right: 3px;
    }

    .divider {
        display: inline;
    }

    .company-name {
        display: inline;
        font-size: 1.3rem;
    }

    .company-name-mobile {
        display: none;
    }

    .subtitle {
        display: none;
    }

    /* Segunda linha: ID + Nome + Botões */
    .user-menu {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .user-info {
        text-align: center;
        margin-right: 0;
        margin-bottom: 0;
        flex: none;
    }
    
    .user-actions {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .user-line {
        align-items: center;
        gap: 8px;
        flex-direction: row;
    }

    .user-line span:first-child {
        font-size: 0.85rem;
    }

    .user-line span:last-child {
        font-size: 0.75rem;
        display: inline;
    }

    /* Responsividade do botão voltar */
    .btn-voltar {
        padding: 8px 12px;
        font-size: 0.85rem;
        height: 40px;
    }

    .btn-voltar span {
        display: none;
    }

    .btn-voltar i {
        margin: 0;
        font-size: 1rem;
    }

    .main-content {
        padding: 20px 15px;
    }

    /* Responsividade dos botões de demonstração */
    .button-row {
        flex-direction: column;
        gap: 12px;
    }

    .demo-btn {
        min-width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .demo-btn i {
        font-size: 1.1rem;
    }

    .toast {
        min-width: 300px;
        max-width: 90%;
        width: 85%;
        transform: scale(0.8) translateY(-10px);
    }

    .toast-content {
        padding: 20px;
        gap: 12px;
    }

    .toast-title {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .toast-message {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .toast-icon {
        font-size: 1.3rem;
        width: 22px;
        height: 22px;
    }

}

@media (max-width: 480px) {
    body {
        padding-bottom: 70px;
    }

    .header {
        padding: 10px 0;
    }

    .header-content {
        padding: 0 10px;
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }

    .header-left {
        gap: 8px;
        justify-content: center;
        width: 100%;
    }

    /* Adicionar logo via CSS dentro do brand no mobile 480px */
    .brand::before {
        width: 35px;
        height: 35px;
        margin-right: 2px;
    }

    .service-info .title-line {
        font-size: 1.1rem;
        gap: 6px;
        justify-content: center;
        text-align: center;
    }
    
    .service-info {
        text-align: center;
        align-items: center;
    }

    .company-name {
        font-size: 1.1rem;
    }

    .user-menu {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }
    
    /* Container para carrinho e sair na mesma linha */
    .user-actions {
        display: flex;
        gap: 8px;
        align-items: center;
        justify-content: center;
        order: 2;
        margin-top: 5px;
    }
    
    /* Ícone do carrinho responsivo */
    .carrinho-icon {
        padding: 8px;
        min-width: 36px;
        height: 36px;
        order: 1; /* Primeiro na linha */
        justify-content: center;
        width: auto;
        max-width: none;
    }
    
    .carrinho-icon i {
        font-size: 1rem;
    }
    
    .carrinho-badge {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: -3px;
        right: -3px;
    }

    .user-info {
        margin-right: 0;
        order: 1; /* Aparece primeiro */
        margin-bottom: 5px; /* Espaço abaixo */
        text-align: center;
        justify-content: center;
    }
    
    .btn-user {
        order: 2; /* Segundo na linha */
        margin-top: 0; /* Remove margem superior */
        justify-content: center;
        width: auto;
        max-width: none;
        padding: 6px 10px;
        height: 36px;
    }

    .user-line span:first-child {
        font-size: 0.8rem;
    }

    .user-line span:last-child {
        font-size: 0.7rem;
        display: inline;
    }

    .btn-user {
        padding: 6px 10px;
        height: 36px;
        font-size: 0.8rem;
        min-width: 36px;
        margin-left: 20px;
    }

    .btn-voltar {
        padding: 6px 10px;
        height: 36px;
        font-size: 0.8rem;
    }

    .main-content {
        padding: 15px 10px;
    }

    .bottom-nav {
        gap: 40px;
        padding: 8px 15px;
    }

    .nav-item {
        min-width: 55px;
        padding: 8px 10px;
    }

    .nav-item i {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }

    .nav-item span {
        font-size: 0.7rem;
    }

    .empty-state {
        padding: 40px 15px;
    }

    .empty-state i {
        font-size: 3rem;
    }

    .empty-state h3 {
        font-size: 1.3rem;
    }
}

/* ===== RESPONSIVIDADE EXTRA PEQUENA ===== */
@media (max-width: 360px) {
    .header-content {
        padding: 0 8px;
        gap: 6px;
    }

    .header-left {
        gap: 6px;
    }

    /* Adicionar logo via CSS dentro do brand no mobile 360px */
    .brand::before {
        width: 20px;
        height: 20px;
        margin-right: 2px;
    }

    .service-info .title-line {
        font-size: 1rem;
        gap: 4px;
        justify-content: center;
    }

    .company-name {
        font-size: 1rem;
    }

    .user-menu {
        gap: 10px;
    }

    .user-info {
        margin-right: 0;
    }

    .user-line span:first-child {
        font-size: 0.75rem;
    }

    .user-line span:last-child {
        font-size: 0.65rem;
        display: inline;
    }

    .btn-user {
        padding: 4px 8px;
        height: 32px;
        font-size: 0.75rem;
        min-width: 32px;
    }

    .btn-voltar {
        padding: 4px 8px;
        height: 32px;
        font-size: 0.75rem;
    }
}