create-abcart-theme 0.0.0-stage → 0.10.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 (253) hide show
  1. package/CHANGELOG.md +127 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +2 -0
  4. package/README.md +64 -2
  5. package/bin/create-abcart-theme.mjs +4 -0
  6. package/package.json +47 -4
  7. package/src/args.mjs +113 -0
  8. package/src/banner.mjs +21 -0
  9. package/src/cli.mjs +119 -0
  10. package/src/create.mjs +82 -0
  11. package/src/package-manager.mjs +32 -0
  12. package/src/style.mjs +17 -0
  13. package/templates/default/.agents/skills/shopify-theme-asset-collector/SKILL.md +125 -0
  14. package/templates/default/.agents/skills/shopify-theme-asset-collector/scripts/collect_public_assets.py +370 -0
  15. package/templates/default/.agents/skills/wocart-docs/SKILL.md +146 -0
  16. package/templates/default/.agents/skills/wocart-theme-from-design/SKILL.md +58 -0
  17. package/templates/default/.agents/skills/wocart-theme-from-design/references/inputs-and-rights.md +47 -0
  18. package/templates/default/.agents/skills/wocart-theme-from-design/references/layout-rtl-and-phone.md +36 -0
  19. package/templates/default/.agents/skills/wocart-theme-from-design/references/measure-the-design.md +60 -0
  20. package/templates/default/.agents/skills/wocart-theme-from-design/references/tokens-sections-content.md +103 -0
  21. package/templates/default/.agents/skills/wocart-theme-from-design/references/verify-and-report.md +102 -0
  22. package/templates/default/.agents/skills/wocart-theme-from-design/scripts/compare-design.cjs +230 -0
  23. package/templates/default/.agents/skills/wocart-theme-from-design/scripts/qa-pages.cjs +219 -0
  24. package/templates/default/.dev.vars.example +12 -0
  25. package/templates/default/AGENTS.md +240 -0
  26. package/templates/default/README.md +184 -0
  27. package/templates/default/_gitignore +11 -0
  28. package/templates/default/astro.config.mjs +85 -0
  29. package/templates/default/package.json +36 -0
  30. package/templates/default/public/fonts/OFL.txt +96 -0
  31. package/templates/default/public/fonts/alexandria-arabic.woff2 +0 -0
  32. package/templates/default/public/fonts/fraunces-latin.woff2 +0 -0
  33. package/templates/default/src/actions/index.ts +22 -0
  34. package/templates/default/src/components/cart/AddToCartButton.astro +45 -0
  35. package/templates/default/src/components/cart/CartDrawer.astro +47 -0
  36. package/templates/default/src/components/cart/CartSummary.astro +11 -0
  37. package/templates/default/src/components/cart/FreeShipping.astro +7 -0
  38. package/templates/default/src/components/checkout/CheckoutMain.astro +29 -0
  39. package/templates/default/src/components/checkout/OrderForm.astro +280 -0
  40. package/templates/default/src/components/checkout/ThankYouMain.astro +68 -0
  41. package/templates/default/src/components/landing/LandingImages.astro +51 -0
  42. package/templates/default/src/components/landing/LandingOrder.astro +46 -0
  43. package/templates/default/src/components/landing/LandingProduct.astro +41 -0
  44. package/templates/default/src/components/listing/ListingMain.astro +93 -0
  45. package/templates/default/src/components/listing/PageMain.astro +52 -0
  46. package/templates/default/src/components/listing/Pagination.astro +31 -0
  47. package/templates/default/src/components/listing/SortControl.astro +35 -0
  48. package/templates/default/src/components/product/BuyBox.astro +96 -0
  49. package/templates/default/src/components/product/Description.astro +24 -0
  50. package/templates/default/src/components/product/Gallery.astro +66 -0
  51. package/templates/default/src/components/product/MobileBuyBar.astro +29 -0
  52. package/templates/default/src/components/product/OfferChoice.astro +66 -0
  53. package/templates/default/src/components/product/ProductMain.astro +40 -0
  54. package/templates/default/src/components/product/ProductReviews.astro +72 -0
  55. package/templates/default/src/components/product/RelatedProducts.astro +30 -0
  56. package/templates/default/src/components/product/blocks/BenefitsBlock.astro +13 -0
  57. package/templates/default/src/components/product/blocks/CollapsibleBlock.astro +20 -0
  58. package/templates/default/src/components/product/blocks/DescriptionBlock.astro +19 -0
  59. package/templates/default/src/components/product/blocks/DetailsBlock.astro +33 -0
  60. package/templates/default/src/components/product/blocks/GalleryBlock.astro +12 -0
  61. package/templates/default/src/components/product/blocks/OrderBlock.astro +30 -0
  62. package/templates/default/src/components/product/blocks/PriceBlock.astro +23 -0
  63. package/templates/default/src/components/product/blocks/RatingBlock.astro +16 -0
  64. package/templates/default/src/components/product/blocks/StockBlock.astro +22 -0
  65. package/templates/default/src/components/product/blocks/TextBlock.astro +11 -0
  66. package/templates/default/src/components/product/blocks/TitleBlock.astro +20 -0
  67. package/templates/default/src/components/reviews/ReviewCard.astro +46 -0
  68. package/templates/default/src/components/reviews/ReviewForm.astro +113 -0
  69. package/templates/default/src/components/reviews/VoiceNote.astro +60 -0
  70. package/templates/default/src/components/sections/CollectionCards.astro +65 -0
  71. package/templates/default/src/components/sections/Countdown.astro +57 -0
  72. package/templates/default/src/components/sections/Faq.astro +44 -0
  73. package/templates/default/src/components/sections/FeaturedProduct.astro +71 -0
  74. package/templates/default/src/components/sections/Hero.astro +99 -0
  75. package/templates/default/src/components/sections/ImageBanner.astro +46 -0
  76. package/templates/default/src/components/sections/ProductGrid.astro +47 -0
  77. package/templates/default/src/components/sections/RichText.astro +35 -0
  78. package/templates/default/src/components/sections/Steps.astro +46 -0
  79. package/templates/default/src/components/sections/Testimonials.astro +57 -0
  80. package/templates/default/src/components/shell/Footer.astro +80 -0
  81. package/templates/default/src/components/shell/Header.astro +89 -0
  82. package/templates/default/src/components/shell/LanguageMenu.astro +33 -0
  83. package/templates/default/src/components/shell/MobileMenu.astro +65 -0
  84. package/templates/default/src/components/shell/SearchDialog.astro +19 -0
  85. package/templates/default/src/components/shell/TopBar.astro +54 -0
  86. package/templates/default/src/components/shell/WhatsAppWidget.astro +111 -0
  87. package/templates/default/src/components/store/ContactMain.astro +79 -0
  88. package/templates/default/src/components/store/SearchMain.astro +56 -0
  89. package/templates/default/src/components/store/TrackOrderMain.astro +161 -0
  90. package/templates/default/src/components/surface/Area.astro +20 -0
  91. package/templates/default/src/components/surface/PreviewBridge.astro +24 -0
  92. package/templates/default/src/components/surface/Sections.astro +35 -0
  93. package/templates/default/src/components/ui/Breadcrumbs.astro +36 -0
  94. package/templates/default/src/components/ui/Button.astro +45 -0
  95. package/templates/default/src/components/ui/EditorPlaceholder.astro +24 -0
  96. package/templates/default/src/components/ui/Icon.astro +93 -0
  97. package/templates/default/src/components/ui/Logo.astro +36 -0
  98. package/templates/default/src/components/ui/Photo.astro +46 -0
  99. package/templates/default/src/components/ui/Price.astro +24 -0
  100. package/templates/default/src/components/ui/ProductCard.astro +41 -0
  101. package/templates/default/src/components/ui/Rating.astro +22 -0
  102. package/templates/default/src/components/ui/Section.astro +34 -0
  103. package/templates/default/src/components/ui/SectionHeading.astro +19 -0
  104. package/templates/default/src/env.d.ts +23 -0
  105. package/templates/default/src/layouts/StoreLayout.astro +145 -0
  106. package/templates/default/src/lib/browser-copy.ts +37 -0
  107. package/templates/default/src/lib/context.ts +89 -0
  108. package/templates/default/src/lib/coupon-notice.ts +47 -0
  109. package/templates/default/src/lib/i18n.ts +32 -0
  110. package/templates/default/src/lib/images.ts +38 -0
  111. package/templates/default/src/lib/listing-query.ts +41 -0
  112. package/templates/default/src/lib/money.ts +16 -0
  113. package/templates/default/src/lib/motion.ts +16 -0
  114. package/templates/default/src/lib/nav.ts +26 -0
  115. package/templates/default/src/lib/offer-tiles.ts +105 -0
  116. package/templates/default/src/lib/order-outcome.ts +66 -0
  117. package/templates/default/src/lib/otp-message.ts +21 -0
  118. package/templates/default/src/lib/products.ts +38 -0
  119. package/templates/default/src/lib/review-refusals.ts +31 -0
  120. package/templates/default/src/lib/store.ts +31 -0
  121. package/templates/default/src/lib/whatsapp.ts +29 -0
  122. package/templates/default/src/middleware.ts +23 -0
  123. package/templates/default/src/pages/404.astro +22 -0
  124. package/templates/default/src/pages/api/abandoned/convert.ts +4 -0
  125. package/templates/default/src/pages/api/abandoned/upsert.ts +4 -0
  126. package/templates/default/src/pages/api/cart/validate.ts +4 -0
  127. package/templates/default/src/pages/api/communes/[wilayaId].ts +4 -0
  128. package/templates/default/src/pages/api/otp/send.ts +4 -0
  129. package/templates/default/src/pages/api/otp/verify.ts +4 -0
  130. package/templates/default/src/pages/api/reviews/[productId].ts +3 -0
  131. package/templates/default/src/pages/api/reviews/eligibility.ts +3 -0
  132. package/templates/default/src/pages/api/reviews/submit.ts +3 -0
  133. package/templates/default/src/pages/api/reviews/upload.ts +3 -0
  134. package/templates/default/src/pages/category/[slug].astro +20 -0
  135. package/templates/default/src/pages/checkout.astro +25 -0
  136. package/templates/default/src/pages/collections/[handle].astro +20 -0
  137. package/templates/default/src/pages/contact.astro +17 -0
  138. package/templates/default/src/pages/index.astro +9 -0
  139. package/templates/default/src/pages/lp/[slug].astro +47 -0
  140. package/templates/default/src/pages/pages/[slug].astro +16 -0
  141. package/templates/default/src/pages/products/[handle].astro +37 -0
  142. package/templates/default/src/pages/products/index.astro +15 -0
  143. package/templates/default/src/pages/robots.txt.ts +9 -0
  144. package/templates/default/src/pages/search.astro +19 -0
  145. package/templates/default/src/pages/sitemap.xml.ts +12 -0
  146. package/templates/default/src/pages/thank-you.astro +33 -0
  147. package/templates/default/src/pages/track-order.astro +17 -0
  148. package/templates/default/src/pages/wocart-preview.astro +43 -0
  149. package/templates/default/src/pages/wocart-revalidate.ts +10 -0
  150. package/templates/default/src/pages/wocart-styles.css.ts +5 -0
  151. package/templates/default/src/pages/wocart-theme.json.ts +5 -0
  152. package/templates/default/src/scripts/cart.ts +371 -0
  153. package/templates/default/src/scripts/checkout/coupon.ts +96 -0
  154. package/templates/default/src/scripts/checkout/delivery.ts +86 -0
  155. package/templates/default/src/scripts/checkout/form.ts +54 -0
  156. package/templates/default/src/scripts/checkout/otp.ts +106 -0
  157. package/templates/default/src/scripts/checkout/picker.ts +169 -0
  158. package/templates/default/src/scripts/checkout/quote.ts +169 -0
  159. package/templates/default/src/scripts/checkout/submit.ts +113 -0
  160. package/templates/default/src/scripts/checkout/tracking.ts +74 -0
  161. package/templates/default/src/scripts/countdown.ts +29 -0
  162. package/templates/default/src/scripts/events.ts +4 -0
  163. package/templates/default/src/scripts/hero.ts +49 -0
  164. package/templates/default/src/scripts/listing.ts +13 -0
  165. package/templates/default/src/scripts/order-form.ts +100 -0
  166. package/templates/default/src/scripts/product.ts +306 -0
  167. package/templates/default/src/scripts/public-config.ts +79 -0
  168. package/templates/default/src/scripts/reviews.ts +358 -0
  169. package/templates/default/src/scripts/site.ts +131 -0
  170. package/templates/default/src/scripts/thank-you.ts +11 -0
  171. package/templates/default/src/scripts/voice-note.ts +94 -0
  172. package/templates/default/src/styles/base.css +1030 -0
  173. package/templates/default/src/styles/checkout.css +1111 -0
  174. package/templates/default/src/styles/global.css +12 -0
  175. package/templates/default/src/styles/product.css +871 -0
  176. package/templates/default/src/styles/reviews.css +533 -0
  177. package/templates/default/src/styles/sections.css +931 -0
  178. package/templates/default/src/styles/shell.css +970 -0
  179. package/templates/default/src/styles/tokens.css +583 -0
  180. package/templates/default/src/theme/api-routes.ts +10 -0
  181. package/templates/default/src/theme/content/catalog.ts +117 -0
  182. package/templates/default/src/theme/content/checkout.ts +168 -0
  183. package/templates/default/src/theme/content/editor.ts +21 -0
  184. package/templates/default/src/theme/content/index.ts +45 -0
  185. package/templates/default/src/theme/content/reviews.ts +76 -0
  186. package/templates/default/src/theme/content/shell.ts +59 -0
  187. package/templates/default/src/theme/content/types.ts +12 -0
  188. package/templates/default/src/theme/documents/catalog.json +11 -0
  189. package/templates/default/src/theme/documents/category.json +11 -0
  190. package/templates/default/src/theme/documents/checkout.json +11 -0
  191. package/templates/default/src/theme/documents/collection.json +11 -0
  192. package/templates/default/src/theme/documents/contact.json +11 -0
  193. package/templates/default/src/theme/documents/footer.area.json +11 -0
  194. package/templates/default/src/theme/documents/header.area.json +16 -0
  195. package/templates/default/src/theme/documents/home.json +313 -0
  196. package/templates/default/src/theme/documents/landing.json +8 -0
  197. package/templates/default/src/theme/documents/page.json +11 -0
  198. package/templates/default/src/theme/documents/product.json +125 -0
  199. package/templates/default/src/theme/documents/search.json +11 -0
  200. package/templates/default/src/theme/documents/thank-you.json +11 -0
  201. package/templates/default/src/theme/documents/track-order.json +11 -0
  202. package/templates/default/src/theme/fields.ts +61 -0
  203. package/templates/default/src/theme/key.ts +11 -0
  204. package/templates/default/src/theme/labels.ts +231 -0
  205. package/templates/default/src/theme/locales.ts +11 -0
  206. package/templates/default/src/theme/palette.ts +14 -0
  207. package/templates/default/src/theme/sections/collection-cards.ts +65 -0
  208. package/templates/default/src/theme/sections/faq.ts +74 -0
  209. package/templates/default/src/theme/sections/featured-product.ts +42 -0
  210. package/templates/default/src/theme/sections/hero.ts +47 -0
  211. package/templates/default/src/theme/sections/image-banner.ts +25 -0
  212. package/templates/default/src/theme/sections/index.ts +40 -0
  213. package/templates/default/src/theme/sections/landing.ts +150 -0
  214. package/templates/default/src/theme/sections/listing.ts +84 -0
  215. package/templates/default/src/theme/sections/product-grid.ts +42 -0
  216. package/templates/default/src/theme/sections/product.ts +297 -0
  217. package/templates/default/src/theme/sections/rich-text.ts +39 -0
  218. package/templates/default/src/theme/sections/shared.ts +54 -0
  219. package/templates/default/src/theme/sections/shell.ts +85 -0
  220. package/templates/default/src/theme/sections/store-pages.ts +101 -0
  221. package/templates/default/src/theme/sections/testimonials.ts +61 -0
  222. package/templates/default/src/theme/sections/thank-you.ts +35 -0
  223. package/templates/default/src/theme/settings.ts +124 -0
  224. package/templates/default/src/theme/theme.ts +65 -0
  225. package/templates/default/tests/fixtures/canvas-tote.json +62 -0
  226. package/templates/default/tests/fixtures/linen-shirt.json +128 -0
  227. package/templates/default/tests/unit/checkout.test.ts +241 -0
  228. package/templates/default/tests/unit/contract.test.ts +169 -0
  229. package/templates/default/tests/unit/contrast.test.ts +68 -0
  230. package/templates/default/tests/unit/copy.test.ts +101 -0
  231. package/templates/default/tests/unit/design-values.test.ts +95 -0
  232. package/templates/default/tests/unit/editability.test.ts +180 -0
  233. package/templates/default/tests/unit/fixtures.ts +91 -0
  234. package/templates/default/tests/unit/footer.test.ts +54 -0
  235. package/templates/default/tests/unit/guards.test.ts +340 -0
  236. package/templates/default/tests/unit/images.test.ts +26 -0
  237. package/templates/default/tests/unit/landing.test.ts +151 -0
  238. package/templates/default/tests/unit/languages.test.ts +42 -0
  239. package/templates/default/tests/unit/middleware.test.ts +53 -0
  240. package/templates/default/tests/unit/offer-tiles.test.ts +75 -0
  241. package/templates/default/tests/unit/render.ts +38 -0
  242. package/templates/default/tests/unit/reviews.test.ts +25 -0
  243. package/templates/default/tests/unit/rules.test.ts +59 -0
  244. package/templates/default/tests/unit/source.ts +75 -0
  245. package/templates/default/tests/unit/store-pages.test.ts +147 -0
  246. package/templates/default/tests/unit/studio.test.ts +202 -0
  247. package/templates/default/tests/unit/testimonials.test.ts +52 -0
  248. package/templates/default/tests/unit/thank-you.test.ts +52 -0
  249. package/templates/default/tests/unit/tracking.test.ts +29 -0
  250. package/templates/default/tests/unit/voice-note.test.ts +42 -0
  251. package/templates/default/tsconfig.json +13 -0
  252. package/templates/default/vitest.config.ts +15 -0
  253. package/templates/default/wrangler.jsonc +17 -0
@@ -0,0 +1,931 @@
1
+ /* ---------- hero ---------- */
2
+
3
+ .hero {
4
+ position: relative;
5
+ isolation: isolate;
6
+ overflow: hidden;
7
+ min-height: 560px;
8
+ height: 82svh;
9
+ max-height: 820px;
10
+ background: var(--soft);
11
+ }
12
+
13
+ .hero--medium {
14
+ min-height: 460px;
15
+ height: 64svh;
16
+ max-height: 620px;
17
+ }
18
+
19
+ .hero__slide {
20
+ position: absolute;
21
+ inset: 0;
22
+ display: grid;
23
+ opacity: 0;
24
+ visibility: hidden;
25
+ transition: var(--motion-hero-slide);
26
+ }
27
+
28
+ .hero__slide[data-active="true"] {
29
+ z-index: 1;
30
+ opacity: 1;
31
+ visibility: visible;
32
+ }
33
+
34
+ .hero__media,
35
+ .hero__media img {
36
+ position: absolute;
37
+ inset: 0;
38
+ width: 100%;
39
+ height: 100%;
40
+ object-fit: cover;
41
+ }
42
+
43
+ /* A veil in the page's own colour keeps the words readable on any photo. */
44
+ .hero__media::after {
45
+ content: "";
46
+ position: absolute;
47
+ inset: 0;
48
+ background: var(--surface-hero-media-after);
49
+ }
50
+
51
+ [dir="rtl"] .hero__media::after {
52
+ background: var(--surface-hero-media-after-rtl);
53
+ }
54
+
55
+ .hero__inner {
56
+ position: relative;
57
+ z-index: 2;
58
+ display: flex;
59
+ align-items: center;
60
+ width: 100%;
61
+ max-width: 1320px;
62
+ margin-inline: auto;
63
+ padding: calc(var(--header-h) + 52px) var(--gutter) 64px;
64
+ }
65
+
66
+ .hero--center .hero__inner {
67
+ justify-content: center;
68
+ text-align: center;
69
+ }
70
+
71
+ .hero__content {
72
+ max-width: 620px;
73
+ }
74
+
75
+ .hero__title {
76
+ color: var(--heading);
77
+ font-family: var(--font-display);
78
+ font-size: var(--text-hero-title);
79
+ font-weight: var(--display-weight);
80
+ line-height: var(--leading-hero-title);
81
+ letter-spacing: var(--display-tracking);
82
+ text-wrap: balance;
83
+ }
84
+
85
+ /* Arabic letters reach far below the line (the dots of ي): room scaled to the title. */
86
+ [dir="rtl"] .hero__title {
87
+ line-height: var(--leading-hero-title-rtl);
88
+ padding-block-end: 0.18em;
89
+ }
90
+
91
+ .hero__title .accent {
92
+ display: inline-block;
93
+ }
94
+
95
+ .hero__subtitle {
96
+ max-width: 480px;
97
+ margin-block-start: 18px;
98
+ color: color-mix(in oklab, var(--ink) 86%, var(--bg));
99
+ font-size: var(--text-hero-subtitle);
100
+ }
101
+
102
+ .hero--center .hero__subtitle {
103
+ margin-inline: auto;
104
+ }
105
+
106
+ .hero__actions {
107
+ display: flex;
108
+ flex-wrap: wrap;
109
+ gap: 12px;
110
+ margin-block-start: 28px;
111
+ }
112
+
113
+ .hero--center .hero__actions {
114
+ justify-content: center;
115
+ }
116
+
117
+ .hero__actions .btn {
118
+ box-shadow: var(--btn-glow);
119
+ }
120
+
121
+ .hero__dots {
122
+ position: absolute;
123
+ inset-block-end: 22px;
124
+ inset-inline: 0;
125
+ z-index: 3;
126
+ display: flex;
127
+ justify-content: center;
128
+ gap: 4px;
129
+ }
130
+
131
+ .hero__dot {
132
+ display: grid;
133
+ place-items: center;
134
+ width: 28px;
135
+ height: 28px;
136
+ }
137
+
138
+ .hero__dot::before {
139
+ content: "";
140
+ width: 9px;
141
+ height: 9px;
142
+ border-radius: var(--r-pill);
143
+ background: var(--surface-hero-dot-before);
144
+ transition: var(--motion-hero-dot-before);
145
+ }
146
+
147
+ .hero__dot[aria-current="true"]::before {
148
+ width: 26px;
149
+ background: var(--accent);
150
+ }
151
+
152
+ .hero__arrow {
153
+ position: absolute;
154
+ inset-block-start: 50%;
155
+ z-index: 3;
156
+ display: grid;
157
+ place-items: center;
158
+ width: 46px;
159
+ height: 46px;
160
+ border-radius: var(--r-round);
161
+ background: var(--surface-hero-arrow);
162
+ color: var(--heading);
163
+ box-shadow: var(--shadow);
164
+ opacity: 0;
165
+ translate: 0 -50%;
166
+ transition: opacity var(--duration) var(--ease), background-color var(--duration) var(--ease);
167
+ }
168
+
169
+ .hero:hover .hero__arrow,
170
+ .hero:focus-within .hero__arrow {
171
+ opacity: 1;
172
+ }
173
+
174
+ .hero__arrow--prev {
175
+ inset-inline-start: 18px;
176
+ }
177
+
178
+ .hero__arrow--next {
179
+ inset-inline-end: 18px;
180
+ }
181
+
182
+ /* Without a photo the words are the hero: centred, and no taller than they need. */
183
+ .hero--plain {
184
+ height: auto;
185
+ min-height: 0;
186
+ }
187
+
188
+ .hero--plain .hero__slide {
189
+ position: relative;
190
+ }
191
+
192
+ .hero--plain .hero__slide:not([data-active="true"]) {
193
+ position: absolute;
194
+ }
195
+
196
+ .hero--plain .hero__inner {
197
+ min-height: clamp(400px, 52vw, 600px);
198
+ }
199
+
200
+ @media (max-width: 899px) {
201
+ .hero:not(.hero--plain) .hero__inner {
202
+ align-items: flex-end;
203
+ padding-block-end: 64px;
204
+ }
205
+ .hero__slide--photo .hero__media::after,
206
+ [dir="rtl"] .hero__slide--photo .hero__media::after {
207
+ background: var(--surface-hero-media-after-narrow);
208
+ }
209
+ .hero__arrow {
210
+ display: none;
211
+ }
212
+ .hero__actions .btn {
213
+ flex: 1;
214
+ }
215
+ }
216
+
217
+ /* ---------- collection cards ---------- */
218
+
219
+ .collection-grid {
220
+ display: grid;
221
+ grid-template-columns: repeat(2, minmax(0, 1fr));
222
+ gap: 14px;
223
+ }
224
+
225
+ @media (min-width: 900px) {
226
+ .collection-grid {
227
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
228
+ gap: 20px;
229
+ }
230
+ }
231
+
232
+ .collection-grid--large {
233
+ grid-template-columns: 1fr;
234
+ }
235
+
236
+ @media (min-width: 700px) {
237
+ .collection-grid--large {
238
+ grid-template-columns: repeat(2, minmax(0, 1fr));
239
+ }
240
+ }
241
+
242
+ .collection-card {
243
+ display: grid;
244
+ gap: 12px;
245
+ }
246
+
247
+ .collection-card__media {
248
+ position: relative;
249
+ display: block;
250
+ overflow: hidden;
251
+ aspect-ratio: 1;
252
+ border-radius: var(--r-lg);
253
+ background: var(--soft);
254
+ }
255
+
256
+ .collection-card__media img {
257
+ width: 100%;
258
+ height: 100%;
259
+ object-fit: cover;
260
+ transition: var(--motion-collection-card-media);
261
+ }
262
+
263
+ .collection-card:hover .collection-card__media img {
264
+ transform: var(--motion-collection-card-media-hover);
265
+ }
266
+
267
+ .collection-card__art {
268
+ position: absolute;
269
+ inset: 0;
270
+ display: grid;
271
+ place-items: center;
272
+ color: color-mix(in oklab, var(--accent) 60%, var(--bg));
273
+ }
274
+
275
+ .collection-card__body {
276
+ display: flex;
277
+ align-items: center;
278
+ justify-content: space-between;
279
+ gap: 10px;
280
+ }
281
+
282
+ .collection-card__title {
283
+ color: var(--heading);
284
+ font-family: var(--font-display);
285
+ font-size: var(--text-collection-card-title);
286
+ font-weight: var(--weight-heavy);
287
+ line-height: var(--leading-collection-card-title);
288
+ }
289
+
290
+ .collection-card__text {
291
+ display: grid;
292
+ gap: 2px;
293
+ }
294
+
295
+ .collection-card__count {
296
+ color: var(--muted);
297
+ font-size: var(--text-collection-card-count);
298
+ font-weight: var(--weight-semibold);
299
+ }
300
+
301
+ .collection-card__arrow {
302
+ display: grid;
303
+ place-items: center;
304
+ flex: none;
305
+ width: 36px;
306
+ height: 36px;
307
+ border-radius: var(--r-round);
308
+ background: var(--soft);
309
+ color: var(--accent);
310
+ transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
311
+ }
312
+
313
+ .collection-card:hover .collection-card__arrow {
314
+ background: var(--accent);
315
+ color: var(--bg);
316
+ }
317
+
318
+ .collection-card__cta {
319
+ display: none;
320
+ }
321
+
322
+ /* Large cards carry their words over the photo. */
323
+ .collection-card--large {
324
+ position: relative;
325
+ overflow: hidden;
326
+ border-radius: var(--r-lg);
327
+ }
328
+
329
+ .collection-card--large .collection-card__media {
330
+ aspect-ratio: var(--shape-collection-card-media);
331
+ border-radius: 0;
332
+ }
333
+
334
+ .collection-card--large .collection-card__body {
335
+ position: absolute;
336
+ inset-inline: 14px;
337
+ inset-block-end: 14px;
338
+ padding: 16px 18px;
339
+ border-radius: var(--r);
340
+ background: var(--surface-collection-card-body);
341
+ -webkit-backdrop-filter: blur(8px);
342
+ backdrop-filter: var(--filter-collection-card-body);
343
+ }
344
+
345
+ .collection-card--large .collection-card__title {
346
+ font-size: var(--text-collection-card-title-large);
347
+ }
348
+
349
+ .collection-card--large .collection-card__cta {
350
+ display: block;
351
+ margin-inline-start: auto;
352
+ color: var(--accent);
353
+ font-weight: var(--weight-bold);
354
+ font-size: var(--text-collection-card-cta);
355
+ }
356
+
357
+ /* ---------- image banner ---------- */
358
+
359
+ .image-banner {
360
+ position: relative;
361
+ isolation: isolate;
362
+ display: grid;
363
+ place-items: center;
364
+ overflow: hidden;
365
+ min-height: clamp(340px, 40vw, 520px);
366
+ text-align: center;
367
+ }
368
+
369
+ .image-banner--tall {
370
+ min-height: clamp(440px, 56vw, 700px);
371
+ }
372
+
373
+ .image-banner--start {
374
+ place-items: center start;
375
+ text-align: start;
376
+ }
377
+
378
+ .image-banner--boxed {
379
+ border-radius: var(--r-lg);
380
+ }
381
+
382
+ .image-banner > img {
383
+ position: absolute;
384
+ inset: 0;
385
+ z-index: -2;
386
+ width: 100%;
387
+ height: 100%;
388
+ object-fit: cover;
389
+ }
390
+
391
+ .image-banner--photo {
392
+ color: var(--on-photo);
393
+ }
394
+
395
+ .image-banner--photo::after {
396
+ content: "";
397
+ position: absolute;
398
+ inset: 0;
399
+ z-index: -1;
400
+ background: var(--surface-image-banner-photo-after);
401
+ }
402
+
403
+ .image-banner__inner {
404
+ max-width: 760px;
405
+ padding: clamp(40px, 6vw, 72px) var(--gutter);
406
+ }
407
+
408
+ .image-banner h2 {
409
+ font-size: var(--text-image-banner);
410
+ }
411
+
412
+ .image-banner--photo h2,
413
+ .image-banner--photo .accent {
414
+ color: var(--on-photo);
415
+ }
416
+
417
+ .image-banner p {
418
+ max-width: 560px;
419
+ margin: 14px auto 0;
420
+ font-size: var(--text-image-banner-text);
421
+ opacity: var(--opacity-image-banner);
422
+ }
423
+
424
+ .image-banner--start p {
425
+ margin-inline: 0;
426
+ }
427
+
428
+ .image-banner .btn {
429
+ margin-block-start: 26px;
430
+ }
431
+
432
+ /* ---------- products ---------- */
433
+
434
+ .product-grid {
435
+ --columns: 4;
436
+ display: grid;
437
+ grid-template-columns: repeat(2, minmax(0, 1fr));
438
+ gap: 22px 12px;
439
+ }
440
+
441
+ @media (min-width: 700px) {
442
+ .product-grid {
443
+ grid-template-columns: repeat(min(3, var(--columns)), minmax(0, 1fr));
444
+ gap: 30px 18px;
445
+ }
446
+ }
447
+
448
+ @media (min-width: 1100px) {
449
+ .product-grid {
450
+ grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
451
+ }
452
+ }
453
+
454
+ /* A row the phone swipes, with the next card peeking in. */
455
+ @media (max-width: 899px) {
456
+ .product-grid--carousel {
457
+ grid-template-columns: none;
458
+ grid-auto-flow: column;
459
+ grid-auto-columns: 46%;
460
+ margin-inline: calc(var(--gutter) * -1);
461
+ padding-inline: var(--gutter);
462
+ overflow-x: auto;
463
+ scroll-snap-type: x mandatory;
464
+ scroll-padding-inline: var(--gutter);
465
+ scrollbar-width: none;
466
+ }
467
+ .product-grid--carousel::-webkit-scrollbar {
468
+ display: none;
469
+ }
470
+ .product-grid--carousel > * {
471
+ scroll-snap-align: start;
472
+ }
473
+ }
474
+
475
+ .product-card {
476
+ position: relative;
477
+ display: flex;
478
+ flex-direction: column;
479
+ min-width: 0;
480
+ }
481
+
482
+ .product-card__media {
483
+ position: relative;
484
+ display: block;
485
+ overflow: hidden;
486
+ aspect-ratio: 1;
487
+ border-radius: var(--r-lg);
488
+ background: var(--soft);
489
+ }
490
+
491
+ .product-card--portrait .product-card__media {
492
+ aspect-ratio: var(--shape-product-card-media);
493
+ }
494
+
495
+ .product-card__media img {
496
+ width: 100%;
497
+ height: 100%;
498
+ object-fit: cover;
499
+ transition: var(--motion-product-card-media);
500
+ }
501
+
502
+ .product-card:hover .product-card__media img {
503
+ transform: var(--motion-product-card-media-hover);
504
+ }
505
+
506
+ .product-card__placeholder {
507
+ position: absolute;
508
+ inset: 0;
509
+ display: grid;
510
+ place-items: center;
511
+ background: var(--soft);
512
+ color: var(--muted);
513
+ }
514
+
515
+ .product-card__badges {
516
+ position: absolute;
517
+ inset-block-start: 10px;
518
+ inset-inline-start: 10px;
519
+ display: flex;
520
+ gap: 6px;
521
+ }
522
+
523
+ /* Every card of a row ends on the same line: the title keeps two lines, the button sits at the foot. */
524
+ .product-card__body {
525
+ display: flex;
526
+ flex-direction: column;
527
+ gap: 6px;
528
+ flex: 1;
529
+ padding: 12px 2px 0;
530
+ }
531
+
532
+ .product-card__title {
533
+ display: -webkit-box;
534
+ overflow: hidden;
535
+ -webkit-box-orient: vertical;
536
+ -webkit-line-clamp: 2;
537
+ font-family: var(--font-body);
538
+ min-height: calc(2 * 1.4em);
539
+ font-size: var(--text-product-card-title);
540
+ font-weight: var(--weight-semibold);
541
+ line-height: var(--leading-product-card-title);
542
+ }
543
+
544
+ .product-card__title a::after {
545
+ content: "";
546
+ position: absolute;
547
+ inset: 0;
548
+ }
549
+
550
+ .product-card .price {
551
+ font-size: var(--text-price);
552
+ }
553
+
554
+ .product-card .btn {
555
+ position: relative;
556
+ z-index: 1;
557
+ width: 100%;
558
+ margin-block-start: auto;
559
+ }
560
+
561
+ .product-card .price {
562
+ margin-block-end: 6px;
563
+ }
564
+
565
+ /* ---------- featured product ---------- */
566
+
567
+ .product-detail--featured {
568
+ padding: clamp(14px, 2.4vw, 28px);
569
+ border-radius: var(--radius-product-detail-featured);
570
+ background: var(--card);
571
+ box-shadow: var(--shadow);
572
+ }
573
+
574
+ .product-info__title {
575
+ font-size: var(--text-product-info-title);
576
+ }
577
+
578
+ .product-info__title a:hover {
579
+ color: var(--accent);
580
+ }
581
+
582
+ /* ---------- testimonials ---------- */
583
+
584
+ .testimonials {
585
+ display: grid;
586
+ gap: 14px;
587
+ }
588
+
589
+ @media (min-width: 760px) {
590
+ .testimonials {
591
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
592
+ gap: 20px;
593
+ }
594
+ }
595
+
596
+ .testimonial {
597
+ position: relative;
598
+ display: grid;
599
+ align-content: start;
600
+ gap: 14px;
601
+ padding: 24px;
602
+ border-radius: var(--r-lg);
603
+ background: var(--card);
604
+ box-shadow: var(--shadow);
605
+ }
606
+
607
+ .testimonial::before {
608
+ content: "“";
609
+ position: absolute;
610
+ inset-block-start: 4px;
611
+ inset-inline-end: 18px;
612
+ color: var(--soft);
613
+ font-family: var(--font-quote);
614
+ font-size: var(--text-testimonial-before);
615
+ line-height: 1;
616
+ }
617
+
618
+ .testimonial__quote {
619
+ color: var(--heading);
620
+ font-size: var(--text-testimonial-quote);
621
+ line-height: var(--leading-testimonial-quote);
622
+ }
623
+
624
+ .testimonial__top {
625
+ display: flex;
626
+ align-items: center;
627
+ gap: 12px;
628
+ margin-block-start: auto;
629
+ }
630
+
631
+ .testimonial__avatar {
632
+ width: 46px;
633
+ height: 46px;
634
+ border-radius: var(--r-round);
635
+ display: grid;
636
+ place-items: center;
637
+ flex: none;
638
+ background: var(--soft);
639
+ color: var(--accent);
640
+ font-family: var(--font-display);
641
+ font-size: var(--text-testimonial-avatar);
642
+ font-weight: var(--weight-heavy);
643
+ }
644
+
645
+ .testimonial__name {
646
+ display: block;
647
+ color: var(--heading);
648
+ font-weight: var(--weight-bold);
649
+ }
650
+
651
+ .testimonial__date {
652
+ display: flex;
653
+ flex-wrap: wrap;
654
+ align-items: center;
655
+ gap: 4px 10px;
656
+ color: var(--muted);
657
+ font-size: var(--text-testimonial-date);
658
+ }
659
+
660
+ .testimonial__product {
661
+ justify-self: start;
662
+ color: var(--accent);
663
+ font-size: var(--text-testimonial-product);
664
+ font-weight: var(--weight-bold);
665
+ text-decoration: underline;
666
+ text-underline-offset: 3px;
667
+ }
668
+
669
+ /* ---------- rich text ---------- */
670
+
671
+ .rich-text {
672
+ display: grid;
673
+ justify-items: center;
674
+ gap: 18px;
675
+ text-align: center;
676
+ }
677
+
678
+ .rich-text .section-head {
679
+ margin-block-end: 0;
680
+ }
681
+
682
+ .rich-text--start {
683
+ justify-items: start;
684
+ text-align: start;
685
+ }
686
+
687
+ /* ---------- questions ---------- */
688
+
689
+ .faq {
690
+ display: grid;
691
+ gap: 10px;
692
+ }
693
+
694
+ .faq__item {
695
+ padding-inline: 20px;
696
+ border: var(--border-faq-item);
697
+ border-radius: var(--r);
698
+ background: var(--card);
699
+ transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
700
+ }
701
+
702
+ .faq__item[open] {
703
+ border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
704
+ box-shadow: var(--shadow);
705
+ }
706
+
707
+ /* ---------- listings and text pages ---------- */
708
+
709
+ .listing-head {
710
+ max-width: 720px;
711
+ margin: 0 auto clamp(20px, 3vw, 30px);
712
+ text-align: center;
713
+ }
714
+
715
+ .listing-head--start {
716
+ margin-inline: 0;
717
+ text-align: start;
718
+ }
719
+
720
+ .listing-head h1 {
721
+ font-size: var(--text-listing-head);
722
+ }
723
+
724
+ .listing-head p {
725
+ margin-block-start: 10px;
726
+ color: var(--muted);
727
+ }
728
+
729
+ .listing-head__count {
730
+ display: inline-block;
731
+ margin-block-start: 12px;
732
+ padding: 4px 12px;
733
+ border-radius: var(--r-pill);
734
+ background: var(--soft);
735
+ color: var(--accent);
736
+ font-size: var(--text-listing-head-count);
737
+ font-weight: var(--weight-bold);
738
+ }
739
+
740
+ .listing-sort {
741
+ display: flex;
742
+ flex-wrap: wrap;
743
+ align-items: center;
744
+ justify-content: flex-end;
745
+ gap: 8px 10px;
746
+ margin-block-end: 18px;
747
+ }
748
+
749
+ .listing-sort label {
750
+ color: var(--muted);
751
+ font-size: var(--text-listing-sort);
752
+ font-weight: var(--weight-semibold);
753
+ }
754
+
755
+ .listing-sort .select {
756
+ width: auto;
757
+ min-height: 44px;
758
+ font-size: var(--text-select);
759
+ }
760
+
761
+ .text-page {
762
+ display: grid;
763
+ gap: 28px;
764
+ }
765
+
766
+ @media (min-width: 900px) {
767
+ .text-page--aside {
768
+ grid-template-columns: minmax(0, 1fr) 300px;
769
+ align-items: start;
770
+ }
771
+ }
772
+
773
+ .text-page .prose h1 {
774
+ margin-block-end: 18px;
775
+ font-size: var(--text-prose-h1);
776
+ }
777
+
778
+ .side-card {
779
+ display: grid;
780
+ gap: 12px;
781
+ padding: 22px;
782
+ border-radius: var(--r-lg);
783
+ background: var(--card);
784
+ box-shadow: var(--shadow);
785
+ }
786
+
787
+ @media (min-width: 900px) {
788
+ .side-card {
789
+ position: sticky;
790
+ inset-block-start: calc(var(--header-h) + 20px);
791
+ }
792
+ }
793
+
794
+ .side-card h2 {
795
+ font-size: var(--text-side-card);
796
+ }
797
+
798
+ .side-card p {
799
+ color: var(--muted);
800
+ font-size: var(--text-side-card-text);
801
+ }
802
+
803
+ .side-card__link {
804
+ display: inline-flex;
805
+ align-items: center;
806
+ gap: 8px;
807
+ color: var(--accent);
808
+ font-weight: var(--weight-semibold);
809
+ font-size: var(--text-side-card-link);
810
+ }
811
+
812
+ .contact-cards {
813
+ display: grid;
814
+ gap: 14px;
815
+ max-width: 920px;
816
+ margin-inline: auto;
817
+ }
818
+
819
+ @media (min-width: 700px) {
820
+ .contact-cards {
821
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
822
+ }
823
+ }
824
+
825
+ .contact-card {
826
+ display: grid;
827
+ justify-items: center;
828
+ gap: 8px;
829
+ padding: 28px 20px;
830
+ border-radius: var(--r-lg);
831
+ background: var(--card);
832
+ box-shadow: var(--shadow);
833
+ text-align: center;
834
+ transition: transform var(--duration) var(--ease);
835
+ }
836
+
837
+ a.contact-card:hover {
838
+ transform: var(--motion-contact-card-hover);
839
+ }
840
+
841
+ .contact-card__icon {
842
+ display: grid;
843
+ place-items: center;
844
+ width: 58px;
845
+ height: 58px;
846
+ border-radius: var(--r-round);
847
+ background: var(--soft);
848
+ color: var(--accent);
849
+ }
850
+
851
+ .contact-card strong {
852
+ color: var(--heading);
853
+ font-size: var(--text-contact-card);
854
+ }
855
+
856
+ .contact-card span:last-child {
857
+ overflow-wrap: anywhere;
858
+ color: var(--muted);
859
+ }
860
+
861
+ .contact-card .contact-card__prose {
862
+ white-space: pre-line;
863
+ }
864
+
865
+ .contact-note,
866
+ .contact-none {
867
+ max-width: 620px;
868
+ margin: 24px auto 0;
869
+ padding: 16px 20px;
870
+ border-radius: var(--r);
871
+ background: var(--soft);
872
+ color: var(--ink);
873
+ text-align: center;
874
+ white-space: pre-line;
875
+ }
876
+
877
+ .contact-help {
878
+ max-width: 620px;
879
+ margin: 32px auto 0;
880
+ }
881
+
882
+ .contact-help h2 {
883
+ margin-block-end: 12px;
884
+ font-size: var(--text-contact-help);
885
+ text-align: center;
886
+ }
887
+
888
+ .contact-help ul {
889
+ display: grid;
890
+ gap: 8px;
891
+ padding: 0;
892
+ list-style: none;
893
+ }
894
+
895
+ .contact-help a {
896
+ display: flex;
897
+ align-items: center;
898
+ justify-content: space-between;
899
+ gap: 12px;
900
+ min-height: 56px;
901
+ padding: 0 18px;
902
+ border-radius: var(--r);
903
+ background: var(--card);
904
+ box-shadow: var(--shadow);
905
+ color: var(--heading);
906
+ font-weight: var(--weight-semibold);
907
+ }
908
+
909
+ .contact-help a:hover {
910
+ color: var(--accent);
911
+ }
912
+
913
+ .contact-page__note {
914
+ display: flex;
915
+ align-items: center;
916
+ justify-content: center;
917
+ gap: 8px;
918
+ margin-block-start: 28px;
919
+ color: var(--muted);
920
+ }
921
+
922
+ .landing-stack {
923
+ display: grid;
924
+ gap: var(--gap, 0px);
925
+ max-width: 720px;
926
+ margin-inline: auto;
927
+ }
928
+
929
+ .landing-stack img {
930
+ width: 100%;
931
+ }