create-abcart-theme 0.0.0-stage → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +127 -0
- package/LICENSE +202 -0
- package/NOTICE +2 -0
- package/README.md +64 -2
- package/bin/create-abcart-theme.mjs +4 -0
- package/package.json +47 -4
- package/src/args.mjs +113 -0
- package/src/banner.mjs +21 -0
- package/src/cli.mjs +119 -0
- package/src/create.mjs +82 -0
- package/src/package-manager.mjs +32 -0
- package/src/style.mjs +17 -0
- package/templates/default/.agents/skills/shopify-theme-asset-collector/SKILL.md +125 -0
- package/templates/default/.agents/skills/shopify-theme-asset-collector/scripts/collect_public_assets.py +370 -0
- package/templates/default/.agents/skills/wocart-docs/SKILL.md +146 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/SKILL.md +58 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/inputs-and-rights.md +47 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/layout-rtl-and-phone.md +36 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/measure-the-design.md +60 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/tokens-sections-content.md +103 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/references/verify-and-report.md +102 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/scripts/compare-design.cjs +230 -0
- package/templates/default/.agents/skills/wocart-theme-from-design/scripts/qa-pages.cjs +219 -0
- package/templates/default/.dev.vars.example +12 -0
- package/templates/default/AGENTS.md +240 -0
- package/templates/default/README.md +184 -0
- package/templates/default/_gitignore +11 -0
- package/templates/default/astro.config.mjs +85 -0
- package/templates/default/package.json +36 -0
- package/templates/default/public/fonts/OFL.txt +96 -0
- package/templates/default/public/fonts/alexandria-arabic.woff2 +0 -0
- package/templates/default/public/fonts/fraunces-latin.woff2 +0 -0
- package/templates/default/src/actions/index.ts +22 -0
- package/templates/default/src/components/cart/AddToCartButton.astro +45 -0
- package/templates/default/src/components/cart/CartDrawer.astro +47 -0
- package/templates/default/src/components/cart/CartSummary.astro +11 -0
- package/templates/default/src/components/cart/FreeShipping.astro +7 -0
- package/templates/default/src/components/checkout/CheckoutMain.astro +29 -0
- package/templates/default/src/components/checkout/OrderForm.astro +280 -0
- package/templates/default/src/components/checkout/ThankYouMain.astro +68 -0
- package/templates/default/src/components/landing/LandingImages.astro +51 -0
- package/templates/default/src/components/landing/LandingOrder.astro +46 -0
- package/templates/default/src/components/landing/LandingProduct.astro +41 -0
- package/templates/default/src/components/listing/ListingMain.astro +93 -0
- package/templates/default/src/components/listing/PageMain.astro +52 -0
- package/templates/default/src/components/listing/Pagination.astro +31 -0
- package/templates/default/src/components/listing/SortControl.astro +35 -0
- package/templates/default/src/components/product/BuyBox.astro +96 -0
- package/templates/default/src/components/product/Description.astro +24 -0
- package/templates/default/src/components/product/Gallery.astro +66 -0
- package/templates/default/src/components/product/MobileBuyBar.astro +29 -0
- package/templates/default/src/components/product/OfferChoice.astro +66 -0
- package/templates/default/src/components/product/ProductMain.astro +40 -0
- package/templates/default/src/components/product/ProductReviews.astro +72 -0
- package/templates/default/src/components/product/RelatedProducts.astro +30 -0
- package/templates/default/src/components/product/blocks/BenefitsBlock.astro +13 -0
- package/templates/default/src/components/product/blocks/CollapsibleBlock.astro +20 -0
- package/templates/default/src/components/product/blocks/DescriptionBlock.astro +19 -0
- package/templates/default/src/components/product/blocks/DetailsBlock.astro +33 -0
- package/templates/default/src/components/product/blocks/GalleryBlock.astro +12 -0
- package/templates/default/src/components/product/blocks/OrderBlock.astro +30 -0
- package/templates/default/src/components/product/blocks/PriceBlock.astro +23 -0
- package/templates/default/src/components/product/blocks/RatingBlock.astro +16 -0
- package/templates/default/src/components/product/blocks/StockBlock.astro +22 -0
- package/templates/default/src/components/product/blocks/TextBlock.astro +11 -0
- package/templates/default/src/components/product/blocks/TitleBlock.astro +20 -0
- package/templates/default/src/components/reviews/ReviewCard.astro +46 -0
- package/templates/default/src/components/reviews/ReviewForm.astro +113 -0
- package/templates/default/src/components/reviews/VoiceNote.astro +60 -0
- package/templates/default/src/components/sections/CollectionCards.astro +65 -0
- package/templates/default/src/components/sections/Countdown.astro +57 -0
- package/templates/default/src/components/sections/Faq.astro +44 -0
- package/templates/default/src/components/sections/FeaturedProduct.astro +71 -0
- package/templates/default/src/components/sections/Hero.astro +99 -0
- package/templates/default/src/components/sections/ImageBanner.astro +46 -0
- package/templates/default/src/components/sections/ProductGrid.astro +47 -0
- package/templates/default/src/components/sections/RichText.astro +35 -0
- package/templates/default/src/components/sections/Steps.astro +46 -0
- package/templates/default/src/components/sections/Testimonials.astro +57 -0
- package/templates/default/src/components/shell/Footer.astro +80 -0
- package/templates/default/src/components/shell/Header.astro +89 -0
- package/templates/default/src/components/shell/LanguageMenu.astro +33 -0
- package/templates/default/src/components/shell/MobileMenu.astro +65 -0
- package/templates/default/src/components/shell/SearchDialog.astro +19 -0
- package/templates/default/src/components/shell/TopBar.astro +54 -0
- package/templates/default/src/components/shell/WhatsAppWidget.astro +111 -0
- package/templates/default/src/components/store/ContactMain.astro +79 -0
- package/templates/default/src/components/store/SearchMain.astro +56 -0
- package/templates/default/src/components/store/TrackOrderMain.astro +161 -0
- package/templates/default/src/components/surface/Area.astro +20 -0
- package/templates/default/src/components/surface/PreviewBridge.astro +24 -0
- package/templates/default/src/components/surface/Sections.astro +35 -0
- package/templates/default/src/components/ui/Breadcrumbs.astro +36 -0
- package/templates/default/src/components/ui/Button.astro +45 -0
- package/templates/default/src/components/ui/EditorPlaceholder.astro +24 -0
- package/templates/default/src/components/ui/Icon.astro +93 -0
- package/templates/default/src/components/ui/Logo.astro +36 -0
- package/templates/default/src/components/ui/Photo.astro +46 -0
- package/templates/default/src/components/ui/Price.astro +24 -0
- package/templates/default/src/components/ui/ProductCard.astro +41 -0
- package/templates/default/src/components/ui/Rating.astro +22 -0
- package/templates/default/src/components/ui/Section.astro +34 -0
- package/templates/default/src/components/ui/SectionHeading.astro +19 -0
- package/templates/default/src/env.d.ts +23 -0
- package/templates/default/src/layouts/StoreLayout.astro +145 -0
- package/templates/default/src/lib/browser-copy.ts +37 -0
- package/templates/default/src/lib/context.ts +89 -0
- package/templates/default/src/lib/coupon-notice.ts +47 -0
- package/templates/default/src/lib/i18n.ts +32 -0
- package/templates/default/src/lib/images.ts +38 -0
- package/templates/default/src/lib/listing-query.ts +41 -0
- package/templates/default/src/lib/money.ts +16 -0
- package/templates/default/src/lib/motion.ts +16 -0
- package/templates/default/src/lib/nav.ts +26 -0
- package/templates/default/src/lib/offer-tiles.ts +105 -0
- package/templates/default/src/lib/order-outcome.ts +66 -0
- package/templates/default/src/lib/otp-message.ts +21 -0
- package/templates/default/src/lib/products.ts +38 -0
- package/templates/default/src/lib/review-refusals.ts +31 -0
- package/templates/default/src/lib/store.ts +31 -0
- package/templates/default/src/lib/whatsapp.ts +29 -0
- package/templates/default/src/middleware.ts +23 -0
- package/templates/default/src/pages/404.astro +22 -0
- package/templates/default/src/pages/api/abandoned/convert.ts +4 -0
- package/templates/default/src/pages/api/abandoned/upsert.ts +4 -0
- package/templates/default/src/pages/api/cart/validate.ts +4 -0
- package/templates/default/src/pages/api/communes/[wilayaId].ts +4 -0
- package/templates/default/src/pages/api/otp/send.ts +4 -0
- package/templates/default/src/pages/api/otp/verify.ts +4 -0
- package/templates/default/src/pages/api/reviews/[productId].ts +3 -0
- package/templates/default/src/pages/api/reviews/eligibility.ts +3 -0
- package/templates/default/src/pages/api/reviews/submit.ts +3 -0
- package/templates/default/src/pages/api/reviews/upload.ts +3 -0
- package/templates/default/src/pages/category/[slug].astro +20 -0
- package/templates/default/src/pages/checkout.astro +25 -0
- package/templates/default/src/pages/collections/[handle].astro +20 -0
- package/templates/default/src/pages/contact.astro +17 -0
- package/templates/default/src/pages/index.astro +9 -0
- package/templates/default/src/pages/lp/[slug].astro +47 -0
- package/templates/default/src/pages/pages/[slug].astro +16 -0
- package/templates/default/src/pages/products/[handle].astro +37 -0
- package/templates/default/src/pages/products/index.astro +15 -0
- package/templates/default/src/pages/robots.txt.ts +9 -0
- package/templates/default/src/pages/search.astro +19 -0
- package/templates/default/src/pages/sitemap.xml.ts +12 -0
- package/templates/default/src/pages/thank-you.astro +33 -0
- package/templates/default/src/pages/track-order.astro +17 -0
- package/templates/default/src/pages/wocart-preview.astro +43 -0
- package/templates/default/src/pages/wocart-revalidate.ts +10 -0
- package/templates/default/src/pages/wocart-styles.css.ts +5 -0
- package/templates/default/src/pages/wocart-theme.json.ts +5 -0
- package/templates/default/src/scripts/cart.ts +371 -0
- package/templates/default/src/scripts/checkout/coupon.ts +96 -0
- package/templates/default/src/scripts/checkout/delivery.ts +86 -0
- package/templates/default/src/scripts/checkout/form.ts +54 -0
- package/templates/default/src/scripts/checkout/otp.ts +106 -0
- package/templates/default/src/scripts/checkout/picker.ts +169 -0
- package/templates/default/src/scripts/checkout/quote.ts +169 -0
- package/templates/default/src/scripts/checkout/submit.ts +113 -0
- package/templates/default/src/scripts/checkout/tracking.ts +74 -0
- package/templates/default/src/scripts/countdown.ts +29 -0
- package/templates/default/src/scripts/events.ts +4 -0
- package/templates/default/src/scripts/hero.ts +49 -0
- package/templates/default/src/scripts/listing.ts +13 -0
- package/templates/default/src/scripts/order-form.ts +100 -0
- package/templates/default/src/scripts/product.ts +306 -0
- package/templates/default/src/scripts/public-config.ts +79 -0
- package/templates/default/src/scripts/reviews.ts +358 -0
- package/templates/default/src/scripts/site.ts +131 -0
- package/templates/default/src/scripts/thank-you.ts +11 -0
- package/templates/default/src/scripts/voice-note.ts +94 -0
- package/templates/default/src/styles/base.css +1030 -0
- package/templates/default/src/styles/checkout.css +1111 -0
- package/templates/default/src/styles/global.css +12 -0
- package/templates/default/src/styles/product.css +871 -0
- package/templates/default/src/styles/reviews.css +533 -0
- package/templates/default/src/styles/sections.css +931 -0
- package/templates/default/src/styles/shell.css +970 -0
- package/templates/default/src/styles/tokens.css +583 -0
- package/templates/default/src/theme/api-routes.ts +10 -0
- package/templates/default/src/theme/content/catalog.ts +117 -0
- package/templates/default/src/theme/content/checkout.ts +168 -0
- package/templates/default/src/theme/content/editor.ts +21 -0
- package/templates/default/src/theme/content/index.ts +45 -0
- package/templates/default/src/theme/content/reviews.ts +76 -0
- package/templates/default/src/theme/content/shell.ts +59 -0
- package/templates/default/src/theme/content/types.ts +12 -0
- package/templates/default/src/theme/documents/catalog.json +11 -0
- package/templates/default/src/theme/documents/category.json +11 -0
- package/templates/default/src/theme/documents/checkout.json +11 -0
- package/templates/default/src/theme/documents/collection.json +11 -0
- package/templates/default/src/theme/documents/contact.json +11 -0
- package/templates/default/src/theme/documents/footer.area.json +11 -0
- package/templates/default/src/theme/documents/header.area.json +16 -0
- package/templates/default/src/theme/documents/home.json +313 -0
- package/templates/default/src/theme/documents/landing.json +8 -0
- package/templates/default/src/theme/documents/page.json +11 -0
- package/templates/default/src/theme/documents/product.json +125 -0
- package/templates/default/src/theme/documents/search.json +11 -0
- package/templates/default/src/theme/documents/thank-you.json +11 -0
- package/templates/default/src/theme/documents/track-order.json +11 -0
- package/templates/default/src/theme/fields.ts +61 -0
- package/templates/default/src/theme/key.ts +11 -0
- package/templates/default/src/theme/labels.ts +231 -0
- package/templates/default/src/theme/locales.ts +11 -0
- package/templates/default/src/theme/palette.ts +14 -0
- package/templates/default/src/theme/sections/collection-cards.ts +65 -0
- package/templates/default/src/theme/sections/faq.ts +74 -0
- package/templates/default/src/theme/sections/featured-product.ts +42 -0
- package/templates/default/src/theme/sections/hero.ts +47 -0
- package/templates/default/src/theme/sections/image-banner.ts +25 -0
- package/templates/default/src/theme/sections/index.ts +40 -0
- package/templates/default/src/theme/sections/landing.ts +150 -0
- package/templates/default/src/theme/sections/listing.ts +84 -0
- package/templates/default/src/theme/sections/product-grid.ts +42 -0
- package/templates/default/src/theme/sections/product.ts +297 -0
- package/templates/default/src/theme/sections/rich-text.ts +39 -0
- package/templates/default/src/theme/sections/shared.ts +54 -0
- package/templates/default/src/theme/sections/shell.ts +85 -0
- package/templates/default/src/theme/sections/store-pages.ts +101 -0
- package/templates/default/src/theme/sections/testimonials.ts +61 -0
- package/templates/default/src/theme/sections/thank-you.ts +35 -0
- package/templates/default/src/theme/settings.ts +124 -0
- package/templates/default/src/theme/theme.ts +65 -0
- package/templates/default/tests/fixtures/canvas-tote.json +62 -0
- package/templates/default/tests/fixtures/linen-shirt.json +128 -0
- package/templates/default/tests/unit/checkout.test.ts +241 -0
- package/templates/default/tests/unit/contract.test.ts +169 -0
- package/templates/default/tests/unit/contrast.test.ts +68 -0
- package/templates/default/tests/unit/copy.test.ts +101 -0
- package/templates/default/tests/unit/design-values.test.ts +95 -0
- package/templates/default/tests/unit/editability.test.ts +180 -0
- package/templates/default/tests/unit/fixtures.ts +91 -0
- package/templates/default/tests/unit/footer.test.ts +54 -0
- package/templates/default/tests/unit/guards.test.ts +340 -0
- package/templates/default/tests/unit/images.test.ts +26 -0
- package/templates/default/tests/unit/landing.test.ts +151 -0
- package/templates/default/tests/unit/languages.test.ts +42 -0
- package/templates/default/tests/unit/middleware.test.ts +53 -0
- package/templates/default/tests/unit/offer-tiles.test.ts +75 -0
- package/templates/default/tests/unit/render.ts +38 -0
- package/templates/default/tests/unit/reviews.test.ts +25 -0
- package/templates/default/tests/unit/rules.test.ts +59 -0
- package/templates/default/tests/unit/source.ts +75 -0
- package/templates/default/tests/unit/store-pages.test.ts +147 -0
- package/templates/default/tests/unit/studio.test.ts +202 -0
- package/templates/default/tests/unit/testimonials.test.ts +52 -0
- package/templates/default/tests/unit/thank-you.test.ts +52 -0
- package/templates/default/tests/unit/tracking.test.ts +29 -0
- package/templates/default/tests/unit/voice-note.test.ts +42 -0
- package/templates/default/tsconfig.json +13 -0
- package/templates/default/vitest.config.ts +15 -0
- package/templates/default/wrangler.jsonc +17 -0
|
@@ -0,0 +1,871 @@
|
|
|
1
|
+
/* ---------- the product ---------- */
|
|
2
|
+
|
|
3
|
+
.product-detail {
|
|
4
|
+
display: grid;
|
|
5
|
+
gap: 22px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@media (min-width: 900px) {
|
|
9
|
+
.product-detail {
|
|
10
|
+
grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
|
|
11
|
+
gap: clamp(32px, 4vw, 64px);
|
|
12
|
+
align-items: start;
|
|
13
|
+
}
|
|
14
|
+
.product-detail__media {
|
|
15
|
+
position: sticky;
|
|
16
|
+
inset-block-start: calc(var(--header-h) + 20px);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.product-info {
|
|
21
|
+
display: grid;
|
|
22
|
+
grid-template-columns: minmax(0, 1fr);
|
|
23
|
+
align-content: start;
|
|
24
|
+
gap: 16px;
|
|
25
|
+
min-width: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.product-title {
|
|
29
|
+
display: grid;
|
|
30
|
+
gap: 6px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.product-title h1 {
|
|
34
|
+
font-size: var(--text-product-title);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.product-title .eyebrow:hover {
|
|
38
|
+
text-decoration: underline;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.product-rating {
|
|
42
|
+
justify-self: start;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.product-rating:hover .rating-line span {
|
|
46
|
+
color: var(--accent);
|
|
47
|
+
text-decoration: underline;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.price-row {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-wrap: wrap;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: 10px 14px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.save-badge {
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
min-height: 30px;
|
|
61
|
+
padding: 0 12px;
|
|
62
|
+
border-radius: var(--r-pill);
|
|
63
|
+
background: var(--surface-save-badge);
|
|
64
|
+
color: var(--danger-text);
|
|
65
|
+
font-size: var(--text-save-badge);
|
|
66
|
+
font-weight: var(--weight-heavy);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.stock-line {
|
|
70
|
+
display: inline-flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
gap: 8px;
|
|
73
|
+
justify-self: start;
|
|
74
|
+
padding: 7px 14px;
|
|
75
|
+
border-radius: var(--r-pill);
|
|
76
|
+
background: var(--surface-stock-line);
|
|
77
|
+
color: var(--success-text);
|
|
78
|
+
font-size: var(--text-stock-line);
|
|
79
|
+
font-weight: var(--weight-bold);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.stock-line[data-low="true"] {
|
|
83
|
+
background: var(--surface-stock-line-low);
|
|
84
|
+
color: var(--warm-text);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.stock-line[data-out="true"] {
|
|
88
|
+
background: var(--surface-stock-line-out);
|
|
89
|
+
color: var(--danger-text);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
.product-text {
|
|
94
|
+
color: var(--muted);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.product-text a {
|
|
98
|
+
color: var(--accent);
|
|
99
|
+
text-decoration: underline;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.trust-row {
|
|
103
|
+
display: grid;
|
|
104
|
+
grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
|
|
105
|
+
gap: 8px;
|
|
106
|
+
padding: 0;
|
|
107
|
+
list-style: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.trust-row__item {
|
|
111
|
+
display: grid;
|
|
112
|
+
justify-items: center;
|
|
113
|
+
gap: 6px;
|
|
114
|
+
padding: 14px 8px;
|
|
115
|
+
border-radius: var(--r);
|
|
116
|
+
background: var(--softer);
|
|
117
|
+
color: var(--heading);
|
|
118
|
+
font-size: var(--text-trust-row-item);
|
|
119
|
+
font-weight: var(--weight-semibold);
|
|
120
|
+
line-height: var(--leading-trust-row-item);
|
|
121
|
+
text-align: center;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.trust-row__item svg {
|
|
125
|
+
color: var(--accent);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.product-facts {
|
|
129
|
+
display: grid;
|
|
130
|
+
gap: 8px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.product-facts div {
|
|
134
|
+
display: flex;
|
|
135
|
+
justify-content: space-between;
|
|
136
|
+
gap: 16px;
|
|
137
|
+
padding-block-end: 8px;
|
|
138
|
+
border-block-end: var(--border-product-facts);
|
|
139
|
+
font-size: var(--text-product-facts);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.product-facts dt {
|
|
143
|
+
color: var(--muted);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.product-facts dd {
|
|
147
|
+
min-width: 0;
|
|
148
|
+
margin: 0;
|
|
149
|
+
overflow-wrap: anywhere;
|
|
150
|
+
color: var(--heading);
|
|
151
|
+
font-weight: var(--weight-semibold);
|
|
152
|
+
text-align: end;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* ---------- gallery ---------- */
|
|
156
|
+
|
|
157
|
+
.gallery {
|
|
158
|
+
display: grid;
|
|
159
|
+
gap: 12px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.gallery__stage {
|
|
163
|
+
position: relative;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.gallery__track {
|
|
167
|
+
display: flex;
|
|
168
|
+
gap: 10px;
|
|
169
|
+
overflow-x: auto;
|
|
170
|
+
scroll-snap-type: x mandatory;
|
|
171
|
+
scrollbar-width: none;
|
|
172
|
+
overscroll-behavior-x: contain;
|
|
173
|
+
border-radius: var(--r-lg);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.gallery__track::-webkit-scrollbar {
|
|
177
|
+
display: none;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.gallery__slide {
|
|
181
|
+
position: relative;
|
|
182
|
+
flex: 0 0 100%;
|
|
183
|
+
overflow: hidden;
|
|
184
|
+
aspect-ratio: 1;
|
|
185
|
+
border-radius: var(--r-lg);
|
|
186
|
+
background: var(--soft);
|
|
187
|
+
scroll-snap-align: center;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.gallery__slide img {
|
|
191
|
+
width: 100%;
|
|
192
|
+
height: 100%;
|
|
193
|
+
object-fit: cover;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.gallery__slide--empty {
|
|
197
|
+
display: grid;
|
|
198
|
+
place-items: center;
|
|
199
|
+
color: color-mix(in oklab, var(--accent) 50%, var(--bg));
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* On a phone the photos run edge to edge, the next one peeking in. */
|
|
203
|
+
@media (max-width: 899px) {
|
|
204
|
+
.product-section .gallery {
|
|
205
|
+
margin-inline: calc(var(--gutter) * -1);
|
|
206
|
+
}
|
|
207
|
+
.product-section .gallery__track {
|
|
208
|
+
padding-inline: var(--gutter);
|
|
209
|
+
scroll-padding-inline: var(--gutter);
|
|
210
|
+
border-radius: 0;
|
|
211
|
+
}
|
|
212
|
+
.gallery:not(.gallery--single) .gallery__slide {
|
|
213
|
+
flex-basis: 86%;
|
|
214
|
+
}
|
|
215
|
+
.gallery__arrow {
|
|
216
|
+
display: none !important;
|
|
217
|
+
}
|
|
218
|
+
.gallery--below .gallery__thumbs {
|
|
219
|
+
padding-inline: var(--gutter);
|
|
220
|
+
}
|
|
221
|
+
.gallery--below .gallery__thumb {
|
|
222
|
+
width: 64px;
|
|
223
|
+
}
|
|
224
|
+
.product-section .gallery--side {
|
|
225
|
+
margin-inline: 0;
|
|
226
|
+
grid-template-columns: 56px minmax(0, 1fr);
|
|
227
|
+
align-items: start;
|
|
228
|
+
}
|
|
229
|
+
.product-section .gallery--side .gallery__track {
|
|
230
|
+
padding-inline: 0;
|
|
231
|
+
scroll-padding-inline: 0;
|
|
232
|
+
border-radius: var(--r-lg);
|
|
233
|
+
}
|
|
234
|
+
.product-section .gallery--side .gallery__slide {
|
|
235
|
+
flex-basis: 100%;
|
|
236
|
+
}
|
|
237
|
+
.gallery--side .gallery__stage {
|
|
238
|
+
order: 2;
|
|
239
|
+
}
|
|
240
|
+
.gallery--side .gallery__thumbs {
|
|
241
|
+
flex-direction: column;
|
|
242
|
+
max-height: 360px;
|
|
243
|
+
padding: 0;
|
|
244
|
+
overflow-x: hidden;
|
|
245
|
+
overflow-y: auto;
|
|
246
|
+
}
|
|
247
|
+
.gallery--side .gallery__thumb {
|
|
248
|
+
width: 56px;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.gallery__sticker {
|
|
253
|
+
position: absolute;
|
|
254
|
+
inset-block-start: 14px;
|
|
255
|
+
inset-inline-start: 14px;
|
|
256
|
+
z-index: 2;
|
|
257
|
+
display: grid;
|
|
258
|
+
place-items: center;
|
|
259
|
+
width: 62px;
|
|
260
|
+
height: 62px;
|
|
261
|
+
border-radius: var(--sticker-radius);
|
|
262
|
+
background: var(--sale);
|
|
263
|
+
color: var(--sale-ink);
|
|
264
|
+
font-family: var(--font-display);
|
|
265
|
+
font-size: var(--text-gallery-sticker);
|
|
266
|
+
font-weight: var(--weight-heavy);
|
|
267
|
+
box-shadow: var(--sticker-shadow);
|
|
268
|
+
rotate: var(--sticker-rotate);
|
|
269
|
+
direction: ltr;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
@media (max-width: 899px) {
|
|
273
|
+
.product-section .gallery__sticker {
|
|
274
|
+
inset-inline-start: calc(var(--gutter) + 12px);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.gallery__count {
|
|
279
|
+
position: absolute;
|
|
280
|
+
inset-block-end: 14px;
|
|
281
|
+
inset-inline-end: 14px;
|
|
282
|
+
z-index: 2;
|
|
283
|
+
padding: 5px 12px;
|
|
284
|
+
border-radius: var(--r-pill);
|
|
285
|
+
background: var(--overlay);
|
|
286
|
+
color: var(--on-photo);
|
|
287
|
+
font-size: var(--text-gallery-count);
|
|
288
|
+
-webkit-backdrop-filter: blur(6px);
|
|
289
|
+
backdrop-filter: var(--filter-gallery-count);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
@media (max-width: 899px) {
|
|
293
|
+
.product-section .gallery__count {
|
|
294
|
+
inset-inline-end: calc(var(--gutter) + 12px);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.gallery__arrow {
|
|
299
|
+
position: absolute;
|
|
300
|
+
inset-block-start: 50%;
|
|
301
|
+
z-index: 2;
|
|
302
|
+
display: grid;
|
|
303
|
+
place-items: center;
|
|
304
|
+
width: 44px;
|
|
305
|
+
height: 44px;
|
|
306
|
+
border-radius: var(--r-round);
|
|
307
|
+
background: var(--surface-gallery-arrow);
|
|
308
|
+
color: var(--heading);
|
|
309
|
+
box-shadow: var(--shadow);
|
|
310
|
+
translate: 0 -50%;
|
|
311
|
+
opacity: 0;
|
|
312
|
+
transition: opacity var(--duration) var(--ease);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.gallery__stage:hover .gallery__arrow,
|
|
316
|
+
.gallery__arrow:focus-visible {
|
|
317
|
+
opacity: 1;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.gallery__arrow--prev {
|
|
321
|
+
inset-inline-start: 14px;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.gallery__arrow--next {
|
|
325
|
+
inset-inline-end: 14px;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.gallery__thumbs {
|
|
329
|
+
display: flex;
|
|
330
|
+
gap: 10px;
|
|
331
|
+
overflow-x: auto;
|
|
332
|
+
scrollbar-width: none;
|
|
333
|
+
padding: 2px;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.gallery__thumb {
|
|
337
|
+
flex: none;
|
|
338
|
+
width: 76px;
|
|
339
|
+
overflow: hidden;
|
|
340
|
+
aspect-ratio: 1;
|
|
341
|
+
border: var(--border-gallery-thumb);
|
|
342
|
+
border-radius: var(--r);
|
|
343
|
+
background: var(--soft);
|
|
344
|
+
opacity: var(--opacity-gallery-thumb);
|
|
345
|
+
transition: opacity var(--duration) var(--ease), border-color var(--duration) var(--ease);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.gallery__thumb img {
|
|
349
|
+
width: 100%;
|
|
350
|
+
height: 100%;
|
|
351
|
+
object-fit: cover;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.gallery__thumb:hover,
|
|
355
|
+
.gallery__thumb[aria-current="true"] {
|
|
356
|
+
opacity: 1;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.gallery__thumb[aria-current="true"] {
|
|
360
|
+
border-color: var(--accent);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
@media (min-width: 900px) {
|
|
364
|
+
.gallery--side {
|
|
365
|
+
grid-template-columns: 84px minmax(0, 1fr);
|
|
366
|
+
align-items: start;
|
|
367
|
+
}
|
|
368
|
+
.gallery--side .gallery__stage {
|
|
369
|
+
order: 2;
|
|
370
|
+
}
|
|
371
|
+
.gallery--side .gallery__thumbs {
|
|
372
|
+
flex-direction: column;
|
|
373
|
+
max-height: 560px;
|
|
374
|
+
overflow-y: auto;
|
|
375
|
+
}
|
|
376
|
+
.gallery--side .gallery__thumb {
|
|
377
|
+
width: 80px;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/* ---------- options and offers ---------- */
|
|
382
|
+
|
|
383
|
+
.buy-box {
|
|
384
|
+
display: grid;
|
|
385
|
+
gap: 18px;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.variant-group {
|
|
389
|
+
display: grid;
|
|
390
|
+
gap: 10px;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.variant-label {
|
|
394
|
+
color: var(--heading);
|
|
395
|
+
font-size: var(--text-variant-label);
|
|
396
|
+
font-weight: var(--weight-bold);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.variant-label span {
|
|
400
|
+
color: var(--muted);
|
|
401
|
+
font-weight: var(--weight-medium);
|
|
402
|
+
unicode-bidi: isolate;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.option-values {
|
|
406
|
+
display: flex;
|
|
407
|
+
flex-wrap: wrap;
|
|
408
|
+
gap: 8px;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.option-value {
|
|
412
|
+
display: inline-flex;
|
|
413
|
+
align-items: center;
|
|
414
|
+
gap: 8px;
|
|
415
|
+
min-height: 46px;
|
|
416
|
+
padding: 0 18px;
|
|
417
|
+
border: var(--border-option-value);
|
|
418
|
+
border-radius: var(--r-pill);
|
|
419
|
+
background: var(--card);
|
|
420
|
+
color: var(--heading);
|
|
421
|
+
font-size: var(--text-option-value);
|
|
422
|
+
font-weight: var(--weight-semibold);
|
|
423
|
+
transition: border-color var(--duration) var(--ease), background-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.option-value:has(.option-value__swatch) {
|
|
427
|
+
padding-inline-start: 6px;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.option-value:hover {
|
|
431
|
+
border-color: var(--line-strong);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.option-value[aria-pressed="true"] {
|
|
435
|
+
border-color: var(--accent);
|
|
436
|
+
background: var(--soft);
|
|
437
|
+
box-shadow: var(--shadow-option-value);
|
|
438
|
+
color: var(--accent);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.option-value[data-state="sold_out"] {
|
|
442
|
+
color: var(--muted);
|
|
443
|
+
text-decoration: line-through;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.option-value:disabled {
|
|
447
|
+
opacity: var(--opacity-option-value-disabled);
|
|
448
|
+
border-style: dashed;
|
|
449
|
+
cursor: not-allowed;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.option-value__swatch {
|
|
453
|
+
width: 32px;
|
|
454
|
+
height: 32px;
|
|
455
|
+
border-radius: var(--r-round);
|
|
456
|
+
background: var(--swatch);
|
|
457
|
+
box-shadow: var(--shadow-option-value-swatch);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.option-value--sm {
|
|
461
|
+
min-height: 38px;
|
|
462
|
+
padding-inline: 13px;
|
|
463
|
+
font-size: var(--text-option-value-sm);
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
.option-value--sm .option-value__swatch {
|
|
467
|
+
width: 24px;
|
|
468
|
+
height: 24px;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.option-values--compact {
|
|
472
|
+
gap: 6px;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.offer-choice {
|
|
476
|
+
display: grid;
|
|
477
|
+
gap: 10px;
|
|
478
|
+
padding: 0;
|
|
479
|
+
border: 0;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.offer-choice legend {
|
|
483
|
+
margin-block-end: 10px;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.offer-tile {
|
|
487
|
+
position: relative;
|
|
488
|
+
display: grid;
|
|
489
|
+
grid-template-columns: auto auto minmax(0, 1fr) auto;
|
|
490
|
+
align-items: center;
|
|
491
|
+
gap: 12px;
|
|
492
|
+
min-height: 72px;
|
|
493
|
+
padding: 14px 16px;
|
|
494
|
+
border: var(--border-offer-tile);
|
|
495
|
+
border-radius: var(--r);
|
|
496
|
+
background: var(--card);
|
|
497
|
+
cursor: pointer;
|
|
498
|
+
transition: border-color var(--duration) var(--ease), background-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.offer-tile:hover {
|
|
502
|
+
border-color: var(--line-strong);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.offer-tile:has(input:focus-visible) {
|
|
506
|
+
outline: var(--border-offer-tile-focus);
|
|
507
|
+
outline-offset: var(--border-offer-tile-focus-offset);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.offer-tile.is-chosen {
|
|
511
|
+
border-color: var(--accent);
|
|
512
|
+
background: var(--softer);
|
|
513
|
+
box-shadow: var(--shadow-is-chosen);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.offer-tile__radio {
|
|
517
|
+
width: 22px;
|
|
518
|
+
height: 22px;
|
|
519
|
+
border: var(--border-offer-tile-radio);
|
|
520
|
+
border-radius: var(--r-round);
|
|
521
|
+
transition: border var(--duration) var(--ease);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.offer-tile.is-chosen .offer-tile__radio {
|
|
525
|
+
border: var(--border-offer-tile-radio-chosen);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.offer-tile__qty {
|
|
529
|
+
display: grid;
|
|
530
|
+
place-items: center;
|
|
531
|
+
min-width: 46px;
|
|
532
|
+
height: 46px;
|
|
533
|
+
padding-inline: 6px;
|
|
534
|
+
border-radius: var(--r);
|
|
535
|
+
background: var(--soft);
|
|
536
|
+
color: var(--accent);
|
|
537
|
+
font-family: var(--font-display);
|
|
538
|
+
font-size: var(--text-offer-tile-qty);
|
|
539
|
+
font-weight: var(--weight-heavy);
|
|
540
|
+
direction: ltr;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.offer-tile.is-chosen .offer-tile__qty {
|
|
544
|
+
background: var(--accent);
|
|
545
|
+
color: var(--bg);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.offer-tile__text {
|
|
549
|
+
display: grid;
|
|
550
|
+
gap: 2px;
|
|
551
|
+
min-width: 0;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.offer-tile__name {
|
|
555
|
+
color: var(--heading);
|
|
556
|
+
font-weight: var(--weight-bold);
|
|
557
|
+
line-height: var(--leading-offer-tile-name);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.offer-tile__detail {
|
|
561
|
+
display: flex;
|
|
562
|
+
flex-wrap: wrap;
|
|
563
|
+
gap: 2px 10px;
|
|
564
|
+
color: var(--muted);
|
|
565
|
+
font-size: var(--text-offer-tile-detail);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
.offer-tile__gift {
|
|
569
|
+
display: inline-flex;
|
|
570
|
+
align-items: center;
|
|
571
|
+
gap: 4px;
|
|
572
|
+
color: var(--success-text);
|
|
573
|
+
font-weight: var(--weight-bold);
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.offer-tile__save {
|
|
577
|
+
justify-self: start;
|
|
578
|
+
margin-block-start: 3px;
|
|
579
|
+
padding: 2px 9px;
|
|
580
|
+
border-radius: var(--r-pill);
|
|
581
|
+
background: var(--surface-offer-tile-save);
|
|
582
|
+
color: var(--success-text);
|
|
583
|
+
font-size: var(--text-offer-tile-save);
|
|
584
|
+
font-weight: var(--weight-heavy);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.offer-tile__price {
|
|
588
|
+
display: grid;
|
|
589
|
+
justify-items: end;
|
|
590
|
+
font-variant-numeric: tabular-nums;
|
|
591
|
+
white-space: nowrap;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.offer-tile__price strong {
|
|
595
|
+
color: var(--heading);
|
|
596
|
+
font-size: var(--text-offer-tile-price);
|
|
597
|
+
font-weight: var(--weight-heavy);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.offer-tile__price s {
|
|
601
|
+
color: var(--muted);
|
|
602
|
+
font-size: var(--text-offer-tile-compare);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.offer-tile__ribbon {
|
|
606
|
+
position: absolute;
|
|
607
|
+
inset-block-start: -11px;
|
|
608
|
+
inset-inline-end: 14px;
|
|
609
|
+
padding: 3px 12px;
|
|
610
|
+
border-radius: var(--r-pill);
|
|
611
|
+
background: var(--warm);
|
|
612
|
+
color: var(--warm-ink);
|
|
613
|
+
font-size: var(--text-offer-tile-ribbon);
|
|
614
|
+
font-weight: var(--weight-heavy);
|
|
615
|
+
box-shadow: var(--shadow-offer-tile-ribbon);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.offer-tile--best {
|
|
619
|
+
margin-block-start: 6px;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
@media (max-width: 420px) {
|
|
623
|
+
.offer-tile {
|
|
624
|
+
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
625
|
+
gap: 10px;
|
|
626
|
+
padding-inline: 12px;
|
|
627
|
+
}
|
|
628
|
+
.offer-tile__qty {
|
|
629
|
+
display: none;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.offer-units {
|
|
634
|
+
display: grid;
|
|
635
|
+
gap: 10px;
|
|
636
|
+
padding: 14px;
|
|
637
|
+
border-radius: var(--r);
|
|
638
|
+
background: var(--softer);
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.offer-unit {
|
|
642
|
+
display: grid;
|
|
643
|
+
gap: 8px;
|
|
644
|
+
padding-block: 10px;
|
|
645
|
+
border-block-start: var(--border-offer-unit);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.offer-unit:first-child {
|
|
649
|
+
border: 0;
|
|
650
|
+
padding-block-start: 0;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.offer-unit__label {
|
|
654
|
+
color: var(--heading);
|
|
655
|
+
font-size: var(--text-offer-unit-label);
|
|
656
|
+
font-weight: var(--weight-bold);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.quantity-row {
|
|
660
|
+
display: flex;
|
|
661
|
+
align-items: center;
|
|
662
|
+
justify-content: space-between;
|
|
663
|
+
gap: 12px;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.stepper {
|
|
667
|
+
display: inline-flex;
|
|
668
|
+
align-items: center;
|
|
669
|
+
height: 48px;
|
|
670
|
+
border: var(--border-stepper);
|
|
671
|
+
border-radius: var(--r-pill);
|
|
672
|
+
background: var(--card);
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.stepper button {
|
|
676
|
+
display: grid;
|
|
677
|
+
place-items: center;
|
|
678
|
+
width: 46px;
|
|
679
|
+
height: 100%;
|
|
680
|
+
border-radius: var(--r-pill);
|
|
681
|
+
color: var(--heading);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.stepper button:hover {
|
|
685
|
+
color: var(--accent);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.stepper input {
|
|
689
|
+
width: 46px;
|
|
690
|
+
border: 0;
|
|
691
|
+
background: none;
|
|
692
|
+
color: var(--heading);
|
|
693
|
+
font-weight: var(--weight-heavy);
|
|
694
|
+
text-align: center;
|
|
695
|
+
appearance: textfield;
|
|
696
|
+
-moz-appearance: textfield;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
.stepper input::-webkit-inner-spin-button,
|
|
700
|
+
.stepper input::-webkit-outer-spin-button {
|
|
701
|
+
-webkit-appearance: none;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.stepper input:focus {
|
|
705
|
+
outline: none;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
.buy-actions {
|
|
709
|
+
display: flex;
|
|
710
|
+
flex-wrap: wrap;
|
|
711
|
+
gap: 10px;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.buy-actions > * {
|
|
715
|
+
flex: 1 1 140px;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/* ---------- a landing page ---------- */
|
|
719
|
+
|
|
720
|
+
/* The images' column: edge to edge on a phone, the style's width on a wide screen. Zero specificity, like .frame. */
|
|
721
|
+
:where(.landing__frame) {
|
|
722
|
+
width: 100%;
|
|
723
|
+
margin-inline: auto;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
.landing__stack {
|
|
727
|
+
display: grid;
|
|
728
|
+
gap: var(--landing-gap);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.landing__image {
|
|
732
|
+
display: block;
|
|
733
|
+
inline-size: 100%;
|
|
734
|
+
block-size: auto;
|
|
735
|
+
background: var(--soft);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
.landing-product__inner {
|
|
739
|
+
display: grid;
|
|
740
|
+
justify-items: center;
|
|
741
|
+
gap: 10px;
|
|
742
|
+
text-align: center;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.landing-product__name {
|
|
746
|
+
color: var(--heading);
|
|
747
|
+
font-size: var(--text-landing-product-name);
|
|
748
|
+
line-height: var(--leading-landing-product-name);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.landing-product__meta {
|
|
752
|
+
display: flex;
|
|
753
|
+
flex-wrap: wrap;
|
|
754
|
+
align-items: center;
|
|
755
|
+
justify-content: center;
|
|
756
|
+
gap: 10px 14px;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
/* ---------- an offer's countdown ---------- */
|
|
760
|
+
|
|
761
|
+
.countdown__inner {
|
|
762
|
+
display: grid;
|
|
763
|
+
justify-items: center;
|
|
764
|
+
gap: 12px;
|
|
765
|
+
text-align: center;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
.countdown__title {
|
|
769
|
+
color: var(--heading);
|
|
770
|
+
font-family: var(--font-display);
|
|
771
|
+
font-size: var(--text-countdown-title);
|
|
772
|
+
font-weight: var(--weight-heavy);
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.countdown__clock {
|
|
776
|
+
display: flex;
|
|
777
|
+
justify-content: center;
|
|
778
|
+
gap: 8px;
|
|
779
|
+
unicode-bidi: isolate;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.countdown__part {
|
|
783
|
+
display: grid;
|
|
784
|
+
justify-items: center;
|
|
785
|
+
min-inline-size: 64px;
|
|
786
|
+
padding: 10px 6px 8px;
|
|
787
|
+
border-radius: var(--r);
|
|
788
|
+
background: var(--card);
|
|
789
|
+
color: var(--heading);
|
|
790
|
+
box-shadow: var(--shadow);
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.countdown__part b {
|
|
794
|
+
font-family: var(--font-display);
|
|
795
|
+
font-size: var(--text-countdown-part);
|
|
796
|
+
font-weight: var(--weight-heavy);
|
|
797
|
+
line-height: var(--leading-countdown-part);
|
|
798
|
+
font-variant-numeric: tabular-nums;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.countdown__part small {
|
|
802
|
+
color: var(--muted);
|
|
803
|
+
font-size: var(--text-countdown-part-unit);
|
|
804
|
+
font-weight: var(--weight-semibold);
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
/* ---------- how ordering works ---------- */
|
|
808
|
+
|
|
809
|
+
.steps {
|
|
810
|
+
display: grid;
|
|
811
|
+
gap: 14px;
|
|
812
|
+
margin: 0;
|
|
813
|
+
padding: 0;
|
|
814
|
+
list-style: none;
|
|
815
|
+
counter-reset: none;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
@media (min-width: 760px) {
|
|
819
|
+
.steps {
|
|
820
|
+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
821
|
+
gap: 20px;
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.steps__item {
|
|
826
|
+
display: grid;
|
|
827
|
+
justify-items: center;
|
|
828
|
+
gap: 8px;
|
|
829
|
+
padding: 22px 18px;
|
|
830
|
+
border-radius: var(--r-lg);
|
|
831
|
+
background: var(--card);
|
|
832
|
+
box-shadow: var(--shadow);
|
|
833
|
+
text-align: center;
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
.steps__icon {
|
|
837
|
+
position: relative;
|
|
838
|
+
display: grid;
|
|
839
|
+
place-items: center;
|
|
840
|
+
inline-size: 56px;
|
|
841
|
+
block-size: 56px;
|
|
842
|
+
border-radius: var(--r-round);
|
|
843
|
+
background: var(--soft);
|
|
844
|
+
color: var(--accent);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
.steps__number {
|
|
848
|
+
position: absolute;
|
|
849
|
+
inset-block-start: -4px;
|
|
850
|
+
inset-inline-end: -4px;
|
|
851
|
+
display: grid;
|
|
852
|
+
place-items: center;
|
|
853
|
+
inline-size: 24px;
|
|
854
|
+
block-size: 24px;
|
|
855
|
+
border-radius: var(--r-round);
|
|
856
|
+
background: var(--btn);
|
|
857
|
+
color: var(--btn-ink);
|
|
858
|
+
font-size: var(--text-steps-number);
|
|
859
|
+
font-weight: var(--weight-heavy);
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.steps__title {
|
|
863
|
+
color: var(--heading);
|
|
864
|
+
font-size: var(--text-steps-title);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.steps__text {
|
|
868
|
+
color: var(--muted);
|
|
869
|
+
font-size: var(--text-steps-text);
|
|
870
|
+
line-height: var(--leading-steps-text);
|
|
871
|
+
}
|