/* CSS Personalizado para a Multiplic Digital - Foco em Mobile First */

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    padding-bottom: 80px; /* Espaço para a navbar bottom */
}

/* Área central de conteúdo mobile */
.main-content {
    max-width: 500px; /* Largura máxima para focar num dispositivo móvel mesmo no desktop */
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    padding: 20px;
}

/* Navbar fixa em baixo */
.fixed-bottom {
    z-index: 1030;
}

.max-w-md {
    max-width: 500px;
}

/* Preview de imagem */
.photo-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1; /* Quadrado inicial para preview na grade */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #eee;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.photo-preview-item.active {
    border-color: #0d6efd;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    z-index: 10;
}

/* Upload Dropzone */
.upload-zone {
    border: 2px dashed #0d6efd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: rgba(13, 110, 253, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.upload-zone:hover, .upload-zone.dragover {
    background: rgba(13, 110, 253, 0.1);
    border-color: #0a58ca;
}

.upload-zone i {
    font-size: 48px;
    color: #0d6efd;
    margin-bottom: 10px;
}

/* Esconder input padrão de arquivo */
#file-input {
    display: none;
}

/* Editor de imagens */
.editor-container {
    width: 100%;
    height: 300px;
    background: #000;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.editor-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn-filter {
    border-radius: 8px;
    padding: 10px;
    min-width: 70px;
}

/* Cards padrão para seleções */
.selection-card {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}
.selection-card:hover, .selection-card.selected {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

/* Barra lateral animada se houver necessidade (loader) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255,255,255,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.borda-preview {
    border: solid transparent;
    transition: border 0.3s;
}

/* Resumo da compra */
.resumo-item {
    border-bottom: 1px solid #ebebeb;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.resumo-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
