﻿/***********************************************************
  CSS GLOBAL - MEU CLOSET ROSA (VERSÃO TEMA CLARO & LIMPO)
***********************************************************/

* {
    -webkit-box-sizing: border-box !important;
    -moz-box-sizing: border-box !important;
    box-sizing: border-box !important;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    color: #1a1a1a;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    text-align: left;
    line-height: 150%;
    background-color: #fffcfd;
    color: #1a1a1a;
}

    /* ==================================================================
   REGRAS INTELIGENTES PARA OVERRIDE DA MASTER PAGE
================================================================== */
    body:has(.contato-bg) .rodape,
    body:has(.login-bg) .rodape,
    body:has(.cadastro-bg) .rodape,
    body:has(.editar-bg) .rodape {
        display: none !important;
    }

.conteudo:has(.contato-bg),
.conteudo:has(.login-bg),
.conteudo:has(.cadastro-bg),
.conteudo:has(.editar-bg) {
    max-width: 100% !important;
    padding-top: 81px !important;
    min-height: 0 !important;
    margin: 0 !important;
}

body:has(.contato-bg),
body:has(.login-bg) {
    overflow: hidden !important;
}

/* AJUSTE DO CARROSSEL (FLEXSLIDER) */
.flexslider {
    background: transparent !important;
    border: none !important;
    margin: 0 0 20px 0 !important;
    box-shadow: none !important;
}

    .flexslider .slides img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

a {
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
}

    a:hover {
        opacity: 0.8;
    }

hr {
    height: 1px;
    border-width: 0;
    border-top: 1px solid #E5E3DE;
    width: 100%;
    display: inline-block;
}

/**************************************** SISTEMA DE GRIDS (COLUNAS)
*****************************************/
.row {
    display: flex;
    display: -webkit-flex;
    gap: 15px;
    flex-direction: row;
    align-items: initial;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
}

.col-12 {
    width: 100%;
}

.col-11 {
    width: 91.66666666%;
}

.col-10 {
    width: 83.3333333%;
}

.col-9 {
    width: 75%;
}

.col-8 {
    width: 66.66666667%;
}

.col-7 {
    width: 58.33333333%;
}

.col-6 {
    width: 50%;
}

.col-5 {
    width: 41.66666667%;
}

.col-4 {
    width: 33.33333333%;
}

.col-3 {
    width: 25%;
}

.col-2 {
    width: 16.66666667%;
}

.col-1 {
    width: 8.33333333%;
}

[class^="col-"] {
    margin-bottom: 5px;
    padding: 0;
}

/**************************************** BOX, BORDAS E ESPAÇAMENTOS
*****************************************/
.box {
    height: 100%;
    position: relative;
}

.box-shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.padding-14 {
    padding: 14px;
}

.border {
    border: 1px solid #E5E3DE;
    border-radius: 8px;
}

.text-align-right {
    text-align: right;
}

/**************************************************************
   CONTROLES DE FORMULÁRIOS GERAIS (Garante Inputs Claros e Limpos)
***************************************************************/
input[type="text"], input[type="password"], input[type="email"], textarea, select, input[type="number"] {
    border: 1px solid #E5E3DE !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    width: 100% !important;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

    input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, textarea:focus, select:focus, input[type="number"]:focus {
        border-color: #FE036A !important;
        box-shadow: 0 0 10px rgba(254, 3, 106, 0.1) !important;
    }

/**************************************************************
   BOTÕES ESTILO PÍLULA
***************************************************************/
input[type="submit"], input[type="button"], button, .botao {
    margin-top: 20px;
    border: none;
    border-radius: 30px;
    color: #ffffff !important;
    background-color: #1a1a1a !important;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 25px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    input[type="submit"]:hover, .botao:hover {
        background-color: #FE036A !important;
        transform: scale(1.02);
    }

/**************************************************************
   LAYOUT DO CATÁLOGO
**************************************************************/
.produto-layout-livre {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #E5E3DE;
}

.produto-imagem-redonda {
    width: 40%;
    min-width: 280px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.img-efeito-zoom {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.produto-layout-livre:hover .img-efeito-zoom {
    transform: scale(1.05);
}

/**************************************************************
   PÁGINAS DE CONTATO, LOGIN E CADASTRO
**************************************************************/
.contato-bg, .login-bg, .cadastro-bg {
    width: 100%;
    min-height: calc(100vh - 81px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #fffcfd;
}

.glass-card {
    background: #ffffff !important;
    border: 1px solid #E5E3DE !important;
    border-radius: 20px !important;
    padding: 45px 40px !important;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05) !important;
}

.glass-card-cadastro {
    max-width: 650px !important;
    text-align: left !important;
}

.glass-card h2 {
    color: #1a1a1a !important;
    margin-bottom: 35px !important;
    font-size: 28px !important;
    font-weight: bold !important;
    letter-spacing: 0.5px;
    text-align: center;
}

.glass-card-cadastro h2 {
    text-align: left;
}

.glass-card input,
.glass-card textarea,
.glass-card select {
    background: #ffffff !important;
    border: 1px solid #E5E3DE !important;
    border-radius: 10px !important;
    color: #1a1a1a !important;
    padding: 14px 20px !important;
    margin-bottom: 15px !important;
    width: 100%;
    font-size: 14px !important;
}

.label-formulario {
    margin-top: 5px;
    margin-bottom: 8px;
    display: block;
    color: #666666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-upload-moderno {
    padding: 10px !important;
    border-radius: 10px !important;
}

.glass-card input[type="submit"] {
    margin-top: 15px !important;
    background: #FE036A !important;
    color: #ffffff !important;
    width: 100% !important;
    border: none !important;
    font-weight: bold !important;
    font-size: 15px !important;
    letter-spacing: 1px;
}

    .glass-card input[type="submit"]:hover {
        background-color: #d80056 !important;
        transform: scale(1.02) !important;
    }

/**************************************************************
   === PÁGINA DE EDIÇÃO COM DUAS COLUNAS LADO A LADO ===
**************************************************************/
.editar-bg {
    width: 100%;
    min-height: calc(100vh - 81px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #fffcfd;
}

.layout-editar-duplo {
    display: flex;
    flex-direction: row;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    align-items: stretch;
}

.panel-metade {
    flex: 1;
    margin: 0 !important;
    max-width: none !important;
    text-align: left !important;
}

.panel-imagem-direita {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.imagem-container-direita {
    background: #f9f8f6;
    border: 1px solid #E5E3DE;
    border-radius: 12px;
    padding: 10px;
    width: 100%;
    text-align: center;
}

    .imagem-container-direita img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        object-fit: cover;
    }

@media only screen and (max-width: 800px) {
    .layout-editar-duplo {
        flex-direction: column;
    }
}

/**************************************************************
   PAINEL ADMINISTRATIVO (EXIBIR PRODUTOS)
**************************************************************/
.painel-admin {
    padding: 20px;
}

.busca-container-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 25px;
}

.input-busca-moderno {
    flex: 1;
    border: 1px solid #E5E3DE !important;
    border-radius: 25px !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    outline: none;
    margin: 0 !important;
}

.btn-admin-linha {
    margin-top: 0 !important;
    border-radius: 25px !important;
    padding: 10px 25px !important;
    font-size: 14px !important;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buscar-moderno {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: none !important;
}

    .btn-buscar-moderno:hover {
        background-color: #FE036A !important;
        transform: scale(1.02);
    }

.btn-cancelar-moderno {
    background-color: rgba(254, 3, 106, 0.05) !important;
    color: #FE036A !important;
    border: 1px solid #FE036A !important;
}

    .btn-cancelar-moderno:hover {
        background-color: #FE036A !important;
        color: #ffffff !important;
        transform: scale(1.02);
    }

.tabela-dark {
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 10px;
}

.cabecalho-tabela th {
    background-color: #f9f8f6 !important;
    color: #1a1a1a !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 15px 12px !important;
    border-bottom: 2px solid #E5E3DE !important;
    text-align: center !important;
}

.linha-tabela td, .linha-alternada td {
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 14px 12px !important;
    border-top: 1px solid #f1f1f1;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
    text-align: center !important;
}

.linha-alternada td {
    background-color: #fffcfd;
}

    .linha-tabela td a, .linha-alternada td a {
        color: #FE036A !important;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 11px;
        background: rgba(254, 3, 106, 0.08) !important;
        padding: 6px 14px;
        border-radius: 15px;
        border: 1px solid rgba(254, 3, 106, 0.2) !important;
        transition: all 0.2s ease;
        display: inline-block;
    }

        .linha-tabela td a:hover, .linha-alternada td a:hover {
            background: #FE036A !important;
            color: #ffffff !important;
            border-color: #FE036A !important;
            transform: translateY(-1px);
        }

    .linha-tabela td:first-child, .linha-alternada td:first-child {
        border-radius: 8px 0 0 8px;
    }

    .linha-tabela td:last-child, .linha-alternada td:last-child {
        border-radius: 0 8px 8px 0;
    }

.tabela-dark tr:hover td {
    background-color: #fff5f8 !important;
}

.btn-inserir-novo {
    background-color: #1a1a1a !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 30px !important;
}

    .btn-inserir-novo:hover {
        background-color: #FE036A !important;
        transform: scale(1.02);
    }

/* ==========================================
   ALINHAMENTO DO LOGO E TEXTO (CABEÇALHO)
========================================== */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    float: left;
    cursor: pointer;
}

.logo-img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
}

.logo-texto {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out;
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
}

.logo-container:hover .logo-texto {
    color: #FE036A;
}

/* =========================================================
   BOTÕES DA TELA DE EDIÇÃO
========================================================= */
.container-botoes-editar {
    display: flex !important;
    gap: 15px !important;
    margin-top: 30px !important;
    width: 100%;
}

.btn-salvar-moderno {
    flex: 2 !important;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: none !important;
    padding: 15px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
}

    .btn-salvar-moderno:hover {
        background-color: #FE036A !important;
        transform: scale(1.02) translateY(-2px) !important;
    }

.btn-excluir-moderno {
    flex: 1 !important;
    background-color: #ffffff !important;
    color: #ff3333 !important;
    border: 2px solid #ff3333 !important;
    padding: 13px !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease-in-out !important;
}

    .btn-excluir-moderno:hover {
        background-color: #ff3333 !important;
        color: #ffffff !important;
        transform: scale(1.02) translateY(-2px) !important;
    }

/**************************************************************
   RESPONSIVIDADE (CELULARES E TABLETS)
**************************************************************/
@media only screen and (max-width: 768px) {
    [class^="col-"] {
        width: 100% !important;
        margin-bottom: 15px;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }

    .barra-fixa {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        background-color: #ffffff !important;
        border-bottom: 1px solid #E5E3DE !important;
        padding-bottom: 20px !important;
        overflow: visible !important;
        z-index: 100 !important;
    }

    .cabecalho.content-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        height: auto !important;
        min-height: auto !important;
        padding: 20px 10px 0 10px !important;
    }

    .logo-container {
        position: relative !important;
        float: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        top: 0 !important;
        left: 0 !important;
    }

    .barra-menu {
        position: relative !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: auto !important;
        gap: 10px !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
    }

        .barra-menu a {
            padding: 10px 16px !important;
            background-color: rgba(254, 3, 106, 0.08) !important;
            border: 1px solid rgba(254, 3, 106, 0.2) !important;
            border-radius: 25px !important;
            font-size: 12px !important;
            margin: 0 !important;
            display: inline-block !important;
            color: #1a1a1a !important;
        }

    .conteudo {
        position: relative !important;
        padding-top: 25px !important;
        clear: both !important;
    }

    .layout-editar-duplo {
        display: flex !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border-radius: 15px !important;
        border: 1px solid #E5E3DE !important;
        padding: 25px 20px 30px 20px !important;
        width: 100% !important;
        max-width: 90% !important;
        margin: 0 auto !important;
    }
}
