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

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary: #10b981;
  --accent: #f59e0b;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e2e8f0;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

ul {
  list-style: none;
}

button, input {
  font-family: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

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

/* =========================================
   1. TOP BAR
   ========================================= */
.top-bar {
  background: #0f172a;
  color: white;
  font-size: 13px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

/* =========================================
   2. HEADER & NAV
   ========================================= */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.logo-text span {
  color: var(--primary);
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
  background: white;
}

.search-bar input {
  flex: 1;
  background: transparent;
  padding: 8px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar button {
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-bar button:hover {
  background: var(--primary-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-actions a, .nav-actions button {
  color: var(--text-dark);
  font-size: 1.25rem;
  position: relative;
  transition: var(--transition);
}

.nav-actions a:hover, .nav-actions button:hover {
  color: var(--primary);
}

.cart-btn .badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: var(--text-dark);
}

/* =========================================
   3. CATEGORY NAV
   ========================================= */
.category-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 54px;
}

.cat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  position: relative;
}

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

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

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

/* =========================================
   4. MOBILE MENU
   ========================================= */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background: white;
  z-index: 1100;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(320px);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   5. CART PANEL
   ========================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: white;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-panel.active {
  transform: translateX(-100%);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--bg-light);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cart-item-info p {
  color: var(--primary);
  font-weight: 700;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-light);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  width: fit-content;
  margin-top: 8px;
}

.qty-control button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-dark);
}

.qty-control input {
  width: 24px;
  text-align: center;
  background: transparent;
  font-weight: 600;
}

.cart-item-delete {
  color: #ef4444;
  padding: 8px;
  opacity: 0.6;
  transition: var(--transition);
}

.cart-item-delete:hover {
  opacity: 1;
  background: #fef2f2;
  border-radius: 50%;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-light);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.cart-summary-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 16px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-light);
}

.cart-footer .btn-primary {
  width: 100%;
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: var(--bg-white);
}

.hero .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.hero .shape-1 {
  width: 400px;
  height: 400px;
  background: rgba(14, 165, 233, 0.15);
  top: -100px;
  right: -100px;
}

.hero .shape-2 {
  width: 300px;
  height: 300px;
  background: rgba(16, 185, 129, 0.15);
  bottom: -50px;
  left: -50px;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-dark);
}

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

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat-item h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

.hero-visual {
  position: relative;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

.floating-card:nth-child(2) { top: 10%; left: -10%; animation-delay: 0s; }
.floating-card:nth-child(3) { bottom: 20%; right: -10%; animation-delay: 1.5s; }
.floating-card:nth-child(4) { bottom: -5%; left: 10%; animation-delay: 3s; }

.fc-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.fc-icon.green { background: var(--secondary); }
.fc-icon.blue { background: var(--primary); }
.fc-icon.orange { background: var(--accent); }

.floating-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.floating-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* =========================================
   7. TRUST BADGES
   ========================================= */
.trust-badges {
  padding: 48px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.trust-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  background: white;
}

.trust-item i {
  font-size: 2rem;
  color: var(--primary);
}

.trust-item h4 {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* =========================================
   8. CATEGORIES
   ========================================= */
.categories {
  padding: 80px 0;
}

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

.category-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 32px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 165, 233, 0.2);
}

.cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(16, 185, 129, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.75rem;
  color: var(--primary);
  transition: var(--transition);
}

.category-card:hover .cat-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.category-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* =========================================
   9. PRODUCTS
   ========================================= */
.products {
  padding: 80px 0;
  background: white;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-light);
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

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

.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border-light);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.product-img-wrap {
  position: relative;
  height: 240px;
  background: var(--bg-light);
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  z-index: 2;
}

.badge-hot { background: #ef4444; }
.badge-new { background: var(--primary); }
.badge-sale { background: var(--accent); }

.product-actions-overlay {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.product-card:hover .product-actions-overlay {
  opacity: 1;
  transform: translateY(0);
}

.pao-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.product-info {
  padding: 24px;
}

.product-category-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  color: #fbbf24;
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-rating span {
  color: var(--text-muted);
  margin-left: 4px;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.product-price-old {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add-cart {
  width: 100%;
  background: var(--bg-light);
  color: var(--primary);
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.product-card:hover .btn-add-cart {
  background: var(--primary);
  color: white;
}

/* =========================================
   10. PRESCRIPTION
   ========================================= */
.prescription {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary), #0d9488);
  position: relative;
  overflow: hidden;
}

.prescription-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.prescription h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.presc-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 48px 32px;
  text-align: center;
  background: var(--bg-light);
  transition: var(--transition);
  cursor: pointer;
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.05);
}

.upload-area i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.phone-input {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin: 24px 0;
  font-size: 1rem;
  transition: var(--transition);
}

.phone-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* =========================================
   11. BLOG
   ========================================= */
.blog-section {
  padding: 80px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.blog-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.blog-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.blog-content {
  padding: 24px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  transition: var(--transition);
}

.blog-read-more:hover {
  gap: 12px;
}

/* =========================================
   12. TESTIMONIALS
   ========================================= */
.testimonials {
  padding: 80px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: var(--bg-light);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 4rem;
  font-family: serif;
  color: rgba(14, 165, 233, 0.1);
  line-height: 1;
}

.testimonial-card .rating {
  color: #fbbf24;
  margin-bottom: 16px;
}

.testimonial-card .quote {
  font-size: 1.125rem;
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.test-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.test-author-info h5 {
  font-size: 1rem;
  font-weight: 700;
}

.test-author-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* =========================================
   13. NEWSLETTER
   ========================================= */
.newsletter {
  padding: 80px 0;
}

.newsletter-box {
  background: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  color: white;
  position: relative;
  overflow: hidden;
}

.newsletter-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,0.3) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
}

.newsletter-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-text p {
  color: #94a3b8;
  font-size: 1.125rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
}

/* =========================================
   14. FOOTER
   ========================================= */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding-top: 80px;
}

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

.footer-brand .logo-text {
  color: white;
  margin-bottom: 24px;
  display: block;
}

.footer-brand p {
  margin-bottom: 32px;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 12px;
}

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

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links h4 {
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-contact i {
  color: var(--primary);
  font-size: 1.25rem;
  margin-top: 4px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

/* =========================================
   15. QUICK VIEW MODAL
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  color: var(--text-muted);
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-dark);
  transform: rotate(90deg);
}

.qv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px;
}

.qv-image {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qv-image img {
  max-width: 100%;
}

.qv-info h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.qv-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 24px 0;
}

/* =========================================
   16. CHAT WIDGET
   ========================================= */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 380px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.chat-widget.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background: var(--primary);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h4 {
  font-size: 1.125rem;
  font-weight: 700;
}

.chat-body {
  height: 350px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-light);
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  max-width: 85%;
}

.chat-message.bot {
  align-self: flex-start;
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.chat-message.user .chat-msg-avatar {
  background: var(--text-dark);
}

.chat-msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.bot .chat-msg-bubble {
  background: white;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.user .chat-msg-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chat-suggestions span {
  padding: 6px 12px;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.chat-suggestions span:hover {
  background: var(--primary);
  color: white;
}

.chat-footer {
  padding: 16px;
  background: white;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 12px;
}

.chat-footer input {
  flex: 1;
  background: var(--bg-light);
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
}

.chat-footer button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chat-footer button:hover {
  background: var(--primary-dark);
}

.chat-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  z-index: 1500;
  transition: var(--transition);
}

.chat-fab:hover {
  transform: scale(1.1);
}

.chat-fab-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* =========================================
   17. TOAST NOTIFICATIONS
   ========================================= */
.toast-container {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 300px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(0);
}

.toast.success { border-left: 4px solid var(--secondary); }
.toast.error { border-left: 4px solid #ef4444; }

.toast i { font-size: 1.25rem; }
.toast.success i { color: var(--secondary); }
.toast.error i { color: #ef4444; }

/* =========================================
   18. BACK TO TOP
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 110px; /* offset for chat fab */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--text-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
}

/* =========================================
   19. SCROLL ANIMATIONS
   ========================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   20. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .prescription-box { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-box { flex-direction: column; text-align: center; padding: 48px 32px; }
  .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .qv-grid { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .floating-card { display: none; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.25rem; }
  .section-header h2 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-panel { width: 100%; right: -100%; }
}
