create-nymbal-app 0.0.0 → 0.2.0

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 (159) hide show
  1. package/bin/create-nymbal-app.mjs +9 -0
  2. package/dist/index.d.ts +37 -0
  3. package/dist/index.js +419 -0
  4. package/dist/index.js.map +1 -0
  5. package/package.json +41 -7
  6. package/scaffold/project/astro/src/pages/index.astro +57 -0
  7. package/scaffold/templates/astro/README.md +26 -0
  8. package/scaffold/templates/astro/_dot.env.example +6 -0
  9. package/scaffold/templates/astro/_dot.gitignore +16 -0
  10. package/scaffold/templates/astro/_dot.node-version +1 -0
  11. package/scaffold/templates/astro/_dot.npmrc +1 -0
  12. package/scaffold/templates/astro/astro.config.mjs +14 -0
  13. package/scaffold/templates/astro/package.json +59 -0
  14. package/scaffold/templates/astro/src/components/AddressForm.astro +107 -0
  15. package/scaffold/templates/astro/src/components/Breadcrumb.astro +20 -0
  16. package/scaffold/templates/astro/src/components/CategoryNav.astro +27 -0
  17. package/scaffold/templates/astro/src/components/CheckoutSteps.astro +29 -0
  18. package/scaffold/templates/astro/src/components/Footer.astro +108 -0
  19. package/scaffold/templates/astro/src/components/Header.astro +192 -0
  20. package/scaffold/templates/astro/src/components/HeroSection.astro +17 -0
  21. package/scaffold/templates/astro/src/components/ImageGallery.astro +42 -0
  22. package/scaffold/templates/astro/src/components/NewsletterSignup.astro +39 -0
  23. package/scaffold/templates/astro/src/components/OrderSummary.astro +53 -0
  24. package/scaffold/templates/astro/src/components/Pagination.astro +13 -0
  25. package/scaffold/templates/astro/src/components/PriceDisplay.astro +25 -0
  26. package/scaffold/templates/astro/src/components/ProductCard.astro +44 -0
  27. package/scaffold/templates/astro/src/components/RelatedProducts.astro +28 -0
  28. package/scaffold/templates/astro/src/components/ReviewForm.astro +100 -0
  29. package/scaffold/templates/astro/src/components/ReviewList.astro +41 -0
  30. package/scaffold/templates/astro/src/components/SkipNav.astro +3 -0
  31. package/scaffold/templates/astro/src/components/SortDropdown.astro +26 -0
  32. package/scaffold/templates/astro/src/components/StockBadge.astro +32 -0
  33. package/scaffold/templates/astro/src/env.d.ts +2 -0
  34. package/scaffold/templates/astro/src/layouts/AccountLayout.astro +168 -0
  35. package/scaffold/templates/astro/src/layouts/BaseLayout.astro +55 -0
  36. package/scaffold/templates/astro/src/lib/api.ts +89 -0
  37. package/scaffold/templates/astro/src/lib/client.ts +13 -0
  38. package/scaffold/templates/astro/src/lib/format.ts +17 -0
  39. package/scaffold/templates/astro/src/lib/order-status.ts +14 -0
  40. package/scaffold/templates/astro/src/lib/seo.ts +62 -0
  41. package/scaffold/templates/astro/src/pages/404.astro +18 -0
  42. package/scaffold/templates/astro/src/pages/500.astro +17 -0
  43. package/scaffold/templates/astro/src/pages/account/addresses.astro +110 -0
  44. package/scaffold/templates/astro/src/pages/account/index.astro +67 -0
  45. package/scaffold/templates/astro/src/pages/account/login.astro +55 -0
  46. package/scaffold/templates/astro/src/pages/account/orders/[orderNumber].astro +108 -0
  47. package/scaffold/templates/astro/src/pages/account/orders.astro +81 -0
  48. package/scaffold/templates/astro/src/pages/account/profile.astro +131 -0
  49. package/scaffold/templates/astro/src/pages/account/register.astro +94 -0
  50. package/scaffold/templates/astro/src/pages/cart.astro +16 -0
  51. package/scaffold/templates/astro/src/pages/category/[slug].astro +73 -0
  52. package/scaffold/templates/astro/src/pages/checkout.astro +100 -0
  53. package/scaffold/templates/astro/src/pages/fragments/footer.astro +5 -0
  54. package/scaffold/templates/astro/src/pages/fragments/header.astro +5 -0
  55. package/scaffold/templates/astro/src/pages/fragments/nav.astro +9 -0
  56. package/scaffold/templates/astro/src/pages/fragments/product/[slug].astro +14 -0
  57. package/scaffold/templates/astro/src/pages/index.astro +49 -0
  58. package/scaffold/templates/astro/src/pages/order/[orderNumber].astro +127 -0
  59. package/scaffold/templates/astro/src/pages/product/[slug].astro +107 -0
  60. package/scaffold/templates/astro/src/pages/products/index.astro +62 -0
  61. package/scaffold/templates/astro/src/pages/search.astro +37 -0
  62. package/scaffold/templates/astro/src/scripts/account-guard.ts +22 -0
  63. package/scaffold/templates/astro/src/scripts/auth-forms.ts +89 -0
  64. package/scaffold/templates/astro/src/scripts/cart-page.ts +143 -0
  65. package/scaffold/templates/astro/src/scripts/checkout.ts +277 -0
  66. package/scaffold/templates/astro/src/scripts/image-gallery.ts +22 -0
  67. package/scaffold/templates/astro/src/scripts/init-client.ts +16 -0
  68. package/scaffold/templates/astro/src/scripts/order-status.ts +27 -0
  69. package/scaffold/templates/astro/src/scripts/pdp.ts +67 -0
  70. package/scaffold/templates/astro/src/scripts/plp.ts +109 -0
  71. package/scaffold/templates/astro/src/scripts/search.ts +145 -0
  72. package/scaffold/templates/astro/src/styles/global.css +362 -0
  73. package/scaffold/templates/astro/src/styles/pages/account.css +331 -0
  74. package/scaffold/templates/astro/src/styles/pages/cart.css +243 -0
  75. package/scaffold/templates/astro/src/styles/pages/checkout.css +270 -0
  76. package/scaffold/templates/astro/src/styles/pages/confirmation.css +142 -0
  77. package/scaffold/templates/astro/src/styles/pages/error.css +69 -0
  78. package/scaffold/templates/astro/src/styles/pages/home.css +269 -0
  79. package/scaffold/templates/astro/src/styles/pages/pdp.css +272 -0
  80. package/scaffold/templates/astro/src/styles/pages/plp.css +213 -0
  81. package/scaffold/templates/astro/src/styles/pages/search.css +152 -0
  82. package/scaffold/templates/astro/tsconfig.json +3 -0
  83. package/scaffold/templates/nextjs/README.md +26 -0
  84. package/scaffold/templates/nextjs/_dot.env.example +6 -0
  85. package/scaffold/templates/nextjs/_dot.gitignore +17 -0
  86. package/scaffold/templates/nextjs/_dot.node-version +1 -0
  87. package/scaffold/templates/nextjs/_dot.npmrc +1 -0
  88. package/scaffold/templates/nextjs/app/account/addresses/page.tsx +10 -0
  89. package/scaffold/templates/nextjs/app/account/layout.tsx +57 -0
  90. package/scaffold/templates/nextjs/app/account/login/page.tsx +23 -0
  91. package/scaffold/templates/nextjs/app/account/orders/[orderNumber]/page.tsx +192 -0
  92. package/scaffold/templates/nextjs/app/account/orders/page.tsx +123 -0
  93. package/scaffold/templates/nextjs/app/account/page.tsx +59 -0
  94. package/scaffold/templates/nextjs/app/account/profile/page.tsx +10 -0
  95. package/scaffold/templates/nextjs/app/account/register/page.tsx +10 -0
  96. package/scaffold/templates/nextjs/app/cart/page.tsx +10 -0
  97. package/scaffold/templates/nextjs/app/category/[slug]/page.tsx +58 -0
  98. package/scaffold/templates/nextjs/app/checkout/page.tsx +10 -0
  99. package/scaffold/templates/nextjs/app/error.tsx +49 -0
  100. package/scaffold/templates/nextjs/app/globals.css +473 -0
  101. package/scaffold/templates/nextjs/app/layout.tsx +29 -0
  102. package/scaffold/templates/nextjs/app/not-found.tsx +38 -0
  103. package/scaffold/templates/nextjs/app/order/[orderNumber]/page.tsx +127 -0
  104. package/scaffold/templates/nextjs/app/page.tsx +63 -0
  105. package/scaffold/templates/nextjs/app/product/[slug]/page.tsx +111 -0
  106. package/scaffold/templates/nextjs/app/products/page.tsx +40 -0
  107. package/scaffold/templates/nextjs/app/search/page.tsx +24 -0
  108. package/scaffold/templates/nextjs/components/client/AddressManager.tsx +181 -0
  109. package/scaffold/templates/nextjs/components/client/AuthGuard.tsx +55 -0
  110. package/scaffold/templates/nextjs/components/client/CartDrawerToggle.tsx +39 -0
  111. package/scaffold/templates/nextjs/components/client/CartPage.tsx +120 -0
  112. package/scaffold/templates/nextjs/components/client/CheckoutForm.tsx +523 -0
  113. package/scaffold/templates/nextjs/components/client/ImageGallery.tsx +68 -0
  114. package/scaffold/templates/nextjs/components/client/LoginForm.tsx +89 -0
  115. package/scaffold/templates/nextjs/components/client/MiniCartWrapper.tsx +12 -0
  116. package/scaffold/templates/nextjs/components/client/NewsletterSignup.tsx +74 -0
  117. package/scaffold/templates/nextjs/components/client/NymbalSetup.tsx +24 -0
  118. package/scaffold/templates/nextjs/components/client/OrderStatusRefresh.tsx +48 -0
  119. package/scaffold/templates/nextjs/components/client/ProductGrid.tsx +148 -0
  120. package/scaffold/templates/nextjs/components/client/ProductInteractive.tsx +61 -0
  121. package/scaffold/templates/nextjs/components/client/ProfileForm.tsx +112 -0
  122. package/scaffold/templates/nextjs/components/client/RegisterForm.tsx +131 -0
  123. package/scaffold/templates/nextjs/components/client/ReviewForm.tsx +116 -0
  124. package/scaffold/templates/nextjs/components/client/SearchBarWrapper.tsx +27 -0
  125. package/scaffold/templates/nextjs/components/client/SearchResults.tsx +141 -0
  126. package/scaffold/templates/nextjs/components/client/SortDropdown.tsx +35 -0
  127. package/scaffold/templates/nextjs/components/server/Breadcrumb.tsx +36 -0
  128. package/scaffold/templates/nextjs/components/server/CategoryNav.tsx +29 -0
  129. package/scaffold/templates/nextjs/components/server/CheckoutSteps.tsx +60 -0
  130. package/scaffold/templates/nextjs/components/server/Footer.module.css +64 -0
  131. package/scaffold/templates/nextjs/components/server/Footer.tsx +79 -0
  132. package/scaffold/templates/nextjs/components/server/Header.module.css +147 -0
  133. package/scaffold/templates/nextjs/components/server/Header.tsx +102 -0
  134. package/scaffold/templates/nextjs/components/server/HeroSection.tsx +18 -0
  135. package/scaffold/templates/nextjs/components/server/OrderSummary.tsx +79 -0
  136. package/scaffold/templates/nextjs/components/server/PriceDisplay.tsx +31 -0
  137. package/scaffold/templates/nextjs/components/server/ProductCard.tsx +59 -0
  138. package/scaffold/templates/nextjs/components/server/RelatedProducts.tsx +31 -0
  139. package/scaffold/templates/nextjs/components/server/ReviewList.tsx +62 -0
  140. package/scaffold/templates/nextjs/components/server/SkipNav.tsx +7 -0
  141. package/scaffold/templates/nextjs/components/server/StockBadge.tsx +19 -0
  142. package/scaffold/templates/nextjs/lib/api.ts +89 -0
  143. package/scaffold/templates/nextjs/lib/client.ts +23 -0
  144. package/scaffold/templates/nextjs/lib/format.ts +7 -0
  145. package/scaffold/templates/nextjs/lib/order-status.ts +14 -0
  146. package/scaffold/templates/nextjs/lib/seo.ts +73 -0
  147. package/scaffold/templates/nextjs/next.config.mjs +9 -0
  148. package/scaffold/templates/nextjs/package.json +64 -0
  149. package/scaffold/templates/nextjs/styles/pages/account.module.css +377 -0
  150. package/scaffold/templates/nextjs/styles/pages/cart.module.css +240 -0
  151. package/scaffold/templates/nextjs/styles/pages/checkout.module.css +404 -0
  152. package/scaffold/templates/nextjs/styles/pages/confirmation.module.css +237 -0
  153. package/scaffold/templates/nextjs/styles/pages/error.module.css +132 -0
  154. package/scaffold/templates/nextjs/styles/pages/home.module.css +285 -0
  155. package/scaffold/templates/nextjs/styles/pages/pdp.module.css +319 -0
  156. package/scaffold/templates/nextjs/styles/pages/plp.module.css +280 -0
  157. package/scaffold/templates/nextjs/styles/pages/search.module.css +192 -0
  158. package/scaffold/templates/nextjs/tsconfig.json +41 -0
  159. package/README.md +0 -4
@@ -0,0 +1,362 @@
1
+ /* ----------------------------------------------------------------
2
+ Nymbal Global Styles
3
+ Built on @nymbalhq/web-components design tokens (--nymbal-*)
4
+ ---------------------------------------------------------------- */
5
+
6
+ @import '@nymbalhq/web-components/tokens.css';
7
+
8
+ /* ---- Reset ---- */
9
+
10
+ *,
11
+ *::before,
12
+ *::after {
13
+ box-sizing: border-box;
14
+ margin: 0;
15
+ padding: 0;
16
+ }
17
+
18
+ html {
19
+ -webkit-text-size-adjust: 100%;
20
+ -moz-text-size-adjust: 100%;
21
+ text-size-adjust: 100%;
22
+ scroll-behavior: smooth;
23
+ }
24
+
25
+ body {
26
+ font-family: var(--nymbal-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
27
+ font-size: var(--nymbal-font-size-base, 1rem);
28
+ font-weight: var(--nymbal-font-weight-normal, 400);
29
+ line-height: 1.6;
30
+ color: var(--nymbal-color-text, #18181b);
31
+ background-color: var(--nymbal-color-surface, #fff);
32
+ -webkit-font-smoothing: antialiased;
33
+ -moz-osx-font-smoothing: grayscale;
34
+ }
35
+
36
+ img,
37
+ picture,
38
+ video,
39
+ canvas,
40
+ svg {
41
+ display: block;
42
+ max-width: 100%;
43
+ }
44
+
45
+ img {
46
+ height: auto;
47
+ }
48
+
49
+ input,
50
+ button,
51
+ textarea,
52
+ select {
53
+ font: inherit;
54
+ color: inherit;
55
+ }
56
+
57
+ button {
58
+ cursor: pointer;
59
+ }
60
+
61
+ ul,
62
+ ol {
63
+ list-style: none;
64
+ }
65
+
66
+ a {
67
+ color: inherit;
68
+ text-decoration: none;
69
+ }
70
+
71
+ h1, h2, h3, h4, h5, h6 {
72
+ line-height: 1.2;
73
+ font-weight: var(--nymbal-font-weight-bold, 700);
74
+ overflow-wrap: break-word;
75
+ }
76
+
77
+ p {
78
+ overflow-wrap: break-word;
79
+ }
80
+
81
+ table {
82
+ border-collapse: collapse;
83
+ }
84
+
85
+ /* ---- Base typography ---- */
86
+
87
+ h1 { font-size: 2rem; }
88
+ h2 { font-size: 1.5rem; }
89
+ h3 { font-size: 1.25rem; }
90
+ h4 { font-size: 1.125rem; }
91
+ h5 { font-size: 1rem; }
92
+ h6 { font-size: var(--nymbal-font-size-sm, 0.875rem); }
93
+
94
+ small {
95
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
96
+ }
97
+
98
+ /* ---- Link styles ---- */
99
+
100
+ a:not([class]) {
101
+ color: var(--nymbal-color-accent, #2563eb);
102
+ text-decoration: underline;
103
+ text-underline-offset: 2px;
104
+ transition: color var(--nymbal-transition-fast, 150ms) ease;
105
+ }
106
+
107
+ a:not([class]):hover {
108
+ color: var(--nymbal-color-primary, #18181b);
109
+ }
110
+
111
+ a:not([class]):focus-visible {
112
+ outline: 2px solid var(--nymbal-color-accent, #2563eb);
113
+ outline-offset: 2px;
114
+ border-radius: var(--nymbal-radius-sm, 0.25rem);
115
+ }
116
+
117
+ /* ---- Skip navigation ---- */
118
+
119
+ .skip-nav {
120
+ position: absolute;
121
+ top: -100%;
122
+ left: 50%;
123
+ transform: translateX(-50%);
124
+ z-index: var(--nymbal-z-index-tooltip, 1000);
125
+ padding: var(--nymbal-spacing-sm, 0.5rem) var(--nymbal-spacing-md, 1rem);
126
+ background: var(--nymbal-color-primary, #18181b);
127
+ color: var(--nymbal-color-text-inverse, #fff);
128
+ font-weight: var(--nymbal-font-weight-medium, 500);
129
+ border-radius: var(--nymbal-radius-md, 0.5rem);
130
+ text-decoration: none;
131
+ transition: top var(--nymbal-transition-fast, 150ms) ease;
132
+ }
133
+
134
+ .skip-nav:focus {
135
+ top: var(--nymbal-spacing-sm, 0.5rem);
136
+ outline: 2px solid var(--nymbal-color-accent, #2563eb);
137
+ outline-offset: 2px;
138
+ }
139
+
140
+ /* ---- Layout ---- */
141
+
142
+ .container {
143
+ width: 100%;
144
+ max-width: 72rem;
145
+ margin-inline: auto;
146
+ padding-inline: var(--nymbal-spacing-md, 1rem);
147
+ }
148
+
149
+ @media (min-width: 641px) {
150
+ .container {
151
+ padding-inline: var(--nymbal-spacing-lg, 1.5rem);
152
+ }
153
+ }
154
+
155
+ .section {
156
+ padding-block: var(--nymbal-spacing-xl, 2rem);
157
+ }
158
+
159
+ @media (min-width: 641px) {
160
+ .section {
161
+ padding-block: 3rem;
162
+ }
163
+ }
164
+
165
+ @media (min-width: 1025px) {
166
+ .section {
167
+ padding-block: 4rem;
168
+ }
169
+ }
170
+
171
+ .section-title {
172
+ font-size: 1.5rem;
173
+ font-weight: var(--nymbal-font-weight-bold, 700);
174
+ color: var(--nymbal-color-primary, #18181b);
175
+ margin-bottom: var(--nymbal-spacing-lg, 1.5rem);
176
+ }
177
+
178
+ @media (min-width: 641px) {
179
+ .section-title {
180
+ font-size: 1.75rem;
181
+ }
182
+ }
183
+
184
+ /* ---- Accessibility ---- */
185
+
186
+ .visually-hidden {
187
+ position: absolute !important;
188
+ width: 1px !important;
189
+ height: 1px !important;
190
+ padding: 0 !important;
191
+ margin: -1px !important;
192
+ overflow: hidden !important;
193
+ clip: rect(0, 0, 0, 0) !important;
194
+ white-space: nowrap !important;
195
+ border: 0 !important;
196
+ }
197
+
198
+ /* ---- Buttons ---- */
199
+
200
+ .btn {
201
+ display: inline-flex;
202
+ align-items: center;
203
+ justify-content: center;
204
+ gap: var(--nymbal-spacing-xs, 0.25rem);
205
+ padding: var(--nymbal-spacing-sm, 0.5rem) var(--nymbal-spacing-md, 1rem);
206
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
207
+ font-weight: var(--nymbal-font-weight-medium, 500);
208
+ line-height: 1.4;
209
+ border: 1px solid transparent;
210
+ border-radius: var(--nymbal-radius-md, 0.5rem);
211
+ cursor: pointer;
212
+ transition:
213
+ background-color var(--nymbal-transition-fast, 150ms) ease,
214
+ border-color var(--nymbal-transition-fast, 150ms) ease,
215
+ color var(--nymbal-transition-fast, 150ms) ease,
216
+ box-shadow var(--nymbal-transition-fast, 150ms) ease;
217
+ text-decoration: none;
218
+ white-space: nowrap;
219
+ user-select: none;
220
+ }
221
+
222
+ .btn:focus-visible {
223
+ outline: 2px solid var(--nymbal-color-accent, #2563eb);
224
+ outline-offset: 2px;
225
+ }
226
+
227
+ .btn:disabled {
228
+ opacity: 0.5;
229
+ cursor: not-allowed;
230
+ pointer-events: none;
231
+ }
232
+
233
+ .btn-primary {
234
+ background-color: var(--nymbal-color-primary, #18181b);
235
+ color: var(--nymbal-color-text-inverse, #fff);
236
+ border-color: var(--nymbal-color-primary, #18181b);
237
+ }
238
+
239
+ .btn-primary:hover {
240
+ background-color: #27272a;
241
+ border-color: #27272a;
242
+ }
243
+
244
+ .btn-primary:active {
245
+ background-color: #09090b;
246
+ }
247
+
248
+ .btn-secondary {
249
+ background-color: transparent;
250
+ color: var(--nymbal-color-primary, #18181b);
251
+ border-color: var(--nymbal-color-border, #e4e4e7);
252
+ }
253
+
254
+ .btn-secondary:hover {
255
+ background-color: var(--nymbal-color-border, #e4e4e7);
256
+ }
257
+
258
+ .btn-secondary:active {
259
+ background-color: #d4d4d8;
260
+ }
261
+
262
+ .btn-outline {
263
+ background-color: transparent;
264
+ color: var(--nymbal-color-accent, #2563eb);
265
+ border-color: var(--nymbal-color-accent, #2563eb);
266
+ }
267
+
268
+ .btn-outline:hover {
269
+ background-color: var(--nymbal-color-accent, #2563eb);
270
+ color: var(--nymbal-color-text-inverse, #fff);
271
+ }
272
+
273
+ .btn-outline:active {
274
+ background-color: #1d4ed8;
275
+ }
276
+
277
+ /* ---- Form inputs ---- */
278
+
279
+ .input,
280
+ input[type="text"],
281
+ input[type="email"],
282
+ input[type="password"],
283
+ input[type="search"],
284
+ input[type="tel"],
285
+ input[type="url"],
286
+ input[type="number"],
287
+ select,
288
+ textarea {
289
+ display: block;
290
+ width: 100%;
291
+ padding: var(--nymbal-spacing-sm, 0.5rem) var(--nymbal-spacing-md, 1rem);
292
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
293
+ line-height: 1.5;
294
+ color: var(--nymbal-color-text, #18181b);
295
+ background-color: var(--nymbal-color-surface, #fff);
296
+ border: 1px solid var(--nymbal-color-border, #e4e4e7);
297
+ border-radius: var(--nymbal-radius-md, 0.5rem);
298
+ transition:
299
+ border-color var(--nymbal-transition-fast, 150ms) ease,
300
+ box-shadow var(--nymbal-transition-fast, 150ms) ease;
301
+ appearance: none;
302
+ }
303
+
304
+ .input:focus,
305
+ input[type="text"]:focus,
306
+ input[type="email"]:focus,
307
+ input[type="password"]:focus,
308
+ input[type="search"]:focus,
309
+ input[type="tel"]:focus,
310
+ input[type="url"]:focus,
311
+ input[type="number"]:focus,
312
+ select:focus,
313
+ textarea:focus {
314
+ outline: none;
315
+ border-color: var(--nymbal-color-accent, #2563eb);
316
+ box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
317
+ }
318
+
319
+ .input::placeholder,
320
+ input::placeholder,
321
+ textarea::placeholder {
322
+ color: var(--nymbal-color-text-muted, #71717a);
323
+ }
324
+
325
+ label {
326
+ display: block;
327
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
328
+ font-weight: var(--nymbal-font-weight-medium, 500);
329
+ color: var(--nymbal-color-text, #18181b);
330
+ margin-bottom: var(--nymbal-spacing-xs, 0.25rem);
331
+ }
332
+
333
+ .form-group {
334
+ margin-bottom: var(--nymbal-spacing-md, 1rem);
335
+ }
336
+
337
+ .form-error {
338
+ font-size: var(--nymbal-font-size-xs, 0.75rem);
339
+ color: var(--nymbal-color-error, #dc2626);
340
+ margin-top: var(--nymbal-spacing-xs, 0.25rem);
341
+ }
342
+
343
+ /* ---- Product grid ---- */
344
+
345
+ .product-grid {
346
+ display: grid;
347
+ gap: var(--nymbal-spacing-md, 1rem);
348
+ grid-template-columns: 1fr;
349
+ }
350
+
351
+ @media (min-width: 641px) {
352
+ .product-grid {
353
+ grid-template-columns: repeat(2, 1fr);
354
+ gap: var(--nymbal-spacing-lg, 1.5rem);
355
+ }
356
+ }
357
+
358
+ @media (min-width: 1025px) {
359
+ .product-grid {
360
+ grid-template-columns: repeat(4, 1fr);
361
+ }
362
+ }
@@ -0,0 +1,331 @@
1
+ /* ----------------------------------------------------------------
2
+ Account page styles (dashboard, orders, addresses, profile)
3
+ ---------------------------------------------------------------- */
4
+
5
+ /* ---- Page headings ---- */
6
+
7
+ .account-page-title {
8
+ font-size: 1.5rem;
9
+ font-weight: var(--nymbal-font-weight-bold, 700);
10
+ color: var(--nymbal-color-primary, #18181b);
11
+ margin-bottom: var(--nymbal-spacing-lg, 1.5rem);
12
+ }
13
+
14
+ .account-page-subtitle {
15
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
16
+ color: var(--nymbal-color-text-muted, #71717a);
17
+ margin-top: calc(-1 * var(--nymbal-spacing-md, 1rem));
18
+ margin-bottom: var(--nymbal-spacing-lg, 1.5rem);
19
+ }
20
+
21
+ /* ---- Dashboard stats ---- */
22
+
23
+ .account-stats {
24
+ display: grid;
25
+ grid-template-columns: repeat(2, 1fr);
26
+ gap: var(--nymbal-spacing-md, 1rem);
27
+ margin-bottom: var(--nymbal-spacing-xl, 2rem);
28
+ }
29
+
30
+ @media (min-width: 641px) {
31
+ .account-stats {
32
+ grid-template-columns: repeat(3, 1fr);
33
+ }
34
+ }
35
+
36
+ .account-stat-card {
37
+ padding: var(--nymbal-spacing-md, 1rem);
38
+ background-color: #fafafa;
39
+ border: 1px solid var(--nymbal-color-border, #e4e4e7);
40
+ border-radius: var(--nymbal-radius-lg, 0.75rem);
41
+ }
42
+
43
+ .account-stat-label {
44
+ font-size: var(--nymbal-font-size-xs, 0.75rem);
45
+ color: var(--nymbal-color-text-muted, #71717a);
46
+ text-transform: uppercase;
47
+ letter-spacing: 0.03em;
48
+ margin-bottom: var(--nymbal-spacing-xs, 0.25rem);
49
+ }
50
+
51
+ .account-stat-value {
52
+ font-size: 1.25rem;
53
+ font-weight: var(--nymbal-font-weight-bold, 700);
54
+ color: var(--nymbal-color-primary, #18181b);
55
+ }
56
+
57
+ /* ---- Form styles ---- */
58
+
59
+ .account-form {
60
+ max-width: 32rem;
61
+ }
62
+
63
+ .account-form-actions {
64
+ display: flex;
65
+ gap: var(--nymbal-spacing-sm, 0.5rem);
66
+ margin-top: var(--nymbal-spacing-lg, 1.5rem);
67
+ padding-top: var(--nymbal-spacing-lg, 1.5rem);
68
+ border-top: 1px solid var(--nymbal-color-border, #e4e4e7);
69
+ }
70
+
71
+ .account-form-row {
72
+ display: grid;
73
+ grid-template-columns: 1fr;
74
+ gap: var(--nymbal-spacing-md, 1rem);
75
+ }
76
+
77
+ @media (min-width: 641px) {
78
+ .account-form-row {
79
+ grid-template-columns: 1fr 1fr;
80
+ }
81
+ }
82
+
83
+ /* ---- Order list ---- */
84
+
85
+ .order-list {
86
+ display: flex;
87
+ flex-direction: column;
88
+ gap: var(--nymbal-spacing-md, 1rem);
89
+ }
90
+
91
+ .order-card {
92
+ display: block;
93
+ color: inherit;
94
+ text-decoration: none;
95
+ border: 1px solid var(--nymbal-color-border, #e4e4e7);
96
+ border-radius: var(--nymbal-radius-lg, 0.75rem);
97
+ overflow: hidden;
98
+ transition: border-color var(--nymbal-transition-fast, 150ms) ease;
99
+ }
100
+
101
+ .order-card:hover {
102
+ border-color: var(--nymbal-color-accent, #2563eb);
103
+ }
104
+
105
+ .order-card-header {
106
+ display: flex;
107
+ align-items: center;
108
+ justify-content: space-between;
109
+ gap: var(--nymbal-spacing-md, 1rem);
110
+ padding: var(--nymbal-spacing-md, 1rem) var(--nymbal-spacing-lg, 1.5rem);
111
+ background-color: #fafafa;
112
+ border-bottom: 1px solid var(--nymbal-color-border, #e4e4e7);
113
+ flex-wrap: wrap;
114
+ }
115
+
116
+ .order-card-number {
117
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
118
+ font-weight: var(--nymbal-font-weight-bold, 700);
119
+ color: var(--nymbal-color-primary, #18181b);
120
+ }
121
+
122
+ .order-card-date {
123
+ font-size: var(--nymbal-font-size-xs, 0.75rem);
124
+ color: var(--nymbal-color-text-muted, #71717a);
125
+ }
126
+
127
+ .order-status {
128
+ display: inline-flex;
129
+ align-items: center;
130
+ padding: 2px var(--nymbal-spacing-sm, 0.5rem);
131
+ font-size: var(--nymbal-font-size-xs, 0.75rem);
132
+ font-weight: var(--nymbal-font-weight-medium, 500);
133
+ border-radius: var(--nymbal-radius-full, 9999px);
134
+ text-transform: capitalize;
135
+ }
136
+
137
+ .order-status.status-completed,
138
+ .order-status.status-delivered {
139
+ background-color: rgba(22, 163, 74, 0.1);
140
+ color: var(--nymbal-color-success, #16a34a);
141
+ }
142
+
143
+ .order-status.status-pending,
144
+ .order-status.status-processing {
145
+ background-color: rgba(217, 119, 6, 0.1);
146
+ color: var(--nymbal-color-warning, #d97706);
147
+ }
148
+
149
+ .order-status.status-cancelled,
150
+ .order-status.status-failed {
151
+ background-color: rgba(220, 38, 38, 0.06);
152
+ color: var(--nymbal-color-error, #dc2626);
153
+ }
154
+
155
+ .order-card-body {
156
+ padding: var(--nymbal-spacing-md, 1rem) var(--nymbal-spacing-lg, 1.5rem);
157
+ }
158
+
159
+ .order-card-items {
160
+ display: flex;
161
+ flex-direction: column;
162
+ gap: var(--nymbal-spacing-xs, 0.25rem);
163
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
164
+ color: var(--nymbal-color-text-muted, #71717a);
165
+ }
166
+
167
+ .order-card-footer {
168
+ display: flex;
169
+ align-items: center;
170
+ justify-content: space-between;
171
+ padding: var(--nymbal-spacing-sm, 0.5rem) var(--nymbal-spacing-lg, 1.5rem)
172
+ var(--nymbal-spacing-md, 1rem);
173
+ }
174
+
175
+ .order-card-total {
176
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
177
+ font-weight: var(--nymbal-font-weight-bold, 700);
178
+ color: var(--nymbal-color-primary, #18181b);
179
+ }
180
+
181
+ .order-card-link {
182
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
183
+ font-weight: var(--nymbal-font-weight-medium, 500);
184
+ color: var(--nymbal-color-accent, #2563eb);
185
+ text-decoration: none;
186
+ }
187
+
188
+ .order-card-link:hover {
189
+ text-decoration: underline;
190
+ }
191
+
192
+ /* ---- Address cards ---- */
193
+
194
+ .address-list {
195
+ display: grid;
196
+ grid-template-columns: 1fr;
197
+ gap: var(--nymbal-spacing-md, 1rem);
198
+ }
199
+
200
+ @media (min-width: 641px) {
201
+ .address-list {
202
+ grid-template-columns: repeat(2, 1fr);
203
+ }
204
+ }
205
+
206
+ .address-card {
207
+ border: 1px solid var(--nymbal-color-border, #e4e4e7);
208
+ border-radius: var(--nymbal-radius-lg, 0.75rem);
209
+ padding: var(--nymbal-spacing-lg, 1.5rem);
210
+ position: relative;
211
+ }
212
+
213
+ .address-card.default {
214
+ border-color: var(--nymbal-color-accent, #2563eb);
215
+ }
216
+
217
+ .address-card-badge {
218
+ display: inline-flex;
219
+ font-size: var(--nymbal-font-size-xs, 0.75rem);
220
+ font-weight: var(--nymbal-font-weight-medium, 500);
221
+ color: var(--nymbal-color-accent, #2563eb);
222
+ background-color: rgba(37, 99, 235, 0.08);
223
+ padding: 2px var(--nymbal-spacing-sm, 0.5rem);
224
+ border-radius: var(--nymbal-radius-full, 9999px);
225
+ margin-bottom: var(--nymbal-spacing-sm, 0.5rem);
226
+ }
227
+
228
+ .address-card-name {
229
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
230
+ font-weight: var(--nymbal-font-weight-bold, 700);
231
+ color: var(--nymbal-color-primary, #18181b);
232
+ margin-bottom: var(--nymbal-spacing-xs, 0.25rem);
233
+ }
234
+
235
+ .address-card-line {
236
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
237
+ color: var(--nymbal-color-text-muted, #71717a);
238
+ line-height: 1.5;
239
+ }
240
+
241
+ .address-card-actions {
242
+ display: flex;
243
+ gap: var(--nymbal-spacing-sm, 0.5rem);
244
+ margin-top: var(--nymbal-spacing-md, 1rem);
245
+ padding-top: var(--nymbal-spacing-md, 1rem);
246
+ border-top: 1px solid var(--nymbal-color-border, #e4e4e7);
247
+ }
248
+
249
+ .address-card-actions button,
250
+ .address-card-actions a {
251
+ font-size: var(--nymbal-font-size-xs, 0.75rem);
252
+ font-weight: var(--nymbal-font-weight-medium, 500);
253
+ padding: var(--nymbal-spacing-xs, 0.25rem) var(--nymbal-spacing-sm, 0.5rem);
254
+ }
255
+
256
+ /* ---- Auth pages (login/register) ---- */
257
+
258
+ .auth-page {
259
+ display: flex;
260
+ align-items: center;
261
+ justify-content: center;
262
+ min-height: 60vh;
263
+ padding: var(--nymbal-spacing-xl, 2rem) var(--nymbal-spacing-md, 1rem);
264
+ }
265
+
266
+ .auth-card {
267
+ width: 100%;
268
+ max-width: 24rem;
269
+ background-color: var(--nymbal-color-surface, #fff);
270
+ border: 1px solid var(--nymbal-color-border, #e4e4e7);
271
+ border-radius: var(--nymbal-radius-lg, 0.75rem);
272
+ padding: var(--nymbal-spacing-xl, 2rem);
273
+ }
274
+
275
+ .auth-card-title {
276
+ font-size: 1.5rem;
277
+ font-weight: var(--nymbal-font-weight-bold, 700);
278
+ color: var(--nymbal-color-primary, #18181b);
279
+ text-align: center;
280
+ margin-bottom: var(--nymbal-spacing-xs, 0.25rem);
281
+ }
282
+
283
+ .auth-card-subtitle {
284
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
285
+ color: var(--nymbal-color-text-muted, #71717a);
286
+ text-align: center;
287
+ margin-bottom: var(--nymbal-spacing-lg, 1.5rem);
288
+ }
289
+
290
+ .auth-card .btn {
291
+ width: 100%;
292
+ justify-content: center;
293
+ margin-top: var(--nymbal-spacing-sm, 0.5rem);
294
+ }
295
+
296
+ .auth-footer {
297
+ text-align: center;
298
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
299
+ color: var(--nymbal-color-text-muted, #71717a);
300
+ margin-top: var(--nymbal-spacing-md, 1rem);
301
+ }
302
+
303
+ .auth-footer a {
304
+ color: var(--nymbal-color-accent, #2563eb);
305
+ text-decoration: none;
306
+ font-weight: var(--nymbal-font-weight-medium, 500);
307
+ }
308
+
309
+ .auth-footer a:hover {
310
+ text-decoration: underline;
311
+ }
312
+
313
+ /* ---- Empty states ---- */
314
+
315
+ .account-empty {
316
+ text-align: center;
317
+ padding: 3rem var(--nymbal-spacing-md, 1rem);
318
+ color: var(--nymbal-color-text-muted, #71717a);
319
+ }
320
+
321
+ .account-empty-title {
322
+ font-size: var(--nymbal-font-size-lg, 1.125rem);
323
+ font-weight: var(--nymbal-font-weight-medium, 500);
324
+ color: var(--nymbal-color-text, #18181b);
325
+ margin-bottom: var(--nymbal-spacing-xs, 0.25rem);
326
+ }
327
+
328
+ .account-empty-text {
329
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
330
+ margin-bottom: var(--nymbal-spacing-lg, 1.5rem);
331
+ }