@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM - LC PHARMA
   ========================================================================== */
:root {
  /* Cores Principais */
  --primary-dark: #0c2c5c;      /* Azul Escuro Corporativo */
  --primary-medium: #1a68a5;    /* Azul Médio de Destaque */
  --primary-light: #3da8d6;     /* Azul Claro de Suporte */
  --primary-light-rgba: rgba(61, 168, 214, 0.1);
  --primary-dark-rgba: rgba(12, 44, 92, 0.05);
  
  /* Cores Neutras */
  --white: #ffffff;
  --bg-light: #f8fafd;          /* Fundo sutil */
  --text-main: #1d2939;         /* Cor do texto principal */
  --text-muted: #667085;        /* Cor do texto secundário */
  --border-color: #eaecf0;      /* Divisores discretos */
  
  /* Efeitos e Sombras */
  --shadow-sm: 0 4px 12px rgba(12, 44, 92, 0.03);
  --shadow-md: 0 8px 30px rgba(12, 44, 92, 0.05);
  --shadow-lg: 0 20px 48px rgba(12, 44, 92, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  /* Transições e Bordas */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
  --border-radius-sm: 4px;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* ==========================================================================
   GLOBAL RESETS & ACCESSIBILITY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* Foco acessível visível */
*:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

/* Seções */
section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-medium);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

/* ==========================================================================
   BUTTONS & SHIMMER EFFECT
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary-medium);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 104, 165, 0.3);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  border-color: var(--primary-medium);
  color: var(--primary-medium);
}

/* Efeito Ripple CSS */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--white);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 6rem;
  width: auto;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-medium);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-medium);
}

.nav-link:hover::after {
  width: 100%;
}

/* Menu Mobile Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary-dark);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, rgba(61, 168, 214, 0.08) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  background-color: var(--primary-light-rgba);
  color: var(--primary-medium);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 30px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(61, 168, 214, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Elementos decorativos */
.hero-shapes {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  z-index: 1;
  pointer-events: none;
}

.hero-shape-1 {
  position: absolute;
  top: 15%;
  right: 15%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(61, 168, 214, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 8s ease-in-out infinite;
}

.hero-shape-2 {
  position: absolute;
  bottom: 20%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(26, 104, 165, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 12s ease-in-out infinite reverse;
}

.hero-composition {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  background-color: var(--white);
  border: 1px solid var(--border-color);
  padding: 24px;
  transform: rotate(2deg);
  animation: card-hover-subtle 6s ease-in-out infinite;
}

.hero-composition img {
  width: 100%;
  border-radius: 8px;
  transition: var(--transition);
}

.hero-composition:hover img {
  transform: scale(1.02);
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes card-hover-subtle {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */
.differentials {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.diff-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.diff-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(61, 168, 214, 0.2);
}

.diff-icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: var(--primary-light-rgba);
  color: var(--primary-medium);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.diff-card:hover .diff-icon-wrapper {
  background-color: var(--primary-medium);
  color: var(--white);
  transform: scale(1.1);
}

.diff-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.diff-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   CATEGORIAS, FILTROS E BUSCA
   ========================================================================== */
.catalog-controls {
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Barra de pesquisa */
.search-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  color: var(--text-main);
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-medium);
  box-shadow: 0 4px 20px rgba(26, 104, 165, 0.1);
}

/* Filtros de Categoria */
.filters-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary-medium);
  color: var(--primary-medium);
  background-color: var(--bg-light);
}

.filter-btn.active {
  background-color: var(--primary-medium);
  border-color: var(--primary-medium);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(26, 104, 165, 0.2);
}

/* ==========================================================================
   PRODUCT LIST GRID
   ========================================================================== */
.products-grid-container {
  min-height: 400px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(61, 168, 214, 0.15);
}

.product-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background-color: var(--bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .product-card-img {
  transform: scale(1.05);
}

/* Badges sobrepostos na imagem do card */
.product-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.badge {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-category {
  background-color: var(--primary-dark);
  color: var(--white);
}

.badge-ca {
  background-color: #f79009; /* Laranja contrastante para CA */
  color: var(--white);
}

/* Informações do Card */
.product-card-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-brand {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3rem; /* Mantém grid alinhado */
}

.product-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  flex-grow: 1;
}

.product-card-footer {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.product-card-footer .btn {
  flex: 1;
}

/* Estado de busca sem resultados */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results svg {
  margin: 0 auto 16px;
  color: var(--border-color);
}

.no-results p {
  font-size: 1.1rem;
}

/* ==========================================================================
   CTA FINAL SECTION
   ========================================================================== */
.final-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 90%, rgba(61, 168, 214, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.final-cta-content {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.final-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.25;
}

.final-cta-desc {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.final-cta .btn-primary {
  background-color: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.final-cta .btn-primary:hover {
  background-color: var(--bg-light);
  color: var(--primary-medium);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: #061833; /* Azul super escuro */
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.footer-logo {
  height: 6rem;
  width: auto;
  filter: brightness(0) invert(1); /* Deixa a logo toda branca */
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-contact-info {
  list-style: none;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-contact-info svg {
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-contact-info a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact-info a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-copy {
  margin-bottom: 0;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--white);
}
