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.
- package/bin/create-nymbal-app.mjs +9 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +419 -0
- package/dist/index.js.map +1 -0
- package/package.json +41 -7
- package/scaffold/project/astro/src/pages/index.astro +57 -0
- package/scaffold/templates/astro/README.md +26 -0
- package/scaffold/templates/astro/_dot.env.example +6 -0
- package/scaffold/templates/astro/_dot.gitignore +16 -0
- package/scaffold/templates/astro/_dot.node-version +1 -0
- package/scaffold/templates/astro/_dot.npmrc +1 -0
- package/scaffold/templates/astro/astro.config.mjs +14 -0
- package/scaffold/templates/astro/package.json +59 -0
- package/scaffold/templates/astro/src/components/AddressForm.astro +107 -0
- package/scaffold/templates/astro/src/components/Breadcrumb.astro +20 -0
- package/scaffold/templates/astro/src/components/CategoryNav.astro +27 -0
- package/scaffold/templates/astro/src/components/CheckoutSteps.astro +29 -0
- package/scaffold/templates/astro/src/components/Footer.astro +108 -0
- package/scaffold/templates/astro/src/components/Header.astro +192 -0
- package/scaffold/templates/astro/src/components/HeroSection.astro +17 -0
- package/scaffold/templates/astro/src/components/ImageGallery.astro +42 -0
- package/scaffold/templates/astro/src/components/NewsletterSignup.astro +39 -0
- package/scaffold/templates/astro/src/components/OrderSummary.astro +53 -0
- package/scaffold/templates/astro/src/components/Pagination.astro +13 -0
- package/scaffold/templates/astro/src/components/PriceDisplay.astro +25 -0
- package/scaffold/templates/astro/src/components/ProductCard.astro +44 -0
- package/scaffold/templates/astro/src/components/RelatedProducts.astro +28 -0
- package/scaffold/templates/astro/src/components/ReviewForm.astro +100 -0
- package/scaffold/templates/astro/src/components/ReviewList.astro +41 -0
- package/scaffold/templates/astro/src/components/SkipNav.astro +3 -0
- package/scaffold/templates/astro/src/components/SortDropdown.astro +26 -0
- package/scaffold/templates/astro/src/components/StockBadge.astro +32 -0
- package/scaffold/templates/astro/src/env.d.ts +2 -0
- package/scaffold/templates/astro/src/layouts/AccountLayout.astro +168 -0
- package/scaffold/templates/astro/src/layouts/BaseLayout.astro +55 -0
- package/scaffold/templates/astro/src/lib/api.ts +89 -0
- package/scaffold/templates/astro/src/lib/client.ts +13 -0
- package/scaffold/templates/astro/src/lib/format.ts +17 -0
- package/scaffold/templates/astro/src/lib/order-status.ts +14 -0
- package/scaffold/templates/astro/src/lib/seo.ts +62 -0
- package/scaffold/templates/astro/src/pages/404.astro +18 -0
- package/scaffold/templates/astro/src/pages/500.astro +17 -0
- package/scaffold/templates/astro/src/pages/account/addresses.astro +110 -0
- package/scaffold/templates/astro/src/pages/account/index.astro +67 -0
- package/scaffold/templates/astro/src/pages/account/login.astro +55 -0
- package/scaffold/templates/astro/src/pages/account/orders/[orderNumber].astro +108 -0
- package/scaffold/templates/astro/src/pages/account/orders.astro +81 -0
- package/scaffold/templates/astro/src/pages/account/profile.astro +131 -0
- package/scaffold/templates/astro/src/pages/account/register.astro +94 -0
- package/scaffold/templates/astro/src/pages/cart.astro +16 -0
- package/scaffold/templates/astro/src/pages/category/[slug].astro +73 -0
- package/scaffold/templates/astro/src/pages/checkout.astro +100 -0
- package/scaffold/templates/astro/src/pages/fragments/footer.astro +5 -0
- package/scaffold/templates/astro/src/pages/fragments/header.astro +5 -0
- package/scaffold/templates/astro/src/pages/fragments/nav.astro +9 -0
- package/scaffold/templates/astro/src/pages/fragments/product/[slug].astro +14 -0
- package/scaffold/templates/astro/src/pages/index.astro +49 -0
- package/scaffold/templates/astro/src/pages/order/[orderNumber].astro +127 -0
- package/scaffold/templates/astro/src/pages/product/[slug].astro +107 -0
- package/scaffold/templates/astro/src/pages/products/index.astro +62 -0
- package/scaffold/templates/astro/src/pages/search.astro +37 -0
- package/scaffold/templates/astro/src/scripts/account-guard.ts +22 -0
- package/scaffold/templates/astro/src/scripts/auth-forms.ts +89 -0
- package/scaffold/templates/astro/src/scripts/cart-page.ts +143 -0
- package/scaffold/templates/astro/src/scripts/checkout.ts +277 -0
- package/scaffold/templates/astro/src/scripts/image-gallery.ts +22 -0
- package/scaffold/templates/astro/src/scripts/init-client.ts +16 -0
- package/scaffold/templates/astro/src/scripts/order-status.ts +27 -0
- package/scaffold/templates/astro/src/scripts/pdp.ts +67 -0
- package/scaffold/templates/astro/src/scripts/plp.ts +109 -0
- package/scaffold/templates/astro/src/scripts/search.ts +145 -0
- package/scaffold/templates/astro/src/styles/global.css +362 -0
- package/scaffold/templates/astro/src/styles/pages/account.css +331 -0
- package/scaffold/templates/astro/src/styles/pages/cart.css +243 -0
- package/scaffold/templates/astro/src/styles/pages/checkout.css +270 -0
- package/scaffold/templates/astro/src/styles/pages/confirmation.css +142 -0
- package/scaffold/templates/astro/src/styles/pages/error.css +69 -0
- package/scaffold/templates/astro/src/styles/pages/home.css +269 -0
- package/scaffold/templates/astro/src/styles/pages/pdp.css +272 -0
- package/scaffold/templates/astro/src/styles/pages/plp.css +213 -0
- package/scaffold/templates/astro/src/styles/pages/search.css +152 -0
- package/scaffold/templates/astro/tsconfig.json +3 -0
- package/scaffold/templates/nextjs/README.md +26 -0
- package/scaffold/templates/nextjs/_dot.env.example +6 -0
- package/scaffold/templates/nextjs/_dot.gitignore +17 -0
- package/scaffold/templates/nextjs/_dot.node-version +1 -0
- package/scaffold/templates/nextjs/_dot.npmrc +1 -0
- package/scaffold/templates/nextjs/app/account/addresses/page.tsx +10 -0
- package/scaffold/templates/nextjs/app/account/layout.tsx +57 -0
- package/scaffold/templates/nextjs/app/account/login/page.tsx +23 -0
- package/scaffold/templates/nextjs/app/account/orders/[orderNumber]/page.tsx +192 -0
- package/scaffold/templates/nextjs/app/account/orders/page.tsx +123 -0
- package/scaffold/templates/nextjs/app/account/page.tsx +59 -0
- package/scaffold/templates/nextjs/app/account/profile/page.tsx +10 -0
- package/scaffold/templates/nextjs/app/account/register/page.tsx +10 -0
- package/scaffold/templates/nextjs/app/cart/page.tsx +10 -0
- package/scaffold/templates/nextjs/app/category/[slug]/page.tsx +58 -0
- package/scaffold/templates/nextjs/app/checkout/page.tsx +10 -0
- package/scaffold/templates/nextjs/app/error.tsx +49 -0
- package/scaffold/templates/nextjs/app/globals.css +473 -0
- package/scaffold/templates/nextjs/app/layout.tsx +29 -0
- package/scaffold/templates/nextjs/app/not-found.tsx +38 -0
- package/scaffold/templates/nextjs/app/order/[orderNumber]/page.tsx +127 -0
- package/scaffold/templates/nextjs/app/page.tsx +63 -0
- package/scaffold/templates/nextjs/app/product/[slug]/page.tsx +111 -0
- package/scaffold/templates/nextjs/app/products/page.tsx +40 -0
- package/scaffold/templates/nextjs/app/search/page.tsx +24 -0
- package/scaffold/templates/nextjs/components/client/AddressManager.tsx +181 -0
- package/scaffold/templates/nextjs/components/client/AuthGuard.tsx +55 -0
- package/scaffold/templates/nextjs/components/client/CartDrawerToggle.tsx +39 -0
- package/scaffold/templates/nextjs/components/client/CartPage.tsx +120 -0
- package/scaffold/templates/nextjs/components/client/CheckoutForm.tsx +523 -0
- package/scaffold/templates/nextjs/components/client/ImageGallery.tsx +68 -0
- package/scaffold/templates/nextjs/components/client/LoginForm.tsx +89 -0
- package/scaffold/templates/nextjs/components/client/MiniCartWrapper.tsx +12 -0
- package/scaffold/templates/nextjs/components/client/NewsletterSignup.tsx +74 -0
- package/scaffold/templates/nextjs/components/client/NymbalSetup.tsx +24 -0
- package/scaffold/templates/nextjs/components/client/OrderStatusRefresh.tsx +48 -0
- package/scaffold/templates/nextjs/components/client/ProductGrid.tsx +148 -0
- package/scaffold/templates/nextjs/components/client/ProductInteractive.tsx +61 -0
- package/scaffold/templates/nextjs/components/client/ProfileForm.tsx +112 -0
- package/scaffold/templates/nextjs/components/client/RegisterForm.tsx +131 -0
- package/scaffold/templates/nextjs/components/client/ReviewForm.tsx +116 -0
- package/scaffold/templates/nextjs/components/client/SearchBarWrapper.tsx +27 -0
- package/scaffold/templates/nextjs/components/client/SearchResults.tsx +141 -0
- package/scaffold/templates/nextjs/components/client/SortDropdown.tsx +35 -0
- package/scaffold/templates/nextjs/components/server/Breadcrumb.tsx +36 -0
- package/scaffold/templates/nextjs/components/server/CategoryNav.tsx +29 -0
- package/scaffold/templates/nextjs/components/server/CheckoutSteps.tsx +60 -0
- package/scaffold/templates/nextjs/components/server/Footer.module.css +64 -0
- package/scaffold/templates/nextjs/components/server/Footer.tsx +79 -0
- package/scaffold/templates/nextjs/components/server/Header.module.css +147 -0
- package/scaffold/templates/nextjs/components/server/Header.tsx +102 -0
- package/scaffold/templates/nextjs/components/server/HeroSection.tsx +18 -0
- package/scaffold/templates/nextjs/components/server/OrderSummary.tsx +79 -0
- package/scaffold/templates/nextjs/components/server/PriceDisplay.tsx +31 -0
- package/scaffold/templates/nextjs/components/server/ProductCard.tsx +59 -0
- package/scaffold/templates/nextjs/components/server/RelatedProducts.tsx +31 -0
- package/scaffold/templates/nextjs/components/server/ReviewList.tsx +62 -0
- package/scaffold/templates/nextjs/components/server/SkipNav.tsx +7 -0
- package/scaffold/templates/nextjs/components/server/StockBadge.tsx +19 -0
- package/scaffold/templates/nextjs/lib/api.ts +89 -0
- package/scaffold/templates/nextjs/lib/client.ts +23 -0
- package/scaffold/templates/nextjs/lib/format.ts +7 -0
- package/scaffold/templates/nextjs/lib/order-status.ts +14 -0
- package/scaffold/templates/nextjs/lib/seo.ts +73 -0
- package/scaffold/templates/nextjs/next.config.mjs +9 -0
- package/scaffold/templates/nextjs/package.json +64 -0
- package/scaffold/templates/nextjs/styles/pages/account.module.css +377 -0
- package/scaffold/templates/nextjs/styles/pages/cart.module.css +240 -0
- package/scaffold/templates/nextjs/styles/pages/checkout.module.css +404 -0
- package/scaffold/templates/nextjs/styles/pages/confirmation.module.css +237 -0
- package/scaffold/templates/nextjs/styles/pages/error.module.css +132 -0
- package/scaffold/templates/nextjs/styles/pages/home.module.css +285 -0
- package/scaffold/templates/nextjs/styles/pages/pdp.module.css +319 -0
- package/scaffold/templates/nextjs/styles/pages/plp.module.css +280 -0
- package/scaffold/templates/nextjs/styles/pages/search.module.css +192 -0
- package/scaffold/templates/nextjs/tsconfig.json +41 -0
- package/README.md +0 -4
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/* ── Cart Page ─────────────────────────────────────────────────────── */
|
|
2
|
+
|
|
3
|
+
.page {
|
|
4
|
+
padding-block: var(--nymbal-spacing-xl);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.pageTitle {
|
|
8
|
+
font-size: 2rem;
|
|
9
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
10
|
+
margin-bottom: var(--nymbal-spacing-lg);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.layout {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: var(--nymbal-spacing-xl);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (min-width: 1024px) {
|
|
20
|
+
.layout {
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
align-items: flex-start;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* ── Cart Items ───────────────────────────────────────────────────── */
|
|
27
|
+
|
|
28
|
+
.itemsSection {
|
|
29
|
+
flex: 1;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.itemsList {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.item {
|
|
39
|
+
display: flex;
|
|
40
|
+
gap: var(--nymbal-spacing-md);
|
|
41
|
+
padding: var(--nymbal-spacing-md) 0;
|
|
42
|
+
border-bottom: 1px solid var(--nymbal-color-border);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.item:first-child {
|
|
46
|
+
padding-top: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.itemImage {
|
|
50
|
+
width: 5rem;
|
|
51
|
+
height: 5rem;
|
|
52
|
+
flex-shrink: 0;
|
|
53
|
+
border-radius: var(--nymbal-radius-md);
|
|
54
|
+
background-color: #f4f4f5;
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.itemImage img {
|
|
59
|
+
width: 100%;
|
|
60
|
+
height: 100%;
|
|
61
|
+
object-fit: cover;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.itemDetails {
|
|
65
|
+
flex: 1;
|
|
66
|
+
min-width: 0;
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
gap: var(--nymbal-spacing-xs);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.itemName {
|
|
73
|
+
font-size: var(--nymbal-font-size-sm);
|
|
74
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
75
|
+
text-decoration: none;
|
|
76
|
+
color: var(--nymbal-color-text);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.itemName:hover {
|
|
80
|
+
text-decoration: underline;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.itemVariant {
|
|
84
|
+
font-size: var(--nymbal-font-size-xs);
|
|
85
|
+
color: var(--nymbal-color-text-muted);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.itemActions {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: var(--nymbal-spacing-md);
|
|
92
|
+
margin-top: auto;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.itemPrice {
|
|
96
|
+
font-size: var(--nymbal-font-size-sm);
|
|
97
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
98
|
+
margin-left: auto;
|
|
99
|
+
text-align: right;
|
|
100
|
+
flex-shrink: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.removeButton {
|
|
104
|
+
display: inline-flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
padding: var(--nymbal-spacing-xs);
|
|
108
|
+
font-size: var(--nymbal-font-size-xs);
|
|
109
|
+
color: var(--nymbal-color-text-muted);
|
|
110
|
+
background: none;
|
|
111
|
+
border: none;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
border-radius: var(--nymbal-radius-sm);
|
|
114
|
+
transition: color var(--nymbal-transition-fast),
|
|
115
|
+
background-color var(--nymbal-transition-fast);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.removeButton:hover {
|
|
119
|
+
color: var(--nymbal-color-error);
|
|
120
|
+
background-color: #fef2f2;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@media (min-width: 640px) {
|
|
124
|
+
.itemImage {
|
|
125
|
+
width: 6rem;
|
|
126
|
+
height: 6rem;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* ── Summary Sidebar ──────────────────────────────────────────────── */
|
|
131
|
+
|
|
132
|
+
.summary {
|
|
133
|
+
background: var(--nymbal-color-surface);
|
|
134
|
+
border: 1px solid var(--nymbal-color-border);
|
|
135
|
+
border-radius: var(--nymbal-radius-lg);
|
|
136
|
+
padding: var(--nymbal-spacing-lg);
|
|
137
|
+
width: 100%;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@media (min-width: 1024px) {
|
|
141
|
+
.summary {
|
|
142
|
+
width: 22rem;
|
|
143
|
+
flex-shrink: 0;
|
|
144
|
+
position: sticky;
|
|
145
|
+
top: 5.5rem;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.summaryTitle {
|
|
150
|
+
font-size: var(--nymbal-font-size-lg);
|
|
151
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
152
|
+
margin-bottom: var(--nymbal-spacing-md);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.summaryRow {
|
|
156
|
+
display: flex;
|
|
157
|
+
justify-content: space-between;
|
|
158
|
+
align-items: center;
|
|
159
|
+
padding: var(--nymbal-spacing-sm) 0;
|
|
160
|
+
font-size: var(--nymbal-font-size-sm);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.summaryLabel {
|
|
164
|
+
color: var(--nymbal-color-text-muted);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.summaryValue {
|
|
168
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.summaryDivider {
|
|
172
|
+
border: 0;
|
|
173
|
+
border-top: 1px solid var(--nymbal-color-border);
|
|
174
|
+
margin: var(--nymbal-spacing-sm) 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.summaryTotal {
|
|
178
|
+
font-size: var(--nymbal-font-size-base);
|
|
179
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.checkoutButton {
|
|
183
|
+
display: block;
|
|
184
|
+
width: 100%;
|
|
185
|
+
padding: 0.75rem;
|
|
186
|
+
margin-top: var(--nymbal-spacing-md);
|
|
187
|
+
font-size: var(--nymbal-font-size-base);
|
|
188
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
189
|
+
text-align: center;
|
|
190
|
+
color: var(--nymbal-color-text-inverse);
|
|
191
|
+
background-color: var(--nymbal-color-primary);
|
|
192
|
+
border: none;
|
|
193
|
+
border-radius: var(--nymbal-radius-md);
|
|
194
|
+
cursor: pointer;
|
|
195
|
+
text-decoration: none;
|
|
196
|
+
transition: background-color var(--nymbal-transition-fast);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.checkoutButton:hover {
|
|
200
|
+
background-color: var(--nymbal-color-primary-hover);
|
|
201
|
+
text-decoration: none;
|
|
202
|
+
color: var(--nymbal-color-text-inverse);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.checkoutButton:disabled {
|
|
206
|
+
opacity: 0.5;
|
|
207
|
+
cursor: not-allowed;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.continueShoppingLink {
|
|
211
|
+
display: block;
|
|
212
|
+
text-align: center;
|
|
213
|
+
margin-top: var(--nymbal-spacing-md);
|
|
214
|
+
font-size: var(--nymbal-font-size-sm);
|
|
215
|
+
color: var(--nymbal-color-accent);
|
|
216
|
+
text-decoration: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.continueShoppingLink:hover {
|
|
220
|
+
text-decoration: underline;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/* ── Empty Cart ───────────────────────────────────────────────────── */
|
|
224
|
+
|
|
225
|
+
.empty {
|
|
226
|
+
text-align: center;
|
|
227
|
+
padding: 4rem var(--nymbal-spacing-lg);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.emptyTitle {
|
|
231
|
+
font-size: var(--nymbal-font-size-lg);
|
|
232
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
233
|
+
margin-bottom: var(--nymbal-spacing-sm);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.emptyText {
|
|
237
|
+
font-size: var(--nymbal-font-size-sm);
|
|
238
|
+
color: var(--nymbal-color-text-muted);
|
|
239
|
+
margin-bottom: var(--nymbal-spacing-lg);
|
|
240
|
+
}
|
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
/* ── Checkout Page ─────────────────────────────────────────────────── */
|
|
2
|
+
|
|
3
|
+
.page {
|
|
4
|
+
padding-block: var(--nymbal-spacing-xl);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.pageTitle {
|
|
8
|
+
font-size: 2rem;
|
|
9
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
10
|
+
margin-bottom: var(--nymbal-spacing-lg);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.layout {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column-reverse;
|
|
16
|
+
gap: var(--nymbal-spacing-xl);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (min-width: 1024px) {
|
|
20
|
+
.layout {
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
align-items: flex-start;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* ── Step Indicator ───────────────────────────────────────────────── */
|
|
27
|
+
|
|
28
|
+
.steps {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: 0;
|
|
32
|
+
margin-bottom: var(--nymbal-spacing-xl);
|
|
33
|
+
overflow-x: auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.step {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: var(--nymbal-spacing-sm);
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.stepNumber {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
width: 2rem;
|
|
48
|
+
height: 2rem;
|
|
49
|
+
border-radius: 50%;
|
|
50
|
+
font-size: var(--nymbal-font-size-sm);
|
|
51
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
52
|
+
border: 2px solid var(--nymbal-color-border);
|
|
53
|
+
color: var(--nymbal-color-text-muted);
|
|
54
|
+
background: var(--nymbal-color-surface);
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
transition: all var(--nymbal-transition-fast);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.stepLabel {
|
|
60
|
+
font-size: var(--nymbal-font-size-sm);
|
|
61
|
+
color: var(--nymbal-color-text-muted);
|
|
62
|
+
font-weight: var(--nymbal-font-weight-normal);
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.stepActive .stepNumber {
|
|
67
|
+
background-color: var(--nymbal-color-primary);
|
|
68
|
+
border-color: var(--nymbal-color-primary);
|
|
69
|
+
color: var(--nymbal-color-text-inverse);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.stepActive .stepLabel {
|
|
73
|
+
color: var(--nymbal-color-text);
|
|
74
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.stepCompleted .stepNumber {
|
|
78
|
+
background-color: var(--nymbal-color-success);
|
|
79
|
+
border-color: var(--nymbal-color-success);
|
|
80
|
+
color: var(--nymbal-color-text-inverse);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.stepCompleted .stepLabel {
|
|
84
|
+
color: var(--nymbal-color-text);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.stepConnector {
|
|
88
|
+
width: 2rem;
|
|
89
|
+
height: 2px;
|
|
90
|
+
background-color: var(--nymbal-color-border);
|
|
91
|
+
flex-shrink: 0;
|
|
92
|
+
margin: 0 var(--nymbal-spacing-xs);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.stepConnectorCompleted {
|
|
96
|
+
background-color: var(--nymbal-color-success);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@media (min-width: 640px) {
|
|
100
|
+
.stepConnector {
|
|
101
|
+
width: 3rem;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* ── Form Sections ────────────────────────────────────────────────── */
|
|
106
|
+
|
|
107
|
+
.formArea {
|
|
108
|
+
flex: 1;
|
|
109
|
+
min-width: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.formSection {
|
|
113
|
+
background: var(--nymbal-color-surface);
|
|
114
|
+
border: 1px solid var(--nymbal-color-border);
|
|
115
|
+
border-radius: var(--nymbal-radius-lg);
|
|
116
|
+
padding: var(--nymbal-spacing-lg);
|
|
117
|
+
margin-bottom: var(--nymbal-spacing-lg);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.formSectionTitle {
|
|
121
|
+
font-size: var(--nymbal-font-size-lg);
|
|
122
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
123
|
+
margin-bottom: var(--nymbal-spacing-md);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.formGrid {
|
|
127
|
+
display: grid;
|
|
128
|
+
grid-template-columns: 1fr;
|
|
129
|
+
gap: var(--nymbal-spacing-md);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@media (min-width: 640px) {
|
|
133
|
+
.formGrid {
|
|
134
|
+
grid-template-columns: repeat(2, 1fr);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.formGridFull {
|
|
139
|
+
grid-column: 1 / -1;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.fieldLabel {
|
|
143
|
+
display: block;
|
|
144
|
+
font-size: var(--nymbal-font-size-sm);
|
|
145
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
146
|
+
margin-bottom: var(--nymbal-spacing-xs);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.fieldInput {
|
|
150
|
+
display: block;
|
|
151
|
+
width: 100%;
|
|
152
|
+
padding: 0.625rem 0.75rem;
|
|
153
|
+
font-size: var(--nymbal-font-size-sm);
|
|
154
|
+
border: 1px solid var(--nymbal-color-border);
|
|
155
|
+
border-radius: var(--nymbal-radius-md);
|
|
156
|
+
background: var(--nymbal-color-surface);
|
|
157
|
+
transition: border-color var(--nymbal-transition-fast),
|
|
158
|
+
box-shadow var(--nymbal-transition-fast);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.fieldInput:focus {
|
|
162
|
+
outline: none;
|
|
163
|
+
border-color: var(--nymbal-color-accent);
|
|
164
|
+
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.fieldError {
|
|
168
|
+
font-size: var(--nymbal-font-size-xs);
|
|
169
|
+
color: var(--nymbal-color-error);
|
|
170
|
+
margin-top: var(--nymbal-spacing-xs);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* ── Shipping Methods ─────────────────────────────────────────────── */
|
|
174
|
+
|
|
175
|
+
.shippingMethods {
|
|
176
|
+
display: flex;
|
|
177
|
+
flex-direction: column;
|
|
178
|
+
gap: var(--nymbal-spacing-sm);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.shippingOption {
|
|
182
|
+
display: flex;
|
|
183
|
+
align-items: center;
|
|
184
|
+
gap: var(--nymbal-spacing-md);
|
|
185
|
+
padding: var(--nymbal-spacing-md);
|
|
186
|
+
border: 1px solid var(--nymbal-color-border);
|
|
187
|
+
border-radius: var(--nymbal-radius-md);
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
transition: border-color var(--nymbal-transition-fast);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.shippingOption:hover {
|
|
193
|
+
border-color: var(--nymbal-color-primary);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.shippingOptionSelected {
|
|
197
|
+
border-color: var(--nymbal-color-accent);
|
|
198
|
+
background-color: rgba(37, 99, 235, 0.04);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.shippingOption input[type='radio'] {
|
|
202
|
+
width: auto;
|
|
203
|
+
accent-color: var(--nymbal-color-accent);
|
|
204
|
+
flex-shrink: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.shippingOptionInfo {
|
|
208
|
+
flex: 1;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.shippingOptionName {
|
|
212
|
+
font-size: var(--nymbal-font-size-sm);
|
|
213
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.shippingOptionDetail {
|
|
217
|
+
font-size: var(--nymbal-font-size-xs);
|
|
218
|
+
color: var(--nymbal-color-text-muted);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.shippingOptionPrice {
|
|
222
|
+
font-size: var(--nymbal-font-size-sm);
|
|
223
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
224
|
+
flex-shrink: 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* ── Payment ──────────────────────────────────────────────────────── */
|
|
228
|
+
|
|
229
|
+
.paymentSection {
|
|
230
|
+
background: var(--nymbal-color-surface);
|
|
231
|
+
border: 1px solid var(--nymbal-color-border);
|
|
232
|
+
border-radius: var(--nymbal-radius-lg);
|
|
233
|
+
padding: var(--nymbal-spacing-lg);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.paymentElement {
|
|
237
|
+
margin-bottom: var(--nymbal-spacing-lg);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.paymentError {
|
|
241
|
+
padding: var(--nymbal-spacing-md);
|
|
242
|
+
background-color: #fef2f2;
|
|
243
|
+
border: 1px solid #fecaca;
|
|
244
|
+
border-radius: var(--nymbal-radius-md);
|
|
245
|
+
color: var(--nymbal-color-error);
|
|
246
|
+
font-size: var(--nymbal-font-size-sm);
|
|
247
|
+
margin-bottom: var(--nymbal-spacing-md);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* ── Order Summary Sidebar ────────────────────────────────────────── */
|
|
251
|
+
|
|
252
|
+
.orderSummary {
|
|
253
|
+
background: var(--nymbal-color-surface);
|
|
254
|
+
border: 1px solid var(--nymbal-color-border);
|
|
255
|
+
border-radius: var(--nymbal-radius-lg);
|
|
256
|
+
padding: var(--nymbal-spacing-lg);
|
|
257
|
+
width: 100%;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
@media (min-width: 1024px) {
|
|
261
|
+
.orderSummary {
|
|
262
|
+
width: 22rem;
|
|
263
|
+
flex-shrink: 0;
|
|
264
|
+
position: sticky;
|
|
265
|
+
top: 5.5rem;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.orderSummaryTitle {
|
|
270
|
+
font-size: var(--nymbal-font-size-lg);
|
|
271
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
272
|
+
margin-bottom: var(--nymbal-spacing-md);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.orderItem {
|
|
276
|
+
display: flex;
|
|
277
|
+
gap: var(--nymbal-spacing-sm);
|
|
278
|
+
padding: var(--nymbal-spacing-sm) 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.orderItemImage {
|
|
282
|
+
width: 3rem;
|
|
283
|
+
height: 3rem;
|
|
284
|
+
flex-shrink: 0;
|
|
285
|
+
border-radius: var(--nymbal-radius-sm);
|
|
286
|
+
background-color: #f4f4f5;
|
|
287
|
+
overflow: hidden;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.orderItemImage img {
|
|
291
|
+
width: 100%;
|
|
292
|
+
height: 100%;
|
|
293
|
+
object-fit: cover;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.orderItemInfo {
|
|
297
|
+
flex: 1;
|
|
298
|
+
min-width: 0;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.orderItemName {
|
|
302
|
+
font-size: var(--nymbal-font-size-xs);
|
|
303
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
304
|
+
line-height: 1.3;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.orderItemQty {
|
|
308
|
+
font-size: var(--nymbal-font-size-xs);
|
|
309
|
+
color: var(--nymbal-color-text-muted);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.orderItemPrice {
|
|
313
|
+
font-size: var(--nymbal-font-size-xs);
|
|
314
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
315
|
+
flex-shrink: 0;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.summaryDivider {
|
|
319
|
+
border: 0;
|
|
320
|
+
border-top: 1px solid var(--nymbal-color-border);
|
|
321
|
+
margin: var(--nymbal-spacing-sm) 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.summaryRow {
|
|
325
|
+
display: flex;
|
|
326
|
+
justify-content: space-between;
|
|
327
|
+
padding: var(--nymbal-spacing-xs) 0;
|
|
328
|
+
font-size: var(--nymbal-font-size-sm);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.summaryRowLabel {
|
|
332
|
+
color: var(--nymbal-color-text-muted);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.summaryTotal {
|
|
336
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
337
|
+
font-size: var(--nymbal-font-size-base);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* ── Form Navigation ──────────────────────────────────────────────── */
|
|
341
|
+
|
|
342
|
+
.formActions {
|
|
343
|
+
display: flex;
|
|
344
|
+
justify-content: space-between;
|
|
345
|
+
align-items: center;
|
|
346
|
+
gap: var(--nymbal-spacing-md);
|
|
347
|
+
margin-top: var(--nymbal-spacing-lg);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.backButton {
|
|
351
|
+
padding: 0.625rem 1.25rem;
|
|
352
|
+
font-size: var(--nymbal-font-size-sm);
|
|
353
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
354
|
+
color: var(--nymbal-color-text);
|
|
355
|
+
background: none;
|
|
356
|
+
border: 1px solid var(--nymbal-color-border);
|
|
357
|
+
border-radius: var(--nymbal-radius-md);
|
|
358
|
+
cursor: pointer;
|
|
359
|
+
transition: border-color var(--nymbal-transition-fast),
|
|
360
|
+
background-color var(--nymbal-transition-fast);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.backButton:hover {
|
|
364
|
+
border-color: var(--nymbal-color-primary);
|
|
365
|
+
background-color: #f4f4f5;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.nextButton {
|
|
369
|
+
padding: 0.625rem 2rem;
|
|
370
|
+
font-size: var(--nymbal-font-size-sm);
|
|
371
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
372
|
+
color: var(--nymbal-color-text-inverse);
|
|
373
|
+
background-color: var(--nymbal-color-primary);
|
|
374
|
+
border: none;
|
|
375
|
+
border-radius: var(--nymbal-radius-md);
|
|
376
|
+
cursor: pointer;
|
|
377
|
+
transition: background-color var(--nymbal-transition-fast);
|
|
378
|
+
margin-left: auto;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.nextButton:hover {
|
|
382
|
+
background-color: var(--nymbal-color-primary-hover);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.nextButton:disabled {
|
|
386
|
+
opacity: 0.5;
|
|
387
|
+
cursor: not-allowed;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/* ── Processing Overlay ───────────────────────────────────────────── */
|
|
391
|
+
|
|
392
|
+
.processing {
|
|
393
|
+
display: flex;
|
|
394
|
+
flex-direction: column;
|
|
395
|
+
align-items: center;
|
|
396
|
+
justify-content: center;
|
|
397
|
+
padding: 3rem;
|
|
398
|
+
gap: var(--nymbal-spacing-md);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.processingText {
|
|
402
|
+
font-size: var(--nymbal-font-size-sm);
|
|
403
|
+
color: var(--nymbal-color-text-muted);
|
|
404
|
+
}
|