/* ===== FARMÁCIA CUIDAR - MODERN CSS WITH BOOTSTRAP 5 ===== */

/* CSS Variables - Paleta de cores baseada na logo */
:root {
  /* Cores da identidade visual Farmácia CUIDAR */
  --primary-color: #9A202B;        /* Vermelho Cuidar - Cor Principal */
  --primary-dark: #7A1A22;
  --primary-light: rgba(154, 32, 43, 0.1);
  --accent-color: #F2A722;         /* Amarelo Acolhimento - Cor de Destaque */
  --accent-dark: #D4941E;
  --accent-light: rgba(242, 167, 34, 0.1);
  
  /* Cores neutras */
  --white: #FFFFFF;
  --light-gray: #f8f9fa;
  --gray: #D1D1D1;
  --dark-gray: #495057;
  --dark: #212529;
  
  /* Cores de sucesso e informação */
  --success: #9A202B;
  --info: #F2A722;
  --warning: #F2A722;
  --danger: #9A202B;
  
  /* Tipografia */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  
  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 25px rgba(0,0,0,0.2);
  
  /* Bordas */
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;
  
  /* Transições */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

/* ===== BOOTSTRAP CUSTOMIZATIONS ===== */
/* ===== BOTÕES CUSTOMIZADOS ===== */
.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(154, 32, 43, 0.3);
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(154, 32, 43, 0.4);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(45deg, var(--accent-color), var(--accent-dark));
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 167, 34, 0.3);
  color: var(--white);
}

.btn-secondary:hover {
  background: linear-gradient(45deg, var(--accent-dark), var(--accent-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 167, 34, 0.4);
  color: var(--white);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: var(--border-radius-sm);
  padding: 12px 24px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

/* ===== NAVIGATION ===== */
.custom-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: var(--transition);
}

.custom-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-text {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link {
  color: var(--dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white) !important;
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 8px 16px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #128c7e, #075e54);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: var(--white);
  overflow: hidden;
  padding-top: 80px;
}

.hero-overlay {
  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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.floating-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

.floating-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.floating-card h5 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: var(--light-gray);
}

.feature-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.5rem;
}

.feature-card h5 {
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
  margin: 0;
}

/* ===== SECTIONS ===== */
.section-title {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
  background: var(--white);
}

.category-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  background: rgba(44, 90, 160, 0.1);
}

.category-card h4 {
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

.category-card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
  background: var(--light-gray);
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 2;
}

.product-image {
  height: 200px;
  background: linear-gradient(135deg, var(--light-gray), #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary-color);
}

.product-content {
  padding: 1.5rem;
}

.product-content h5 {
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.product-description {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-price {
  margin-bottom: 1rem;
}

.price-old {
  color: var(--gray);
  text-decoration: line-through;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.price-current {
  color: var(--accent-color);
  font-size: 1.25rem;
  font-weight: 700;
}

.comprar-btn {
  transition: var(--transition);
}

.comprar-btn:hover {
  transform: translateY(-2px);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--white);
}

.about-content .lead {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.about-stats {
  margin-top: 2rem;
}

.stat-item h3 {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--light-gray), #e9ecef);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary-color);
}

.image-placeholder p {
  font-size: 1rem;
  margin-top: 1rem;
  color: var(--gray);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--light-gray);
}

.contact-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.5rem;
}

.contact-card h5 {
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark);
}

.contact-card p {
  color: var(--gray);
  margin: 0;
}

/* ===== FOOTER ===== */
.footer-section {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-brand h5 {
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  filter: drop-shadow(0 2px 8px rgba(255,255,255,0.1));
}

.footer-section h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0 1rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.9rem;
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(242, 167, 34, 0.4);
  z-index: 1000;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-color));
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .floating-card {
    padding: 1.5rem;
  }
  
  .about-stats {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 100px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .feature-card,
  .category-card,
  .contact-card {
    padding: 1.5rem;
  }
  
  .product-content {
    padding: 1rem;
  }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== UTILITIES ===== */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.bg-gradient-accent {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, var(--primary-color), var(--accent-color)) 1;
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}