/* =======================================================
   MARCELA CONCEPT - CSS COMPLETO (VERSÃO FINAL AJUSTADA)
   ======================================================= */

/* --- Variáveis de Identidade Visual --- */
:root {
    --primary-color: #4A443F;    /* Marrom Fendi */
    --accent-color: #D4AF37;     /* Dourado Metálico */
    --bege-base: #F5F5DC;        /* Bege Tradicional */
    --bege-light: #FAF9F6;       /* Creme / Off-white */
    --secondary-color: #A69076;  
    --success-color: #28a745;    /* Verde WhatsApp */
    --danger-color: #c0392b;     
    --white: #ffffff;
    --dark-text: #2D2926;
    --disabled-bg: #f8f9fa;
}

/* --- Reset e Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bege-light);
    color: var(--dark-text);
}

/* --- Grid System --- */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-12, .col-md-6, .col-lg-4 {
    position: relative;
    width: 100%;
    padding: 15px;
}

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 1200px) {
    .col-lg-4 {
        flex: 0 0 25% !important; 
        max-width: 25% !important;
    }
}

/* --- Cabeçalho e Navegação --- */
header {
    background-color: var(--bege-base);
    color: var(--primary-color);
    padding: 40px 0;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-transform: uppercase;
}

header p {
    color: var(--accent-color);
    font-weight: bold;
}

nav {
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

nav a {
    color: var(--primary-color);
    padding: 15px 20px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* --- Seção de Loja e Produtos --- */
.product-card {
    background-color: var(--white);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 20px;
}

.product-card .card-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-card .product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* --- Carrinho e Formulários --- */
#cart-section, #shipping-form, #payment-methods {
    background-color: var(--white);
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 15px;
}

h2 {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Estilização dos Inputs, Selects e Quantidade */
.form-control, select.form-control, input[type="text"], input[type="number"], input[type="tel"] {
    width: 100%;
    padding: 12px 20px;
    border: 1.5px solid #e2e2e2;
    border-radius: 50px !important; /* Arredondamento Luxo */
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    outline: none;
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

label {
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 15px;
    margin-bottom: 6px;
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
}

input[readonly] {
    background-color: var(--disabled-bg) !important;
    cursor: not-allowed;
    border-style: dashed;
}

/* =======================================================
   ESTILO DOS BOTÕES (ADICIONAR E FINALIZAR)
   ======================================================= */
.btn-dark, .btn-add-cart {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    padding: 14px 20px !important;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px !important;
    transition: 0.3s ease;
    width: 100%;
}

.btn-dark:hover, .btn-add-cart:hover {
    background-color: var(--accent-color) !important;
}

#finalize-order-btn, .btn-success {
    background-color: #25D366 !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    font-weight: 800 !important;
    border-radius: 50px !important;
    transition: 0.3s ease;
    text-transform: uppercase;
    cursor: pointer;
}

#finalize-order-btn:hover {
    background-color: #1eb954 !important;
    transform: scale(1.02);
}

/* --- Modais --- */
#orderConfirmationModal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

#orderConfirmationModal.show { display: flex; }

.modal-content {
    background: var(--white);
    max-width: 600px;
    width: 90%;
    padding: 25px;
    border: 2px solid var(--accent-color);
    border-radius: 20px;
}

#send-to-whatsapp-btn {
    background-color: #25D366 !important;
    color: white !important;
    padding: 15px 25px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    border: none;
    display: block;
    width: 100%;
    margin-top: 20px;
}

/* --- Botões Flutuantes (CORES ORIGINAIS) --- */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.floating-buttons a {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 30px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: transform 0.3s ease !important;
    border: none !important;
}

.floating-buttons a:hover { transform: scale(1.1); }

/* Cores Oficiais WhatsApp e Instagram */
#whatsapp-button, .btn-success.rounded-circle { 
    background-color: #25D366 !important; 
}

#instagram-button, .btn-danger.rounded-circle { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

/* --- Rodapé --- */
footer {
    background-color: var(--primary-color);
    color: var(--bege-base);
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

/* =======================================================
   REGRAS DE RESPONSIVIDADE E MENU HAMBÚRGUER (AJUSTADO)
   ======================================================= */
@media (max-width: 768px) {
    header h1 { font-size: 2rem; }
    .floating-buttons a { width: 55px !important; height: 55px !important; font-size: 26px !important; }

    /* Mostra o ícone de menu no mobile */
    .menu-icon {
        display: block !important;
        background-color: #fff;
        padding: 10px;
        text-align: center;
    }

    /* Esconde o nav original e prepara para o modo coluna */
    nav#nav {
        display: none; 
        flex-direction: column;
        width: 100%;
        background-color: #fff;
    }

    /* Ajusta os links para ocuparem a largura toda no mobile */
    nav#nav a {
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
}

/* Garante que o menu apareça no computador se a janela for redimensionada */
@media (min-width: 769px) {
    nav#nav {
        display: flex !important;
    }
    .menu-icon {
        display: none !important;
    }
}