:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #0f172a;
  --gray: #64748b;
  --light-gray: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.14);
  --radius: 14px;
  --radius-lg: 18px;
  --radius-full: 999px;
  --transition: all 0.3s ease;
  --z-fixed: 1000;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-secondary);
  color: var(--dark);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

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

.search-bar {
  flex: 1;
  max-width: 640px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--dark);
  border-radius: 999px;
  cursor: pointer;
}

.header-actions button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.categories-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.categories-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0.85rem 0;
}

.categories-nav ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  color: var(--secondary);
  text-decoration: none;
  cursor: pointer;
}

.categories-nav ul li a:hover,
.categories-nav ul li a.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.main-content {
  padding: 2rem 0 4rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--dark);
}

.section-header .view-all {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.empty-state {
  padding: 1.5rem;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--secondary);
  text-align: center;
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.profile-sidebar {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 1rem;
  align-self: start;
}

.profile-card {
  text-align: center;
  display: grid;
  gap: 1rem;
}

.profile-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--light-gray);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-change-avatar {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.profile-card p {
  margin: 0;
  color: var(--secondary);
}

.profile-badge {
  display: inline-flex;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.profile-nav {
  margin-top: 1.5rem;
}

.profile-nav ul {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--white);
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
}

.profile-nav ul li a:hover,
.profile-nav ul li a.active {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--border-color);
  color: var(--primary);
}

.profile-content {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.profile-content h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.stat-icon {
  font-size: 1.75rem;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}

.stat-label {
  display: block;
  color: var(--secondary);
  margin-top: 0.25rem;
}

.dashboard-actions {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.action-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

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

.profile-form {
  display: grid;
  gap: 1rem;
}

.profile-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-form .form-group {
  display: grid;
  gap: 0.5rem;
}

.profile-form label {
  color: var(--dark);
  font-weight: 600;
}

.profile-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--white);
  outline: none;
  color: var(--dark);
}

.profile-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.order-card,
.favorite-item,
.review-card {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.order-card h4,
.review-card p,
.favorite-item p {
  margin: 0 0 0.5rem;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: #0f172a;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid #1e293b;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar-left span {
  margin-right: 1.5rem;
}

.top-bar-left span i {
  margin-right: 4px;
  color: #22c55e;
}

.top-bar-right a {
  color: #94a3b8;
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s;
}

.top-bar-right a:hover {
  color: white;
}

/* ============================================
   LOGO
   ============================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  font-size: 2rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.logo-text span {
  color: #2563eb;
}

.dark-mode .logo-text {
  color: #f1f5f9;
}

/* ============================================
   SEARCH BAR - MODERNA
   ============================================ */
.search-bar-wrapper {
  display: flex;
  background: #f1f5f9;
  border-radius: 50px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.search-bar-wrapper:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-bar-wrapper select {
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-right: 1px solid #e2e8f0;
  outline: none;
}

.search-bar-wrapper input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  outline: none;
}

.search-bar-wrapper button {
  padding: 0.6rem 1.5rem;
  background: #2563eb;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.search-bar-wrapper button:hover {
  background: #1d4ed8;
}

/* ============================================
   HERO - MODERNO
   ============================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 24px;
  padding: 3rem 4rem;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(30deg);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-text h1 span {
  color: #fcd34d;
}

.hero-text p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  padding: 0.75rem 2rem;
  background: white;
  color: #2563eb;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-stats .stat-number {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  color: #fcd34d;
}

.hero-stats .stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   BANNER PROMOCIONAL
   ============================================ */
.banner-promo {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  margin: 2.5rem 0;
  color: white;
}

.banner-promo-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.banner-promo-badge {
  display: inline-block;
  background: #f59e0b;
  color: #0f172a;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.banner-promo-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.banner-promo-text p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.btn-promo {
  padding: 0.75rem 2rem;
  background: #2563eb;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.btn-promo:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.banner-promo-image {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: #2563eb;
}

/* ============================================
   BOTÃO VOLTAR AO TOPO
   ============================================ */
.btn-back-to-top {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 900;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* ============================================
   FOOTER - MODERNO
   ============================================ */
.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
}

.footer-logo span {
  color: #2563eb;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin: 1rem 0 0.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1e293b;
  color: white;
  outline: none;
}

.newsletter-form input:focus {
  border-color: #2563eb;
}

.newsletter-form button {
  padding: 0.5rem 1rem;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #1d4ed8;
}

/* ============================================
   CATEGORIES NAV - ÍCONES
   ============================================ */
.categories-nav ul li a i {
  margin-right: 4px;
}

/* ============================================
   SECTION HEADER - COM ÍCONES
   ============================================ */
.section-header h2 i {
  margin-right: 8px;
  color: var(--primary);
}

/* ============================================
   RESPONSIVE - INDEX
   ============================================ */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  .hero-image {
    display: none;
  }

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

  .banner-promo-image {
    font-size: 4rem;
  }

  .top-bar-content {
    flex-direction: column;
    text-align: center;
  }

  .top-bar-right a {
    margin: 0 0.75rem;
  }
}

@media (max-width: 768px) {
  .search-bar-wrapper {
    flex-wrap: wrap;
    border-radius: 12px;
  }

  .search-bar-wrapper select {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem;
  }

  .search-bar-wrapper button {
    padding: 0.5rem 1rem;
  }

  .hero {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .banner-promo {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .banner-promo-text h2 {
    font-size: 1.4rem;
  }

  .btn-back-to-top {
    bottom: 5rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .top-bar-left span {
    display: block;
    margin-right: 0;
  }

  .footer-newsletter .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 0.5rem;
  }

  .stat-divider {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}
