/*
|--------------------------------------------------------------------------
| Portal Web Apoio
|--------------------------------------------------------------------------
| Portal Público
| Versão: 2.0
|--------------------------------------------------------------------------
*/

/* ==========================================================
   GOOGLE FONT
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================
   VARIÁVEIS
   ========================================================== */

:root{

    --primary:#123A63;
    --primary-dark:#0D2E4F;
    --secondary:#4D89C7;

    --success:#198754;
    --warning:#FFC107;
    --danger:#DC3545;

    --text:#24303F;
    --text-light:#6B7280;

    --white:#FFFFFF;

    --background:#F5F7FA;

    --border:#E6EAF0;

    --shadow-sm:0 2px 8px rgba(0,0,0,.04);
    --shadow-md:0 8px 24px rgba(0,0,0,.08);
    --shadow-lg:0 18px 40px rgba(0,0,0,.12);

    --radius-sm:6px;
    --radius:10px;
    --radius-lg:16px;

    --transition:.25s ease;

}

/* ==========================================================
   RESET
   ========================================================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    color:var(--text);

    background:var(--background);

    line-height:1.5;

}

/* ==========================================================
   LINKS
   ========================================================== */

a{

    text-decoration:none;

    transition:var(--transition);

    color:inherit;

}

a:hover{

    color:var(--primary);

}

/* ==========================================================
   IMAGENS
   ========================================================== */

img{

    max-width:100%;

    display:block;

}

/* ==========================================================
   PESQUISA GLOBAL
========================================================== */

.search-wrapper{

    position:relative;

}

.search-dropdown{

    position:absolute;

    top:100%;

    left:0;

    right:0;

    margin-top:4px;

    background:#fff;

    border:1px solid #ddd;

    border-radius:8px;

    box-shadow:0 8px 24px rgba(0,0,0,.12);

    overflow:hidden;

    display:none;

    z-index:9999;

    max-height:520px;

    overflow-y:auto;

}

.search-dropdown.show{

    display:block;

}

/* ==========================================================
   AUTOCOMPLETE
========================================================== */

.search-card{

    display:flex;

    align-items:center;

    gap:12px;

    padding:8px 12px;

    color:#212529;

    transition:.15s;

    border-bottom:1px solid #ececec;

}

.search-card:hover{

    background:#eef5ff;

}

.search-card-image{

    width:52px;

    height:52px;

    flex:none;

}

.search-card-image img{

    width:100%;

    height:100%;

    object-fit:contain;

    border-radius:4px;

    border:1px solid #ddd;

    background:#fff;

}

.search-card-placeholder{

    width:52px;

    height:52px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:1px solid #ddd;

    border-radius:4px;

    background:#fff;

    color:#aaa;

}

.search-card-content{

    min-width:0;

    flex:1;

}

.search-card-title{

    font-size:.95rem;

    font-weight:600;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

.search-card-subtitle{

    font-size:.82rem;

    color:#6c757d;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;

}

/* ==========================================================
   TOPBAR
   ========================================================== */

.topbar{

    height:42px;

    background:#FFF;

    border-bottom:1px solid var(--border);

    font-size:.82rem;

    display:flex;

    align-items:center;

}

.topbar .container,
.topbar .row{

    height:100%;

}

.topbar-contact,
.topbar-menu{

    display:flex;

    align-items:center;

    list-style:none;

    margin:0;

    padding:0;

}

.topbar-contact{

    justify-content:flex-start;

    gap:24px;

}

.topbar-menu{

    justify-content:flex-end;

    gap:18px;

}

.topbar-contact li,
.topbar-menu li{

    display:flex;

    align-items:center;

    height:42px;

}

.topbar a{

    color:var(--text);

}

.topbar a:hover{

    color:var(--primary);

}

.topbar i{

    color:var(--primary);

    margin-right:6px;

    font-size:.9rem;

}

.client-area{

    margin-left:12px;

}

.client-area a{

    background:var(--primary);

    color:#FFF;

    padding:0 18px;

    height:42px;

    display:flex;

    align-items:center;

    gap:8px;

    font-weight:500;

}

.client-area a:hover{

    background:var(--primary-dark);

    color:#FFF;

}

.client-area i{

    color:#FFF;

    margin:0;

    font-size:1rem;

}


/* ==========================================================
   HEADER
   ========================================================== */

.portal-header{

    background:#F5F7FA;

    padding:22px 0;

}

.portal-logo{

    display:flex;

    align-items:center;

}

.portal-logo img{

    max-height:72px;

}

.dropdown-toggle::after{

    margin-left:.45rem;

}

.search-form .input-group{

    box-shadow:var(--shadow-sm);

    border-radius:50px;

    overflow:hidden;

}

.search-form{

    max-width:100%;

    margin:0 auto;

}

.search-category{

    max-width:220px;

    border:none;

}

.search-form .form-control{

    border:none;

    padding-left:18px;

}

.search-form .form-control:focus{

    box-shadow:none;

}

.search-form .btn{

    width:70px;

    border-radius:0;

}

.header-actions{

    display:flex;

    justify-content:flex-end;

    align-items:center;

    gap:20px;

    white-space:nowrap;

}

.header-action{

    display:flex;

    align-items:center;

    gap:12px;

    color:var(--text);

    transition:var(--transition);

}

.header-action:hover{

    color:var(--primary);

}

.header-action i{

    font-size:1.6rem;

    color:var(--primary);

}

.header-action small{

    display:block;

    color:var(--text-light);

    font-size:.72rem;

}

.header-action strong{

    display:block;

    font-size:.95rem;

    font-weight:600;

}

.header-user-name{

    max-width:150px;

    overflow:hidden;

    text-overflow:ellipsis;

}

.header-dropdown{

    min-width:220px;

    border:none;

    border-radius:12px;

    box-shadow:var(--shadow-md);

}

.header-dropdown .dropdown-item{

    padding:.7rem 1rem;

}

.header-dropdown .dropdown-item:hover{

    background:#F5F7FA;

}

.home-user{

    margin-top:2rem;
    margin-bottom:2rem;

}

/* ==========================================================
   MENU
   ========================================================== */

.portal-menu{

    background:var(--primary);

    min-height:56px;

    display:flex;

    align-items:center;

}

.portal-menu .nav-link{

    color:#FFF;

    font-weight:500;

    padding:18px;

}

.portal-menu .nav-link:hover{

    background:rgba(255,255,255,.08);

}

.portal-menu .navbar-collapse{

    flex:1;

}

.portal-menu .navbar-nav{

    width:100%;

    justify-content:space-evenly;

}

/* ==========================================================
   HERO
   ========================================================== */

.hero{

    padding:20px 0 40px;

}

.hero .carousel{

    border-radius:18px;

    overflow:hidden;

    box-shadow:var(--shadow-lg);

}

.hero-image{
	
    display:block;
	
    width:100%;
    
	max-width:100%;
    
	height:auto;
}

.hero-control{

    opacity:0;

    transition:.25s;

}

.hero:hover .hero-control{

    opacity:1;

}

.carousel-indicators{

    margin-bottom:18px;

}

.carousel-indicators button{

    width:12px;

    height:12px;

    border-radius:50%;

}

@media (max-width:992px){

    .hero-image{

        height:320px;

    }

}

@media (max-width:768px){

    .hero{

        padding:20px 0;

    }

    .hero-image{

        height:220px;

    }

}


/* ==========================================================
   MARCAS
   ========================================================== */

.brands{

    padding:45px 0;

    background:#F5F7FA;

}

.brands-header{

    text-align:center;

    margin-bottom:30px;

}

.brands-header h2{

    font-size:2rem;

    font-weight:700;

    color:var(--bs-dark);

}

.brands-slider{

    overflow:hidden;

    position:relative;

}

.brands-track{

    display:flex;

    align-items:center;

    gap:24px;

    width:max-content;

    animation:brands-scroll 40s linear infinite;

}

.brands-slider:hover .brands-track{

    animation-play-state:paused;

}

.brand-item{

    width:180px;

    height:90px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#fff;

    border-radius:14px;

    box-shadow:var(--shadow-sm);

    flex-shrink:0;

    transition:.25s;

}

.brand-item:hover{

    transform:translateY(-4px);

    box-shadow:var(--shadow-md);

}

.brand-item img{

    max-width:85%;

    max-height:65px;

    width:auto;

    height:auto;

}

@keyframes brands-scroll{

    from{

        transform:translateX(0);

    }

    to{

        transform:translateX(-50%);

    }

}

@media (max-width:768px){

    .brand-item{

        width:140px;

        height:75px;

    }

}


/* ==========================================================
   PRODUTOS
   ========================================================== */

.featured-products{

    padding:60px 0;

}

.section-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:35px;

}

.section-header h2{

    margin:0;

    font-size:2rem;

    font-weight:700;

}

.section-header a{

    text-decoration:none;

    font-weight:600;

}

.product-card{

    background:#fff;

    border-radius:16px;

    overflow:hidden;

    box-shadow:var(--shadow-sm);

    transition:.25s;

    height:100%;

}

.product-card:hover{

    transform:translateY(-6px);

    box-shadow:var(--shadow-md);

}

.product-image{

    height:190px;

    background:#fff;

    display:flex;

    justify-content:center;

    align-items:center;

    border-bottom:1px solid var(--border);

    position:relative;

}

.product-image i{

    font-size:3rem;

    margin-bottom:10px;

}

.product-image img{

    max-width:85%;

    max-height:145px;

    object-fit:contain;

    transition:.2s;

}

.product-card:hover .product-image img{

    transform:scale(1.03);

}

.product-body{

    padding:18px;

    flex:1;

}

.product-brand{

    color:#d50000;

    font-weight:700;

    font-size:.9rem;

    text-transform:uppercase;
	
	margin-bottom:6px;

}

.product-body h3{

    font-size:1rem;

    font-weight:600;

    line-height:1.35;

    min-height:54px;

    margin-bottom:14px;

}

.product-body p{

    margin-bottom:8px;

    color:#666;

}

.product-stock{

    display:inline-block;

    color:#198754;

    font-weight:600;
	
	margin-bottom:12px;

}

/* ==========================================================
   PROMO CARD
========================================================== */

.promo-card{

    position:relative;

    display:flex;

    flex-direction:column;

    height:500px;
	
	min-height:520px;

    background:#fff;

    border-radius:14px;

    overflow:hidden;

    box-shadow:0 4px 14px rgba(0,0,0,.08);

    transition:.25s;

}

.promo-card-link{

    display:block;

    text-decoration:none;

    color:inherit;

}

.promo-card-link:hover{

    color:inherit;

    text-decoration:none;

}

.promo-card:hover{

    transform:translateY(-6px);

    box-shadow:0 12px 28px rgba(0,0,0,.16);

}

.promo-badge{

    position:absolute;

    top:12px;

    left:12px;

    z-index:10;

    background:#dc3545;

    color:#fff;

    padding:6px 12px;

    border-radius:30px;

    font-size:.75rem;

    font-weight:700;

    letter-spacing:.5px;

}

.promo-image{

    height:240px;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:20px;

}

.promo-image img{

    max-width:100%;

    max-height:200px;

    object-fit:contain;

}

.promo-body{

    flex:1;

    padding:0 20px 10px;

}

.promo-brand{

    color:#6c757d;

    font-size:.85rem;

    text-transform:uppercase;

    margin-bottom:6px;

}

.promo-body h3{

    font-size:1rem;

    font-weight:600;

    line-height:1.4;

    min-height:52px;
	
	max-height:52px;

    overflow:hidden;

}

.promo-old-price{

    color:#6c757d;

    text-decoration:line-through;

    margin-top:15px;

}

.promo-price{

    color:#dc3545;

    font-size:1.7rem;

    font-weight:700;
	
    min-height:64px;

    display:flex;

    align-items:center;

}

.promo-price-text{

    margin-top:20px;

    color:#0d6efd;

    font-size:1.2rem;

    font-weight:600;
	
    min-height:64px;

    display:flex;

    align-items:center;

}

.promo-footer{

    padding:20px;
	
	margin-top:auto;

}


/* ==========================================================
   FOOTER
   ========================================================== */

.portal-footer{

    background:#062248;

    color:#fff;

    margin-top:40px;

    padding-bottom:0;

}

.portal-footer .container{

    padding:50px 0;

}

.portal-footer h5{

    font-size:.95rem;

    font-weight:700;

    margin-bottom:20px;

}

.footer-logo{

    max-width:180px;

}

.footer-text{

    font-size:.9rem;

    color:#d5dce6;

    line-height:1.7;

}

.footer-list,
.footer-links{

    list-style:none;

    padding:0;

    margin:0;

}

.footer-list li,
.footer-links li{

    margin-bottom:12px;

    font-size:.9rem;

    color:#d5dce6;

}

.footer-links a{

    color:#d5dce6;

    text-decoration:none;

    transition:.25s;

}

.footer-links a:hover{

    color:#ffffff;

    padding-left:5px;

}

.footer-map{

    margin-top:18px;

    height:135px;

    overflow:hidden;

    border-radius:6px;

    border:1px solid rgba(255,255,255,.15);

}

.footer-map iframe{

    width:100%;

    height:100%;

    border:0;

}

.footer-social{

    display:flex;

    gap:15px;

    font-size:1.6rem;

}

.footer-social a{

    color:#fff;

}

.footer-payment{

    color:#fff;

    line-height:2;

}

.footer-bottom{

    background:#04182f;

    padding:10px 0;

    font-size:.85rem;

    color:#cfd8e3;

    line-height:1.4;

}

.portal-footer .row > div{

    border-right:1px solid rgba(255,255,255,.12);

}

.portal-footer .row > div:last-child{

    border-right:none;

}

.footer-col{

    padding-left:18px;

    padding-right:30px;

}

.footer-payments{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-top:12px;

}

.footer-payments img{

    height:26px;

    width:auto;

    background:#fff;

    border-radius:4px;

    padding:2px 4px;

}

/* ==========================================================
   CARDS
   ========================================================== */

.card{

    border:none;

    border-radius:var(--radius);

    box-shadow:var(--shadow-sm);

}

.card:hover{

    box-shadow:var(--shadow-md);

}

/* ==========================================================
   BOTÕES
   ========================================================== */

.btn{

    border-radius:8px;

    transition:var(--transition);

}

.btn-primary{

    background:var(--primary);

    border-color:var(--primary);

}

.btn-primary:hover{

    background:var(--primary-dark);

    border-color:var(--primary-dark);

}

/* ==========================================================
   INPUTS
   ========================================================== */

.form-control,
.form-select{

    border:1px solid var(--border);

    border-radius:8px;

    height:48px;

}

.form-control:focus,
.form-select:focus{

    border-color:var(--secondary);

    box-shadow:var(--shadow-lg);

}


/* ==========================================================
   UTILITÁRIOS
   ========================================================== */

.section-title{

    font-size:2rem;

    font-weight:700;

    margin-bottom:30px;

}

.section-subtitle{

    color:var(--text-light);

    margin-bottom:40px;

}

/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width:992px){

    .topbar{

        display:none;

    }

    .portal-header{

        padding:18px 0;

    }

    .header-actions{

        justify-content:center;

        margin-top:20px;

    }

    .search-category{

        display:none;

    }

}

@media (max-width:768px){

    .portal-logo{

        text-align:center;

        margin-bottom:20px;

    }

    .header-actions{

        flex-direction:column;

        gap:16px;

        align-items:center;

    }

}

/* ==========================================================
   PÁGINAS INTERNAS
   ========================================================== */