/* =========================================
   Módulo: Store Showcase
   Contexto: Estilos isolados para a seção de Loja/Venda
   Namespace: .store-showcase
   ========================================= */

/* Ajuste de Espaçamento da Seção */
#store.section {
    padding: 40px 0;
}

/* Variáveis de Escopo Local */
:root {
    --store-border: rgba(255, 255, 255, 0.05);
    --device-bezel: #18181b;
}

/* Container Principal
   ----------------------------------------- */
.store-showcase {
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    overflow: visible;
    box-shadow: none;
}

.store-showcase .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    min-height: auto;
}

/* Colunas de Layout */
.col-text {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.col-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 10px 0;
    border: none;
}

/* Componentes Visuais
   ----------------------------------------- */
/* Badge Premium */
.store-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 6px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 16px;
    align-self: flex-start;
}

/* Tipografia Específica */
#store .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(to right, #a78bfa, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#store .section-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 90%;
}

/* Lista de Recursos (Checklist) */
.check-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 24px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.1);
}

.check-icon i {
    color: var(--primary-color);
}

/* Botões de Ação */
.store-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-budget {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-budget:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-sale {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-sale:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* =========================================
   Device Frame (Mockup CSS Puro)
   ========================================= */
.device-frame {
    width: 340px;
    max-width: 100%;
    height: auto;
    background: #000;
    border-radius: 30px;
    padding: 8px;
    box-shadow: 
        0 0 0 2px #27272a,
        0 15px 30px -5px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: none;
    margin: 0 auto;
}

.device-frame:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 0 2px #3f3f46,
        0 30px 50px -15px rgba(0, 0, 0, 0.6);
}

.device-header {
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    position: relative;
}

.speaker-slot {
    width: 60px;
    height: 6px;
    background: #27272a;
    border-radius: 10px;
}

.camera-dot {
    width: 8px;
    height: 8px;
    background: #18181b;
    border-radius: 50%;
    position: absolute;
    right: 50px;
}

.screen-content {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Instagram Embed Override */
.screen-content iframe {
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
}

/* Responsividade Mobile */
@media (max-width: 992px) {
    .store-showcase .row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .store-showcase .col-image {
        padding: 0;
        border: none;
    }
    
    .store-showcase .col-text {
        padding: 0;
        text-align: center;
        align-items: center;
    }
    
    .device-frame {
        width: 100%;
        max-width: 380px;
    }
}

/* =========================================
   Configurator Modal Styles (Redesign Dark Mode Force)
   ========================================= */

/* Overlay do Modal */
.config-modal {
    display: none; /* Inicialmente oculto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fundo mais escuro */
    backdrop-filter: blur(12px); /* Blur mais intenso */
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.config-modal[aria-hidden="false"] {
    display: flex;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Conteúdo do Modal - FORÇADO DARK MODE */
.config-modal .modal-content {
    background: #121214; /* Cinza quase preto */
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 24px; /* Bordas mais arredondadas */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    color: #f4f4f5; /* Texto claro */
}

/* Cabeçalho do Modal */
.config-modal .modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #18181b;
}

.config-modal .modal-title {
    font-size: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    color: #f4f4f5;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.config-modal .modal-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #8b5cf6, #06b6d4);
    border-radius: 4px;
}

.config-modal .close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #a1a1aa;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.config-modal .close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Corpo do Modal */
.config-modal .modal-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Proporção melhor */
    flex: 1;
    overflow: hidden; 
}

/* Seção de Configuração (Esquerda) */
.config-section {
    padding: 32px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: #121214;
}

/* Scrollbar Customizada */
.config-section::-webkit-scrollbar, .summary-section::-webkit-scrollbar {
    width: 6px;
}
.config-section::-webkit-scrollbar-track, .summary-section::-webkit-scrollbar-track {
    background: transparent;
}
.config-section::-webkit-scrollbar-thumb, .summary-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.config-section h3 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #e4e4e7;
    font-weight: 600;
}

/* Formulário e Inputs */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #a1a1aa; /* Text muted */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: #18181b; /* Zinco 900 */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #f4f4f5;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-input:hover, .form-textarea:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #8b5cf6; /* Roxo */
    background: #202024;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #52525b; /* Zinco 600 */
}

/* Seção de Resumo (Direita) */
.summary-section {
    padding: 32px;
    background: #09090b; /* Zinco 950 - Mais escuro */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.summary-panel {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.summary-section h3 {
    font-size: 1.1rem;
    color: #f4f4f5;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.summary-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #d4d4d8;
    display: flex;
    flex-direction: column; /* Mobile first stack */
    gap: 4px;
}

.summary-list li strong {
    color: #8b5cf6;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botão Submit - WhatsApp Style */
.btn-submit {
    width: 100%;
    margin-top: auto;
    padding: 16px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border: none !important;
    color: white !important;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 20px 0;
    text-align: right;
    display: none; /* Oculto por padrão até ter lógica de preço */
}

/* Responsividade do Modal */
@media (max-width: 900px) {
    .config-modal .modal-body {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    
    .config-section {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .config-modal .modal-content {
        max-height: 100vh;
        border-radius: 0;
        height: 100%;
    }
    
    .config-modal {
        padding: 0;
    }

    .summary-section {
        padding: 20px;
    }
}
