:root {
  --primary: #8b5cf6;
  --secondary: #ec4899;
  --dark: #1e1e2e;
  --light: #f8f9fa;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* Navbar */
.site-header {
  z-index: 1030;
  filter: drop-shadow(0 8px 22px rgba(55, 38, 83, 0.1));
}

.site-content {
  padding-top: var(--site-header-height, 100px);
}

.site-content > :first-child,
.site-content > section:first-of-type,
.site-content > .pd-page {
  margin-top: 0 !important;
}

.promo-strip {
  position: relative;
  min-height: 38px;
  color: #fff;
  background: linear-gradient(105deg, #4c2882 0%, #7542b5 48%, #d34386 100%);
  overflow: hidden;
}

.promo-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% -80%, rgba(255,255,255,.28), transparent 35%);
  pointer-events: none;
}

.promo-theme-escuro { background: linear-gradient(105deg, #21182b, #3e284e); }
.promo-theme-claro { background: linear-gradient(105deg, #fff1f7, #f1ebff); color: #432554; }

.promo-content {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 44px;
  font-size: .82rem;
  letter-spacing: .01em;
}

.promo-icon { color: #ffd86b; font-size: 1rem; }
.promo-complemento { opacity: .86; }
.promo-link {
  color: inherit;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  padding: 3px 10px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.promo-theme-claro .promo-link { border-color: rgba(67,37,84,.3); }
.promo-link:hover { color: #432554; background: #fff; }
.promo-close {
  position: absolute;
  right: max(14px, calc((100vw - 1320px) / 2));
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: inherit;
  opacity: .7;
  padding: 5px;
}
.promo-close:hover { opacity: 1; }

.site-navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(111, 62, 148, .08);
  padding: 9px 0;
  transition: all 0.3s ease;
}

.site-header.scrolled .site-navbar {
  padding: 5px 0;
  background: rgba(255,255,255,.97) !important;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-brand img {
  height: 58px;
  margin-right: 10px;
  transition: height .3s ease;
}

.site-header.scrolled .navbar-brand img {
  height: 50px;
}

.site-navbar .nav-link {
  color: #333 !important;
  font-weight: 600;
  padding: 9px 14px !important;
  margin: 0 2px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #6d3ba7 !important;
  background: rgba(118, 75, 162, .1);
}

.site-navbar .nav-link.active { box-shadow: inset 0 -2px 0 #8b5cf6; }

.cart-menu-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #6d3ba7;
  background: #f4effb;
  border: 1px solid #e7dcf5;
  border-radius: 50%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cart-menu-button::after { display: none; }
.cart-menu-button:hover,
.cart-menu-button:focus { color: #fff; background: var(--gradient); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(118,75,162,.25); }
.cart-menu-button #cart-count { background: #e54887 !important; border: 2px solid #fff; }

.navbar-toggler {
  border: 1px solid #e8def2;
  border-radius: 12px;
  padding: 8px 10px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(139,92,246,.15); }

.btn-primary-gradient {
  background: var(--gradient);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

/* User Dropdown Menu */
.user-dropdown {
  position: relative;
}

.user-dropdown .dropdown-toggle {
  background: var(--gradient);
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.user-dropdown .dropdown-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.user-dropdown .dropdown-toggle::after {
  margin-left: 5px;
}

.user-dropdown .dropdown-menu {
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 15px;
  padding: 15px;
  min-width: 280px;
  margin-top: 10px;
}

.user-dropdown .dropdown-header {
  font-weight: 700;
  color: #333;
  font-size: 1rem;
  padding: 10px 15px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 10px;
}

.user-dropdown .dropdown-item {
  padding: 12px 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
  color: #666;
  font-weight: 500;
}

.user-dropdown .dropdown-item:hover {
  background: var(--gradient);
  color: white;
  transform: translateX(5px);
}

.user-dropdown .dropdown-item i {
  width: 25px;
  text-align: center;
  margin-right: 10px;
}

.user-info-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  font-size: 0.9rem;
  color: #666;
  border-left: 3px solid transparent;
}

.user-info-item i {
  width: 25px;
  text-align: center;
  margin-right: 10px;
  color: var(--primary);
}

.user-info-item strong {
  color: #333;
  margin-left: 5px;
}

.dropdown-divider {
  margin: 10px 0;
  border-top: 2px solid #f0f0f0;
}

.logout-item {
  background: #fee;
  color: #c33 !important;
  font-weight: 600;
}

.logout-item:hover {
  background: #c33 !important;
  color: white !important;
}

/* Hero Section */
.hero-section {
  background: var(--gradient);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat bottom;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  max-width: 100%;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2.5rem;
  color: white;
}

.feature-icon.purple {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.feature-icon.pink {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.feature-icon.blue {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.feature-icon.green {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.feature-card h3 {
  font-weight: 700;
  margin-bottom: 15px;
  color: #1e1e2e;
}

.feature-card p {
  color: #6c757d;
  margin: 0;
}

/* Professionals Section */
.professionals-section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.section-title p {
  font-size: 1.2rem;
  color: #6c757d;
}

.professional-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: none;
}

.professional-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.professional-image {
  width: 100%;
  height: 250px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: white;
  font-weight: bold;
}

.professional-info {
  padding: 25px;
}

.professional-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1e1e2e;
}

.professional-rating {
  color: #ffc107;
  margin-bottom: 15px;
}

.professional-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.specialty-badge {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(236, 72, 153, 0.1)
  );
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 60px 0 30px;
}

.footer h5 {
  font-weight: 700;
  margin-bottom: 20px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: white;
  padding-left: 5px;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--gradient);
  transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
  .promo-content { min-height: 42px; padding: 6px 38px 6px 12px; gap: 6px; font-size: .72rem; text-align: center; }
  .promo-icon, .promo-complemento { display: none; }
  .promo-link { padding: 2px 7px; }
  .promo-close { right: 6px; }
  .navbar-brand img { height: 48px; }
  .site-header.scrolled .navbar-brand img { height: 44px; }
  .site-navbar { padding: 6px 0; }
  .site-navbar .navbar-collapse {
    margin-top: 8px;
    padding: 12px;
    background: rgba(255,255,255,.98);
    border: 1px solid #eee5f6;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(58,35,80,.12);
  }
  .site-navbar .navbar-nav { align-items: stretch !important; }
  .site-navbar .nav-link { margin: 2px 0; }
  .site-navbar .nav-item.ms-3 { margin-left: 0 !important; margin-top: 8px; }
  .site-navbar .btn-primary-gradient { display: block; text-align: center; }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-carrinho {
    padding: 10px 14px !important;
    font-size: 1.1rem !important;
  }

  .btn-carrinho i {
    font-size: 1.2rem !important;
  }
}
