@o2vend/theme-cli 1.0.32

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 (116) hide show
  1. package/README.md +425 -0
  2. package/assets/Logo_o2vend.png +0 -0
  3. package/assets/favicon.png +0 -0
  4. package/assets/logo-white.png +0 -0
  5. package/bin/o2vend +42 -0
  6. package/config/widget-map.json +50 -0
  7. package/lib/commands/check.js +201 -0
  8. package/lib/commands/generate.js +33 -0
  9. package/lib/commands/init.js +214 -0
  10. package/lib/commands/optimize.js +216 -0
  11. package/lib/commands/package.js +208 -0
  12. package/lib/commands/serve.js +105 -0
  13. package/lib/commands/validate.js +191 -0
  14. package/lib/lib/api-client.js +357 -0
  15. package/lib/lib/dev-server.js +2618 -0
  16. package/lib/lib/file-watcher.js +80 -0
  17. package/lib/lib/hot-reload.js +106 -0
  18. package/lib/lib/liquid-engine.js +822 -0
  19. package/lib/lib/liquid-filters.js +671 -0
  20. package/lib/lib/mock-api-server.js +989 -0
  21. package/lib/lib/mock-data.js +1468 -0
  22. package/lib/lib/widget-service.js +321 -0
  23. package/package.json +70 -0
  24. package/test-theme/README.md +27 -0
  25. package/test-theme/assets/async-sections.js +446 -0
  26. package/test-theme/assets/cart-drawer.js +463 -0
  27. package/test-theme/assets/cart-manager.js +223 -0
  28. package/test-theme/assets/checkout-price-handler.js +368 -0
  29. package/test-theme/assets/components.css +4629 -0
  30. package/test-theme/assets/delivery-zone.css +299 -0
  31. package/test-theme/assets/delivery-zone.js +396 -0
  32. package/test-theme/assets/logo.png +0 -0
  33. package/test-theme/assets/sections.css +48 -0
  34. package/test-theme/assets/theme.css +3500 -0
  35. package/test-theme/assets/theme.js +3745 -0
  36. package/test-theme/config/settings_data.json +292 -0
  37. package/test-theme/config/settings_schema.json +1050 -0
  38. package/test-theme/layout/theme.liquid +195 -0
  39. package/test-theme/locales/en.default.json +260 -0
  40. package/test-theme/sections/content-fallback.liquid +53 -0
  41. package/test-theme/sections/content.liquid +57 -0
  42. package/test-theme/sections/footer-fallback.liquid +328 -0
  43. package/test-theme/sections/footer.liquid +278 -0
  44. package/test-theme/sections/header-fallback.liquid +1805 -0
  45. package/test-theme/sections/header.liquid +1145 -0
  46. package/test-theme/sections/hero-fallback.liquid +212 -0
  47. package/test-theme/sections/hero.liquid +136 -0
  48. package/test-theme/snippets/account-sidebar.liquid +200 -0
  49. package/test-theme/snippets/add-to-cart-modal.liquid +484 -0
  50. package/test-theme/snippets/breadcrumbs.liquid +134 -0
  51. package/test-theme/snippets/cart-drawer.liquid +467 -0
  52. package/test-theme/snippets/delivery-zone-city-selector.liquid +79 -0
  53. package/test-theme/snippets/delivery-zone-modal.liquid +337 -0
  54. package/test-theme/snippets/delivery-zone-search.liquid +78 -0
  55. package/test-theme/snippets/icon.liquid +105 -0
  56. package/test-theme/snippets/login-modal.liquid +346 -0
  57. package/test-theme/snippets/mega-menu.liquid +812 -0
  58. package/test-theme/snippets/news-thumbnail.liquid +187 -0
  59. package/test-theme/snippets/pagination.liquid +120 -0
  60. package/test-theme/snippets/price.liquid +92 -0
  61. package/test-theme/snippets/product-card-related.liquid +78 -0
  62. package/test-theme/snippets/product-card-simple.liquid +41 -0
  63. package/test-theme/snippets/product-card.liquid +697 -0
  64. package/test-theme/snippets/rating.liquid +85 -0
  65. package/test-theme/snippets/skeleton-collection-grid.liquid +114 -0
  66. package/test-theme/snippets/skeleton-product-card.liquid +124 -0
  67. package/test-theme/snippets/skeleton-product-grid.liquid +34 -0
  68. package/test-theme/snippets/social-sharing.liquid +185 -0
  69. package/test-theme/templates/account/dashboard.liquid +401 -0
  70. package/test-theme/templates/account/loyalty-redemption.liquid +405 -0
  71. package/test-theme/templates/account/loyalty.liquid +588 -0
  72. package/test-theme/templates/account/order-detail.liquid +230 -0
  73. package/test-theme/templates/account/orders.liquid +349 -0
  74. package/test-theme/templates/account/profile.liquid +758 -0
  75. package/test-theme/templates/account/register.liquid +232 -0
  76. package/test-theme/templates/account/return-orders.liquid +348 -0
  77. package/test-theme/templates/account/store-credit.liquid +464 -0
  78. package/test-theme/templates/account/subscriptions.liquid +601 -0
  79. package/test-theme/templates/account/wishlist.liquid +419 -0
  80. package/test-theme/templates/address-book.liquid +1092 -0
  81. package/test-theme/templates/categories.liquid +452 -0
  82. package/test-theme/templates/checkout.liquid +4511 -0
  83. package/test-theme/templates/error.liquid +384 -0
  84. package/test-theme/templates/index.liquid +11 -0
  85. package/test-theme/templates/login.liquid +185 -0
  86. package/test-theme/templates/order-confirmation.liquid +720 -0
  87. package/test-theme/templates/page.liquid +297 -0
  88. package/test-theme/templates/product-detail.liquid +4363 -0
  89. package/test-theme/templates/products.liquid +518 -0
  90. package/test-theme/templates/search.liquid +922 -0
  91. package/test-theme/theme.json.example +19 -0
  92. package/test-theme/widgets/brand-carousel.liquid +676 -0
  93. package/test-theme/widgets/brand.liquid +245 -0
  94. package/test-theme/widgets/carousel.liquid +843 -0
  95. package/test-theme/widgets/category-list-carousel.liquid +656 -0
  96. package/test-theme/widgets/category-list.liquid +340 -0
  97. package/test-theme/widgets/category.liquid +475 -0
  98. package/test-theme/widgets/discount-time.liquid +176 -0
  99. package/test-theme/widgets/footer-menu.liquid +695 -0
  100. package/test-theme/widgets/footer.liquid +179 -0
  101. package/test-theme/widgets/gallery.liquid +271 -0
  102. package/test-theme/widgets/header-menu.liquid +932 -0
  103. package/test-theme/widgets/header.liquid +159 -0
  104. package/test-theme/widgets/html.liquid +214 -0
  105. package/test-theme/widgets/news.liquid +217 -0
  106. package/test-theme/widgets/product-canvas.liquid +235 -0
  107. package/test-theme/widgets/product-carousel.liquid +502 -0
  108. package/test-theme/widgets/product.liquid +45 -0
  109. package/test-theme/widgets/recently-viewed.liquid +26 -0
  110. package/test-theme/widgets/shared/product-grid.liquid +339 -0
  111. package/test-theme/widgets/simple-product.liquid +42 -0
  112. package/test-theme/widgets/single-product.liquid +610 -0
  113. package/test-theme/widgets/spacebar-carousel.liquid +663 -0
  114. package/test-theme/widgets/spacebar.liquid +279 -0
  115. package/test-theme/widgets/splash.liquid +378 -0
  116. package/test-theme/widgets/testimonial-carousel.liquid +709 -0
@@ -0,0 +1,588 @@
1
+ {% layout 'layout/theme' %}
2
+
3
+ <section class="account-page">
4
+ <div class="container">
5
+
6
+ <!-- Header -->
7
+ <div class="account-header">
8
+ <h1 class="account-title display-2">Loyalty Program</h1>
9
+ <p class="account-subtitle">View your points and rewards history</p>
10
+ </div>
11
+
12
+ <div class="account-layout">
13
+
14
+ <!-- Sidebar -->
15
+ <aside class="account-sidebar">
16
+ {% render 'snippets/account-sidebar' %}
17
+ </aside>
18
+
19
+ <!-- Content -->
20
+ <div class="account-content">
21
+ {% hook 'account_loyalty_before' %}
22
+
23
+ <div class="account-section-header">
24
+ <h2 class="account-section-title">Loyalty Program</h2>
25
+ </div>
26
+
27
+ <div class="loyalty-program">
28
+
29
+ <!-- LOYALTY POINTS CARD -->
30
+ <div class="loyalty-card">
31
+
32
+ <!-- LEFT : AVAILABLE POINTS -->
33
+ <div class="loyalty-left">
34
+ <div class="points-icon">
35
+ <svg width="48" height="48" viewBox="0 0 24 24" fill="none"
36
+ stroke="currentColor" stroke-width="2">
37
+ <circle cx="12" cy="8" r="7"></circle>
38
+ <polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>
39
+ </svg>
40
+ </div>
41
+
42
+ <div class="points-info">
43
+ <h2 class="points-value">
44
+ {{ loyalty.points | default: 0 }}
45
+ </h2>
46
+ <p class="points-label">Available Points</p>
47
+
48
+ <p class="points-expiry">
49
+ Nearest Expiry:
50
+ {% if loyalty.nearestExpiryDate %}
51
+ <strong>{{ loyalty.nearestExpiryDate |date: '%d-%m-%Y %H:%M' }}</strong>
52
+ {% else %}
53
+ <span class="muted">No expiry</span>
54
+ {% endif %}
55
+ </p>
56
+ </div>
57
+ </div>
58
+
59
+ <!-- RIGHT : BREAKDOWN -->
60
+ <div class="loyalty-right">
61
+ <h4 class="breakdown-title">Points Breakdown</h4>
62
+
63
+ {% if loyalty.breakdown and loyalty.breakdown.size > 0 %}
64
+ <ul class="points-breakdown">
65
+ {% for item in loyalty.breakDown %}
66
+ <li>
67
+ <span class="type">
68
+ {{ item.pointType | default: "Unknown" }}
69
+ </span>
70
+ <span class="points">
71
+ {{ item.points | default: 0 }}
72
+ </span>
73
+ </li>
74
+ {% endfor %}
75
+ </ul>
76
+ {% else %}
77
+ <p class="empty-text">No point breakdown available</p>
78
+ {% endif %}
79
+ </div>
80
+
81
+ </div>
82
+ <!-- Points History -->
83
+ <div class="loyalty-history">
84
+ <h3 class="loyalty-subtitle">Points History</h3>
85
+
86
+ <div class="loyalty-history-list">
87
+ {% for transaction in loyalty.history %}
88
+ <div class="loyalty-transaction">
89
+
90
+ <div class="transaction-icon {{ transaction.pointType | downcase }}">
91
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
92
+ <polyline points="20 6 9 17 4 12"></polyline>
93
+ </svg>
94
+ </div>
95
+
96
+ <div class="transaction-info">
97
+ <p class="transaction-description">
98
+ {% assign ptype = transaction.pointType | downcase %}
99
+ {% case ptype %}
100
+ {% when 'cash' %} Cash Points
101
+ {% when 'giftcards' %} Gift Card Points
102
+ {% when 'others' %} Other Bonus Points
103
+ {% else %} Loyalty Points
104
+ {% endcase %}
105
+ </p>
106
+
107
+ <!-- Reference -->
108
+ <p class="transaction-reference">
109
+
110
+ {% if transaction.additionalSettings %}
111
+ {% assign settings = transaction.additionalSettings | parse_json %}
112
+ {{ settings.OrderNumbers | default: transaction.referenceId }}
113
+ {% else %}
114
+ {{ transaction.referenceId | default: '—' }}
115
+ {% endif %}
116
+ </p>
117
+
118
+ <p class="transaction-date">
119
+ CreatedDate : {{ transaction.createdDate | date: '%d-%m-%Y %H:%M' }}
120
+ </p>
121
+ <p class="transaction-date">
122
+ ExpiryDate : {{ transaction.expiryDate | date: '%d-%m-%Y %H:%M' }}
123
+ </p>
124
+ </div>
125
+
126
+ <div class="transaction-points earned">
127
+ +{{ transaction.point | default: transaction.points }}
128
+ </div>
129
+
130
+ </div>
131
+ {% endfor %}
132
+ <!-- Pagination -->
133
+ {% include 'snippets/pagination', pagination: pagination %}
134
+ </div>
135
+ </div>
136
+ </div>
137
+
138
+ {% hook 'account_loyalty_after' %}
139
+ </div>
140
+ </div>
141
+ </div>
142
+
143
+ </section>
144
+
145
+
146
+ <style>
147
+ :root {
148
+ --color-primary: #000000ff;
149
+ --color-primary-hover: #1d4ed8;
150
+ --color-primary-light: #dbeafe;
151
+ --color-success: #10b981;
152
+ --color-success-light: #d1fae5;
153
+ --color-success-dark: #065f46;
154
+ --color-danger: #ef4444;
155
+ --color-danger-light: #fee2e2;
156
+ --color-danger-dark: #991b1b;
157
+ --color-text: #1f2937;
158
+ --color-text-light: #6b7280;
159
+ --color-background: #f9fafb;
160
+ --color-card-bg: #ffffff;
161
+ --color-border: #e5e7eb;
162
+ --color-border-light: #f3f4f6;
163
+ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
164
+ --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
165
+ --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
166
+ --radius-sm: 0.375rem;
167
+ --radius-md: 0.5rem;
168
+ --radius-lg: 0.75rem;
169
+ --spacing-xs: 0.5rem;
170
+ --spacing-sm: 1rem;
171
+ --spacing-md: 1.5rem;
172
+ --spacing-lg: 2rem;
173
+ --spacing-xl: 3rem;
174
+ }
175
+
176
+ .account-page {
177
+ padding: var(--spacing-xl) var(--spacing-sm);
178
+ background: var(--color-background);
179
+ min-height: 100vh;
180
+ }
181
+ .pagination {
182
+ display: flex;
183
+ justify-content: flex-end;
184
+ align-items: center;
185
+ }
186
+ /* ===============================
187
+ LOYALTY POINTS CARD
188
+ ================================ */
189
+ .loyalty-card {
190
+ display: grid;
191
+ grid-template-columns: 1fr 1fr;
192
+ gap: 2rem;
193
+ background: #ffffff;
194
+ border: 1px solid #e5e7eb;
195
+ border-radius: 14px;
196
+ padding: 2rem;
197
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
198
+ max-width: 900px;
199
+ }
200
+
201
+ /* LEFT SIDE */
202
+ .loyalty-left {
203
+ display: flex;
204
+ align-items: center;
205
+ gap: 1.5rem;
206
+ }
207
+
208
+ .points-icon {
209
+ color: #2563eb;
210
+ flex-shrink: 0;
211
+ }
212
+
213
+ .points-value {
214
+ font-size: 3rem;
215
+ font-weight: 700;
216
+ margin: 0;
217
+ color: #111827;
218
+ }
219
+
220
+ .points-label {
221
+ font-size: 1rem;
222
+ color: #6b7280;
223
+ margin-top: 0.25rem;
224
+ }
225
+
226
+ .points-expiry {
227
+ font-size: 0.95rem;
228
+ color: #374151;
229
+ margin-top: 0.75rem;
230
+ }
231
+
232
+ .muted {
233
+ color: #9ca3af;
234
+ }
235
+
236
+ /* RIGHT SIDE */
237
+ .loyalty-right {
238
+ padding-left: 2rem;
239
+ border-left: 1px solid #e5e7eb;
240
+ }
241
+
242
+ .breakdown-title {
243
+ font-size: 1.15rem;
244
+ font-weight: 600;
245
+ margin-bottom: 1.25rem;
246
+ color: #111827;
247
+ }
248
+
249
+ .points-breakdown {
250
+ list-style: none;
251
+ padding: 0;
252
+ margin: 0;
253
+ }
254
+
255
+ .points-breakdown li {
256
+ display: flex;
257
+ justify-content: space-between;
258
+ align-items: center;
259
+ padding: 0.75rem 0;
260
+ border-bottom: 1px dashed #e5e7eb;
261
+ font-size: 1rem;
262
+ }
263
+
264
+ .points-breakdown li:last-child {
265
+ border-bottom: none;
266
+ }
267
+
268
+ .points-breakdown .type {
269
+ color: #374151;
270
+ font-weight: 500;
271
+ }
272
+
273
+ .points-breakdown .points {
274
+ font-weight: 600;
275
+ color: #2563eb;
276
+ }
277
+
278
+ .empty-text {
279
+ font-size: 0.95rem;
280
+ color: #9ca3af;
281
+ }
282
+
283
+ /* ===============================
284
+ RESPONSIVE (MOBILE)
285
+ ================================ */
286
+ @media (max-width: 768px) {
287
+ .loyalty-card {
288
+ grid-template-columns: 1fr;
289
+ padding: 1.5rem;
290
+ }
291
+
292
+ .loyalty-right {
293
+ border-left: none;
294
+ padding-left: 0;
295
+ border-top: 1px solid #e5e7eb;
296
+ padding-top: 1.5rem;
297
+ }
298
+
299
+ .points-value {
300
+ font-size: 2.4rem;
301
+ }
302
+ }
303
+
304
+ .container {
305
+ max-width: 1200px;
306
+ margin: 0 auto;
307
+ padding: 0 var(--spacing-sm);
308
+ }
309
+
310
+ .account-header {
311
+ text-align: center;
312
+ margin-bottom: var(--spacing-xl);
313
+ }
314
+
315
+ .account-title {
316
+ font-size: 2.5rem;
317
+ font-weight: 700;
318
+ color: var(--color-text);
319
+ margin: 0 0 0.5rem 0;
320
+ letter-spacing: -0.025em;
321
+ }
322
+
323
+ .account-subtitle {
324
+ font-size: 1.125rem;
325
+ color: var(--color-text-light);
326
+ margin: 0;
327
+ }
328
+
329
+ .account-layout {
330
+ display: grid;
331
+ grid-template-columns: 280px 1fr;
332
+ gap: var(--spacing-lg);
333
+ align-items: start;
334
+ }
335
+
336
+ .account-sidebar {
337
+ position: sticky;
338
+ top: var(--spacing-lg);
339
+ background: var(--color-card-bg);
340
+ border-radius: var(--radius-lg);
341
+ padding: var(--spacing-md);
342
+ box-shadow: var(--shadow-md);
343
+ border: 1px solid var(--color-border);
344
+ }
345
+
346
+ .account-content {
347
+ background: var(--color-card-bg);
348
+ border-radius: var(--radius-lg);
349
+ padding: var(--spacing-lg);
350
+ box-shadow: var(--shadow-md);
351
+ border: 1px solid var(--color-border);
352
+ }
353
+
354
+ .account-section-header {
355
+ margin-bottom: var(--spacing-lg);
356
+ padding-bottom: var(--spacing-md);
357
+ border-bottom: 1px solid var(--color-border);
358
+ }
359
+
360
+ .account-section-title {
361
+ font-size: 1.75rem;
362
+ font-weight: 600;
363
+ color: var(--color-text);
364
+ margin: 0;
365
+ }
366
+
367
+ .loyalty-program {
368
+ display: grid;
369
+ gap: var(--spacing-xl);
370
+ }
371
+
372
+ .loyalty-points {
373
+ background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
374
+ border-radius: var(--radius-lg);
375
+ padding: 10px;
376
+ text-align: center;
377
+ color: white;
378
+ box-shadow: var(--shadow-lg);
379
+ position: relative;
380
+ overflow: hidden;
381
+ }
382
+
383
+ .loyalty-points::before {
384
+ content: '';
385
+ position: absolute;
386
+ top: -50%;
387
+ right: -10%;
388
+ width: 300px;
389
+ height: 300px;
390
+ background: rgba(255, 255, 255, 0.1);
391
+ border-radius: 50%;
392
+ }
393
+
394
+ .loyalty-points-display {
395
+ position: relative;
396
+ z-index: 1;
397
+ max-width: 400px;
398
+ margin: 0 auto;
399
+ }
400
+
401
+ .points-icon {
402
+ margin: 0 auto var(--spacing-md);
403
+ width: 80px;
404
+ height: 80px;
405
+ display: flex;
406
+ align-items: center;
407
+ justify-content: center;
408
+ background: rgba(255, 255, 255, 0.2);
409
+ border-radius: 50%;
410
+ }
411
+
412
+ .loyalty-points-value {
413
+ font-size: 4rem;
414
+ font-weight: 700;
415
+ margin: 0 0 var(--spacing-xs) 0;
416
+ line-height: 1;
417
+ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
418
+ }
419
+
420
+ .loyalty-points-label {
421
+ font-size: 1.25rem;
422
+ margin: 0;
423
+ opacity: 0.95;
424
+ text-transform: uppercase;
425
+ letter-spacing: 0.1em;
426
+ }
427
+
428
+ .loyalty-history {
429
+ background: var(--color-background);
430
+ padding: var(--spacing-lg);
431
+ border-radius: var(--radius-lg);
432
+ border: 1px solid var(--color-border);
433
+ }
434
+
435
+ .loyalty-subtitle {
436
+ font-size: 1.25rem;
437
+ font-weight: 600;
438
+ color: var(--color-text);
439
+ margin: 0 0 var(--spacing-md) 0;
440
+ }
441
+
442
+ .loyalty-history-list {
443
+ display: grid;
444
+ gap: var(--spacing-sm);
445
+ }
446
+
447
+ .loyalty-transaction {
448
+ display: grid;
449
+ grid-template-columns: auto 1fr auto;
450
+ gap: var(--spacing-md);
451
+ align-items: center;
452
+ padding: var(--spacing-md);
453
+ background: var(--color-card-bg);
454
+ border-radius: var(--radius-md);
455
+ border: 1px solid var(--color-border);
456
+ transition: all 0.3s ease;
457
+ }
458
+
459
+ .loyalty-transaction:hover {
460
+ border-color: var(--color-primary);
461
+ box-shadow: var(--shadow-sm);
462
+ }
463
+
464
+ .transaction-icon {
465
+ width: 40px;
466
+ height: 40px;
467
+ display: flex;
468
+ align-items: center;
469
+ justify-content: center;
470
+ border-radius: 50%;
471
+ flex-shrink: 0;
472
+ }
473
+
474
+ .transaction-icon.earned {
475
+ background: var(--color-success-light);
476
+ color: var(--color-success-dark);
477
+ }
478
+
479
+ .transaction-icon.spent,
480
+ .transaction-icon.redeemed {
481
+ background: var(--color-danger-light);
482
+ color: var(--color-danger-dark);
483
+ }
484
+
485
+ .transaction-info {
486
+ display: flex;
487
+ flex-direction: column;
488
+ gap: 0.25rem;
489
+ }
490
+
491
+ .transaction-description {
492
+ font-size: 1rem;
493
+ font-weight: 500;
494
+ color: var(--color-text);
495
+ margin: 0;
496
+ }
497
+
498
+ .transaction-date {
499
+ font-size: 0.875rem;
500
+ color: var(--color-text-light);
501
+ margin: 0;
502
+ }
503
+
504
+ .transaction-points {
505
+ font-size: 1.25rem;
506
+ font-weight: 700;
507
+ text-align: right;
508
+ padding: var(--spacing-xs) var(--spacing-sm);
509
+ border-radius: var(--radius-sm);
510
+ min-width: 80px;
511
+ }
512
+
513
+ .transaction-points.earned {
514
+ color: var(--color-success-dark);
515
+ background: var(--color-success-light);
516
+ }
517
+
518
+ .transaction-points.redeemed,
519
+ .transaction-points.spent {
520
+ color: var(--color-danger-dark);
521
+ background: var(--color-danger-light);
522
+ }
523
+
524
+ .btn {
525
+ display: inline-flex;
526
+ align-items: center;
527
+ justify-content: center;
528
+ padding: 0.625rem 1.5rem;
529
+ font-size: 0.9375rem;
530
+ font-weight: 500;
531
+ text-decoration: none;
532
+ border-radius: var(--radius-md);
533
+ border: none;
534
+ cursor: pointer;
535
+ transition: all 0.3s ease;
536
+ }
537
+
538
+ .btn-primary {
539
+ background: var(--color-primary);
540
+ color: white;
541
+ border: 2px solid var(--color-primary);
542
+ }
543
+
544
+ .btn-primary:hover {
545
+ background: var(--color-primary-hover);
546
+ transform: translateY(-1px);
547
+ box-shadow: var(--shadow-md);
548
+ }
549
+
550
+ .empty-state {
551
+ text-align: center;
552
+ padding: var(--spacing-xl);
553
+ color: var(--color-text-light);
554
+ background: var(--color-card-bg);
555
+ border-radius: var(--radius-md);
556
+ border: 2px dashed var(--color-border);
557
+ }
558
+
559
+ .empty-state p {
560
+ margin: 0 0 var(--spacing-md) 0;
561
+ }
562
+
563
+ @media (max-width: 768px) {
564
+ .account-layout {
565
+ grid-template-columns: 1fr;
566
+ }
567
+
568
+
569
+ .account-content {
570
+ order: 1;
571
+ }
572
+
573
+ .loyalty-points-value {
574
+ font-size: 3rem;
575
+ }
576
+
577
+ .loyalty-transaction {
578
+ grid-template-columns: auto 1fr;
579
+ gap: var(--spacing-sm);
580
+ }
581
+
582
+ .transaction-points {
583
+ grid-column: 2;
584
+ justify-self: start;
585
+ margin-top: var(--spacing-xs);
586
+ }
587
+ }
588
+ </style>