hey-pharmacist-ecommerce 1.1.41 → 1.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/index.js +370 -370
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +370 -370
  4. package/dist/index.mjs.map +1 -1
  5. package/package.json +1 -1
  6. package/src/components/AccountAddressesTab.tsx +9 -9
  7. package/src/components/AccountOrdersTab.tsx +11 -11
  8. package/src/components/AccountOverviewTab.tsx +21 -21
  9. package/src/components/AccountPaymentTab.tsx +2 -2
  10. package/src/components/AccountReviewsTab.tsx +1 -1
  11. package/src/components/AccountSettingsTab.tsx +6 -6
  12. package/src/components/AddressFormModal.tsx +2 -2
  13. package/src/components/CartItem.tsx +2 -2
  14. package/src/components/FilterChips.tsx +7 -7
  15. package/src/components/Footer.tsx +9 -9
  16. package/src/components/Header.tsx +7 -7
  17. package/src/components/NotificationBell.tsx +3 -3
  18. package/src/components/NotificationDrawer.tsx +1 -1
  19. package/src/components/NotificationModal.tsx +1 -1
  20. package/src/components/OrderCard.tsx +2 -2
  21. package/src/components/ProductCard.tsx +6 -6
  22. package/src/components/QuickViewModal.tsx +23 -23
  23. package/src/components/ReviewCard.tsx +4 -4
  24. package/src/components/TabNavigation.tsx +2 -2
  25. package/src/components/ui/Badge.tsx +2 -2
  26. package/src/components/ui/Button.tsx +3 -3
  27. package/src/components/ui/ConfirmModal.tsx +3 -3
  28. package/src/components/ui/Input.tsx +1 -1
  29. package/src/providers/ThemeProvider.tsx +2 -2
  30. package/src/screens/AddressesScreen.tsx +6 -6
  31. package/src/screens/CartScreen.tsx +19 -19
  32. package/src/screens/ChangePasswordScreen.tsx +2 -2
  33. package/src/screens/CheckoutScreen.tsx +21 -21
  34. package/src/screens/CurrentOrdersScreen.tsx +4 -4
  35. package/src/screens/EditProfileScreen.tsx +1 -1
  36. package/src/screens/ForgotPasswordScreen.tsx +11 -11
  37. package/src/screens/LoginScreen.tsx +12 -12
  38. package/src/screens/OrderDetailScreen.tsx +30 -30
  39. package/src/screens/OrdersScreen.tsx +3 -3
  40. package/src/screens/ProductDetailScreen.tsx +48 -48
  41. package/src/screens/ProfileScreen.tsx +2 -2
  42. package/src/screens/RegisterScreen.tsx +15 -15
  43. package/src/screens/ResetPasswordScreen.tsx +14 -14
  44. package/src/screens/SearchResultsScreen.tsx +7 -7
  45. package/src/screens/ShopScreen.tsx +50 -50
  46. package/src/screens/WishlistScreen.tsx +22 -22
  47. package/src/styles/globals.css +43 -43
@@ -180,7 +180,7 @@ export function ProductCard({
180
180
  return (
181
181
  <>
182
182
  <motion.div
183
- className="bg-white rounded-[16px] overflow-hidden border-2 border-gray-100 hover:border-secondary hover:shadow-lg transition-all duration-300 group h-full flex flex-col"
183
+ className="bg-white rounded-[16px] overflow-hidden border-2 border-gray-100 hover:border-hsecondary hover:shadow-lg transition-all duration-300 group h-full flex flex-col"
184
184
  whileHover={{ y: -4 }}
185
185
  onMouseEnter={() => setIsHovered(true)}
186
186
  onMouseLeave={() => setIsHovered(false)}
@@ -239,7 +239,7 @@ export function ProductCard({
239
239
 
240
240
  </div>
241
241
  <div className="mb-1">
242
- <p className="font-['Poppins',sans-serif] text-xs text-secondary uppercase tracking-wide font-medium">
242
+ <p className="font-['Poppins',sans-serif] text-xs text-hsecondary uppercase tracking-wide font-medium">
243
243
  {product.brand}
244
244
  </p>
245
245
  </div>
@@ -274,7 +274,7 @@ export function ProductCard({
274
274
 
275
275
  {/* Price */}
276
276
  <div className="flex items-center gap-1.5 mb-3">
277
- <span className="font-['Poppins',sans-serif] font-bold text-md text-primary-600">
277
+ <span className="font-['Poppins',sans-serif] font-bold text-md text-hprimary-600">
278
278
  ${displayFinalPrice.toFixed(2)}
279
279
  </span>
280
280
  {displayIsDiscounted && (
@@ -304,8 +304,8 @@ export function ProductCard({
304
304
  setIsImageLoaded(false);
305
305
  }}
306
306
  className={`relative w-8 h-8 rounded-full overflow-hidden border-2 transition-all ${selectedVariantId === variant.variantId
307
- ? 'border-primary-500 ring-2 ring-primary-200'
308
- : 'border-gray-200 hover:border-primary-300'
307
+ ? 'border-hprimary-500 ring-2 ring-hprimary-200'
308
+ : 'border-gray-200 hover:border-hprimary-300'
309
309
  }`}
310
310
  aria-label={`Select ${variant.variantName || 'variant'}`}
311
311
  >
@@ -358,7 +358,7 @@ export function ProductCard({
358
358
  }
359
359
  }}
360
360
  disabled={isAddingToCart || (variantImages.length > 0 && !selectedVariantId) || displayInventoryCount === 0}
361
- className="w-full font-['Poppins',sans-serif] font-medium text-[11px] px-3 py-2 rounded-full bg-secondary text-white hover:bg-secondary/80 hover:shadow-lg transition-all duration-300 flex items-center justify-center gap-1.5 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer"
361
+ className="w-full font-['Poppins',sans-serif] font-medium text-[11px] px-3 py-2 rounded-full bg-hsecondary text-white hover:bg-hsecondary/80 hover:shadow-lg transition-all duration-300 flex items-center justify-center gap-1.5 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer"
362
362
  >
363
363
  <ShoppingCart className="h-4 w-4" />
364
364
  {displayInventoryCount === 0 ? 'Out of Stock' : 'Add to Cart'}
@@ -74,10 +74,10 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
74
74
  {/* Header */}
75
75
  <div className="flex items-start justify-between mb-6">
76
76
  <div>
77
- <p className="font-['Poppins',sans-serif] text-[11px] text-primary uppercase tracking-wide font-medium mb-2">
77
+ <p className="font-['Poppins',sans-serif] text-[11px] text-hprimary uppercase tracking-wide font-medium mb-2">
78
78
  {product.brand}
79
79
  </p>
80
- <h2 className="font-['Poppins',sans-serif] font-semibold text-secondary tracking-[-1px]">
80
+ <h2 className="font-['Poppins',sans-serif] font-semibold text-hsecondary tracking-[-1px]">
81
81
  {displayName}
82
82
  </h2>
83
83
 
@@ -88,13 +88,13 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
88
88
  <Star
89
89
  key={i}
90
90
  className={`size-4 ${i < Math.floor(product.summary?.averageRating || 0)
91
- ? 'text-accent fill-accent'
91
+ ? 'text-haccent fill-accent'
92
92
  : 'text-gray-300'
93
93
  }`}
94
94
  />
95
95
  ))}
96
96
  </div>
97
- <span className="font-['Poppins',sans-serif] text-[13px] text-muted">
97
+ <span className="font-['Poppins',sans-serif] text-[13px] text-hmuted">
98
98
  {product.summary?.averageRating || 0} ({product.summary?.reviewCount || 0} reviews)
99
99
  </span>
100
100
  </div>
@@ -103,7 +103,7 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
103
103
  onClick={onClose}
104
104
  className="p-2 hover:bg-gray-100 rounded-full transition-colors"
105
105
  >
106
- <X className="size-6 text-muted" />
106
+ <X className="size-6 text-hmuted" />
107
107
  </button>
108
108
  </div>
109
109
 
@@ -119,14 +119,14 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
119
119
  {/* Badges */}
120
120
  <div className="absolute top-4 left-4 flex flex-col gap-2">
121
121
  {isDiscounted && (
122
- <div className="bg-accent text-white rounded-full px-3 py-1.5">
122
+ <div className="bg-haccent text-white rounded-full px-3 py-1.5">
123
123
  <span className="font-['Poppins',sans-serif] font-bold text-[11px] uppercase">
124
124
  -{discountAmount}%
125
125
  </span>
126
126
  </div>
127
127
  )}
128
128
  {/* {product.bestseller && (
129
- <div className="bg-secondary text-white rounded-full px-3 py-1.5">
129
+ <div className="bg-hsecondary text-white rounded-full px-3 py-1.5">
130
130
  <span className="font-['Poppins',sans-serif] font-semibold text-[10px] uppercase">
131
131
  Bestseller
132
132
  </span>
@@ -141,7 +141,7 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
141
141
  {selectedVariant.media.map((image: any, index: any) => (
142
142
  <div
143
143
  key={index}
144
- className={`aspect-square rounded-xl overflow-hidden cursor-pointer transition-opacity ${selectedImageIndex === index ? 'ring-2 ring-primary' : 'bg-gray-50 hover:opacity-75'}`}
144
+ className={`aspect-square rounded-xl overflow-hidden cursor-pointer transition-opacity ${selectedImageIndex === index ? 'ring-2 ring-hprimary' : 'bg-gray-50 hover:opacity-75'}`}
145
145
  onClick={() => setSelectedImageIndex(index)}
146
146
  >
147
147
  <img
@@ -159,11 +159,11 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
159
159
  <div className="flex flex-col">
160
160
  {/* Price */}
161
161
  <div className="flex items-center gap-3 mb-4">
162
- <span className="font-['Poppins',sans-serif] font-bold text-[32px] text-accent">
162
+ <span className="font-['Poppins',sans-serif] font-bold text-[32px] text-haccent">
163
163
  ${displayPrice.toFixed(2)}
164
164
  </span>
165
165
  {isDiscounted && (
166
- <span className="font-['Poppins',sans-serif] text-[20px] text-muted line-through">
166
+ <span className="font-['Poppins',sans-serif] text-[20px] text-hmuted line-through">
167
167
  ${displayOriginalPrice.toFixed(2)}
168
168
  </span>
169
169
  )}
@@ -176,7 +176,7 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
176
176
  Out of Stock
177
177
  </span>
178
178
  ) : selectedVariant.inventoryCount <= 10 ? (
179
- <span className="font-['Poppins',sans-serif] text-[12px] text-primary font-medium flex items-center gap-1">
179
+ <span className="font-['Poppins',sans-serif] text-[12px] text-hprimary font-medium flex items-center gap-1">
180
180
  <Package className="size-3" />
181
181
  Only {selectedVariant.inventoryCount} left in stock
182
182
  </span>
@@ -190,14 +190,14 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
190
190
 
191
191
  {/* Description */}
192
192
  <div
193
- className="font-['Poppins',sans-serif] text-[14px] text-muted leading-[1.7] mb-6 max-w-full overflow-hidden break-words"
193
+ className="font-['Poppins',sans-serif] text-[14px] text-hmuted leading-[1.7] mb-6 max-w-full overflow-hidden break-words"
194
194
  dangerouslySetInnerHTML={{ __html: product.description }}
195
195
  />
196
196
 
197
197
  {/* Color Selection */}
198
198
  <div className="mb-6">
199
- <h3 className="font-['Poppins',sans-serif] font-semibold text-[13px] text-secondary mb-3">
200
- Selected Variant: <span className="font-normal text-muted">{product.variants[selectedVariantIndex].name}</span>
199
+ <h3 className="font-['Poppins',sans-serif] font-semibold text-[13px] text-hsecondary mb-3">
200
+ Selected Variant: <span className="font-normal text-hmuted">{product.variants[selectedVariantIndex].name}</span>
201
201
  </h3>
202
202
  <div className="flex flex-wrap gap-3">
203
203
  {product.variants.map((variant: any, index: any) => (
@@ -209,8 +209,8 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
209
209
  setSelectedImageIndex(0); // Reset selected image index when variant changes
210
210
  }}
211
211
  className={`size-10 rounded-full border-2 transition-all ${selectedVariantIndex === index
212
- ? 'border-primary scale-110'
213
- : 'border-gray-200 hover:border-primary-50'
212
+ ? 'border-hprimary scale-110'
213
+ : 'border-gray-200 hover:border-hprimary-50'
214
214
  }`}
215
215
  style={{ backgroundColor: variant.colorHex }}
216
216
  title={variant.color}
@@ -231,8 +231,8 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
231
231
  <ul className="space-y-2">
232
232
  {product.tags.slice(0, 3).map((feature: any, index: any) => (
233
233
  <li key={index} className="flex items-start gap-2">
234
- <Check className="size-4 text-primary shrink-0 mt-0.5" />
235
- <span className="font-['Poppins',sans-serif] text-[12px] text-muted">
234
+ <Check className="size-4 text-hprimary shrink-0 mt-0.5" />
235
+ <span className="font-['Poppins',sans-serif] text-[12px] text-hmuted">
236
236
  {feature}
237
237
  </span>
238
238
  </li>
@@ -242,7 +242,7 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
242
242
 
243
243
  {/* Quantity Selector */}
244
244
  <div className="mb-6">
245
- <h3 className="font-['Poppins',sans-serif] font-semibold text-[13px] text-secondary mb-3">
245
+ <h3 className="font-['Poppins',sans-serif] font-semibold text-[13px] text-hsecondary mb-3">
246
246
  Quantity
247
247
  </h3>
248
248
  <div className="flex items-center gap-4">
@@ -251,7 +251,7 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
251
251
  disabled={quantity <= 1}
252
252
  className="p-2 rounded-full border border-gray-200 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
253
253
  >
254
- <Minus className="size-4 text-secondary" />
254
+ <Minus className="size-4 text-hsecondary" />
255
255
  </button>
256
256
  <span className="w-8 text-center font-medium">{quantity}</span>
257
257
  <button
@@ -259,7 +259,7 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
259
259
  disabled={quantity >= (selectedVariant.inventoryCount || 10)}
260
260
  className="p-2 rounded-full border border-gray-200 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
261
261
  >
262
- <Plus className="size-4 text-secondary" />
262
+ <Plus className="size-4 text-hsecondary" />
263
263
  </button>
264
264
  </div>
265
265
  </div>
@@ -271,7 +271,7 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
271
271
  disabled={addedToCart || selectedVariant.inventoryCount === 0}
272
272
  className={`w-full font-['Poppins',sans-serif] font-medium text-[14px] px-6 py-4 rounded-full transition-all duration-300 flex items-center justify-center gap-3 ${addedToCart
273
273
  ? 'bg-green-500 text-white'
274
- : 'bg-accent text-white hover:bg-[#d66f45] hover:shadow-lg disabled:opacity-50 disabled:cursor-not-allowed'
274
+ : 'bg-haccent text-white hover:bg-[#d66f45] hover:shadow-lg disabled:opacity-50 disabled:cursor-not-allowed'
275
275
  }`}
276
276
  >
277
277
  {isAddingToCart ? (
@@ -301,7 +301,7 @@ export function QuickViewModal({ product, onClose, onNavigateToProduct }: QuickV
301
301
  onClose();
302
302
  // onNavigateToProduct?.(product._id || product.id);
303
303
  }}
304
- className="w-full font-['Poppins',sans-serif] font-medium text-[13px] px-6 py-3 rounded-full bg-white text-secondary border-2 border-primary hover:bg-gray-50 transition-all flex items-center justify-center gap-2"
304
+ className="w-full font-['Poppins',sans-serif] font-medium text-[13px] px-6 py-3 rounded-full bg-white text-hsecondary border-2 border-hprimary hover:bg-gray-50 transition-all flex items-center justify-center gap-2"
305
305
  >
306
306
  View Full Details
307
307
  <ExternalLink className="size-4" />
@@ -19,8 +19,8 @@ export function ReviewCard({ review, showProductInfo = false }: ReviewCardProps)
19
19
  <div className="border border-gray-200 rounded-lg p-4 bg-white">
20
20
  <div className="flex items-start justify-between mb-3">
21
21
  <div className="flex items-center gap-3">
22
- <div className="w-10 h-10 bg-secondary/10 rounded-full flex items-center justify-center">
23
- <User className="size-5 text-secondary" />
22
+ <div className="w-10 h-10 bg-hsecondary/10 rounded-full flex items-center justify-center">
23
+ <User className="size-5 text-hsecondary" />
24
24
  </div>
25
25
  <div>
26
26
  <p className="font-medium text-gray-900">Customer Review</p>
@@ -41,9 +41,9 @@ export function ReviewCard({ review, showProductInfo = false }: ReviewCardProps)
41
41
  <p className="text-gray-700 text-sm leading-relaxed mb-3">{review.review}</p>
42
42
 
43
43
  {review.reply && (
44
- <div className="mt-4 pl-4 border-l-2 border-secondary bg-gray-50 p-3 rounded">
44
+ <div className="mt-4 pl-4 border-l-2 border-hsecondary bg-gray-50 p-3 rounded">
45
45
  <div className="flex items-center gap-2 mb-2">
46
- <MessageCircle className="size-4 text-secondary" />
46
+ <MessageCircle className="size-4 text-hsecondary" />
47
47
  <p className="text-xs font-medium text-gray-900">Store Response</p>
48
48
  {replyDate && (
49
49
  <p className="text-xs text-gray-500">
@@ -31,8 +31,8 @@ export function TabNavigation({ tabs, activeTab, onTabChange }: TabNavigationPro
31
31
  flex items-center gap-2 px-6 py-3 mt-2 text-sm font-medium whitespace-nowrap
32
32
  border-b-2 transition-colors
33
33
  ${isActive
34
- ? 'bg-secondary text-white rounded-xl hover:transition-all hover:duration-300 hover:ease-in-out hover:-translate-y-1'
35
- : 'bg-white text-muted rounded-xl hover:text-secondary hover:transition-all hover:duration-150 hover:ease-in-out hover:-translate-y-1'
34
+ ? 'bg-hsecondary text-white rounded-xl hover:transition-all hover:duration-300 hover:ease-in-out hover:-translate-y-1'
35
+ : 'bg-white text-hmuted rounded-xl hover:text-hsecondary hover:transition-all hover:duration-150 hover:ease-in-out hover:-translate-y-1'
36
36
  }
37
37
  `}
38
38
  aria-current={isActive ? 'page' : undefined}
@@ -9,8 +9,8 @@ interface BadgeProps {
9
9
 
10
10
  export function Badge({ children, variant = 'primary', size = 'md', className = '' }: BadgeProps) {
11
11
  const variants = {
12
- primary: 'bg-primary-100 text-primary-700 border-primary-200',
13
- secondary: 'bg-secondary-100 text-secondary-700 border-secondary-200',
12
+ primary: 'bg-hprimary-100 text-hprimary-700 border-hprimary-200',
13
+ secondary: 'bg-hsecondary-100 text-hsecondary-700 border-hsecondary-200',
14
14
  success: 'bg-green-100 text-green-700 border-green-200',
15
15
  warning: 'bg-yellow-100 text-yellow-700 border-yellow-200',
16
16
  danger: 'bg-red-100 text-red-700 border-red-200',
@@ -23,12 +23,12 @@ export function Button({
23
23
  children,
24
24
  ...props
25
25
  }: ButtonProps) {
26
- const baseStyles = 'font-medium rounded-full transition-all duration-200 inline-flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed focus:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500 hover:cursor-pointer';
26
+ const baseStyles = 'font-medium rounded-full transition-all duration-200 inline-flex items-center justify-center gap-2 disabled:opacity-50 disabled:cursor-not-allowed focus:outline-hidden focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-hprimary-500 hover:cursor-pointer';
27
27
 
28
28
  const variants = {
29
29
  primary: 'bg-[#0E172B] text-white hover:bg-[#0E172B]/80 shadow-lg shadow-[#0E172B]/30 hover:shadow-xl hover:shadow-[#0E172B]/40',
30
- secondary: 'bg-secondary-600 text-white hover:bg-secondary-700 shadow-lg shadow-secondary-500/30 hover:shadow-xl hover:shadow-secondary-500/40',
31
- 'outline-solid': 'border-2 border-primary-600 text-primary-600 hover:bg-primary-50',
30
+ secondary: 'bg-hsecondary-600 text-white hover:bg-hsecondary-700 shadow-lg shadow-secondary-500/30 hover:shadow-xl hover:shadow-secondary-500/40',
31
+ 'outline-solid': 'border-2 border-hprimary-600 text-hprimary-600 hover:bg-hprimary-50',
32
32
  ghost: 'text-gray-700 hover:bg-gray-100',
33
33
  };
34
34
 
@@ -42,7 +42,7 @@ export function ConfirmModal({
42
42
  button: 'primary' as const,
43
43
  },
44
44
  info: {
45
- icon: 'text-secondary bg-blue-100',
45
+ icon: 'text-hsecondary bg-blue-100',
46
46
  button: 'primary' as const,
47
47
  },
48
48
  };
@@ -58,10 +58,10 @@ export function ConfirmModal({
58
58
  </div>
59
59
 
60
60
  {/* Title */}
61
- <h3 className="text-xl font-semibold text-secondary mb-2">{title}</h3>
61
+ <h3 className="text-xl font-semibold text-hsecondary mb-2">{title}</h3>
62
62
 
63
63
  {/* Message */}
64
- <p className="text-muted mb-6">{message}</p>
64
+ <p className="text-hmuted mb-6">{message}</p>
65
65
 
66
66
  {/* Actions */}
67
67
  <div className="flex gap-3 w-full justify-center">
@@ -21,7 +21,7 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(
21
21
  w-full px-4 py-3 rounded-lg border-2 transition-all duration-200
22
22
  ${error
23
23
  ? 'border-red-500 focus:border-red-600 focus:ring-red-500/20'
24
- : 'border-gray-200 focus:border-primary-500 focus:ring-primary-500/20'
24
+ : 'border-gray-200 focus:border-hprimary-500 focus:ring-hprimary-500/20'
25
25
  }
26
26
  focus:outline-hidden focus:ring-4
27
27
  placeholder:text-gray-400
@@ -41,7 +41,7 @@ export function ThemeProvider({ config, children }: ThemeProviderProps) {
41
41
  vars.push(`--hp-secondary: ${config.colors.secondary}`);
42
42
  vars.push(`--hp-accent: ${config.colors.accent}`);
43
43
  vars.push(`--hp-accent-dark: ${config.colors.accentDark}`);
44
- vars.push(`--hp-text-muted: ${config.colors.textMuted}`);
44
+ vars.push(`--hp-text-hmuted: ${config.colors.textMuted}`);
45
45
 
46
46
  // Shaded colors (namespaced)
47
47
  Object.entries(primaryShades).forEach(([shade, rgb]) => {
@@ -70,7 +70,7 @@ export function ThemeProvider({ config, children }: ThemeProviderProps) {
70
70
  root.style.setProperty('--hp-secondary', config.colors.secondary);
71
71
  root.style.setProperty('--hp-accent', config.colors.accent);
72
72
  root.style.setProperty('--hp-accent-dark', config.colors.accentDark);
73
- root.style.setProperty('--hp-text-muted', config.colors.textMuted);
73
+ root.style.setProperty('--hp-text-hmuted', config.colors.textMuted);
74
74
 
75
75
  // Set shaded color variables (namespaced)
76
76
  Object.entries(primaryShades).forEach(([shade, rgb]) => {
@@ -247,7 +247,7 @@ export function AddressesScreen() {
247
247
  </p>
248
248
  <div className="flex flex-wrap gap-3 text-xs text-slate-500">
249
249
  <span className="inline-flex items-center gap-2 rounded-full border border-slate-200 bg-slate-50 px-3 py-2">
250
- <Sparkles className="h-4 w-4 text-primary-600" />
250
+ <Sparkles className="h-4 w-4 text-hprimary-600" />
251
251
  Default: {defaultAddress ? defaultAddress.name : 'Not set'}
252
252
  </span>
253
253
  </div>
@@ -328,7 +328,7 @@ export function AddressesScreen() {
328
328
  key={address.id}
329
329
  initial={{ opacity: 0, y: 24 }}
330
330
  animate={{ opacity: 1, y: 0 }}
331
- className="group relative flex h-full flex-col rounded-3xl border border-slate-200 bg-white p-6 shadow-xs transition hover:-translate-y-1 hover:border-primary-200 hover:shadow-lg"
331
+ className="group relative flex h-full flex-col rounded-3xl border border-slate-200 bg-white p-6 shadow-xs transition hover:-translate-y-1 hover:border-hprimary-200 hover:shadow-lg"
332
332
  >
333
333
  {address.isDefault && (
334
334
  <span className="absolute right-6 top-6 inline-flex items-center gap-2 rounded-full bg-amber-100 px-3 py-1 text-xs font-semibold text-amber-700">
@@ -337,7 +337,7 @@ export function AddressesScreen() {
337
337
  </span>
338
338
  )}
339
339
  <div className="flex items-center gap-3">
340
- <span className="rounded-full bg-primary-50 p-3 text-primary-600">
340
+ <span className="rounded-full bg-hprimary-50 p-3 text-hprimary-600">
341
341
  <User className="h-5 w-5" />
342
342
  </span>
343
343
  <div>
@@ -362,7 +362,7 @@ export function AddressesScreen() {
362
362
  <button
363
363
  type="button"
364
364
  onClick={() => openEditModal(address)}
365
- className="inline-flex items-center gap-2 rounded-full border border-slate-200 px-3 py-1 text-sm font-medium text-slate-600 transition hover:border-primary-300 hover:text-primary-600"
365
+ className="inline-flex items-center gap-2 rounded-full border border-slate-200 px-3 py-1 text-sm font-medium text-slate-600 transition hover:border-hprimary-300 hover:text-hprimary-600"
366
366
  >
367
367
  <Edit3 className="h-4 w-4" />
368
368
  Edit
@@ -463,7 +463,7 @@ export function AddressesScreen() {
463
463
  <span className="text-sm font-semibold text-slate-700">Address type</span>
464
464
  <select
465
465
  {...register('addressType')}
466
- className="rounded-xl border border-slate-200 px-3 py-2 text-sm text-slate-700 focus:border-primary-400 focus:outline-hidden focus:ring-2 focus:ring-primary-500/20"
466
+ className="rounded-xl border border-slate-200 px-3 py-2 text-sm text-slate-700 focus:border-hprimary-400 focus:outline-hidden focus:ring-2 focus:ring-hprimary-500/20"
467
467
  >
468
468
  <option value="Shipping">Shipping</option>
469
469
  <option value="Billing">Billing</option>
@@ -475,7 +475,7 @@ export function AddressesScreen() {
475
475
  <input
476
476
  type="checkbox"
477
477
  {...register('isDefault')}
478
- className="h-4 w-4 rounded-sm border-primary-300 text-primary-600 focus:ring-primary-500"
478
+ className="h-4 w-4 rounded-sm border-hprimary-300 text-hprimary-600 focus:ring-hprimary-500"
479
479
  />
480
480
  </label>
481
481
  </div>
@@ -42,15 +42,15 @@ export function CartScreen() {
42
42
  >
43
43
  <div className="flex justify-center">
44
44
  <div className="rounded-full bg-gray-100 p-6">
45
- <ShoppingBag className="h-12 w-12 text-secondary" />
45
+ <ShoppingBag className="h-12 w-12 text-hsecondary" />
46
46
  </div>
47
47
  </div>
48
48
 
49
49
  <div className="space-y-2">
50
- <h2 className="text-2xl font-bold text-secondary">
50
+ <h2 className="text-2xl font-bold text-hsecondary">
51
51
  Your cart is empty
52
52
  </h2>
53
- <p className="text-muted">
53
+ <p className="text-hmuted">
54
54
  Start adding products to your cart to see them here.
55
55
  </p>
56
56
  </div>
@@ -59,7 +59,7 @@ export function CartScreen() {
59
59
  <button
60
60
  type="button"
61
61
  onClick={() => router.push(buildPath('/shop'))}
62
- className="rounded-xl border-2 border-primary bg-secondary text-white px-6 py-3 text-sm font-medium transition-colors flex items-center justify-center gap-2 hover:opacity-80"
62
+ className="rounded-xl border-2 border-hprimary bg-hsecondary text-white px-6 py-3 text-sm font-medium transition-colors flex items-center justify-center gap-2 hover:opacity-80"
63
63
  >
64
64
  Discover products
65
65
  <ArrowRight className="h-5 w-5" />
@@ -68,15 +68,15 @@ export function CartScreen() {
68
68
 
69
69
  <div className="mt-8 space-y-3 pt-6 border-t border-gray-200">
70
70
  <div className="flex items-start gap-3 text-sm text-slate-600">
71
- <CheckCircle2 className="h-5 w-5 text-secondary shrink-0 mt-0.5" />
71
+ <CheckCircle2 className="h-5 w-5 text-hsecondary shrink-0 mt-0.5" />
72
72
  <span>Free shipping on all orders</span>
73
73
  </div>
74
74
  <div className="flex items-start gap-3 text-sm text-slate-600">
75
- <CheckCircle2 className="h-5 w-5 text-secondary shrink-0 mt-0.5" />
75
+ <CheckCircle2 className="h-5 w-5 text-hsecondary shrink-0 mt-0.5" />
76
76
  <span>Easy returns within 30 days</span>
77
77
  </div>
78
78
  <div className="flex items-start gap-3 text-sm text-slate-600">
79
- <CheckCircle2 className="h-5 w-5 text-secondary shrink-0 mt-0.5" />
79
+ <CheckCircle2 className="h-5 w-5 text-hsecondary shrink-0 mt-0.5" />
80
80
  <span>Secure checkout process</span>
81
81
  </div>
82
82
  </div>
@@ -113,10 +113,10 @@ export function CartScreen() {
113
113
  <div className="container mx-auto px-4 py-8">
114
114
  {/* Header */}
115
115
  <div className="mb-12">
116
- <h1 className="font-['Poppins',sans-serif] font-semibold text-secondary tracking-[-2px] mb-2 text-4xl">
116
+ <h1 className="font-['Poppins',sans-serif] font-semibold text-hsecondary tracking-[-2px] mb-2 text-4xl">
117
117
  Shopping Cart
118
118
  </h1>
119
- <p className="font-['Poppins',sans-serif] text-[16px] text-muted">
119
+ <p className="font-['Poppins',sans-serif] text-[16px] text-hmuted">
120
120
  {itemCount} {itemCount === 1 ? 'item' : 'items'} in your cart
121
121
  </p>
122
122
  </div>
@@ -150,13 +150,13 @@ export function CartScreen() {
150
150
  transition={{ delay: 0.1 }}
151
151
  className="space-y-6 lg:sticky lg:top-24 h-fit lg:col-span-1"
152
152
  >
153
- <div className="bg-linear-to-br from-secondary/10 to-secondary/10 rounded-[24px] p-8 border-2 border-secondary/20 sticky top-24">
154
- <h2 className="font-['Poppins',sans-serif] font-semibold text-secondary mb-6">Order Summary</h2>
153
+ <div className="bg-linear-to-br from-hsecondary/10 to-hsecondary/10 rounded-[24px] p-8 border-2 border-hsecondary/20 sticky top-24">
154
+ <h2 className="font-['Poppins',sans-serif] font-semibold text-hsecondary mb-6">Order Summary</h2>
155
155
 
156
156
  <div className="space-y-4 mb-6">
157
157
  <div className="flex items-center justify-between">
158
- <span className="font-['Poppins',sans-serif] text-[14px] text-muted">Subtotal ({itemCount} {itemCount === 1 ? 'item' : 'items'})</span>
159
- <span className="font-['Poppins',sans-serif] font-semibold text-[14px] text-secondary">{formatPrice(subtotal)}</span>
158
+ <span className="font-['Poppins',sans-serif] text-[14px] text-hmuted">Subtotal ({itemCount} {itemCount === 1 ? 'item' : 'items'})</span>
159
+ <span className="font-['Poppins',sans-serif] font-semibold text-[14px] text-hsecondary">{formatPrice(subtotal)}</span>
160
160
  </div>
161
161
  <div className="flex items-center justify-between text-sm">
162
162
  <span className="text-gray-600">Shipping</span>
@@ -166,8 +166,8 @@ export function CartScreen() {
166
166
  </div>
167
167
  <div className="border-t border-gray-200 pt-4 mt-4">
168
168
  <div className="flex items-center justify-between">
169
- <span className="text-lg font-bold text-secondary">Total</span>
170
- <span className="text-2xl font-bold text-primary">{formatPrice(total)}</span>
169
+ <span className="text-lg font-bold text-hsecondary">Total</span>
170
+ <span className="text-2xl font-bold text-hprimary">{formatPrice(total)}</span>
171
171
  </div>
172
172
  </div>
173
173
  </div>
@@ -176,7 +176,7 @@ export function CartScreen() {
176
176
  <button
177
177
  type="submit"
178
178
  onClick={handleSubmit}
179
- className="w-full rounded-full border-2 border-secondary bg-secondary hover:bg-secondary/80 text-white px-4 py-3 text-sm font-medium transition-colors flex items-center justify-center gap-2"
179
+ className="w-full rounded-full border-2 border-hsecondary bg-hsecondary hover:bg-hsecondary/80 text-white px-4 py-3 text-sm font-medium transition-colors flex items-center justify-center gap-2"
180
180
  >
181
181
  Proceed to Checkout
182
182
  <ArrowRight className="h-5 w-5" />
@@ -192,17 +192,17 @@ export function CartScreen() {
192
192
 
193
193
  <div className="mt-6 space-y-3 pt-6 border-t border-gray-200">
194
194
  <div className="flex items-start gap-3 text-sm text-slate-600">
195
- <CheckCircle2 className="h-5 w-5 text-muted shrink-0 mt-0.5" />
195
+ <CheckCircle2 className="h-5 w-5 text-hmuted shrink-0 mt-0.5" />
196
196
  <span>Easy returns within 30 days</span>
197
197
  </div>
198
198
  <div className="flex items-start gap-3 text-sm text-slate-600">
199
- <CheckCircle2 className="h-5 w-5 text-muted shrink-0 mt-0.5" />
199
+ <CheckCircle2 className="h-5 w-5 text-hmuted shrink-0 mt-0.5" />
200
200
  <span>Secure checkout process</span>
201
201
  </div>
202
202
  </div>
203
203
  </div>
204
204
 
205
- {/* <div className="rounded-3xl border border-primary-100 bg-primary-50/70 p-6 text-sm text-primary-700 shadow-xs">
205
+ {/* <div className="rounded-3xl border border-hprimary-100 bg-hprimary-50/70 p-6 text-sm text-hprimary-700 shadow-xs">
206
206
  <p className="font-semibold uppercase tracking-[0.3em]">Need help?</p>
207
207
  <p className="mt-2 leading-relaxed">
208
208
  Chat with a pharmacist to optimize your regimen or discuss substitutions before you
@@ -74,7 +74,7 @@ export function ChangePasswordScreen() {
74
74
  className="mx-auto max-w-2xl rounded-3xl border border-slate-200 bg-white p-8 shadow-xl shadow-primary-50"
75
75
  >
76
76
  <div className="flex items-center gap-3">
77
- <span className="flex h-11 w-11 items-center justify-center rounded-2xl bg-primary-50 text-primary-600">
77
+ <span className="flex h-11 w-11 items-center justify-center rounded-2xl bg-hprimary-50 text-hprimary-600">
78
78
  <Lock className="h-5 w-5" />
79
79
  </span>
80
80
  <div>
@@ -143,7 +143,7 @@ export function ChangePasswordScreen() {
143
143
  </form>
144
144
 
145
145
  <div className="mt-6 flex items-center gap-2 rounded-2xl border border-slate-200 bg-slate-50 px-4 py-3 text-sm text-slate-600">
146
- <ShieldCheck className="h-4 w-4 text-primary-600" />
146
+ <ShieldCheck className="h-4 w-4 text-hprimary-600" />
147
147
  Strong passwords and up-to-date contact details help pharmacists verify changes quickly.
148
148
  </div>
149
149
  </motion.div>