/* Modern Professional Medicine Ecommerce CSS */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #06b6d4;
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;
  --dark-color: #1f2937;
  --light-color: #f9fafb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: #ffffff;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Modern Header */
.modern-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  transition: all 0.3s ease;
}

.modern-header.scrolled {
  box-shadow: var(--shadow-md);
}

.modern-navbar {
  padding: 1rem 0;
}

.modern-logo {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-logo:hover {
  color: var(--secondary-color);
}

.modern-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.modern-nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.modern-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.modern-nav-links a:hover::after,
.modern-nav-links a.active::after {
  width: 100%;
}

.modern-nav-links a:hover,
.modern-nav-links a.active {
  color: var(--primary-color);
}

/* Hero Slider Section */
.modern-hero-slider {
  position: relative;
  height: calc(60vh + 110px); /* Add header height to total height */
  min-height: 460px; /* Increased minimum height */
  overflow: hidden;
  margin: 0;
  padding-top: 0;
  margin-top: -110px; /* Negative margin to eliminate gap */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #667eea; /* Medical theme fallback */
  will-change: transform;
  transform: scale(1.02);
  transition: transform 0.6s ease-in-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.88) 0%, rgba(30, 64, 175, 0.82) 50%, rgba(6, 182, 212, 0.85) 100%);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: 130px; /* More space from header */
  padding-bottom: 2rem;
}

/* Slider Navigation */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
}

.slider-nav-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
}

.slider-nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.slider-nav-btn:active {
  transform: scale(0.95);
}

/* Slider Indicators */
.hero-slider-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 1rem;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  max-width: 560px;
  line-height: 1.45;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-modern {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  background: var(--light-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Products Section */
.products-section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
}

/* Categories Section */
.categories-section {
  padding: 6rem 0;
  background: var(--light-color);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.category-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover::before {
  opacity: 0.9;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.category-card:hover .category-title {
  color: white;
}

/* Statistics Section */
.stats-section {
  padding: 6rem 0;
  background: var(--dark-color);
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Enhanced Modern Footer */
.modern-footer {
  font-family: 'Inter', sans-serif;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.newsletter-form .form-control {
  border: none;
  border-radius: 25px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.newsletter-form .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
  border-color: #ffc107;
}

.newsletter-form .btn {
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Main Footer */
.footer-main {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.footer-widget {
  height: 100%;
}

.footer-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  border-radius: 2px;
}

.footer-desc {
  color: #d1d5db;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Trust Badges */
.trust-badges .trust-badge {
  transition: all 0.3s ease;
  cursor: pointer;
}

.trust-badges .trust-badge:hover {
  background: rgba(59, 130, 246, 0.2) !important;
  transform: translateY(-2px);
}

.trust-badges .trust-badge i {
  font-size: 1.5rem;
}

/* Contact Info */
.contact-item {
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.contact-item:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateX(5px);
}

.contact-item i {
  font-size: 1.25rem;
}

.contact-item a:hover {
  color: #3b82f6 !important;
}

/* Footer Links */
.footer-links {
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
  transition: all 0.3s ease;
  border-radius: 0.25rem;
}

.footer-link:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  padding-left: 0.5rem;
  transform: translateX(5px);
}

.footer-link i {
  transition: transform 0.3s ease;
}

.footer-link:hover i {
  transform: translateX(3px);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  transition: transform 0.3s ease;
  transform: scale(0);
}

.social-link:hover::before {
  transform: scale(1);
}

.social-link.facebook {
  background: #1877f2;
}

.social-link.facebook:hover {
  background: #166fe5;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-link.twitter {
  background: #1da1f2;
}

.social-link.twitter:hover {
  background: #1a94da;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.social-link.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.social-link.youtube {
  background: #ff0000;
}

.social-link.youtube:hover {
  background: #e60000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.social-link.linkedin {
  background: #0077b5;
}

.social-link.linkedin:hover {
  background: #006ba1;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-link i {
  font-size: 1.25rem;
  position: relative;
  z-index: 2;
}

/* Mobile Apps */
.app-buttons .app-button {
  display: block;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
}

.app-buttons .app-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.app-buttons .app-button img {
  width: 140px;
  height: auto;
  transition: transform 0.3s ease;
}

.app-buttons .app-button:hover img {
  transform: scale(1.05);
}

/* Payment & Security Section */
.payment-security {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.payment-icon {
  width: 48px;
  height: 32px;
  object-fit: contain;
  transition: all 0.3s ease;
  border-radius: 0.25rem;
  padding: 0.25rem;
  background: white;
  border: 1px solid #e2e8f0;
}

.payment-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.security-badge {
  transition: all 0.3s ease;
}

.security-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Footer Bottom */
.footer-bottom {
  background: #111827;
  border-top: 1px solid #374151;
}

.footer-meta span {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  margin-bottom: 0.5rem;
  color: #d1d5db;
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-form .form-control,
  .newsletter-form .btn {
    width: 100%;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .app-buttons {
    text-align: center;
  }
  
  .app-buttons .app-button img {
    width: 120px;
  }
  
  .payment-icons {
    justify-content: center;
  }
  
  .security-icons {
    justify-content: center !important;
  }
  
  .footer-meta {
    text-align: center !important;
    margin-top: 1rem;
  }
  
  .footer-meta span {
    display: block;
    margin: 0.25rem auto;
  }
}

@media (max-width: 576px) {
  .footer-main {
    padding: 3rem 0 !important;
  }
  
  .footer-widget {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .trust-badges .row {
    justify-content: center;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .modern-hero-slider {
    height: calc(50vh + 110px);
    min-height: 430px;
    margin-top: -110px;
    padding-top: 0;
  }
  
  .hero-slider-nav {
    padding: 0 1rem;
  }
  
  .slider-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }
}

@media (max-width: 991px) {
  .modern-hero-slider {
    height: calc(50vh + 150px);
    min-height: 470px;
    margin-top: -150px; /* Mobile header with search */
    padding-top: 0;
  }
  
  .hero-slide-content {
    padding-top: 170px; /* Mobile header height + extra space */
  }
  
  .hero-slider-nav {
    padding: 0 1rem;
  }
  
  .slider-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .modern-nav-links {
    display: none;
  }
  
  .modern-hero-slider {
    height: calc(45vh + 130px);
    min-height: 450px;
    margin-top: -130px; /* Mobile header without search */
    padding-top: 0;
  }
  
  .hero-slide-content {
    padding-top: 150px; /* Mobile header height + extra space */
  }
  
  .hero-slide-bg {
    background-attachment: scroll;
    transform: scale(1);
  }
  
  .hero-slide.active .hero-slide-bg {
    transform: scale(1);
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.15;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-modern {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .hero-slider-nav {
    padding: 0 0.5rem;
  }
  
  .slider-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .hero-slider-indicators {
    bottom: 1rem;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 576px) {
  .modern-hero-slider {
    height: calc(45vh + 110px);
    min-height: 430px;
    margin-top: -110px; /* Small mobile header */
    padding-top: 0;
  }
  
  .hero-slide-content {
    padding-top: 130px; /* Small mobile header height + extra space */
    padding-bottom: 1rem;
  }
  
  .hero-slide-bg {
    background-attachment: scroll;
    background-position: center center;
  }
  
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  .btn-modern {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    max-width: 280px;
  }
  
  .hero-slider-nav {
    display: none;
  }
  
  .hero-slider-indicators {
    bottom: 1rem;
    gap: 0.5rem;
  }
  
  .indicator {
    width: 8px;
    height: 8px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}