create-nymbal-app 0.0.0 → 0.3.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 +74 -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 +170 -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/lib/submit-once.ts +44 -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 +69 -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 +82 -0
- package/scaffold/templates/astro/src/scripts/cart-page.ts +143 -0
- package/scaffold/templates/astro/src/scripts/checkout.ts +272 -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/profile-form.ts +57 -0
- package/scaffold/templates/astro/src/scripts/review-form.ts +27 -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,319 @@
|
|
|
1
|
+
/* ── PDP Layout ────────────────────────────────────────────────────── */
|
|
2
|
+
|
|
3
|
+
.page {
|
|
4
|
+
padding-block: var(--nymbal-spacing-xl);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.productLayout {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: var(--nymbal-spacing-xl);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@media (min-width: 1024px) {
|
|
14
|
+
.productLayout {
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
gap: 3rem;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* ── Gallery ──────────────────────────────────────────────────────── */
|
|
21
|
+
|
|
22
|
+
.gallery {
|
|
23
|
+
flex: 1;
|
|
24
|
+
min-width: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.mainImage {
|
|
28
|
+
aspect-ratio: 1;
|
|
29
|
+
background-color: #f4f4f5;
|
|
30
|
+
border-radius: var(--nymbal-radius-lg);
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
margin-bottom: var(--nymbal-spacing-md);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.mainImage img {
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
object-fit: cover;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.thumbnails {
|
|
42
|
+
display: flex;
|
|
43
|
+
gap: var(--nymbal-spacing-sm);
|
|
44
|
+
overflow-x: auto;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.thumbnail {
|
|
48
|
+
width: 4rem;
|
|
49
|
+
height: 4rem;
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
border-radius: var(--nymbal-radius-md);
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
border: 2px solid transparent;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
background-color: #f4f4f5;
|
|
56
|
+
transition: border-color var(--nymbal-transition-fast);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.thumbnail:hover {
|
|
60
|
+
border-color: var(--nymbal-color-text-muted);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.thumbnailActive {
|
|
64
|
+
border-color: var(--nymbal-color-primary);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.thumbnail img {
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
object-fit: cover;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media (min-width: 1024px) {
|
|
74
|
+
.thumbnail {
|
|
75
|
+
width: 5rem;
|
|
76
|
+
height: 5rem;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* ── Product Info ─────────────────────────────────────────────────── */
|
|
81
|
+
|
|
82
|
+
.info {
|
|
83
|
+
flex: 1;
|
|
84
|
+
min-width: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@media (min-width: 1024px) {
|
|
88
|
+
.info {
|
|
89
|
+
max-width: 28rem;
|
|
90
|
+
position: sticky;
|
|
91
|
+
top: 5.5rem;
|
|
92
|
+
align-self: flex-start;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.breadcrumb {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
gap: var(--nymbal-spacing-xs);
|
|
100
|
+
font-size: var(--nymbal-font-size-xs);
|
|
101
|
+
color: var(--nymbal-color-text-muted);
|
|
102
|
+
margin-bottom: var(--nymbal-spacing-md);
|
|
103
|
+
flex-wrap: wrap;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.breadcrumbLink {
|
|
107
|
+
color: var(--nymbal-color-text-muted);
|
|
108
|
+
text-decoration: none;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.breadcrumbLink:hover {
|
|
112
|
+
color: var(--nymbal-color-accent);
|
|
113
|
+
text-decoration: underline;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.breadcrumbSeparator {
|
|
117
|
+
color: var(--nymbal-color-border);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.productTitle {
|
|
121
|
+
font-size: 1.75rem;
|
|
122
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
123
|
+
line-height: 1.2;
|
|
124
|
+
margin-bottom: var(--nymbal-spacing-sm);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.price {
|
|
128
|
+
font-size: 1.5rem;
|
|
129
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
130
|
+
margin-bottom: var(--nymbal-spacing-md);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.priceRange {
|
|
134
|
+
font-size: var(--nymbal-font-size-sm);
|
|
135
|
+
color: var(--nymbal-color-text-muted);
|
|
136
|
+
font-weight: var(--nymbal-font-weight-normal);
|
|
137
|
+
margin-left: var(--nymbal-spacing-xs);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.stockBadge {
|
|
141
|
+
display: inline-flex;
|
|
142
|
+
align-items: center;
|
|
143
|
+
gap: var(--nymbal-spacing-xs);
|
|
144
|
+
padding: 0.125rem 0.5rem;
|
|
145
|
+
font-size: var(--nymbal-font-size-xs);
|
|
146
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
147
|
+
border-radius: var(--nymbal-radius-full);
|
|
148
|
+
margin-bottom: var(--nymbal-spacing-md);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.inStock {
|
|
152
|
+
background-color: #dcfce7;
|
|
153
|
+
color: var(--nymbal-color-success);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.outOfStock {
|
|
157
|
+
background-color: #fef2f2;
|
|
158
|
+
color: var(--nymbal-color-error);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.stockDot {
|
|
162
|
+
width: 6px;
|
|
163
|
+
height: 6px;
|
|
164
|
+
border-radius: 50%;
|
|
165
|
+
background-color: currentColor;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.description {
|
|
169
|
+
font-size: var(--nymbal-font-size-sm);
|
|
170
|
+
color: var(--nymbal-color-text-muted);
|
|
171
|
+
line-height: 1.6;
|
|
172
|
+
margin-bottom: var(--nymbal-spacing-lg);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* ── Variant Selector Area ────────────────────────────────────────── */
|
|
176
|
+
|
|
177
|
+
.variantSection {
|
|
178
|
+
margin-bottom: var(--nymbal-spacing-lg);
|
|
179
|
+
padding-bottom: var(--nymbal-spacing-lg);
|
|
180
|
+
border-bottom: 1px solid var(--nymbal-color-border);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* ── Add to Cart Area ─────────────────────────────────────────────── */
|
|
184
|
+
|
|
185
|
+
.addToCartSection {
|
|
186
|
+
display: flex;
|
|
187
|
+
gap: var(--nymbal-spacing-md);
|
|
188
|
+
align-items: center;
|
|
189
|
+
margin-bottom: var(--nymbal-spacing-lg);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.quantityWrapper {
|
|
193
|
+
flex-shrink: 0;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.addToCartWrapper {
|
|
197
|
+
flex: 1;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* ── Details / Accordion ──────────────────────────────────────────── */
|
|
201
|
+
|
|
202
|
+
.detailsSection {
|
|
203
|
+
border-top: 1px solid var(--nymbal-color-border);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.detailsItem {
|
|
207
|
+
border-bottom: 1px solid var(--nymbal-color-border);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.detailsSummary {
|
|
211
|
+
display: flex;
|
|
212
|
+
align-items: center;
|
|
213
|
+
justify-content: space-between;
|
|
214
|
+
padding: var(--nymbal-spacing-md) 0;
|
|
215
|
+
font-size: var(--nymbal-font-size-sm);
|
|
216
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
217
|
+
cursor: pointer;
|
|
218
|
+
list-style: none;
|
|
219
|
+
user-select: none;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.detailsSummary::-webkit-details-marker {
|
|
223
|
+
display: none;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.detailsSummary::after {
|
|
227
|
+
content: '+';
|
|
228
|
+
font-size: var(--nymbal-font-size-lg);
|
|
229
|
+
color: var(--nymbal-color-text-muted);
|
|
230
|
+
transition: transform var(--nymbal-transition-fast);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.detailsItem[open] .detailsSummary::after {
|
|
234
|
+
content: '-';
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.detailsContent {
|
|
238
|
+
padding-bottom: var(--nymbal-spacing-md);
|
|
239
|
+
font-size: var(--nymbal-font-size-sm);
|
|
240
|
+
color: var(--nymbal-color-text-muted);
|
|
241
|
+
line-height: 1.6;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* ── Reviews ──────────────────────────────────────────────────────── */
|
|
245
|
+
|
|
246
|
+
.reviewsSection {
|
|
247
|
+
margin-top: var(--nymbal-spacing-xl);
|
|
248
|
+
padding-top: var(--nymbal-spacing-xl);
|
|
249
|
+
border-top: 1px solid var(--nymbal-color-border);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.reviewsTitle {
|
|
253
|
+
font-size: 1.25rem;
|
|
254
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
255
|
+
margin-bottom: var(--nymbal-spacing-lg);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.reviewsList {
|
|
259
|
+
display: flex;
|
|
260
|
+
flex-direction: column;
|
|
261
|
+
gap: var(--nymbal-spacing-lg);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.reviewCard {
|
|
265
|
+
padding-bottom: var(--nymbal-spacing-lg);
|
|
266
|
+
border-bottom: 1px solid var(--nymbal-color-border);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.reviewCard:last-child {
|
|
270
|
+
border-bottom: none;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.reviewHeader {
|
|
274
|
+
display: flex;
|
|
275
|
+
align-items: center;
|
|
276
|
+
justify-content: space-between;
|
|
277
|
+
margin-bottom: var(--nymbal-spacing-sm);
|
|
278
|
+
gap: var(--nymbal-spacing-sm);
|
|
279
|
+
flex-wrap: wrap;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.reviewStars {
|
|
283
|
+
display: flex;
|
|
284
|
+
gap: 2px;
|
|
285
|
+
color: #f59e0b;
|
|
286
|
+
font-size: var(--nymbal-font-size-sm);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.starFilled {
|
|
290
|
+
color: #f59e0b;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.starEmpty {
|
|
294
|
+
color: var(--nymbal-color-border);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.reviewDate {
|
|
298
|
+
font-size: var(--nymbal-font-size-xs);
|
|
299
|
+
color: var(--nymbal-color-text-muted);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.reviewTitle {
|
|
303
|
+
font-size: var(--nymbal-font-size-sm);
|
|
304
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
305
|
+
margin-bottom: var(--nymbal-spacing-xs);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.reviewBody {
|
|
309
|
+
font-size: var(--nymbal-font-size-sm);
|
|
310
|
+
color: var(--nymbal-color-text-muted);
|
|
311
|
+
line-height: 1.6;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.noReviews {
|
|
315
|
+
text-align: center;
|
|
316
|
+
padding: var(--nymbal-spacing-xl);
|
|
317
|
+
color: var(--nymbal-color-text-muted);
|
|
318
|
+
font-size: var(--nymbal-font-size-sm);
|
|
319
|
+
}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
/* ── PLP Layout ────────────────────────────────────────────────────── */
|
|
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-lg);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (min-width: 1024px) {
|
|
20
|
+
.layout {
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* ── Filter Sidebar ───────────────────────────────────────────────── */
|
|
26
|
+
|
|
27
|
+
.sidebar {
|
|
28
|
+
width: 100%;
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@media (min-width: 1024px) {
|
|
33
|
+
.sidebar {
|
|
34
|
+
width: 16rem;
|
|
35
|
+
position: sticky;
|
|
36
|
+
top: 5rem;
|
|
37
|
+
align-self: flex-start;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.filterSection {
|
|
42
|
+
padding: var(--nymbal-spacing-md);
|
|
43
|
+
background: var(--nymbal-color-surface);
|
|
44
|
+
border: 1px solid var(--nymbal-color-border);
|
|
45
|
+
border-radius: var(--nymbal-radius-lg);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.filterTitle {
|
|
49
|
+
font-size: var(--nymbal-font-size-sm);
|
|
50
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
51
|
+
text-transform: uppercase;
|
|
52
|
+
letter-spacing: 0.05em;
|
|
53
|
+
margin-bottom: var(--nymbal-spacing-md);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.filterGroup {
|
|
57
|
+
margin-bottom: var(--nymbal-spacing-md);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.filterGroup:last-child {
|
|
61
|
+
margin-bottom: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.filterGroupLabel {
|
|
65
|
+
font-size: var(--nymbal-font-size-sm);
|
|
66
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
67
|
+
margin-bottom: var(--nymbal-spacing-sm);
|
|
68
|
+
display: block;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.filterOption {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: var(--nymbal-spacing-sm);
|
|
75
|
+
padding: var(--nymbal-spacing-xs) 0;
|
|
76
|
+
font-size: var(--nymbal-font-size-sm);
|
|
77
|
+
color: var(--nymbal-color-text);
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.filterOption input[type='checkbox'] {
|
|
82
|
+
width: auto;
|
|
83
|
+
accent-color: var(--nymbal-color-accent);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.clearFilters {
|
|
87
|
+
display: inline-block;
|
|
88
|
+
margin-top: var(--nymbal-spacing-md);
|
|
89
|
+
font-size: var(--nymbal-font-size-xs);
|
|
90
|
+
color: var(--nymbal-color-accent);
|
|
91
|
+
background: none;
|
|
92
|
+
border: none;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
padding: 0;
|
|
95
|
+
text-decoration: underline;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* ── Content Area ─────────────────────────────────────────────────── */
|
|
99
|
+
|
|
100
|
+
.content {
|
|
101
|
+
flex: 1;
|
|
102
|
+
min-width: 0;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* ── Sort Bar ─────────────────────────────────────────────────────── */
|
|
106
|
+
|
|
107
|
+
.sortBar {
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
justify-content: space-between;
|
|
111
|
+
margin-bottom: var(--nymbal-spacing-md);
|
|
112
|
+
gap: var(--nymbal-spacing-md);
|
|
113
|
+
flex-wrap: wrap;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.resultCount {
|
|
117
|
+
font-size: var(--nymbal-font-size-sm);
|
|
118
|
+
color: var(--nymbal-color-text-muted);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.sortSelect {
|
|
122
|
+
padding: 0.5rem 0.75rem;
|
|
123
|
+
font-size: var(--nymbal-font-size-sm);
|
|
124
|
+
border: 1px solid var(--nymbal-color-border);
|
|
125
|
+
border-radius: var(--nymbal-radius-md);
|
|
126
|
+
background: var(--nymbal-color-surface);
|
|
127
|
+
color: var(--nymbal-color-text);
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
min-width: 10rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.sortSelect:focus {
|
|
133
|
+
outline: none;
|
|
134
|
+
border-color: var(--nymbal-color-accent);
|
|
135
|
+
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* ── Product Grid ─────────────────────────────────────────────────── */
|
|
139
|
+
|
|
140
|
+
.grid {
|
|
141
|
+
display: grid;
|
|
142
|
+
grid-template-columns: 1fr;
|
|
143
|
+
gap: var(--nymbal-spacing-md);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@media (min-width: 640px) {
|
|
147
|
+
.grid {
|
|
148
|
+
grid-template-columns: repeat(2, 1fr);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@media (min-width: 1024px) {
|
|
153
|
+
.grid {
|
|
154
|
+
grid-template-columns: repeat(3, 1fr);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.productCard {
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column;
|
|
161
|
+
background: var(--nymbal-color-surface);
|
|
162
|
+
border: 1px solid var(--nymbal-color-border);
|
|
163
|
+
border-radius: var(--nymbal-radius-lg);
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
text-decoration: none;
|
|
166
|
+
color: var(--nymbal-color-text);
|
|
167
|
+
transition: box-shadow var(--nymbal-transition-fast),
|
|
168
|
+
transform var(--nymbal-transition-fast);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.productCard:hover {
|
|
172
|
+
box-shadow: var(--nymbal-shadow-md);
|
|
173
|
+
transform: translateY(-2px);
|
|
174
|
+
text-decoration: none;
|
|
175
|
+
color: var(--nymbal-color-text);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.productImage {
|
|
179
|
+
aspect-ratio: 1;
|
|
180
|
+
background-color: #f4f4f5;
|
|
181
|
+
overflow: hidden;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.productImage img {
|
|
185
|
+
width: 100%;
|
|
186
|
+
height: 100%;
|
|
187
|
+
object-fit: cover;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.productInfo {
|
|
191
|
+
padding: var(--nymbal-spacing-md);
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
gap: var(--nymbal-spacing-xs);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.productName {
|
|
198
|
+
font-size: var(--nymbal-font-size-sm);
|
|
199
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.productPrice {
|
|
203
|
+
font-size: var(--nymbal-font-size-sm);
|
|
204
|
+
font-weight: var(--nymbal-font-weight-bold);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* ── Pagination ───────────────────────────────────────────────────── */
|
|
208
|
+
|
|
209
|
+
.pagination {
|
|
210
|
+
display: flex;
|
|
211
|
+
align-items: center;
|
|
212
|
+
justify-content: center;
|
|
213
|
+
gap: var(--nymbal-spacing-sm);
|
|
214
|
+
margin-top: var(--nymbal-spacing-xl);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.loadMore {
|
|
218
|
+
padding: 0.625rem 2rem;
|
|
219
|
+
font-size: var(--nymbal-font-size-sm);
|
|
220
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
221
|
+
color: var(--nymbal-color-primary);
|
|
222
|
+
background: var(--nymbal-color-surface);
|
|
223
|
+
border: 1px solid var(--nymbal-color-border);
|
|
224
|
+
border-radius: var(--nymbal-radius-md);
|
|
225
|
+
cursor: pointer;
|
|
226
|
+
transition: background-color var(--nymbal-transition-fast),
|
|
227
|
+
border-color var(--nymbal-transition-fast);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.loadMore:hover {
|
|
231
|
+
background-color: #f4f4f5;
|
|
232
|
+
border-color: var(--nymbal-color-primary);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.loadMore:disabled {
|
|
236
|
+
opacity: 0.5;
|
|
237
|
+
cursor: not-allowed;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* ── Empty State ──────────────────────────────────────────────────── */
|
|
241
|
+
|
|
242
|
+
.empty {
|
|
243
|
+
text-align: center;
|
|
244
|
+
padding: var(--nymbal-spacing-xl);
|
|
245
|
+
color: var(--nymbal-color-text-muted);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.emptyTitle {
|
|
249
|
+
font-size: var(--nymbal-font-size-lg);
|
|
250
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
251
|
+
margin-bottom: var(--nymbal-spacing-sm);
|
|
252
|
+
color: var(--nymbal-color-text);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.emptyText {
|
|
256
|
+
font-size: var(--nymbal-font-size-sm);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* ── Mobile filter toggle ─────────────────────────────────────────── */
|
|
260
|
+
|
|
261
|
+
.mobileFilterToggle {
|
|
262
|
+
display: block;
|
|
263
|
+
width: 100%;
|
|
264
|
+
padding: 0.625rem;
|
|
265
|
+
font-size: var(--nymbal-font-size-sm);
|
|
266
|
+
font-weight: var(--nymbal-font-weight-medium);
|
|
267
|
+
color: var(--nymbal-color-text);
|
|
268
|
+
background: var(--nymbal-color-surface);
|
|
269
|
+
border: 1px solid var(--nymbal-color-border);
|
|
270
|
+
border-radius: var(--nymbal-radius-md);
|
|
271
|
+
cursor: pointer;
|
|
272
|
+
margin-bottom: var(--nymbal-spacing-md);
|
|
273
|
+
text-align: center;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
@media (min-width: 1024px) {
|
|
277
|
+
.mobileFilterToggle {
|
|
278
|
+
display: none;
|
|
279
|
+
}
|
|
280
|
+
}
|