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,1030 @@
1
+ *,
2
+ *::before,
3
+ *::after {
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ * {
8
+ margin: 0;
9
+ }
10
+
11
+ html {
12
+ -webkit-text-size-adjust: 100%;
13
+ scroll-behavior: smooth;
14
+ scroll-padding-block-start: calc(var(--header-h) + 16px);
15
+ }
16
+
17
+ @media (prefers-reduced-motion: reduce) {
18
+ html {
19
+ scroll-behavior: auto;
20
+ }
21
+ *,
22
+ *::before,
23
+ *::after {
24
+ animation-duration: var(--motion-page-before-after-reduced) !important;
25
+ transition-duration: var(--motion-page-before-after-reduced) !important;
26
+ }
27
+ }
28
+
29
+ body {
30
+ min-height: 100vh;
31
+ background: var(--bg);
32
+ font-family: var(--font-body);
33
+ font-size: var(--body-size);
34
+ line-height: var(--body-leading);
35
+ -webkit-font-smoothing: antialiased;
36
+ text-rendering: optimizeLegibility;
37
+ overflow-x: clip;
38
+ }
39
+
40
+ body.has-drawer-open,
41
+ body.has-dialog-open {
42
+ overflow: hidden;
43
+ }
44
+
45
+ img,
46
+ svg,
47
+ video {
48
+ display: block;
49
+ max-width: 100%;
50
+ }
51
+
52
+ img {
53
+ height: auto;
54
+ }
55
+
56
+ a {
57
+ color: inherit;
58
+ text-decoration: none;
59
+ }
60
+
61
+ button,
62
+ input,
63
+ select,
64
+ textarea {
65
+ font: inherit;
66
+ color: inherit;
67
+ }
68
+
69
+ button {
70
+ cursor: pointer;
71
+ background: none;
72
+ border: 0;
73
+ padding: 0;
74
+ }
75
+
76
+ :focus-visible {
77
+ outline: var(--border-page-focus);
78
+ outline-offset: var(--border-page-focus-offset);
79
+ }
80
+
81
+ [hidden] {
82
+ display: none !important;
83
+ }
84
+
85
+ h1,
86
+ h2,
87
+ h3,
88
+ h4 {
89
+ color: var(--heading);
90
+ font-family: var(--font-display);
91
+ font-weight: var(--heading-weight);
92
+ line-height: var(--leading-h4);
93
+ letter-spacing: var(--heading-tracking);
94
+ text-wrap: balance;
95
+ }
96
+
97
+ [dir="rtl"] :is(h1, h2, h3, h4) {
98
+ line-height: var(--leading-rtl);
99
+ letter-spacing: 0;
100
+ }
101
+
102
+ p {
103
+ text-wrap: pretty;
104
+ }
105
+
106
+ .icon-directional {
107
+ transition: transform var(--duration) var(--ease);
108
+ }
109
+
110
+ [dir="rtl"] .icon-directional {
111
+ transform: var(--motion-icon-directional);
112
+ }
113
+
114
+ .sr-only {
115
+ position: absolute !important;
116
+ width: 1px;
117
+ height: 1px;
118
+ padding: 0;
119
+ margin: -1px;
120
+ overflow: hidden;
121
+ clip: rect(0 0 0 0);
122
+ white-space: nowrap;
123
+ border: 0;
124
+ }
125
+
126
+ .skip-link {
127
+ position: fixed;
128
+ inset-block-start: 10px;
129
+ inset-inline-start: 10px;
130
+ z-index: 200;
131
+ padding: 10px 16px;
132
+ border-radius: var(--r-pill);
133
+ background: var(--btn);
134
+ color: var(--btn-ink);
135
+ transform: var(--motion-skip-link);
136
+ }
137
+
138
+ .skip-link:focus {
139
+ transform: none;
140
+ }
141
+
142
+ /* ---------- frame ---------- */
143
+
144
+ /* A section's band; the SDK's style classes give it its room. */
145
+ .band {
146
+ position: relative;
147
+ }
148
+
149
+ /* The page's column. Zero specificity: a merchant's width class always wins. */
150
+ :where(.frame) {
151
+ width: 100%;
152
+ max-width: 1320px;
153
+ margin-inline: auto;
154
+ padding-inline: var(--gutter);
155
+ }
156
+
157
+ .bleed {
158
+ width: 100%;
159
+ }
160
+
161
+ .muted {
162
+ color: var(--muted);
163
+ }
164
+
165
+ .eyebrow {
166
+ display: inline-block;
167
+ color: var(--accent);
168
+ font-size: var(--text-eyebrow);
169
+ font-weight: var(--weight-bold);
170
+ letter-spacing: var(--tracking-eyebrow);
171
+ text-transform: uppercase;
172
+ }
173
+
174
+ [dir="rtl"] .eyebrow {
175
+ letter-spacing: 0;
176
+ }
177
+
178
+ .cluster {
179
+ display: flex;
180
+ flex-wrap: wrap;
181
+ align-items: center;
182
+ gap: 12px;
183
+ }
184
+
185
+ /* ---------- headings of sections ---------- */
186
+
187
+ .section-head {
188
+ max-width: 760px;
189
+ margin: 0 auto clamp(22px, 3vw, 36px);
190
+ text-align: center;
191
+ }
192
+
193
+ .section-head--start {
194
+ margin-inline: 0;
195
+ text-align: start;
196
+ }
197
+
198
+ .section-head h2 {
199
+ font-size: var(--text-section-head);
200
+ }
201
+
202
+ .section-head .accent,
203
+ .accent {
204
+ position: relative;
205
+ color: var(--accent);
206
+ white-space: nowrap;
207
+ }
208
+
209
+ .section-head p {
210
+ margin-block-start: 10px;
211
+ color: var(--muted);
212
+ font-size: var(--text-section-head-text);
213
+ }
214
+
215
+ .section-more {
216
+ margin-block-start: clamp(20px, 3vw, 30px);
217
+ text-align: center;
218
+ }
219
+
220
+ .link-arrow {
221
+ display: inline-flex;
222
+ align-items: center;
223
+ gap: 8px;
224
+ color: var(--accent);
225
+ font-weight: var(--weight-bold);
226
+ }
227
+
228
+ .link-arrow:hover .icon-directional {
229
+ transform: var(--motion-icon-directional-hover);
230
+ }
231
+
232
+ [dir="rtl"] .link-arrow:hover .icon-directional {
233
+ transform: var(--motion-icon-directional-hover-rtl);
234
+ }
235
+
236
+ /* ---------- buttons ---------- */
237
+
238
+ .btn {
239
+ display: inline-flex;
240
+ align-items: center;
241
+ justify-content: center;
242
+ gap: 9px;
243
+ min-height: 50px;
244
+ padding: 0 24px;
245
+ border: var(--border-btn);
246
+ border-radius: var(--btn-radius);
247
+ background: var(--btn);
248
+ color: var(--btn-ink);
249
+ font-weight: var(--btn-weight);
250
+ font-size: var(--btn-size);
251
+ line-height: var(--leading-btn);
252
+ letter-spacing: var(--btn-tracking);
253
+ text-transform: var(--btn-case);
254
+ text-align: center;
255
+ white-space: nowrap;
256
+ transition:
257
+ background-color var(--duration) var(--ease),
258
+ border-color var(--duration) var(--ease),
259
+ color var(--duration) var(--ease),
260
+ transform var(--duration) var(--ease),
261
+ box-shadow var(--duration) var(--ease);
262
+ }
263
+
264
+ .btn:hover {
265
+ background: var(--btn-hover);
266
+ border-color: var(--btn-hover);
267
+ }
268
+
269
+ .btn:active {
270
+ transform: var(--motion-btn-active);
271
+ }
272
+
273
+ .btn:disabled,
274
+ .btn[aria-disabled="true"] {
275
+ opacity: var(--opacity-btn-disabled);
276
+ pointer-events: none;
277
+ }
278
+
279
+ .btn[aria-busy] {
280
+ cursor: progress;
281
+ }
282
+
283
+ .btn--lg {
284
+ min-height: 56px;
285
+ padding-inline: 30px;
286
+ font-size: var(--text-btn-lg);
287
+ }
288
+
289
+ .btn--sm {
290
+ min-height: 40px;
291
+ padding-inline: 16px;
292
+ font-size: var(--text-btn-sm);
293
+ }
294
+
295
+ .btn--block {
296
+ width: 100%;
297
+ }
298
+
299
+ .btn--ghost {
300
+ background: transparent;
301
+ color: var(--heading);
302
+ border-color: var(--line-strong);
303
+ }
304
+
305
+ .btn--ghost:hover {
306
+ background: var(--soft);
307
+ border-color: var(--accent);
308
+ color: var(--accent);
309
+ }
310
+
311
+ .btn--white {
312
+ background: var(--on-photo);
313
+ border-color: var(--on-photo);
314
+ color: var(--on-photo-ink);
315
+ }
316
+
317
+ .btn--white:hover {
318
+ background: var(--surface-btn-white-hover);
319
+ border-color: transparent;
320
+ }
321
+
322
+ .btn--link {
323
+ min-height: 0;
324
+ padding: 0;
325
+ border: 0;
326
+ background: none;
327
+ color: var(--accent);
328
+ font-weight: var(--weight-bold);
329
+ }
330
+
331
+ .btn--link:hover {
332
+ background: none;
333
+ text-decoration: underline;
334
+ }
335
+
336
+ .icon-btn {
337
+ position: relative;
338
+ display: inline-grid;
339
+ place-items: center;
340
+ width: 44px;
341
+ height: 44px;
342
+ border-radius: var(--r-round);
343
+ color: var(--heading);
344
+ transition: background-color var(--duration) var(--ease);
345
+ }
346
+
347
+ .icon-btn:hover {
348
+ background: var(--soft);
349
+ }
350
+
351
+ .icon-btn--sm {
352
+ width: 32px;
353
+ height: 32px;
354
+ }
355
+
356
+ .cart-badge {
357
+ position: absolute;
358
+ inset-block-start: 3px;
359
+ inset-inline-end: 1px;
360
+ min-width: 19px;
361
+ height: 19px;
362
+ padding: 0 5px;
363
+ border-radius: var(--r-pill);
364
+ background: var(--accent);
365
+ color: var(--bg);
366
+ font-size: var(--text-cart-badge);
367
+ font-weight: var(--weight-heavy);
368
+ line-height: var(--leading-cart-badge);
369
+ text-align: center;
370
+ transition: transform var(--duration) var(--ease);
371
+ }
372
+
373
+ .cart-badge[data-empty="true"] {
374
+ transform: scale(0);
375
+ }
376
+
377
+ /* ---------- forms ---------- */
378
+
379
+ .field {
380
+ position: relative;
381
+ display: grid;
382
+ grid-template-columns: minmax(0, 1fr);
383
+ gap: 6px;
384
+ }
385
+
386
+ .field-label {
387
+ color: var(--heading);
388
+ font-size: var(--text-field-label);
389
+ font-weight: var(--weight-semibold);
390
+ }
391
+
392
+ .field-hint {
393
+ color: var(--muted);
394
+ font-size: var(--text-field-hint);
395
+ }
396
+
397
+ .req {
398
+ color: var(--danger-text);
399
+ }
400
+
401
+ .field-error {
402
+ color: var(--danger-text);
403
+ font-size: var(--text-field-error);
404
+ font-weight: var(--weight-semibold);
405
+ }
406
+
407
+ .field-error:empty {
408
+ display: none;
409
+ }
410
+
411
+ .input,
412
+ .select,
413
+ .textarea {
414
+ width: 100%;
415
+ min-width: 0;
416
+ min-height: 52px;
417
+ padding: 0 16px;
418
+ border: var(--border-textarea);
419
+ border-radius: var(--r);
420
+ background: var(--field);
421
+ color: var(--ink);
422
+ font-size: var(--text-textarea);
423
+ transition:
424
+ border-color var(--duration) var(--ease),
425
+ box-shadow var(--duration) var(--ease);
426
+ }
427
+
428
+ .textarea {
429
+ min-height: 96px;
430
+ padding-block: 13px;
431
+ resize: vertical;
432
+ }
433
+
434
+ .select {
435
+ appearance: none;
436
+ padding-inline-end: 42px;
437
+ }
438
+
439
+ /* The chevron is a token-coloured mask on the field's wrapper, so it draws the same in every browser. */
440
+ .select-field {
441
+ position: relative;
442
+ display: block;
443
+ }
444
+
445
+ .select-field::after {
446
+ content: "";
447
+ position: absolute;
448
+ inset-inline-end: 14px;
449
+ inset-block-start: 50%;
450
+ width: 18px;
451
+ height: 18px;
452
+ translate: 0 -50%;
453
+ background: var(--muted);
454
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
455
+ transition: rotate var(--duration) var(--ease);
456
+ pointer-events: none;
457
+ }
458
+
459
+ .select-field:has(> .select:open)::after {
460
+ rotate: 180deg;
461
+ }
462
+
463
+ /*
464
+ * A phone number reads left to right even in Arabic ("0555 12 34 56" must
465
+ * not reorder), so the field keeps its direction; it still starts where an
466
+ * Arabic field starts, and its placeholder reads as Arabic.
467
+ */
468
+ [dir="rtl"] .input[type="tel"] {
469
+ text-align: right;
470
+ }
471
+
472
+ [dir="rtl"] .input[type="tel"]::placeholder {
473
+ direction: rtl;
474
+ }
475
+
476
+ [dir="rtl"] .field--icon .input[type="tel"] {
477
+ padding-left: 16px;
478
+ padding-right: 46px;
479
+ }
480
+
481
+ .input::placeholder,
482
+ .textarea::placeholder {
483
+ color: color-mix(in oklab, var(--ink) 45%, var(--bg));
484
+ }
485
+
486
+ .input:hover,
487
+ .select:hover,
488
+ .textarea:hover {
489
+ border-color: var(--line-strong);
490
+ }
491
+
492
+ .input:focus,
493
+ .select:focus,
494
+ .textarea:focus {
495
+ outline: none;
496
+ border-color: var(--accent);
497
+ box-shadow: var(--shadow-textarea-focus);
498
+ }
499
+
500
+ [aria-invalid="true"] {
501
+ border-color: var(--danger) !important;
502
+ }
503
+
504
+ .select:disabled {
505
+ opacity: var(--opacity-select-disabled);
506
+ cursor: not-allowed;
507
+ }
508
+
509
+ /*
510
+ * Where the browser lets a real select be styled, its list wears the theme
511
+ * too: a rounded card under the field, roomy rows, the chosen one ticked.
512
+ * The control stays the browser's own — keyboard, type-to-find, screen
513
+ * readers and right-to-left untouched. Elsewhere the list is the system's.
514
+ */
515
+ @supports (appearance: base-select) {
516
+ .select,
517
+ .select::picker(select) {
518
+ appearance: base-select;
519
+ }
520
+
521
+ .select {
522
+ position: relative;
523
+ display: flex;
524
+ align-items: center;
525
+ background-image: none;
526
+ cursor: pointer;
527
+ }
528
+
529
+ .select::picker-icon {
530
+ display: none;
531
+ }
532
+
533
+ .select::picker(select) {
534
+ margin-block: 6px;
535
+ padding: 6px;
536
+ max-block-size: min(340px, 55vh);
537
+ border: var(--border-select);
538
+ border-radius: var(--r);
539
+ background: var(--card);
540
+ color: var(--ink);
541
+ box-shadow: var(--shadow);
542
+ overflow-y: auto;
543
+ overscroll-behavior: contain;
544
+ }
545
+
546
+ .select option {
547
+ display: flex;
548
+ align-items: center;
549
+ gap: 10px;
550
+ min-block-size: 44px;
551
+ padding: 8px 12px;
552
+ border-radius: var(--r-sm);
553
+ font-size: var(--text-select);
554
+ cursor: pointer;
555
+ }
556
+
557
+ /* A placeholder ("Choose a wilaya") shows in the field, never as a choice in the list. */
558
+ .select option[data-placeholder] {
559
+ display: none;
560
+ }
561
+
562
+ .select option:hover,
563
+ .select option:focus-visible {
564
+ outline: none;
565
+ background: var(--soft);
566
+ }
567
+
568
+ .select option:checked {
569
+ color: var(--accent);
570
+ font-weight: var(--weight-bold);
571
+ }
572
+
573
+ .select option::checkmark {
574
+ order: 1;
575
+ margin-inline-start: auto;
576
+ color: var(--accent);
577
+ }
578
+ }
579
+
580
+ .notice {
581
+ display: flex;
582
+ align-items: flex-start;
583
+ gap: 10px;
584
+ padding: 12px 14px;
585
+ border-radius: var(--r-sm);
586
+ background: var(--soft);
587
+ font-size: var(--text-notice);
588
+ }
589
+
590
+ .notice svg {
591
+ flex: none;
592
+ margin-block-start: 2px;
593
+ }
594
+
595
+ .notice--warn {
596
+ background: var(--surface-notice-warn);
597
+ color: var(--warm-text);
598
+ }
599
+
600
+ .notice--error {
601
+ background: var(--surface-notice-error);
602
+ color: var(--danger-text);
603
+ }
604
+
605
+ /* ---------- small pieces ---------- */
606
+
607
+ .chip-row {
608
+ display: flex;
609
+ gap: 8px;
610
+ margin-block-end: clamp(18px, 3vw, 28px);
611
+ padding-block: 2px;
612
+ overflow-x: auto;
613
+ scrollbar-width: none;
614
+ }
615
+
616
+ .chip-row::-webkit-scrollbar {
617
+ display: none;
618
+ }
619
+
620
+ .chip {
621
+ flex: none;
622
+ display: inline-flex;
623
+ align-items: center;
624
+ gap: 6px;
625
+ min-height: 40px;
626
+ padding: 0 16px;
627
+ border: var(--border-chip);
628
+ border-radius: var(--r-pill);
629
+ background: var(--card);
630
+ color: var(--heading);
631
+ font-size: var(--text-chip);
632
+ font-weight: var(--weight-semibold);
633
+ transition: border-color var(--duration) var(--ease), background-color var(--duration) var(--ease);
634
+ }
635
+
636
+ .chip:hover {
637
+ border-color: var(--accent);
638
+ }
639
+
640
+ .chip[aria-current="page"] {
641
+ border-color: var(--btn);
642
+ background: var(--btn);
643
+ color: var(--btn-ink);
644
+ }
645
+
646
+ .stars {
647
+ display: inline-flex;
648
+ gap: 2px;
649
+ color: var(--star);
650
+ }
651
+
652
+ .star-empty {
653
+ color: color-mix(in oklab, var(--ink) 16%, var(--bg));
654
+ }
655
+
656
+ .rating-line {
657
+ display: inline-flex;
658
+ align-items: center;
659
+ gap: 6px;
660
+ color: var(--muted);
661
+ font-size: var(--text-rating-line);
662
+ }
663
+
664
+ .rating-line strong {
665
+ color: var(--heading);
666
+ }
667
+
668
+ .verified {
669
+ display: inline-flex;
670
+ align-items: center;
671
+ gap: 4px;
672
+ color: var(--success-text);
673
+ font-size: var(--text-verified);
674
+ font-weight: var(--weight-semibold);
675
+ }
676
+
677
+ .price {
678
+ display: inline-flex;
679
+ flex-wrap: wrap;
680
+ align-items: baseline;
681
+ gap: 4px 8px;
682
+ font-variant-numeric: tabular-nums;
683
+ }
684
+
685
+ .price__from {
686
+ color: var(--muted);
687
+ font-size: var(--text-price-from);
688
+ }
689
+
690
+ .price__current {
691
+ color: var(--heading);
692
+ font-weight: var(--weight-heavy);
693
+ }
694
+
695
+ .price__compare {
696
+ color: var(--muted);
697
+ font-size: var(--text-price-compare);
698
+ text-decoration: line-through;
699
+ text-decoration-thickness: 1.5px;
700
+ }
701
+
702
+ .price--lg {
703
+ font-size: var(--text-price-lg);
704
+ }
705
+
706
+ .price--lg .price__current {
707
+ color: var(--accent);
708
+ }
709
+
710
+ .badge {
711
+ display: inline-flex;
712
+ align-items: center;
713
+ min-height: 26px;
714
+ padding: 0 10px;
715
+ border-radius: var(--r-pill);
716
+ font-size: var(--text-badge);
717
+ font-weight: var(--weight-heavy);
718
+ }
719
+
720
+ .badge--sale {
721
+ background: var(--sale);
722
+ color: var(--sale-ink);
723
+ }
724
+
725
+ .badge--out {
726
+ background: var(--heading);
727
+ color: var(--bg);
728
+ }
729
+
730
+ .empty-state {
731
+ display: grid;
732
+ justify-items: center;
733
+ gap: 12px;
734
+ padding: clamp(36px, 6vw, 64px) 16px;
735
+ border: var(--border-empty-state);
736
+ border-radius: var(--r-lg);
737
+ color: var(--muted);
738
+ text-align: center;
739
+ }
740
+
741
+ .empty-state h2 {
742
+ font-size: var(--text-empty-state);
743
+ }
744
+
745
+ .service-page {
746
+ display: grid;
747
+ justify-items: center;
748
+ gap: 14px;
749
+ padding-block: clamp(56px, 10vw, 120px);
750
+ text-align: center;
751
+ }
752
+
753
+ .service-page__big {
754
+ font-family: var(--font-display);
755
+ font-size: var(--text-service-page-big);
756
+ font-weight: var(--weight-heavy);
757
+ line-height: 1;
758
+ color: var(--soft);
759
+ -webkit-text-stroke: 2px var(--accent);
760
+ }
761
+
762
+ .breadcrumbs {
763
+ margin-block-end: clamp(12px, 2vw, 20px);
764
+ font-size: var(--text-breadcrumbs);
765
+ color: var(--muted);
766
+ }
767
+
768
+ .breadcrumbs ol {
769
+ display: flex;
770
+ flex-wrap: wrap;
771
+ align-items: center;
772
+ gap: 4px;
773
+ padding: 0;
774
+ list-style: none;
775
+ }
776
+
777
+ .breadcrumbs li {
778
+ display: inline-flex;
779
+ align-items: center;
780
+ gap: 4px;
781
+ }
782
+
783
+ .breadcrumbs a:hover {
784
+ color: var(--accent);
785
+ }
786
+
787
+ .breadcrumbs [aria-current] {
788
+ color: var(--heading);
789
+ font-weight: var(--weight-semibold);
790
+ }
791
+
792
+ .pagination {
793
+ display: grid;
794
+ grid-template-columns: 1fr auto 1fr;
795
+ align-items: center;
796
+ gap: 12px;
797
+ margin-block-start: clamp(26px, 4vw, 40px);
798
+ }
799
+
800
+ .pagination > :last-child {
801
+ justify-self: end;
802
+ }
803
+
804
+ .pagination__page {
805
+ color: var(--muted);
806
+ font-size: var(--text-pagination-page);
807
+ }
808
+
809
+ /* ---------- accordion ---------- */
810
+
811
+ .accordion {
812
+ border-block-end: var(--border-accordion);
813
+ }
814
+
815
+ .accordion summary {
816
+ display: flex;
817
+ align-items: center;
818
+ gap: 10px;
819
+ min-height: 56px;
820
+ color: var(--heading);
821
+ font-weight: var(--weight-bold);
822
+ list-style: none;
823
+ cursor: pointer;
824
+ }
825
+
826
+ .accordion summary::-webkit-details-marker {
827
+ display: none;
828
+ }
829
+
830
+ .accordion summary > svg:last-child {
831
+ margin-inline-start: auto;
832
+ flex: none;
833
+ transition: transform var(--duration) var(--ease);
834
+ }
835
+
836
+ .accordion[open] summary > svg:last-child {
837
+ transform: var(--motion-accordion-last);
838
+ }
839
+
840
+ .accordion__icon {
841
+ flex: none;
842
+ color: var(--accent);
843
+ }
844
+
845
+ .accordion__body {
846
+ padding-block-end: 18px;
847
+ color: var(--ink);
848
+ }
849
+
850
+ /* ---------- rich text ---------- */
851
+
852
+ .prose {
853
+ color: var(--ink);
854
+ font-size: var(--text-prose);
855
+ line-height: var(--leading-prose);
856
+ overflow-wrap: anywhere;
857
+ }
858
+
859
+ .prose > * + * {
860
+ margin-block-start: 0.9em;
861
+ }
862
+
863
+ .prose :is(h2, h3, h4, h5, h6) {
864
+ margin-block-start: 1.5em;
865
+ line-height: var(--leading-prose-heading);
866
+ }
867
+
868
+ .prose h2 {
869
+ font-size: var(--text-prose-h2);
870
+ }
871
+
872
+ .prose h3 {
873
+ font-size: var(--text-prose-h3);
874
+ }
875
+
876
+ .prose :is(h4, h5, h6) {
877
+ font-size: var(--text-prose-h4);
878
+ }
879
+
880
+ /* A plain-text description keeps the merchant's line breaks. */
881
+ .prose--plain p {
882
+ white-space: pre-line;
883
+ }
884
+
885
+ .prose > :first-child {
886
+ margin-block-start: 0;
887
+ }
888
+
889
+ .prose :is(ul, ol) {
890
+ padding-inline-start: 1.3em;
891
+ }
892
+
893
+ .prose li + li {
894
+ margin-block-start: 0.35em;
895
+ }
896
+
897
+ .prose li::marker {
898
+ color: var(--accent);
899
+ }
900
+
901
+ .prose ul[data-type="taskList"] {
902
+ padding-inline-start: 0;
903
+ list-style: none;
904
+ }
905
+
906
+ .prose ul[data-type="taskList"] li {
907
+ position: relative;
908
+ padding-inline-start: 1.7em;
909
+ }
910
+
911
+ .prose ul[data-type="taskList"] li::before {
912
+ content: "";
913
+ position: absolute;
914
+ inset-inline-start: 0;
915
+ inset-block-start: 0.35em;
916
+ width: 1.05em;
917
+ height: 1.05em;
918
+ border: var(--border-prose-before);
919
+ border-radius: var(--r-xs);
920
+ }
921
+
922
+ .prose ul[data-type="taskList"] li[data-checked="true"]::before {
923
+ border-color: var(--success);
924
+ background: var(--success);
925
+ }
926
+
927
+ .prose ul[data-type="taskList"] li[data-checked="true"]::after {
928
+ content: "";
929
+ position: absolute;
930
+ inset-inline-start: 0;
931
+ inset-block-start: 0.35em;
932
+ width: 1.05em;
933
+ height: 1.05em;
934
+ background: var(--on-photo);
935
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat;
936
+ }
937
+
938
+ .prose a {
939
+ color: var(--accent);
940
+ text-decoration: underline;
941
+ text-underline-offset: 3px;
942
+ }
943
+
944
+ .prose strong,
945
+ .prose b {
946
+ color: var(--heading);
947
+ font-weight: var(--weight-bold);
948
+ }
949
+
950
+ .prose mark {
951
+ padding: 0 0.15em;
952
+ border-radius: var(--r-xs);
953
+ background: var(--surface-prose);
954
+ color: inherit;
955
+ }
956
+
957
+ .prose blockquote {
958
+ padding: 12px 18px;
959
+ border-inline-start: var(--border-prose);
960
+ border-radius: var(--r-sm);
961
+ background: var(--softer);
962
+ font-style: italic;
963
+ }
964
+
965
+ .prose hr {
966
+ border: 0;
967
+ border-block-start: var(--border-prose-line);
968
+ }
969
+
970
+ .prose :is(img, figure) {
971
+ border-radius: var(--r);
972
+ }
973
+
974
+ .prose figcaption {
975
+ margin-block-start: 6px;
976
+ color: var(--muted);
977
+ font-size: var(--text-prose-caption);
978
+ text-align: center;
979
+ }
980
+
981
+ .prose code {
982
+ padding: 0.1em 0.35em;
983
+ border-radius: var(--r-xs);
984
+ background: var(--soft);
985
+ font-size: var(--text-prose-code);
986
+ }
987
+
988
+ .prose pre {
989
+ padding: 14px;
990
+ border-radius: var(--r-sm);
991
+ background: var(--soft);
992
+ overflow-x: auto;
993
+ }
994
+
995
+ .prose table {
996
+ width: 100%;
997
+ border-collapse: collapse;
998
+ font-size: var(--text-prose-table);
999
+ display: block;
1000
+ overflow-x: auto;
1001
+ }
1002
+
1003
+ .prose :is(td, th) {
1004
+ padding: 9px 12px;
1005
+ border: var(--border-prose-line);
1006
+ text-align: start;
1007
+ }
1008
+
1009
+ .prose th {
1010
+ background: var(--softer);
1011
+ color: var(--heading);
1012
+ }
1013
+
1014
+ /* ---------- the editor's placeholder ---------- */
1015
+
1016
+ .editor-placeholder {
1017
+ display: grid;
1018
+ justify-items: center;
1019
+ gap: 8px;
1020
+ max-width: 1320px;
1021
+ margin: 16px auto;
1022
+ padding: 36px 20px;
1023
+ border: var(--border-editor-placeholder);
1024
+ border-radius: var(--r-lg);
1025
+ background: var(--softer);
1026
+ color: var(--accent);
1027
+ font-size: var(--text-editor-placeholder);
1028
+ font-weight: var(--weight-semibold);
1029
+ text-align: center;
1030
+ }