/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
    --cor-principal: #007BFF;
    --cor-escura: #0056b3;
    --cor-cinza: #6b7280;
    --cor-cinza-claro: #f8f9fa;
    --cor-branco: #ffffff;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.375rem;
    --border-radius-sm: 0.25rem;
    --border-radius-lg: 0.5rem;
    --transition: all 0.3s ease;
    --white: #ffffff;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-700: #374151;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  background-color: var(--cor-cinza-claro);
  color: #333;
  padding-top: 0;
}

/* ==================== FAIXA SUPERIOR ==================== */
.top-bar {
  background: linear-gradient(135deg, var(--cor-principal) 0%, var(--cor-escura) 100%);
  color: var(--cor-branco);
  padding: 8px 20px;
  font-size: 0.85rem;
}

.top-bar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-item i {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ==================== HEADER E NAVEGAÇÃO ==================== */
.logo-img {
    height: 77px;
    width: auto;
    border-radius: 50%;
}

header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 999;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 40px;
}

nav, .nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--cor-cinza);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cor-principal);
    background-color: rgba(0, 123, 255, 0.1);
}

.nav-link i {
    font-size: 1.2rem;
}

.nav-text {
    font-size: 0.95rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--cor-principal);
    cursor: pointer;
}

.orcamento-contador {
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* ==================== MENU DROPDOWN USUÁRIO ==================== */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    margin-top: 10px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1.25rem;
    color: var(--cor-cinza);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background-color: var(--cor-cinza-claro);
    color: var(--cor-principal);
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 20px;
}

.dropdown-divider {
    height: 1px;
    background: var(--cor-cinza-claro);
    margin: 0.5rem 0;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #343a40;
    color: var(--cor-branco);
    padding: 4rem 20px 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo .logo-img {
    height: 60px;
}

.footer-title {
    color: var(--cor-branco);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-description {
    color: #ced4da;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

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

.footer-links a {
    color: #ced4da;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #17a2b8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #495057;
    color: var(--cor-branco);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link.instagram:hover {
    background: #ad48c4;
}

.social-link.whatsapp:hover {
    background: #25D366;
}

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

.footer-divider {
    height: 1px;
    background: #495057;
    margin: 2rem 0;
}

.footer-bottom {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    color: #adb5bd;
    margin: 0;
    font-size: 0.9rem;
}

.nav-cart {
  position: relative;
}

.nav-cart .orcamento-contador {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #356ddc;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 10;
}


@media (max-width: 768px) {
  .nav-cart .orcamento-contador {
    width: 20px;
    height: 20px;
    font-size: 10px;
    top: -8px;
    right: -8px;
  }
}
/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .top-bar {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .top-bar-content {
        gap: 1rem;
        justify-content: space-around;
    }

    .top-bar-item span {
        display: none;
    }

    .top-bar-item {
        flex-direction: column;
        gap: 2px;
    }

    header {
        padding: 0.75rem 20px;
    }

    .logo-img {
        height: 55px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

@media (min-width: 769px) and (max-width: 1024px) {
    .top-bar {
        font-size: 0.8rem;
        padding: 8px 20px;
    }

    .top-bar-content {
        gap: 1.5rem;
    }

    header {
        padding: 0.75rem 30px;
    }

    .logo-img {
        height: 65px;
    }
}

@media (min-width: 1025px) {
    .nav-menu {
        gap: 2rem;
    }
}

