/* NKart Medical E-commerce Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary-blue: #1b619f;
  --primary-blue-dark: #1A60A1;
  --accent-blue: #2990ED;
  --accent-green: #80CC2C;
  --text-dark: #2C2C2C;
  --white: #FFFFFF;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
}

/* Base Components */
.nkart-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(27, 97, 159, 0.08);
  transition: all 0.3s ease;
}

.nkart-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(27, 97, 159, 0.12);
}

.nkart-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: var(--primary-blue);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 4px rgba(27, 97, 159, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
}

.nkart-btn-primary:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 97, 159, 0.3);
}

.nkart-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  background: var(--white);
}

.nkart-btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-1px);
}

.nkart-link {
  color: var(--primary-blue);
  font-weight: 600;
  transition: color 0.3s ease;
  text-decoration: none;
}

.nkart-link:hover {
  color: var(--accent-blue);
}

/* Hero Section */
.hero-card {
  background: var(--primary-blue);
  border-radius: 16px;
  padding: 2rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-50px) translateY(-50px); }
}

/* Product Cards */
.nkart-product-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nkart-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-green);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nkart-product-card:hover::before {
  transform: scaleX(1);
}

.nkart-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(27, 97, 159, 0.15);
}

.nkart-product-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Category Chips */
.nkart-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.nkart-chip:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 97, 159, 0.15);
}

.nkart-chip-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--accent-green);
  color: var(--white);
}

.nkart-chip-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
}

/* Medical Icons */
.medical-icon {
  width: 2rem;
  height: 2rem;
  background: var(--accent-green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.875rem;
}

/* Feature Cards */
.feature-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(27, 97, 159, 0.15);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.feature-icon.blue {
  background: var(--primary-blue);
}

.feature-icon.green {
  background: var(--accent-green);
}

.feature-icon.purple {
  background: #8b5cf6;
}

/* Status Badges */
.nkart-status-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.nkart-status-order-placed {
  background: #fef3c7;
  color: #92400e;
}

.nkart-status-delivered {
  background: #d1fae5;
  color: #065f46;
}

/* Utility Classes */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: 'Poppins', sans-serif;
}

.text-primary {
  color: var(--primary-blue);
}

.text-accent {
  color: var(--accent-blue);
}

.bg-primary {
  background-color: var(--primary-blue);
}

.bg-accent {
  background-color: var(--accent-green);
}

/* Trust Indicators */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(128, 204, 44, 0.1);
  border: 1px solid var(--accent-green);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green);
}

/* Animations */
@keyframes pulse-medical {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse-medical {
  animation: pulse-medical 2s infinite;
}

/* Prescription Upload Styling */
.prescription-upload {
  border: 2px dashed var(--primary-blue);
  border-radius: 12px;
  background: rgba(27, 97, 159, 0.02);
  transition: all 0.3s ease;
}

.prescription-upload:hover {
  border-color: var(--accent-blue);
  background: rgba(27, 97, 159, 0.05);
}



/* ===============================
   NEW HOME PAGE UI UPGRADE
================================ */

.nkart-home {
  background: linear-gradient(to bottom, #eaf4ff 0%, #f8fbff 300px, #ffffff 600px);
  border-radius: 24px;
  padding-top: 2rem;
}

/* Hero Section */
.nkart-hero-wrapper {
  background: linear-gradient(135deg, #dff3ff 0%, #cbe9ff 100%);
  border-radius: 24px;
  padding: 4rem 3rem;
  box-shadow: 0 20px 60px rgba(41, 144, 237, 0.15);
}

/* Feature Row */
.nkart-feature-row {
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

.nkart-feature-row .feature-card {
  background: white;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  transition: all 0.4s ease;
}

.nkart-feature-row .feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

/* Stats Section */
.nkart-stats-row {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.nkart-stats-row h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
}

/* Category Cards Enhancement */
.category-card-modern {
  border-radius: 20px;
  overflow: hidden;
  background: white;
  transition: all 0.4s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.category-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* FAQ Section */
.nkart-faq-section {
  background: linear-gradient(135deg, #eaf4ff 0%, #ffffff 100%);
  padding: 4rem 3rem;
  border-radius: 24px;
}

/* Section Title Upgrade */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Soft Floating Feel */
.nkart-card,
.feature-card,
.category-card-modern {
  backdrop-filter: blur(6px);
}


/* ===============================
   2026 MODERN ECOMMERCE REDESIGN
================================ */

/* Smooth Accordion Animation */
[data-accordion-panel] {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-accordion-panel].active {
  max-height: 500px;
}

.nkart-accordion-icon {
  transition: transform 0.3s ease;
}

[data-accordion-button].active .nkart-accordion-icon {
  transform: rotate(45deg);
}

/* Gradient Text Animation */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Floating Animation for Hero */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float-gentle 3s ease-in-out infinite;
}

/* Pulse Animation for Badges */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* Smooth Scale on Hover */
.hover-scale {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Image Zoom Effect */
.image-zoom-container {
  overflow: hidden;
}

.image-zoom-container img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-zoom-container:hover img {
  transform: scale(1.1);
}

/* Smooth Shadow Transitions */
.shadow-smooth {
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Lift Effect */
.card-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Gradient Overlay Animation */
.gradient-overlay {
  position: relative;
  overflow: hidden;
}

.gradient-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gradient-overlay:hover::after {
  opacity: 1;
}

/* Smooth Button Transitions */
button, a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading Skeleton */
@keyframes skeleton-loading {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
  background-size: 200px 100%;
  animation: skeleton-loading 1.5s infinite;
}

/* Backdrop Blur Enhancement */
.backdrop-blur-premium {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Responsive Typography Scale */
@media (max-width: 640px) {
  .section-title {
    font-size: 1.75rem;
  }
}

/* Performance Optimization */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  image-rendering: -webkit-optimize-contrast;
}
