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,970 @@
1
+ /* ---------- the top: announcement bar and header ---------- */
2
+
3
+ .site-top {
4
+ position: sticky;
5
+ inset-block-start: 0;
6
+ z-index: 50;
7
+ }
8
+
9
+ /* A header the merchant does not keep on screen scrolls away with the page. */
10
+ .site-top:has([data-header][data-sticky="false"]) {
11
+ position: relative;
12
+ }
13
+
14
+ .topbar {
15
+ position: relative;
16
+ z-index: 2;
17
+ font-size: var(--text-topbar);
18
+ font-weight: var(--weight-semibold);
19
+ }
20
+
21
+ .topbar__inner {
22
+ display: grid;
23
+ grid-template-columns: 1fr auto 1fr;
24
+ align-items: center;
25
+ gap: 12px;
26
+ max-width: 1320px;
27
+ min-height: 38px;
28
+ margin-inline: auto;
29
+ padding-inline: var(--gutter);
30
+ }
31
+
32
+ .topbar__social {
33
+ display: flex;
34
+ gap: 4px;
35
+ }
36
+
37
+ .topbar__social a {
38
+ display: grid;
39
+ place-items: center;
40
+ width: 28px;
41
+ height: 28px;
42
+ border-radius: var(--r-round);
43
+ opacity: var(--opacity-topbar-social);
44
+ }
45
+
46
+ .topbar__social a:hover {
47
+ opacity: 1;
48
+ background: var(--surface-topbar-social-hover);
49
+ }
50
+
51
+ .topbar__end {
52
+ display: flex;
53
+ justify-content: flex-end;
54
+ }
55
+
56
+ .ticker {
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ gap: 6px;
61
+ min-width: 0;
62
+ }
63
+
64
+ .ticker__viewport {
65
+ min-width: 0;
66
+ }
67
+
68
+ .ticker__item {
69
+ display: inline-flex;
70
+ align-items: center;
71
+ gap: 7px;
72
+ white-space: nowrap;
73
+ }
74
+
75
+ .ticker__item a:hover {
76
+ text-decoration: underline;
77
+ }
78
+
79
+ .ticker__arrow {
80
+ display: grid;
81
+ place-items: center;
82
+ width: 26px;
83
+ height: 26px;
84
+ border-radius: var(--r-round);
85
+ opacity: var(--opacity-ticker-arrow);
86
+ }
87
+
88
+ .ticker__arrow:hover {
89
+ opacity: 1;
90
+ }
91
+
92
+ .locale {
93
+ position: relative;
94
+ }
95
+
96
+ .locale__trigger {
97
+ display: inline-flex;
98
+ align-items: center;
99
+ gap: 6px;
100
+ min-height: 30px;
101
+ padding: 0 10px;
102
+ border-radius: var(--r-pill);
103
+ list-style: none;
104
+ cursor: pointer;
105
+ }
106
+
107
+ .locale__trigger::-webkit-details-marker {
108
+ display: none;
109
+ }
110
+
111
+ .locale__trigger:hover,
112
+ .locale[open] .locale__trigger {
113
+ background: var(--surface-locale-trigger-hover);
114
+ }
115
+
116
+ .locale__trigger:focus-visible {
117
+ outline: var(--border-locale-trigger-focus);
118
+ outline-offset: var(--border-locale-trigger-focus-offset);
119
+ }
120
+
121
+ .locale--bar .locale__code,
122
+ .locale--header .locale__name {
123
+ display: none;
124
+ }
125
+
126
+ .locale--header .locale__trigger {
127
+ min-height: 44px;
128
+ padding: 0 10px;
129
+ color: var(--heading);
130
+ font-size: var(--text-locale-trigger);
131
+ font-weight: var(--weight-bold);
132
+ letter-spacing: var(--tracking-locale-trigger);
133
+ }
134
+
135
+ .locale--header .locale__trigger:hover,
136
+ .locale--header[open] .locale__trigger {
137
+ background: var(--soft);
138
+ }
139
+
140
+ .locale__menu {
141
+ position: absolute;
142
+ inset-block-start: calc(100% + 6px);
143
+ inset-inline-end: 0;
144
+ z-index: 60;
145
+ display: grid;
146
+ min-width: 170px;
147
+ padding: 6px;
148
+ border: var(--border-locale-menu);
149
+ border-radius: var(--r);
150
+ background: var(--card);
151
+ color: var(--ink);
152
+ box-shadow: var(--shadow-lg);
153
+ }
154
+
155
+ .locale__menu a {
156
+ display: flex;
157
+ align-items: center;
158
+ justify-content: space-between;
159
+ gap: 10px;
160
+ min-height: 44px;
161
+ padding: 0 12px;
162
+ border-radius: var(--r-sm);
163
+ font-size: var(--text-locale-menu);
164
+ }
165
+
166
+ .locale__menu a:hover,
167
+ .locale__menu a[aria-current] {
168
+ background: var(--soft);
169
+ color: var(--accent);
170
+ }
171
+
172
+ @media (max-width: 760px) {
173
+ .topbar__inner {
174
+ grid-template-columns: 1fr;
175
+ }
176
+ .topbar__social,
177
+ .topbar__end {
178
+ display: none;
179
+ }
180
+ }
181
+
182
+ .site-header {
183
+ position: relative;
184
+ z-index: 1;
185
+ border-block-end: var(--border-site-header);
186
+ background: var(--surface-site-header);
187
+ -webkit-backdrop-filter: saturate(1.6) blur(14px);
188
+ backdrop-filter: var(--filter-site-header);
189
+ transition:
190
+ var(--motion-site-header);
191
+ }
192
+
193
+ .site-header {
194
+ border-block-end-color: var(--line);
195
+ box-shadow: var(--shadow-sm);
196
+ }
197
+
198
+ .site-header__inner {
199
+ display: grid;
200
+ grid-template-columns: 1fr auto 1fr;
201
+ align-items: center;
202
+ gap: 8px;
203
+ max-width: 1320px;
204
+ min-height: var(--header-h);
205
+ margin-inline: auto;
206
+ padding-inline: calc(var(--gutter) - 8px);
207
+ }
208
+
209
+ .brand {
210
+ display: inline-flex;
211
+ align-items: center;
212
+ justify-self: center;
213
+ min-height: 44px;
214
+ }
215
+
216
+ .brand__img {
217
+ width: auto;
218
+ height: auto;
219
+ max-height: min(var(--logo-h, 42px), 48px);
220
+ max-width: min(var(--logo-max-w, 170px), 42vw);
221
+ object-fit: contain;
222
+ }
223
+
224
+ @media (min-width: 1024px) {
225
+ .brand__img {
226
+ max-height: var(--logo-h, 42px);
227
+ --logo-max-w: calc(var(--logo-h, 42px) * 5);
228
+ }
229
+ }
230
+
231
+ .brand__text {
232
+ color: var(--heading);
233
+ font-family: var(--font-display);
234
+ font-size: var(--text-brand-text);
235
+ font-weight: var(--weight-heavy);
236
+ line-height: 1;
237
+ }
238
+
239
+ @media (max-width: 759px) {
240
+ .brand__text {
241
+ font-size: var(--text-brand-text-narrow);
242
+ white-space: nowrap;
243
+ }
244
+ }
245
+
246
+ @media (min-width: 1024px) {
247
+ .brand__text {
248
+ font-size: var(--text-brand-text-wide);
249
+ }
250
+ }
251
+
252
+ .site-nav {
253
+ display: none;
254
+ }
255
+
256
+ .site-header__actions {
257
+ display: flex;
258
+ justify-content: flex-end;
259
+ gap: 2px;
260
+ }
261
+
262
+ @media (min-width: 1024px) {
263
+ .site-header__inner {
264
+ grid-template-columns: auto 1fr auto;
265
+ gap: 28px;
266
+ }
267
+ .header-menu-toggle {
268
+ display: none;
269
+ }
270
+ .brand {
271
+ justify-self: start;
272
+ }
273
+ .site-nav {
274
+ display: flex;
275
+ justify-content: center;
276
+ align-items: center;
277
+ gap: 4px;
278
+ }
279
+ }
280
+
281
+ .nav-link,
282
+ .nav-summary {
283
+ display: inline-flex;
284
+ align-items: center;
285
+ gap: 5px;
286
+ min-height: 42px;
287
+ padding: 0 14px;
288
+ border-radius: var(--r-pill);
289
+ color: var(--heading);
290
+ font-size: var(--text-nav-summary);
291
+ font-weight: var(--weight-semibold);
292
+ list-style: none;
293
+ cursor: pointer;
294
+ transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
295
+ }
296
+
297
+ .nav-summary::-webkit-details-marker {
298
+ display: none;
299
+ }
300
+
301
+ .nav-link:hover,
302
+ .nav-summary:hover,
303
+ .nav-item[open] .nav-summary,
304
+ .nav-link[aria-current="page"] {
305
+ background: var(--soft);
306
+ color: var(--accent-text);
307
+ }
308
+
309
+ .nav-item {
310
+ position: relative;
311
+ }
312
+
313
+ .mega {
314
+ position: absolute;
315
+ inset-block-start: calc(100% + 10px);
316
+ inset-inline-start: 50%;
317
+ translate: -50% 0;
318
+ min-width: 520px;
319
+ padding: 22px;
320
+ border: var(--border-mega);
321
+ border-radius: var(--r-lg);
322
+ background: var(--card);
323
+ box-shadow: var(--shadow-lg);
324
+ animation: pop-in var(--duration) var(--ease);
325
+ }
326
+
327
+ [dir="rtl"] .mega {
328
+ translate: 50% 0;
329
+ }
330
+
331
+ @keyframes pop-in {
332
+ from {
333
+ opacity: 0;
334
+ transform: var(--motion-keyframes-pop-in-from);
335
+ }
336
+ }
337
+
338
+ .mega__grid {
339
+ display: grid;
340
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
341
+ gap: 18px 24px;
342
+ }
343
+
344
+ .mega__title {
345
+ color: var(--heading);
346
+ font-weight: var(--weight-bold);
347
+ }
348
+
349
+ .mega__list {
350
+ display: grid;
351
+ gap: 6px;
352
+ margin-block-start: 8px;
353
+ padding: 0;
354
+ list-style: none;
355
+ color: var(--muted);
356
+ font-size: var(--text-mega-list);
357
+ }
358
+
359
+ .mega a:hover {
360
+ color: var(--accent);
361
+ }
362
+
363
+ .mega__all {
364
+ display: inline-flex;
365
+ align-items: center;
366
+ gap: 6px;
367
+ margin-block-start: 18px;
368
+ color: var(--accent);
369
+ font-weight: var(--weight-bold);
370
+ }
371
+
372
+ /* ---------- the phone menu ---------- */
373
+
374
+ .mobile-menu {
375
+ position: fixed;
376
+ inset: 0;
377
+ z-index: 120;
378
+ visibility: hidden;
379
+ transition: var(--motion-mobile-menu);
380
+ }
381
+
382
+ .mobile-menu[data-open="true"] {
383
+ visibility: visible;
384
+ transition: none;
385
+ }
386
+
387
+ .mobile-menu__scrim {
388
+ position: absolute;
389
+ inset: 0;
390
+ width: 100%;
391
+ background: var(--overlay);
392
+ opacity: 0;
393
+ transition: var(--motion-mobile-menu-scrim);
394
+ cursor: default;
395
+ }
396
+
397
+ .mobile-menu__panel {
398
+ position: absolute;
399
+ inset-block: 0;
400
+ inset-inline-start: 0;
401
+ z-index: 1;
402
+ display: flex;
403
+ flex-direction: column;
404
+ width: min(88vw, 380px);
405
+ background: var(--bg);
406
+ box-shadow: var(--shadow-lg);
407
+ transform: var(--motion-mobile-menu-panel);
408
+ transition: var(--motion-mobile-menu-panel-transition);
409
+ }
410
+
411
+ [dir="rtl"] .mobile-menu__panel {
412
+ transform: var(--motion-mobile-menu-panel-rtl);
413
+ }
414
+
415
+ .mobile-menu[data-open="true"] .mobile-menu__panel {
416
+ transform: none;
417
+ }
418
+
419
+ .mobile-menu[data-open="true"] .mobile-menu__scrim {
420
+ opacity: 1;
421
+ }
422
+
423
+ .mobile-menu__head {
424
+ display: flex;
425
+ align-items: center;
426
+ justify-content: space-between;
427
+ gap: 12px;
428
+ min-height: var(--header-h);
429
+ padding-inline: 16px 10px;
430
+ border-block-end: var(--border-mobile-menu-head);
431
+ }
432
+
433
+ .mobile-menu__head .brand__img {
434
+ max-height: 34px;
435
+ }
436
+
437
+ .mobile-nav {
438
+ flex: 1;
439
+ overflow-y: auto;
440
+ padding: 8px 16px;
441
+ }
442
+
443
+ .mobile-nav > a,
444
+ .mobile-nav summary {
445
+ display: flex;
446
+ align-items: center;
447
+ justify-content: space-between;
448
+ min-height: 56px;
449
+ border-block-end: var(--border-mobile-nav);
450
+ color: var(--heading);
451
+ font-family: var(--font-display);
452
+ font-size: var(--text-mobile-nav);
453
+ font-weight: var(--weight-bold);
454
+ list-style: none;
455
+ cursor: pointer;
456
+ }
457
+
458
+ .mobile-nav summary::-webkit-details-marker {
459
+ display: none;
460
+ }
461
+
462
+ .mobile-nav details[open] summary svg {
463
+ transform: var(--motion-mobile-nav);
464
+ }
465
+
466
+ .mobile-nav details > div {
467
+ display: grid;
468
+ gap: 2px;
469
+ padding: 8px 0 12px;
470
+ }
471
+
472
+ .mobile-nav details > div a {
473
+ padding: 9px 12px;
474
+ border-radius: var(--r-sm);
475
+ color: var(--muted);
476
+ }
477
+
478
+ .mobile-nav a[aria-current="page"] {
479
+ color: var(--accent);
480
+ }
481
+
482
+ .mobile-menu__foot {
483
+ display: grid;
484
+ gap: 10px;
485
+ padding: 16px;
486
+ border-block-start: var(--border-mobile-menu-foot);
487
+ background: var(--softer);
488
+ }
489
+
490
+ .mobile-menu__link {
491
+ display: flex;
492
+ align-items: center;
493
+ gap: 10px;
494
+ min-height: 40px;
495
+ color: var(--heading);
496
+ font-weight: var(--weight-semibold);
497
+ }
498
+
499
+ .mobile-menu__languages {
500
+ display: flex;
501
+ gap: 8px;
502
+ }
503
+
504
+ .mobile-menu__languages a {
505
+ flex: 1;
506
+ padding: 9px;
507
+ border: var(--border-mobile-menu-languages);
508
+ border-radius: var(--r-pill);
509
+ font-size: var(--text-mobile-menu-languages);
510
+ font-weight: var(--weight-semibold);
511
+ text-align: center;
512
+ }
513
+
514
+ .mobile-menu__languages a[aria-current] {
515
+ border-color: var(--btn);
516
+ background: var(--btn);
517
+ color: var(--btn-ink);
518
+ }
519
+
520
+ .mobile-menu__social {
521
+ display: flex;
522
+ gap: 6px;
523
+ }
524
+
525
+ .mobile-menu__social a {
526
+ display: grid;
527
+ place-items: center;
528
+ width: 40px;
529
+ height: 40px;
530
+ border-radius: var(--r-round);
531
+ background: var(--card);
532
+ color: var(--heading);
533
+ }
534
+
535
+ /* ---------- search ---------- */
536
+
537
+ .search-dialog {
538
+ width: min(640px, calc(100vw - 24px));
539
+ margin: 10vh auto auto;
540
+ padding: 20px;
541
+ border: 0;
542
+ border-radius: var(--r-lg);
543
+ background: var(--bg);
544
+ color: var(--ink);
545
+ box-shadow: var(--shadow-lg);
546
+ }
547
+
548
+ .search-dialog::backdrop {
549
+ background: var(--overlay);
550
+ -webkit-backdrop-filter: blur(3px);
551
+ backdrop-filter: var(--filter-search-dialog);
552
+ }
553
+
554
+ .search-dialog__head {
555
+ display: flex;
556
+ align-items: center;
557
+ justify-content: space-between;
558
+ margin-block-end: 12px;
559
+ color: var(--heading);
560
+ font-family: var(--font-display);
561
+ font-size: var(--text-search-dialog-head);
562
+ }
563
+
564
+ .search-dialog form,
565
+ .search-page__form {
566
+ position: relative;
567
+ display: flex;
568
+ gap: 8px;
569
+ }
570
+
571
+ .search-dialog form .input,
572
+ .search-page__form .input {
573
+ padding-inline-start: 46px;
574
+ }
575
+
576
+ .search-dialog__icon {
577
+ position: absolute;
578
+ inset-inline-start: 16px;
579
+ inset-block-start: 16px;
580
+ color: var(--muted);
581
+ pointer-events: none;
582
+ }
583
+
584
+ .search-page__form {
585
+ max-width: 560px;
586
+ margin: 18px auto 0;
587
+ }
588
+
589
+ /* ---------- footer ---------- */
590
+
591
+ .site-footer {
592
+ /* The bottom room clears the back-to-top button, which sits over the last line on a phone. */
593
+ padding-block: clamp(40px, 6vw, 64px) 88px;
594
+ font-size: var(--text-site-footer);
595
+ }
596
+
597
+ .footer__inner {
598
+ display: grid;
599
+ gap: 32px;
600
+ }
601
+
602
+ @media (min-width: 760px) {
603
+ .footer__inner {
604
+ grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
605
+ }
606
+ }
607
+
608
+ .footer__brand {
609
+ color: var(--heading);
610
+ font-family: var(--font-display);
611
+ font-size: var(--text-footer-brand);
612
+ font-weight: var(--weight-heavy);
613
+ }
614
+
615
+ .footer__logo-img {
616
+ width: auto;
617
+ height: auto;
618
+ max-height: 48px;
619
+ max-width: min(200px, 60vw);
620
+ object-fit: contain;
621
+ }
622
+
623
+ .footer__about {
624
+ max-width: 340px;
625
+ margin-block-start: 12px;
626
+ color: var(--muted);
627
+ }
628
+
629
+ .footer__social {
630
+ display: flex;
631
+ gap: 8px;
632
+ margin-block-start: 18px;
633
+ }
634
+
635
+ .footer__social a {
636
+ display: grid;
637
+ place-items: center;
638
+ width: 40px;
639
+ height: 40px;
640
+ border: var(--border-footer-social);
641
+ border-radius: var(--r-round);
642
+ color: var(--heading);
643
+ transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease);
644
+ }
645
+
646
+ .footer__social a:hover {
647
+ background: var(--accent);
648
+ border-color: var(--accent);
649
+ color: var(--bg);
650
+ }
651
+
652
+ .footer__col h2 {
653
+ margin-block-end: 14px;
654
+ font-family: var(--font-body);
655
+ font-size: var(--text-footer-col);
656
+ font-weight: var(--weight-bold);
657
+ }
658
+
659
+ .footer__col ul {
660
+ display: grid;
661
+ gap: 10px;
662
+ padding: 0;
663
+ list-style: none;
664
+ }
665
+
666
+ .footer__col a {
667
+ color: var(--muted);
668
+ transition: color var(--duration) var(--ease);
669
+ }
670
+
671
+ .footer__col a:hover {
672
+ color: var(--accent);
673
+ }
674
+
675
+ .footer__contact :is(a, span) {
676
+ display: inline-flex;
677
+ align-items: center;
678
+ gap: 8px;
679
+ color: var(--muted);
680
+ }
681
+
682
+ .footer__contact svg {
683
+ flex: none;
684
+ color: var(--accent);
685
+ }
686
+
687
+ .footer__bottom {
688
+ display: flex;
689
+ flex-wrap: wrap;
690
+ align-items: center;
691
+ justify-content: space-between;
692
+ gap: 12px;
693
+ margin-block-start: 36px;
694
+ padding-block-start: 18px;
695
+ border-block-start: var(--border-footer-bottom);
696
+ color: var(--muted);
697
+ font-size: var(--text-footer-bottom);
698
+ }
699
+
700
+ .footer__pay {
701
+ display: inline-flex;
702
+ align-items: center;
703
+ gap: 7px;
704
+ padding: 7px 14px;
705
+ border-radius: var(--r-pill);
706
+ background: var(--surface-footer-pay);
707
+ color: var(--heading);
708
+ font-weight: var(--weight-bold);
709
+ }
710
+
711
+ /* ---------- floating helpers ---------- */
712
+
713
+ .back-to-top {
714
+ position: fixed;
715
+ inset-block-end: calc(18px + env(safe-area-inset-bottom));
716
+ inset-inline-start: 16px;
717
+ z-index: 65;
718
+ display: grid;
719
+ place-items: center;
720
+ width: 46px;
721
+ height: 46px;
722
+ border: var(--border-back-to-top);
723
+ border-radius: var(--r-round);
724
+ background: var(--card);
725
+ color: var(--accent);
726
+ box-shadow: var(--shadow);
727
+ opacity: 0;
728
+ transform: var(--motion-back-to-top);
729
+ pointer-events: none;
730
+ transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
731
+ }
732
+
733
+ .back-to-top[data-visible="true"] {
734
+ opacity: 1;
735
+ transform: none;
736
+ pointer-events: auto;
737
+ }
738
+
739
+ /* It takes the side the WhatsApp widget leaves free. */
740
+ body[data-wa-side="right"] .back-to-top {
741
+ inset-inline: auto;
742
+ left: 16px;
743
+ }
744
+
745
+ body[data-wa-side="left"] .back-to-top {
746
+ inset-inline: auto;
747
+ right: 16px;
748
+ }
749
+
750
+ /* On a product page the phone's buy bar holds the bottom edge. */
751
+ @media (max-width: 899px) {
752
+ body[data-page-type="product"] .back-to-top,
753
+ body[data-page-type="landing"] .back-to-top {
754
+ display: none;
755
+ }
756
+ }
757
+
758
+ .toast {
759
+ position: fixed;
760
+ inset-block-start: calc(var(--header-h) + 12px);
761
+ inset-inline: 12px;
762
+ z-index: 130;
763
+ display: flex;
764
+ justify-content: center;
765
+ pointer-events: none;
766
+ }
767
+
768
+ .toast__inner {
769
+ display: flex;
770
+ align-items: center;
771
+ gap: 10px;
772
+ max-width: 460px;
773
+ padding: 12px 16px;
774
+ border-radius: var(--r);
775
+ background: var(--overlay-strong);
776
+ color: var(--on-photo);
777
+ font-size: var(--text-toast-inner);
778
+ box-shadow: var(--shadow-lg);
779
+ opacity: 0;
780
+ transform: var(--motion-toast-inner);
781
+ transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
782
+ }
783
+
784
+ .toast[data-visible="true"] .toast__inner {
785
+ opacity: 1;
786
+ transform: none;
787
+ pointer-events: auto;
788
+ }
789
+
790
+ .toast__inner svg {
791
+ flex: none;
792
+ color: var(--whatsapp-online);
793
+ }
794
+
795
+ .toast__link {
796
+ margin-inline-start: 6px;
797
+ color: var(--on-photo);
798
+ text-decoration: underline;
799
+ font-weight: var(--weight-bold);
800
+ white-space: nowrap;
801
+ }
802
+
803
+ /* ---------- the merchant's WhatsApp widget ---------- */
804
+
805
+ .whatsapp-float {
806
+ position: fixed;
807
+ inset-block-end: calc(18px + env(safe-area-inset-bottom));
808
+ inset-inline-end: 16px;
809
+ z-index: 70;
810
+ display: inline-flex;
811
+ align-items: center;
812
+ gap: 9px;
813
+ min-height: 52px;
814
+ padding: 0 18px 0 14px;
815
+ border-radius: var(--r-pill);
816
+ background: var(--whatsapp);
817
+ color: var(--on-photo);
818
+ font-size: var(--text-whatsapp-float);
819
+ font-weight: var(--weight-bold);
820
+ box-shadow: var(--shadow-lg);
821
+ transition: transform var(--duration) var(--ease), background-color var(--duration) var(--ease);
822
+ }
823
+
824
+ .whatsapp-float:hover {
825
+ background: var(--whatsapp-hover);
826
+ transform: var(--motion-whatsapp-float-hover);
827
+ }
828
+
829
+ .wa[data-position="right"] .whatsapp-float {
830
+ inset-inline: auto;
831
+ right: 16px;
832
+ }
833
+
834
+ .wa[data-position="left"] .whatsapp-float {
835
+ inset-inline: auto;
836
+ left: 16px;
837
+ }
838
+
839
+ .wa[data-accent="primary"] .whatsapp-float,
840
+ .wa[data-accent="primary"] .wa__cta {
841
+ background: var(--btn);
842
+ color: var(--btn-ink);
843
+ }
844
+
845
+ /* A phone keeps only the icon, over the product page's buy bar. */
846
+ @media (max-width: 899px) {
847
+ .whatsapp-float {
848
+ width: 52px;
849
+ padding: 0;
850
+ justify-content: center;
851
+ }
852
+ .whatsapp-float span {
853
+ display: none;
854
+ }
855
+ body[data-page-type="product"] .whatsapp-float,
856
+ body[data-page-type="landing"] .whatsapp-float {
857
+ inset-block-end: calc(92px + env(safe-area-inset-bottom));
858
+ }
859
+ }
860
+
861
+ /* The launcher steps aside while an order form is on screen. */
862
+ .wa .whatsapp-float {
863
+ transition: var(--motion-whatsapp-float);
864
+ }
865
+
866
+ .wa[data-yield="true"] .whatsapp-float {
867
+ opacity: 0;
868
+ visibility: hidden;
869
+ transform: var(--motion-whatsapp-float-hidden);
870
+ pointer-events: none;
871
+ }
872
+
873
+ /* The merchant can ask the launcher to call for attention (the WhatsApp App's setting); the widget's script turns it off after one visit and for reduced motion. */
874
+ .wa[data-attention="true"] .whatsapp-float {
875
+ animation: var(--motion-whatsapp-float-attention);
876
+ }
877
+
878
+ @keyframes wa-attention {
879
+ 0% {
880
+ box-shadow: var(--shadow-keyframes-wa-attention-0pct);
881
+ }
882
+ 70% {
883
+ box-shadow: var(--shadow-keyframes-wa-attention-70pct);
884
+ }
885
+ }
886
+
887
+ .wa__card {
888
+ position: fixed;
889
+ inset-block-end: calc(84px + env(safe-area-inset-bottom));
890
+ z-index: 71;
891
+ width: min(340px, calc(100vw - 32px));
892
+ padding: 16px;
893
+ border: var(--border-wa-card);
894
+ border-radius: var(--r-lg);
895
+ background: var(--whatsapp-panel);
896
+ color: var(--whatsapp-panel-ink);
897
+ box-shadow: var(--shadow-wa-card);
898
+ animation: pop-in var(--duration) var(--ease);
899
+ }
900
+
901
+ .wa[data-position="right"] .wa__card {
902
+ right: 16px;
903
+ }
904
+
905
+ .wa[data-position="left"] .wa__card {
906
+ left: 16px;
907
+ }
908
+
909
+ .wa__head {
910
+ display: flex;
911
+ align-items: center;
912
+ gap: 10px;
913
+ }
914
+
915
+ .wa__avatar {
916
+ display: grid;
917
+ place-items: center;
918
+ flex: none;
919
+ width: 44px;
920
+ height: 44px;
921
+ border-radius: var(--r-round);
922
+ object-fit: cover;
923
+ background: var(--whatsapp-bubble-out);
924
+ color: var(--whatsapp);
925
+ }
926
+
927
+ .wa__name {
928
+ font-weight: var(--weight-bold);
929
+ }
930
+
931
+ .wa__caption {
932
+ color: var(--whatsapp-panel-muted);
933
+ font-size: var(--text-wa-caption);
934
+ }
935
+
936
+ .wa__close {
937
+ display: grid;
938
+ place-items: center;
939
+ width: 32px;
940
+ height: 32px;
941
+ margin-inline-start: auto;
942
+ border-radius: var(--r-round);
943
+ background: var(--whatsapp-bubble-in);
944
+ }
945
+
946
+ .wa__bubble {
947
+ margin-block: 14px;
948
+ padding: 10px 13px;
949
+ border-radius: var(--r-xs) var(--r-lg) var(--r-lg) var(--r-lg);
950
+ background: var(--whatsapp-bubble-out);
951
+ font-size: var(--text-wa-bubble);
952
+ line-height: var(--leading-wa-bubble);
953
+ white-space: pre-line;
954
+ }
955
+
956
+ [dir="rtl"] .wa__bubble {
957
+ border-radius: var(--r-lg) var(--r-xs) var(--r-lg) var(--r-lg);
958
+ }
959
+
960
+ .wa__cta {
961
+ display: flex;
962
+ align-items: center;
963
+ justify-content: center;
964
+ gap: 8px;
965
+ min-height: 48px;
966
+ border-radius: var(--r-pill);
967
+ background: var(--whatsapp);
968
+ color: var(--on-photo);
969
+ font-weight: var(--weight-bold);
970
+ }