/* ================================================
   ESTILO CASSIA GASPERONI - IDENTIDADE VISUAL
   ================================================ */

/* Fonte Oficial */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /*--primary: #f4098e;*/
    --primary: #f4098e;
    --primary-dark: #f4098e;
    --secondary: #c9a96e;
    --accent: #e6c9a8;
    --base: #fbd2de;
    --dark: #333333;
    --light: #fff6ec;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-600: #757575;
    --gray-800: #424242;
    --success: #79b891;
    --danger: #e57373;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    margin: 0;
}

/* ================================================
   NAVBAR PRINCIPAL
   ================================================ */
.banner-topo {
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    line-height: 0;
    margin: 0 auto;
}

.banner-topo img {
    display: block;
    width: 100%;
    height: auto;
}
.buttom-banner {
    width: 100%;
    height: 45px;
    background-image: url('../site/onda.png');
    background-repeat: repeat-x;
    background-size: 550px 100%;
}


/* Botões flutuantes Carrinho e Perfil */
.floating-buttons {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1005;
    display: flex;
    gap: 10px;
}

body.menu-sticky .floating-buttons {
    position: fixed;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.3rem;
}

.floating-profile {
    position: relative;
}

.floating-profile-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1006;
    padding: 0.5rem;
}

.floating-profile:hover .floating-profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-profile-dropdown a {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--dark) !important;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.floating-profile-dropdown a:hover {
    background: var(--primary);
    color: white !important;
}

.floating-btn:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.floating-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
}

.navbar {
    background: #fabccf !important;
    width: 100%;
    margin-top: -30px;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-md);
    width: 100%;
    margin-top: 0;
}

body.menu-sticky {
    padding-top: 76px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.7rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--dark) !important;
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-dark) !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    color: var(--white) !important;
    transition: var(--transition);
}

.nav-link {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--primary-dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.nav-link.active {
    background: var(--primary) !important;
    color: var(--white) !important;
    font-weight: 500;
}

.navbar.scrolled .nav-link:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.navbar.scrolled .nav-link.active {
    background: var(--primary) !important;
    color: var(--white) !important;
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--primary);
    color: white;
}

/* ================================================
   HERO HEADER
   ================================================ */
.hero-header {
    background: linear-gradient(135deg, #d4a5a5 0%, #c9a96e 100%);
    min-height: 400px;
    padding-top: 120px;
    margin-bottom: -60px;
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: var(--light);
    border-radius: 60px 60px 0 0;
}

/* ================================================
   BOTÕES
   ================================================ */
.btn {
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    border: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #a07070 100%);
}

.btn-secondary {
    background-color: var(--secondary);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ================================================
   CARDS
   ================================================ */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    min-width: 200px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    padding: 1.2rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* ================================================
   TABELAS
   ================================================ */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 600;
    border-top: none;
    border-bottom: 2px solid var(--primary);
    color: var(--gray-800);
    padding: 1rem;
}

.table td {
    border-top: 1px solid var(--gray-200);
    padding: 1rem;
    vertical-align: middle;
}

.table tr:hover td {
    background-color: rgba(212, 165, 165, 0.05);
}

/* ================================================
   FORMULÁRIOS
   ================================================ */
.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid var(--gray-300);
    padding: 0.65rem 1rem;
    height: 48px;
    line-height: 1.2;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 165, 165, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

/* ================================================
   BADGES
   ================================================ */
.badge {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-base {
    background-color: var(--base) !important;
}

/* Fix para Select2 dentro de input-group do Bootstrap 5 */
.input-group>.select2-container--bootstrap-5 {
    flex: 1 1 auto;
    width: 1% !important;
    /* Truque para o flex-grow funcionar corretamente no input-group */
}

/* ================================================
   BOTÕES DE GERENCIAMENTO (AUXILIARES)
   ================================================ */
.btn-manage {
    background: none !important;
    border: none !important;
    padding: 0 0.5rem !important;
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: none !important;
    transition: var(--transition);
    display: flex;
    align-items: center;
    align-self: stretch;
    /* Garante que o botão acompanhe a altura do select */
}

.btn-manage:hover {
    transform: scale(1.2) !important;
    color: var(--primary-dark) !important;
}

/* ================================================
   CONTEÚDO PRINCIPAL
   ================================================ */
main {
    padding-top: 20px !important;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 0;
    margin-top: 4rem;
}

.footer-brand {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--white) !important;
    letter-spacing: 0.5px;
}

.footer-brand span {
    color: var(--primary);
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary);
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-links li a i {
    font-size: 0.8rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
}

/* Redes Sociais */
.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white) !important;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(244, 9, 142, 0.4);
}

.footer-social a:hover.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social a:hover.facebook {
    background: #1877f2;
}

.footer-social a:hover.whatsapp {
    background: #25d366;
}

.footer-social a:hover.pinterest {
    background: #e60023;
}

.footer-social a:hover.linkedin {
    background: #0a66c2;
}

/* Divider e Copyright */
.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0 0;
}

.footer-bottom {
    padding: 1.2rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-copyright a {
    color: var(--primary);
    font-weight: 500;
}

.footer-copyright a:hover {
    color: var(--secondary);
}

.footer-made-with {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-made-with i {
    color: var(--primary);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Responsividade */
@media (max-width: 767px) {
    .footer {
        padding: 2.5rem 0 0;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================================
   SELECT2 CUSTOM THEME
   ================================================ */
.select2-container--bootstrap-5 .select2-selection {
    border-radius: 10px !important;
    border-color: var(--gray-300) !important;
}

/* ================================================
   SELECT2 FILTROS (Estampas)
   ================================================ */
.select2-filtro .select2-container--bootstrap-5 .select2-selection {
    min-height: 48px !important;
    border-radius: 10px !important;
    border-color: var(--gray-300) !important;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.select2-filtro .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(244, 9, 142, 0.15) !important;
}

.select2-filtro .select2-container--bootstrap-5 .select2-selection__rendered {
    padding-left: 1rem;
    font-size: 0.95rem;
    color: var(--dark);
}

.select2-dropdown--below {
    border-radius: 8px !important;
    box-shadow: var(--shadow-md) !important;
    border: 1px solid var(--gray-300) !important;
}

.select2-results__option {
    padding: 10px 16px;
}

.select2-results__option--highlighted {
    background-color: var(--primary) !important;
}

.select2-search__field {
    padding: 8px 12px;
    border-radius: 6px;
}

/* ================================================
   ANIMAÇÕES
   ================================================ */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Seleção de texto */
::selection {
    background-color: var(--primary);
    color: white;
}

::-moz-selection {
    background-color: var(--primary);
    color: white;
}

/* ================================================
   RESPONSIVIDADE (MOBILE)
   ================================================ */

@media (max-width: 991px) {
    .floating-buttons {
        top: 10px;
        right: 15px;
        gap: 8px;
    }

    .floating-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

@media (max-width: 991px) {
    .navbar .container-fluid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-collapse {
        flex-basis: 100%;
        order: 3; /* Garante que o menu caia para a linha de baixo */
    }

    .navbar-toggler {
        order: 1;
    }

    .nav-utils-mobile {
        order: 2;
    }
    
    .navbar-nav {
        margin-top: 1rem;
        padding-bottom: 1rem;
    }
}
