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,243 @@
1
+ /* ----------------------------------------------------------------
2
+ Cart page styles
3
+ ---------------------------------------------------------------- */
4
+
5
+ /* ---- Layout ---- */
6
+
7
+ .cart-layout {
8
+ display: grid;
9
+ grid-template-columns: 1fr;
10
+ gap: var(--nymbal-spacing-xl, 2rem);
11
+ }
12
+
13
+ @media (min-width: 769px) {
14
+ .cart-layout {
15
+ grid-template-columns: 1fr 360px;
16
+ align-items: start;
17
+ }
18
+ }
19
+
20
+ /* ---- Cart header ---- */
21
+
22
+ .cart-header {
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: space-between;
26
+ margin-bottom: var(--nymbal-spacing-lg, 1.5rem);
27
+ }
28
+
29
+ .cart-title {
30
+ font-size: 1.5rem;
31
+ font-weight: var(--nymbal-font-weight-bold, 700);
32
+ color: var(--nymbal-color-primary, #18181b);
33
+ }
34
+
35
+ .cart-item-count {
36
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
37
+ color: var(--nymbal-color-text-muted, #71717a);
38
+ font-weight: var(--nymbal-font-weight-normal, 400);
39
+ }
40
+
41
+ /* ---- Cart items list ---- */
42
+
43
+ .cart-items {
44
+ display: flex;
45
+ flex-direction: column;
46
+ }
47
+
48
+ /* ---- Line item ---- */
49
+
50
+ .cart-line-item {
51
+ display: grid;
52
+ grid-template-columns: 80px 1fr auto;
53
+ gap: var(--nymbal-spacing-md, 1rem);
54
+ padding: var(--nymbal-spacing-md, 1rem) 0;
55
+ border-bottom: 1px solid var(--nymbal-color-border, #e4e4e7);
56
+ align-items: start;
57
+ }
58
+
59
+ @media (min-width: 641px) {
60
+ .cart-line-item {
61
+ grid-template-columns: 100px 1fr auto auto;
62
+ gap: var(--nymbal-spacing-lg, 1.5rem);
63
+ align-items: center;
64
+ }
65
+ }
66
+
67
+ .cart-line-item:first-child {
68
+ border-top: 1px solid var(--nymbal-color-border, #e4e4e7);
69
+ }
70
+
71
+ .cart-line-image {
72
+ width: 100%;
73
+ aspect-ratio: 1 / 1;
74
+ object-fit: cover;
75
+ border-radius: var(--nymbal-radius-md, 0.5rem);
76
+ background-color: #f4f4f5;
77
+ }
78
+
79
+ .cart-line-info {
80
+ display: flex;
81
+ flex-direction: column;
82
+ gap: var(--nymbal-spacing-xs, 0.25rem);
83
+ min-width: 0;
84
+ }
85
+
86
+ .cart-line-name {
87
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
88
+ font-weight: var(--nymbal-font-weight-medium, 500);
89
+ color: var(--nymbal-color-text, #18181b);
90
+ text-decoration: none;
91
+ }
92
+
93
+ .cart-line-name:hover {
94
+ color: var(--nymbal-color-accent, #2563eb);
95
+ }
96
+
97
+ .cart-line-variant {
98
+ font-size: var(--nymbal-font-size-xs, 0.75rem);
99
+ color: var(--nymbal-color-text-muted, #71717a);
100
+ }
101
+
102
+ .cart-line-price-each {
103
+ font-size: var(--nymbal-font-size-xs, 0.75rem);
104
+ color: var(--nymbal-color-text-muted, #71717a);
105
+ }
106
+
107
+ .cart-line-quantity {
108
+ display: flex;
109
+ align-items: center;
110
+ gap: var(--nymbal-spacing-sm, 0.5rem);
111
+ }
112
+
113
+ .cart-line-quantity-btn {
114
+ display: flex;
115
+ align-items: center;
116
+ justify-content: center;
117
+ width: 32px;
118
+ height: 32px;
119
+ border: 1px solid var(--nymbal-color-border, #e4e4e7);
120
+ border-radius: var(--nymbal-radius-md, 0.5rem);
121
+ background: var(--nymbal-color-surface, #fff);
122
+ color: var(--nymbal-color-text, #18181b);
123
+ font-size: var(--nymbal-font-size-base, 1rem);
124
+ cursor: pointer;
125
+ transition: border-color var(--nymbal-transition-fast, 150ms) ease,
126
+ background-color var(--nymbal-transition-fast, 150ms) ease;
127
+ }
128
+
129
+ .cart-line-quantity-btn:hover {
130
+ border-color: var(--nymbal-color-primary, #18181b);
131
+ background-color: #f4f4f5;
132
+ }
133
+
134
+ .cart-line-quantity-value {
135
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
136
+ font-weight: var(--nymbal-font-weight-medium, 500);
137
+ min-width: 24px;
138
+ text-align: center;
139
+ }
140
+
141
+ .cart-line-total {
142
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
143
+ font-weight: var(--nymbal-font-weight-bold, 700);
144
+ color: var(--nymbal-color-primary, #18181b);
145
+ text-align: right;
146
+ white-space: nowrap;
147
+ }
148
+
149
+ .cart-line-remove {
150
+ font-size: var(--nymbal-font-size-xs, 0.75rem);
151
+ color: var(--nymbal-color-text-muted, #71717a);
152
+ background: none;
153
+ border: none;
154
+ cursor: pointer;
155
+ text-decoration: underline;
156
+ padding: 0;
157
+ transition: color var(--nymbal-transition-fast, 150ms) ease;
158
+ }
159
+
160
+ .cart-line-remove:hover {
161
+ color: var(--nymbal-color-error, #dc2626);
162
+ }
163
+
164
+ /* ---- Order summary sidebar ---- */
165
+
166
+ .cart-summary {
167
+ background-color: #fafafa;
168
+ border: 1px solid var(--nymbal-color-border, #e4e4e7);
169
+ border-radius: var(--nymbal-radius-lg, 0.75rem);
170
+ padding: var(--nymbal-spacing-lg, 1.5rem);
171
+ position: sticky;
172
+ top: 80px;
173
+ }
174
+
175
+ .cart-summary-title {
176
+ font-size: var(--nymbal-font-size-lg, 1.125rem);
177
+ font-weight: var(--nymbal-font-weight-bold, 700);
178
+ color: var(--nymbal-color-primary, #18181b);
179
+ margin-bottom: var(--nymbal-spacing-md, 1rem);
180
+ padding-bottom: var(--nymbal-spacing-md, 1rem);
181
+ border-bottom: 1px solid var(--nymbal-color-border, #e4e4e7);
182
+ }
183
+
184
+ .cart-summary-row {
185
+ display: flex;
186
+ justify-content: space-between;
187
+ align-items: center;
188
+ padding: var(--nymbal-spacing-xs, 0.25rem) 0;
189
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
190
+ }
191
+
192
+ .cart-summary-row dt {
193
+ color: var(--nymbal-color-text-muted, #71717a);
194
+ }
195
+
196
+ .cart-summary-row dd {
197
+ font-weight: var(--nymbal-font-weight-medium, 500);
198
+ color: var(--nymbal-color-text, #18181b);
199
+ }
200
+
201
+ .cart-summary-total {
202
+ display: flex;
203
+ justify-content: space-between;
204
+ align-items: center;
205
+ padding-top: var(--nymbal-spacing-md, 1rem);
206
+ margin-top: var(--nymbal-spacing-md, 1rem);
207
+ border-top: 1px solid var(--nymbal-color-border, #e4e4e7);
208
+ font-size: var(--nymbal-font-size-lg, 1.125rem);
209
+ font-weight: var(--nymbal-font-weight-bold, 700);
210
+ color: var(--nymbal-color-primary, #18181b);
211
+ }
212
+
213
+ .cart-summary-actions {
214
+ margin-top: var(--nymbal-spacing-lg, 1.5rem);
215
+ display: flex;
216
+ flex-direction: column;
217
+ gap: var(--nymbal-spacing-sm, 0.5rem);
218
+ }
219
+
220
+ .cart-summary-actions .btn {
221
+ width: 100%;
222
+ justify-content: center;
223
+ }
224
+
225
+ /* ---- Empty cart ---- */
226
+
227
+ .cart-empty {
228
+ text-align: center;
229
+ padding: 4rem var(--nymbal-spacing-md, 1rem);
230
+ }
231
+
232
+ .cart-empty-title {
233
+ font-size: var(--nymbal-font-size-lg, 1.125rem);
234
+ font-weight: var(--nymbal-font-weight-medium, 500);
235
+ color: var(--nymbal-color-text, #18181b);
236
+ margin-bottom: var(--nymbal-spacing-xs, 0.25rem);
237
+ }
238
+
239
+ .cart-empty-text {
240
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
241
+ color: var(--nymbal-color-text-muted, #71717a);
242
+ margin-bottom: var(--nymbal-spacing-lg, 1.5rem);
243
+ }
@@ -0,0 +1,270 @@
1
+ /* ----------------------------------------------------------------
2
+ Checkout page styles
3
+ ---------------------------------------------------------------- */
4
+
5
+ /* ---- Layout ---- */
6
+
7
+ .checkout-layout {
8
+ display: grid;
9
+ grid-template-columns: 1fr;
10
+ gap: var(--nymbal-spacing-xl, 2rem);
11
+ }
12
+
13
+ @media (min-width: 769px) {
14
+ .checkout-layout {
15
+ grid-template-columns: 1fr 380px;
16
+ align-items: start;
17
+ }
18
+ }
19
+
20
+ /* ---- Step indicator ---- */
21
+
22
+ .checkout-steps {
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ gap: 0;
27
+ margin-bottom: var(--nymbal-spacing-xl, 2rem);
28
+ padding: var(--nymbal-spacing-md, 1rem) 0;
29
+ counter-reset: step;
30
+ }
31
+
32
+ .checkout-step {
33
+ display: flex;
34
+ align-items: center;
35
+ gap: var(--nymbal-spacing-sm, 0.5rem);
36
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
37
+ color: var(--nymbal-color-text-muted, #71717a);
38
+ white-space: nowrap;
39
+ }
40
+
41
+ .checkout-step::before {
42
+ counter-increment: step;
43
+ content: counter(step);
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+ width: 28px;
48
+ height: 28px;
49
+ border-radius: var(--nymbal-radius-full, 9999px);
50
+ border: 2px solid var(--nymbal-color-border, #e4e4e7);
51
+ font-size: var(--nymbal-font-size-xs, 0.75rem);
52
+ font-weight: var(--nymbal-font-weight-bold, 700);
53
+ flex-shrink: 0;
54
+ }
55
+
56
+ .checkout-step.active {
57
+ color: var(--nymbal-color-primary, #18181b);
58
+ font-weight: var(--nymbal-font-weight-medium, 500);
59
+ }
60
+
61
+ .checkout-step.active::before {
62
+ background-color: var(--nymbal-color-primary, #18181b);
63
+ color: var(--nymbal-color-text-inverse, #fff);
64
+ border-color: var(--nymbal-color-primary, #18181b);
65
+ }
66
+
67
+ .checkout-step.completed::before {
68
+ background-color: var(--nymbal-color-success, #16a34a);
69
+ color: var(--nymbal-color-text-inverse, #fff);
70
+ border-color: var(--nymbal-color-success, #16a34a);
71
+ content: '\2713';
72
+ }
73
+
74
+ .checkout-step-divider {
75
+ width: 40px;
76
+ height: 2px;
77
+ background-color: var(--nymbal-color-border, #e4e4e7);
78
+ margin: 0 var(--nymbal-spacing-sm, 0.5rem);
79
+ flex-shrink: 0;
80
+ }
81
+
82
+ .checkout-step-divider.completed {
83
+ background-color: var(--nymbal-color-success, #16a34a);
84
+ }
85
+
86
+ @media (max-width: 640px) {
87
+ .checkout-step span {
88
+ display: none;
89
+ }
90
+
91
+ .checkout-step-divider {
92
+ width: 24px;
93
+ }
94
+ }
95
+
96
+ /* ---- Form sections ---- */
97
+
98
+ .checkout-form {
99
+ display: flex;
100
+ flex-direction: column;
101
+ gap: var(--nymbal-spacing-xl, 2rem);
102
+ }
103
+
104
+ .checkout-section {
105
+ padding-bottom: var(--nymbal-spacing-xl, 2rem);
106
+ border-bottom: 1px solid var(--nymbal-color-border, #e4e4e7);
107
+ }
108
+
109
+ .checkout-section:last-child {
110
+ border-bottom: none;
111
+ padding-bottom: 0;
112
+ }
113
+
114
+ .checkout-section-title {
115
+ font-size: var(--nymbal-font-size-lg, 1.125rem);
116
+ font-weight: var(--nymbal-font-weight-bold, 700);
117
+ color: var(--nymbal-color-primary, #18181b);
118
+ margin-bottom: var(--nymbal-spacing-md, 1rem);
119
+ }
120
+
121
+ /* ---- Address form grid ---- */
122
+
123
+ .address-grid {
124
+ display: grid;
125
+ grid-template-columns: 1fr;
126
+ gap: var(--nymbal-spacing-md, 1rem);
127
+ }
128
+
129
+ @media (min-width: 641px) {
130
+ .address-grid {
131
+ grid-template-columns: 1fr 1fr;
132
+ }
133
+ }
134
+
135
+ .address-grid .full-width {
136
+ grid-column: 1 / -1;
137
+ }
138
+
139
+ /* ---- Payment section ---- */
140
+
141
+ .payment-section {
142
+ background-color: #fafafa;
143
+ border: 1px solid var(--nymbal-color-border, #e4e4e7);
144
+ border-radius: var(--nymbal-radius-lg, 0.75rem);
145
+ padding: var(--nymbal-spacing-lg, 1.5rem);
146
+ }
147
+
148
+ .payment-grid {
149
+ display: grid;
150
+ grid-template-columns: 1fr;
151
+ gap: var(--nymbal-spacing-md, 1rem);
152
+ }
153
+
154
+ @media (min-width: 641px) {
155
+ .payment-grid {
156
+ grid-template-columns: 1fr 1fr;
157
+ }
158
+ }
159
+
160
+ .payment-grid .card-number {
161
+ grid-column: 1 / -1;
162
+ }
163
+
164
+ /* ---- Order summary sidebar (checkout variant) ---- */
165
+
166
+ .checkout-summary {
167
+ background-color: #fafafa;
168
+ border: 1px solid var(--nymbal-color-border, #e4e4e7);
169
+ border-radius: var(--nymbal-radius-lg, 0.75rem);
170
+ padding: var(--nymbal-spacing-lg, 1.5rem);
171
+ position: sticky;
172
+ top: 80px;
173
+ }
174
+
175
+ .checkout-summary-title {
176
+ font-size: var(--nymbal-font-size-lg, 1.125rem);
177
+ font-weight: var(--nymbal-font-weight-bold, 700);
178
+ color: var(--nymbal-color-primary, #18181b);
179
+ margin-bottom: var(--nymbal-spacing-md, 1rem);
180
+ padding-bottom: var(--nymbal-spacing-md, 1rem);
181
+ border-bottom: 1px solid var(--nymbal-color-border, #e4e4e7);
182
+ }
183
+
184
+ .checkout-summary-items {
185
+ display: flex;
186
+ flex-direction: column;
187
+ gap: var(--nymbal-spacing-sm, 0.5rem);
188
+ margin-bottom: var(--nymbal-spacing-md, 1rem);
189
+ }
190
+
191
+ .checkout-summary-item {
192
+ display: flex;
193
+ justify-content: space-between;
194
+ align-items: start;
195
+ gap: var(--nymbal-spacing-sm, 0.5rem);
196
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
197
+ }
198
+
199
+ .checkout-summary-item-name {
200
+ color: var(--nymbal-color-text, #18181b);
201
+ flex: 1;
202
+ min-width: 0;
203
+ }
204
+
205
+ .checkout-summary-item-qty {
206
+ color: var(--nymbal-color-text-muted, #71717a);
207
+ flex-shrink: 0;
208
+ }
209
+
210
+ .checkout-summary-item-price {
211
+ font-weight: var(--nymbal-font-weight-medium, 500);
212
+ flex-shrink: 0;
213
+ }
214
+
215
+ .checkout-summary-row {
216
+ display: flex;
217
+ justify-content: space-between;
218
+ padding: var(--nymbal-spacing-xs, 0.25rem) 0;
219
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
220
+ }
221
+
222
+ .checkout-summary-row dt {
223
+ color: var(--nymbal-color-text-muted, #71717a);
224
+ }
225
+
226
+ .checkout-summary-row dd {
227
+ font-weight: var(--nymbal-font-weight-medium, 500);
228
+ }
229
+
230
+ .checkout-summary-total {
231
+ display: flex;
232
+ justify-content: space-between;
233
+ padding-top: var(--nymbal-spacing-md, 1rem);
234
+ margin-top: var(--nymbal-spacing-sm, 0.5rem);
235
+ border-top: 1px solid var(--nymbal-color-border, #e4e4e7);
236
+ font-size: var(--nymbal-font-size-lg, 1.125rem);
237
+ font-weight: var(--nymbal-font-weight-bold, 700);
238
+ color: var(--nymbal-color-primary, #18181b);
239
+ }
240
+
241
+ /* ---- Submit area ---- */
242
+
243
+ .checkout-submit {
244
+ margin-top: var(--nymbal-spacing-lg, 1.5rem);
245
+ }
246
+
247
+ .checkout-submit .btn {
248
+ width: 100%;
249
+ justify-content: center;
250
+ padding: var(--nymbal-spacing-md, 1rem);
251
+ font-size: var(--nymbal-font-size-base, 1rem);
252
+ }
253
+
254
+ .checkout-terms {
255
+ font-size: var(--nymbal-font-size-xs, 0.75rem);
256
+ color: var(--nymbal-color-text-muted, #71717a);
257
+ text-align: center;
258
+ margin-top: var(--nymbal-spacing-sm, 0.5rem);
259
+ }
260
+
261
+ /* ---- Error message ---- */
262
+
263
+ .checkout-error {
264
+ padding: var(--nymbal-spacing-sm, 0.5rem) var(--nymbal-spacing-md, 1rem);
265
+ background-color: rgba(220, 38, 38, 0.06);
266
+ border: 1px solid rgba(220, 38, 38, 0.2);
267
+ border-radius: var(--nymbal-radius-md, 0.5rem);
268
+ color: var(--nymbal-color-error, #dc2626);
269
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
270
+ }
@@ -0,0 +1,142 @@
1
+ /* ----------------------------------------------------------------
2
+ Order confirmation page styles
3
+ ---------------------------------------------------------------- */
4
+
5
+ .confirmation-page {
6
+ text-align: center;
7
+ max-width: 40rem;
8
+ margin-inline: auto;
9
+ }
10
+
11
+ /* ---- Success icon ---- */
12
+
13
+ .confirmation-icon {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: center;
17
+ width: 64px;
18
+ height: 64px;
19
+ margin: 0 auto var(--nymbal-spacing-md, 1rem);
20
+ border-radius: var(--nymbal-radius-full, 9999px);
21
+ background-color: rgba(22, 163, 74, 0.1);
22
+ color: var(--nymbal-color-success, #16a34a);
23
+ }
24
+
25
+ .confirmation-icon svg {
26
+ width: 32px;
27
+ height: 32px;
28
+ }
29
+
30
+ /* ---- Heading area ---- */
31
+
32
+ .confirmation-title {
33
+ font-size: 1.75rem;
34
+ font-weight: var(--nymbal-font-weight-bold, 700);
35
+ color: var(--nymbal-color-primary, #18181b);
36
+ margin-bottom: var(--nymbal-spacing-xs, 0.25rem);
37
+ }
38
+
39
+ .confirmation-subtitle {
40
+ font-size: var(--nymbal-font-size-base, 1rem);
41
+ color: var(--nymbal-color-text-muted, #71717a);
42
+ margin-bottom: var(--nymbal-spacing-xl, 2rem);
43
+ }
44
+
45
+ /* ---- Order details card ---- */
46
+
47
+ .confirmation-card {
48
+ text-align: left;
49
+ background-color: #fafafa;
50
+ border: 1px solid var(--nymbal-color-border, #e4e4e7);
51
+ border-radius: var(--nymbal-radius-lg, 0.75rem);
52
+ padding: var(--nymbal-spacing-lg, 1.5rem);
53
+ margin-bottom: var(--nymbal-spacing-xl, 2rem);
54
+ }
55
+
56
+ .confirmation-card-title {
57
+ font-size: var(--nymbal-font-size-lg, 1.125rem);
58
+ font-weight: var(--nymbal-font-weight-bold, 700);
59
+ color: var(--nymbal-color-primary, #18181b);
60
+ margin-bottom: var(--nymbal-spacing-md, 1rem);
61
+ padding-bottom: var(--nymbal-spacing-md, 1rem);
62
+ border-bottom: 1px solid var(--nymbal-color-border, #e4e4e7);
63
+ }
64
+
65
+ .confirmation-detail-row {
66
+ display: flex;
67
+ justify-content: space-between;
68
+ align-items: center;
69
+ padding: var(--nymbal-spacing-xs, 0.25rem) 0;
70
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
71
+ }
72
+
73
+ .confirmation-detail-row dt {
74
+ color: var(--nymbal-color-text-muted, #71717a);
75
+ }
76
+
77
+ .confirmation-detail-row dd {
78
+ font-weight: var(--nymbal-font-weight-medium, 500);
79
+ color: var(--nymbal-color-text, #18181b);
80
+ }
81
+
82
+ /* ---- Line items ---- */
83
+
84
+ .confirmation-items {
85
+ margin-top: var(--nymbal-spacing-md, 1rem);
86
+ padding-top: var(--nymbal-spacing-md, 1rem);
87
+ border-top: 1px solid var(--nymbal-color-border, #e4e4e7);
88
+ }
89
+
90
+ .confirmation-item {
91
+ display: flex;
92
+ justify-content: space-between;
93
+ align-items: center;
94
+ padding: var(--nymbal-spacing-sm, 0.5rem) 0;
95
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
96
+ }
97
+
98
+ .confirmation-item-name {
99
+ color: var(--nymbal-color-text, #18181b);
100
+ }
101
+
102
+ .confirmation-item-qty {
103
+ color: var(--nymbal-color-text-muted, #71717a);
104
+ margin-left: var(--nymbal-spacing-xs, 0.25rem);
105
+ }
106
+
107
+ .confirmation-item-price {
108
+ font-weight: var(--nymbal-font-weight-medium, 500);
109
+ }
110
+
111
+ /* ---- Totals ---- */
112
+
113
+ .confirmation-totals {
114
+ margin-top: var(--nymbal-spacing-md, 1rem);
115
+ padding-top: var(--nymbal-spacing-md, 1rem);
116
+ border-top: 1px solid var(--nymbal-color-border, #e4e4e7);
117
+ }
118
+
119
+ .confirmation-total-row {
120
+ display: flex;
121
+ justify-content: space-between;
122
+ padding: var(--nymbal-spacing-xs, 0.25rem) 0;
123
+ font-size: var(--nymbal-font-size-sm, 0.875rem);
124
+ }
125
+
126
+ .confirmation-total-row.grand-total {
127
+ font-size: var(--nymbal-font-size-lg, 1.125rem);
128
+ font-weight: var(--nymbal-font-weight-bold, 700);
129
+ color: var(--nymbal-color-primary, #18181b);
130
+ padding-top: var(--nymbal-spacing-sm, 0.5rem);
131
+ margin-top: var(--nymbal-spacing-xs, 0.25rem);
132
+ border-top: 1px solid var(--nymbal-color-border, #e4e4e7);
133
+ }
134
+
135
+ /* ---- Actions ---- */
136
+
137
+ .confirmation-actions {
138
+ display: flex;
139
+ gap: var(--nymbal-spacing-sm, 0.5rem);
140
+ justify-content: center;
141
+ flex-wrap: wrap;
142
+ }
@@ -0,0 +1,69 @@
1
+ /* ----------------------------------------------------------------
2
+ Error page styles (404, 500, etc.)
3
+ ---------------------------------------------------------------- */
4
+
5
+ .error-page {
6
+ display: flex;
7
+ flex-direction: column;
8
+ align-items: center;
9
+ justify-content: center;
10
+ text-align: center;
11
+ min-height: 60vh;
12
+ padding: var(--nymbal-spacing-xl, 2rem) var(--nymbal-spacing-md, 1rem);
13
+ }
14
+
15
+ .error-code {
16
+ font-size: 6rem;
17
+ font-weight: var(--nymbal-font-weight-bold, 700);
18
+ line-height: 1;
19
+ color: var(--nymbal-color-border, #e4e4e7);
20
+ margin-bottom: var(--nymbal-spacing-md, 1rem);
21
+ letter-spacing: -0.04em;
22
+ }
23
+
24
+ @media (min-width: 641px) {
25
+ .error-code {
26
+ font-size: 8rem;
27
+ }
28
+ }
29
+
30
+ .error-title {
31
+ font-size: 1.5rem;
32
+ font-weight: var(--nymbal-font-weight-bold, 700);
33
+ color: var(--nymbal-color-primary, #18181b);
34
+ margin-bottom: var(--nymbal-spacing-xs, 0.25rem);
35
+ }
36
+
37
+ @media (min-width: 641px) {
38
+ .error-title {
39
+ font-size: 1.75rem;
40
+ }
41
+ }
42
+
43
+ .error-message {
44
+ font-size: var(--nymbal-font-size-base, 1rem);
45
+ color: var(--nymbal-color-text-muted, #71717a);
46
+ max-width: 32ch;
47
+ margin-inline: auto;
48
+ margin-bottom: var(--nymbal-spacing-lg, 1.5rem);
49
+ line-height: 1.5;
50
+ }
51
+
52
+ .error-actions {
53
+ display: flex;
54
+ gap: var(--nymbal-spacing-sm, 0.5rem);
55
+ justify-content: center;
56
+ flex-wrap: wrap;
57
+ }
58
+
59
+ /* ---- Server error variant ---- */
60
+
61
+ .error-page.server-error .error-code {
62
+ color: rgba(220, 38, 38, 0.15);
63
+ }
64
+
65
+ /* ---- Offline / network error ---- */
66
+
67
+ .error-page.network-error .error-code {
68
+ color: rgba(217, 119, 6, 0.15);
69
+ }