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

:root {
  /* Brand Colors - France Pharma */
  --primary-color: #2b458b; /* Deep Navy Blue */
  --primary-color-hover: #1e3062;
  --bg-color: #f7f9fc;
  --bg-white: #ffffff;
  --text-primary: #0a1128;
  --text-secondary: #4a5568;
  --border-color: #e2e8f0;
  
  /* Gradient Backgrounds (Extracted from Ladipage) */
  --gradient-main: linear-gradient(135deg, #e0f7fa 0%, #ffffff 40%, #f3e5f5 100%);
  
  /* UI Tokens */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-hover: 0 10px 15px -3px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================================
   2. HEADER & NAVIGATION
   ========================================================================= */
.header {
  position: sticky;
  top: 0;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Logo Setup */
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  width: 250px;
}

.header-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.header-logo:hover img {
  transform: scale(1.05);
}

/* Desktop Navigation */
.header-nav {
  display: flex;
  gap: 25px;
  flex: 1;
  justify-content: center;
}

.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  position: relative;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--primary-color);
  background-color: rgba(43, 69, 139, 0.05);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.header-nav a.active::after {
  width: 80%;
}

/* Badges Setup */
.header-badges {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  width: 250px; /* Fixed width to match logo */
}

.badge-shopee {
  background: linear-gradient(135deg, #ee4d2d 0%, #ff7337 100%);
  color: var(--bg-white, #ffffff);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(238, 77, 45, 0.2);
}

.badge-shopee:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.3);
  color: var(--bg-white, #ffffff);
}

.badge-shopee svg {
  width: 20px;
  height: 20px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Responsive Header */
@media (max-width: 992px) {
  .header-logo, .header-badges {
    width: auto;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 12px 0;
  }

  .header-badges {
    display: none; /* Hide badges on mobile header to save space */
  }

  .header-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 40px;
    gap: 20px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 5px 10px -5px rgba(0,0,0,0.1);
  }

  .header-nav.active {
    left: 0;
  }

  .header-nav a {
    font-size: 18px;
    width: 80%;
    text-align: center;
    padding: 15px;
    background-color: var(--bg-color);
  }
  
  .header-nav a.active {
    background-color: rgba(43, 69, 139, 0.1);
  }

  .menu-toggle {
    display: block;
  }
}

/* =========================================================================
   3. COMPONENTS (Buttons, Badges, Animations)
   ========================================================================= */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #1e3062 0%, #4a72ff 50%, #2b458b 100%);
  background-size: 200% auto;
  color: var(--bg-white);
  padding: 14px 40px;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  box-shadow: 0 10px 20px rgba(43, 69, 139, 0.3);
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  white-space: nowrap !important;
}

.btn-cta:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(43, 69, 139, 0.4);
}

/* Verified Badge Setup (KNOWHOW.md 4.6) */
.logo-badge {
  background: var(--bg-white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  position: relative; /* Anchor for verified badge */
}

.logo-badge img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

/* Header & Footer Size */
.logo-badge.small {
  width: 54px;
  height: 54px;
}

/* Hero & Loading Size */
.logo-badge.large {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  padding: 3px;
}

.verified {
  position: absolute;
  bottom: 0px; 
  right: 0px;
  width: 24px;
  height: 24px;
  background-color: #1877F2; /* Trust Blue */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--bg-white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 2;
}

.verified svg {
  fill: var(--bg-white);
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.hero-logo-wrapper .verified,
.logo-badge.large .verified {
  width: 28px;
  height: 28px;
  bottom: 5px;
  right: 5px;
  border-width: 3px;
}

.hero-logo-wrapper .verified svg,
.logo-badge.large .verified svg {
  width: 16px;
  height: 16px;
}

/* Base Animations */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }


/* =========================================================================
   4. HERO SECTION
   ========================================================================= */
.hero {
  background: var(--gradient-main);
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative Background Elements */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.hero::before {
  width: 300px;
  height: 300px;
  background: rgba(224, 247, 250, 0.6); /* e0f7fa cyan */
  top: -100px;
  left: -100px;
}

.hero::after {
  width: 400px;
  height: 400px;
  background: rgba(243, 229, 245, 0.6); /* f3e5f5 pink */
  bottom: -150px;
  right: -100px;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero Logo */
.hero-logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.hero-logo-outer {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  padding: 3px;
  box-shadow: 0 15px 35px rgba(43, 69, 139, 0.15);
  backdrop-filter: blur(5px);
}

.hero-logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-white);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.hero-logo-inner img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Hero Texts */
.hero-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0 60px;
  }
  
  .hero-logo-outer {
    width: 120px;
    height: 120px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 15px;
    padding: 0 15px;
    margin-bottom: 25px;
  }
}


/* =========================================================================
   5. FEATURES GRID (4 Cards)
   ========================================================================= */
.features-section {
  padding: 60px 0;
  background-color: var(--bg-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(43, 69, 139, 0.2);
}

.feature-card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features-grid {
    gap: 15px;
  }
  
  .feature-card {
    padding: 20px 10px;
  }
  
  .feature-card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }
  
  .feature-card h3 {
    font-size: 13px;
  }
}


/* Pop-In Animation (KNOWHOW.md 5.1) */
.check-badge {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Applying the spring pop-in animation */
  animation: checkPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: scale(0.5);
}

.check-badge svg {
  width: 40px;
  height: 40px;
  fill: var(--bg-white);
}

@keyframes checkPopIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* Success Check Badge Variant - Green (Bailleul Style) */
.check-badge.success {
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.check-badge.success svg {
  width: 40px;
  height: 40px;
}

/* =========================================================================
   6. PRODUCTS GRID (Best Sellers)
   ========================================================================= */
.products-section {
  padding: 0 0 80px;
  background-color: var(--bg-color);
}

.section-banner {
  display: block;
  max-width: 600px;
  margin: 0 auto 40px;
  background: var(--primary-color);
  color: var(--bg-white);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 12px 32px;
  border-radius: var(--radius-full);
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  row-gap: 30px;
}

.product-card-link {
  display: block;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.product-card-link img {
  width: 80%;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

  .product-card-link:hover {
    transform: translateY(-4px);
  }
  
  /* =========================================================================
     7.5 SUCCESS CHECK BADGE (QR Check Page)
     ========================================================================= */
  /* Pop-In Animation (KNOWHOW.md 5.1) */
  .check-badge {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Applying the spring pop-in animation */
    animation: checkPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.5);
  }
  
  .check-badge svg {
    width: 40px;
    height: 40px;
    fill: var(--bg-white);
  }
  
  @keyframes checkPopIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
  }
  
  /* Success Check Badge Variant - Green (Bailleul Style) */
  .check-badge.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
  }
  
  .check-badge.success svg {
    opacity: 0;
    animation: checkDraw 0.5s ease-out 0.4s forwards;
  }
  
  @keyframes checkDraw {
    from { opacity: 0; transform: scale(0.5) rotate(-30deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
  }

  /* =========================================================================
     8. LOADING PAGE SPECIFICS
     ========================================================================= */
  .loading-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 20px;
  }
  
  .loading-logo img {
    width: 120px;
    margin-bottom: 40px;
    animation: pulseLogo 2s infinite ease-in-out;
  }
  
  @keyframes pulseLogo {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
  }
  
  .qr-scan-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  
  .loading-qr {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.8;
  }
  
  .qr-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    box-shadow: 0 4px 10px var(--primary-color);
    animation: scanLine 2s infinite ease-in-out;
  }
  
  @keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
  }
  
  .loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-align: center;
  }
  
  .loading-subtext {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
  }
  
  @media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-section {
    padding-bottom: 60px;
  }
  
  .section-banner {
    font-size: 18px;
    padding: 10px 25px;
    margin-bottom: 30px;
    width: 90%;
    max-width: 300px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    row-gap: 20px;
  }
}

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

:root {
  /* Brand Colors */
  --primary-color: #2b458b; /* France Pharma main blue */
  --primary-color-dark: #1e336e;
  --secondary-color: #f7a8b8; /* Pink accent */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  
  /* Typography */
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================================================
   7. FOOTER (Bailleul Standard Layout)
   ========================================================================= */
.footer {
  background-color: #1a2955; /* Dark Navy */
  color: var(--bg-white);
  padding: 40px 0 0;
  margin-top: 40px;
}

.footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.footer-brand-name .verified {
  width: 22px;
  height: 22px;
  background: #1877F2; /* Trust Blue */
  border-radius: 50%;
  border: 2px solid var(--bg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  position: static; /* Override original absolute positioning */
}

.footer-brand-name .verified svg {
  width: 10px;
  height: 10px;
  fill: var(--bg-white);
  margin-top: 1px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 10px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.footer-contact-list li svg {
  width: 16px;
  height: 16px;
  fill: var(--bg-white);
  flex-shrink: 0;
}

.footer-right h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 16px;
  margin-bottom: 16px;
  color: var(--bg-white);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--bg-white);
  transform: translateX(3px);
}

.footer-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.footer-social .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--bg-white);
  transition: var(--transition-fast);
}

.footer-social .social-icon:hover {
  background: var(--bg-white);
  color: #1a2955;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.footer-social .social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-bottom {
  text-align: center;
  padding: 16px 0;
  background: rgba(0, 0, 0, 0.15);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Footer Adaptation */
@media (max-width: 768px) {
  .footer {
    padding: 30px 0 0;
  }
  
  .footer .container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 24px;
  }
}
