/* Cocoricó Delivery - Dark Mode com detalhes vermelhos */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-card: #252525;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #c41e3a;
    --accent-hover: #a01830;
    --accent-light: rgba(196, 30, 58, 0.2);
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --border: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: var(--bg-secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo {
    height: 50px;
    width: auto;
}

.header h1 {
    font-size: 1.2rem;
    color: var(--accent);
}

/* Categorias */
.categorias-nav {
    display: flex;
    gap: 10px;
    padding: 15px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.categorias-nav::-webkit-scrollbar {
    display: none;
}

.categoria-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.categoria-btn.active,
.categoria-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Cards de Produtos */
.produtos-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 100px;
}

.produto-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}

.produto-card:hover {
    border-color: var(--accent);
}

.produto-card.selected {
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-light);
}

.produto-media {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.produto-media img,
.produto-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.produto-info {
    padding: 15px;
}

.produto-nome {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.produto-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.produto-preco {
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: bold;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Footer fixo com resumo */
.footer-resumo {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 15px;
    z-index: 100;
}

.footer-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.total-valor {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b3b3b3' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Radio e Checkbox customizados */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.option-item:hover,
.option-item.selected {
    border-color: var(--accent);
}

.option-item.selected {
    background: var(--accent-light);
}

.option-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 1.2rem;
}

.option-text {
    flex: 1;
}

.option-title {
    font-weight: 600;
}

.option-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Steps/Progress */
.steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
}

.step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.3s;
}

.step.active {
    background: var(--accent);
    width: 30px;
    border-radius: 5px;
}

.step.completed {
    background: var(--success);
}

/* Página de seção */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 25px;
}

/* Carrinho Mini */
.carrinho-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.carrinho-item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-qty {
    background: var(--accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.item-preco {
    color: var(--accent);
    font-weight: 600;
}

/* Status do Pedido */
.status-timeline {
    padding: 20px 0;
}

.status-item {
    display: flex;
    gap: 15px;
    padding-bottom: 25px;
    position: relative;
}

.status-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 35px;
    width: 2px;
    height: calc(100% - 35px);
    background: var(--border);
}

.status-item.completed:not(:last-child)::before {
    background: var(--success);
}

.status-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.status-item.completed .status-icon {
    background: var(--success);
    border-color: var(--success);
}

.status-item.current .status-icon {
    background: var(--accent);
    border-color: var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-light); }
    50% { box-shadow: 0 0 0 10px transparent; }
}

.status-text h4 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.status-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 480px;
    border-radius: 20px 20px 0 0;
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utilitários */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.hidden { display: none !important; }

/* Quantidade */
.qty-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.qty-btn:hover {
    border-color: var(--accent);
    background: var(--accent);
}

.qty-value {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Responsivo */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }
}
