﻿:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --secondary: #8B5CF6;
  --accent: #EC4899;
  --dark: #1E293B;
  --light: #F8FAFF;
  --gray: #64748B;
  --white: #FFFFFF;
  --neon: #00FFFF;
  --title-gradient: linear-gradient(135deg, #C084FC, #60A5FA, #22D3EE);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #F8FAFF 0%, #E8F0FE 100%);
  color: var(--dark);
  line-height: 1.6;
  padding-top: 60px;
}

html {
  scroll-behavior: smooth;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   NAVBAR
========================================= */

.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  transition: all 0.3s;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar-fixed .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

/* =========================================
   LOGO
========================================= */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 10px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   MENU DESKTOP
========================================= */

.desktop-menu {
  display: flex;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: #4B5563;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  transform: translateY(-2px);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  transition: all 0.3s;
}

.theme-toggle:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: rotate(15deg);
}

.cart-icon-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu-container {
  display: none;
}

/* =========================================
   RESPONSIVO MOBILE
========================================= */

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .navbar-fixed {
    padding: 8px 0;
  }

  .navbar-fixed .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 12px;
    gap: 8px;
  }

  /* LOGO */
  .logo {
    gap: 6px;
    flex-shrink: 0;
  }

  .logo-img {
    height: 28px;
  }

  .logo-text {
    font-size: 14px;
    white-space: nowrap;
    display: inline-block !important;
  }

  /* ESCONDE MENU DESKTOP */
  .desktop-menu {
    display: none !important;
  }

  /* MOSTRA MENU MOBILE */
  .mobile-menu-container {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
  }

  /* BOTÃO TEMA MOBILE */
  .theme-toggle-mobile {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4B5563;
    transition: all 0.3s;
  }

  .theme-toggle-mobile:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: rotate(15deg);
  }

  /* CARRINHO MOBILE */
  .cart-icon-link-mobile {
    position: relative;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    color: #4B5563;
  }

  .cart-count-mobile {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #EF4444;
    color: white;
    font-size: 8px;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
  }

  /* HAMBURGUER */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 16px;
    cursor: pointer;
  }

  .hamburger span {
    width: 100%;
    height: 2px;
    background: #4B5563;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* SIDEBAR */
  .mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    padding: 20px;
    padding-top: 60px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .mobile-sidebar.open {
    right: 0;
  }

  /* ANIMAÇÃO DOS LINKS DO SIDEBAR */
  .sidebar-links li {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
  }

  .mobile-sidebar.open .sidebar-links li {
    opacity: 1;
    transform: translateX(0);
  }

  .mobile-sidebar.open .sidebar-links li:nth-child(1) { transition-delay: 0.05s; }
  .mobile-sidebar.open .sidebar-links li:nth-child(2) { transition-delay: 0.1s; }
  .mobile-sidebar.open .sidebar-links li:nth-child(3) { transition-delay: 0.15s; }
  .mobile-sidebar.open .sidebar-links li:nth-child(4) { transition-delay: 0.2s; }

  /* OVERLAY */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* SIDEBAR HEADER */
  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E2E8F0;
  }

  .sidebar-logo {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .close-sidebar {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #4B5563;
    transition: transform 0.3s;
  }

  .close-sidebar:hover {
    transform: rotate(90deg);
  }

  /* LINKS SIDEBAR */
  .sidebar-links {
    list-style: none;
    padding: 0;
  }

  .sidebar-links li {
    margin-bottom: 20px;
  }

  .sidebar-links a {
    display: block;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    color: #1E293B;
    text-align: center;
    padding: 12px 0;
    border-radius: 12px;
    transition: all 0.3s;
  }

  .sidebar-links a:hover {
    color: #6366F1;
    background: rgba(99, 102, 241, 0.1);
  }

  /* BOTÕES E OUTROS ELEMENTOS */
  .section-title {
    font-size: 30px;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 30px;
  }

  .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .carousel-btn-left {
    left: -10px;
  }

  .carousel-btn-right {
    right: -10px;
  }

  /* FOOTER MOBILE */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    flex-direction: row;
    justify-content: center;
    gap: 25px;
  }

  .social-links a {
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
  }

  .social-links a i {
    font-size: 24px;
  }

  .social-links a:hover {
    transform: translateY(-3px);
  }
}

/* =========================================
   TELAS MUITO PEQUENAS
========================================= */

@media (max-width: 480px) {
  .logo-text {
    font-size: 12px;
  }

  .logo-img {
    height: 24px;
  }

  .theme-toggle-mobile {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .cart-icon-link-mobile {
    font-size: 16px;
  }

  .hamburger {
    width: 18px;
    height: 14px;
  }
}

/* =========================================
   DESKTOP
========================================= */

@media (min-width: 769px) {
  .mobile-sidebar,
  .sidebar-overlay {
    display: none !important;
  }
}

/* =========================================
   BOTÕES GERAIS
========================================= */

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 34px;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* =========================================
   SEÇÕES
========================================= */

.section {
  padding: 80px 0;
  background: white;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, #F8FAFF 0%, #F1F5F9 100%);
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 50px;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   CARDS
========================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 24px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -12px rgba(99, 102, 241, 0.25);
}

.card i {
  font-size: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--dark);
}

.card p {
  color: var(--gray);
  font-size: 15px;
}

/* =========================================
   PRODUTOS
========================================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.product-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -12px rgba(99, 102, 241, 0.2);
}

.product-image {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.product-description {
  color: #64748B;
  margin-bottom: 15px;
  font-size: 14px;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: #6366F1;
  margin: 15px 0;
}

.btn-detail {
  background: transparent;
  border: 2px solid #6366F1;
  color: #6366F1;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: block;
  text-align: center;
  margin-top: 10px;
}

/* =========================================
   CARROSSEL
========================================= */

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px 5px 20px 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel .product-card {
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  width: 36px;
  height: 36px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: #6366F1;
  color: white;
  border-color: #6366F1;
}

.carousel-btn-left {
  left: -15px;
}

.carousel-btn-right {
  right: -15px;
}

.carousel {
  overflow-x: auto;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.carousel::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* =========================================
   CATEGORIA HEADER
========================================= */

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding: 0 10px;
}

.category-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-header h2 i {
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 24px;
}

/* =========================================
   FOOTER
========================================= */

.footer {
  background: #0F172A;
  padding: 50px 0 25px;
  color: #CBD5E1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  margin-bottom: 18px;
  font-size: 20px;
  color: white;
  position: relative;
  display: inline-block;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  border-radius: 2px;
}

.footer-section p,
.footer-section a {
  color: #94A3B8;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: #6366F1;
  transition: all 0.3s;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #94A3B8;
  font-size: 16px;
  transition: all 0.3s;
  padding: 8px 0;
}

.social-links a i {
  font-size: 22px;
  width: 28px;
  transition: all 0.3s;
}

.social-links a:hover {
  color: white;
  transform: translateX(5px);
}

.social-links a:hover i {
  color: #6366F1;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

/* =========================================
   WHATSAPP FLOAT
========================================= */

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  color: white;
  text-decoration: none;
  box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* =========================================
   UTILIDADES
========================================= */

.contact-icon {
  margin-right: 8px;
  color: var(--primary);
}

.products-hero {
  border-bottom: none !important;
}

/* =========================================
   DARK MODE
========================================= */

body.dark-mode {
  background: #0A0F1A;
  color: #E2E8F0;
}

body.dark-mode .navbar-fixed {
  background: rgba(10, 15, 26, 0.98);
  border-bottom-color: rgba(0, 255, 255, 0.2);
  box-shadow: 0 2px 20px rgba(0, 255, 255, 0.1);
}

body.dark-mode .nav-links a {
  color: #CBD5E1;
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
  color: var(--neon);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

body.dark-mode .logo-text {
  background: linear-gradient(135deg, var(--neon), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode .section-title {
  background: linear-gradient(135deg, #C084FC, #60A5FA, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode .theme-toggle {
  color: var(--neon);
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
}

body.dark-mode .theme-toggle:hover {
  background: rgba(0, 255, 255, 0.2);
}

body.dark-mode .theme-toggle-mobile {
  color: var(--neon);
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.3);
}

body.dark-mode .cart-icon-link-mobile {
  color: #CBD5E1;
}

body.dark-mode .hamburger span {
  background: #CBD5E1;
}

body.dark-mode .mobile-sidebar {
  background: #0A0F1A;
  border-left: 1px solid rgba(0, 255, 255, 0.2);
}

body.dark-mode .close-sidebar {
  color: #CBD5E1;
}

body.dark-mode .sidebar-header {
  border-bottom-color: #1F2937;
}

body.dark-mode .sidebar-links a {
  color: #E2E8F0;
}

body.dark-mode .section,
body.dark-mode .section:nth-child(even) {
  background: #0A0F1A;
}

body.dark-mode .card,
body.dark-mode .product-card,
body.dark-mode .testimonial-card,
body.dark-mode .form-container {
  background: #111827;
  border: 1px solid rgba(0, 255, 255, 0.15);
}

body.dark-mode .card:hover,
body.dark-mode .product-card:hover {
  border-color: var(--neon);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
}

body.dark-mode .card i {
  background: linear-gradient(135deg, var(--neon), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode .card h3,
body.dark-mode .product-info h3 {
  color: #FFFFFF;
}

body.dark-mode .card p,
body.dark-mode .product-description {
  color: #94A3B8;
}

body.dark-mode .category-header h2 {
  color: #E2E8F0;
}

body.dark-mode .category-header h2 i {
  background: linear-gradient(135deg, #C084FC, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode .product-price,
body.dark-mode .price {
  color: var(--neon);
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

body.dark-mode .btn-primary {
  background: linear-gradient(135deg, var(--neon), var(--secondary));
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

body.dark-mode .btn-primary:hover {
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

body.dark-mode .btn-secondary {
  background: transparent;
  border-color: var(--neon);
  color: var(--neon);
}

body.dark-mode .btn-secondary:hover {
  background: rgba(0, 255, 255, 0.1);
  color: var(--neon);
}

body.dark-mode .product-specs {
  background: #111827;
  border: 1px solid rgba(0, 255, 255, 0.15);
}

body.dark-mode .product-specs li {
  border-bottom-color: #1F2937;
}

body.dark-mode .cart-container {
  background: #111827;
}

body.dark-mode .cart-item {
  border-bottom-color: #1F2937;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
  background: #111827;
  border-color: #1F2937;
  color: #E2E8F0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

body.dark-mode .form-group label {
  color: #CBD5E1;
}

body.dark-mode .footer {
  background: #050A12;
  border-top: 1px solid rgba(0, 255, 255, 0.1);
}

body.dark-mode .footer-section a:hover {
  color: var(--neon);
}

body.dark-mode .carousel-btn {
  background: #1E293B;
  border-color: #475569;
  color: #E2E8F0;
}

body.dark-mode .carousel-btn:hover {
  background: var(--neon);
  color: #0A0F1A;
  border-color: var(--neon);
}

body.dark-mode .products-hero {
  background: #0A0F1A;
  border-bottom: none !important;
}

body.dark-mode .products-hero h1 {
  background: linear-gradient(135deg, #C084FC, #60A5FA, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode .products-hero p {
  color: #94A3B8;
}

body.dark-mode .product-info h1 {
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

body.dark-mode .product-specs h3 {
  color: var(--neon);
}

body.dark-mode .btn-add-cart {
  background: #3B82F6;
  color: white;
}

body.dark-mode .btn-whatsapp {
  background: #25D366;
  color: white;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #0A0F1A;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: var(--neon);
  border-radius: 10px;
}