@orunelle/theme-engine 0.0.0-stage → 2.0.0-alpha.14

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/styles.css ADDED
@@ -0,0 +1,1274 @@
1
+ /* Merchant theme settings arrive as --setting-* variables (see
2
+ ThemeSettingsStyle in the SDK). Derived shades follow the chosen accent. */
3
+ :root {
4
+ color-scheme: light;
5
+ --store-accent: var(--setting-accent, #7042b0);
6
+ --store-accent-hover: color-mix(in srgb, var(--store-accent) 78%, #000);
7
+ --store-ink: #241536;
8
+ --store-muted: #6a6074;
9
+ --store-paper: #fff;
10
+ --store-ground: #f8f6fb;
11
+ --store-line: color-mix(in srgb, var(--store-accent) 12%, #ece9ef);
12
+ --store-tint: color-mix(in srgb, var(--store-accent) 12%, #fff);
13
+ --store-on-accent: #fff;
14
+ --store-font: "Orunelle Sans", system-ui, sans-serif;
15
+ --font-body: var(--store-font);
16
+ --font-display: ui-serif, Georgia, "IBM Plex Sans Arabic", serif;
17
+ font-family: var(--store-font);
18
+ color: var(--store-ink);
19
+ background: var(--store-paper);
20
+ line-height: 1.6;
21
+ accent-color: var(--store-accent);
22
+ }
23
+ * {
24
+ box-sizing: border-box;
25
+ }
26
+ body {
27
+ margin: 0;
28
+ }
29
+ ::selection {
30
+ background: var(--store-tint);
31
+ color: var(--store-ink);
32
+ }
33
+ a {
34
+ color: inherit;
35
+ text-underline-offset: 0.22em;
36
+ }
37
+ a:hover {
38
+ color: var(--store-accent-hover);
39
+ }
40
+ button {
41
+ font: inherit;
42
+ cursor: pointer;
43
+ border: 1px solid var(--store-accent);
44
+ border-radius: 0.5rem;
45
+ padding: 0.65rem 1rem;
46
+ background: var(--store-accent);
47
+ color: var(--store-on-accent);
48
+ }
49
+ button:hover {
50
+ background: var(--store-accent-hover);
51
+ }
52
+ :focus-visible {
53
+ outline: 3px solid var(--store-accent);
54
+ outline-offset: 4px;
55
+ }
56
+ h1,
57
+ h2,
58
+ p {
59
+ margin: 0;
60
+ }
61
+ h1,
62
+ h2 {
63
+ font-family: var(--setting-font, inherit);
64
+ line-height: 1.2;
65
+ text-wrap: balance;
66
+ }
67
+ h1 {
68
+ font-size: clamp(2rem, 4.5vw, 3.75rem);
69
+ letter-spacing: -0.03em;
70
+ max-width: 20ch;
71
+ }
72
+ h2 {
73
+ font-size: 1.1rem;
74
+ }
75
+ .storefront-shell {
76
+ max-width: 80rem;
77
+ margin-inline: auto;
78
+ padding-inline: clamp(1.25rem, 4vw, 4rem);
79
+ }
80
+ .storefront-header {
81
+ display: flex;
82
+ align-items: center;
83
+ justify-content: space-between;
84
+ gap: 1.5rem;
85
+ padding-block: 1.5rem;
86
+ border-bottom: 1px solid var(--store-line);
87
+ }
88
+ .storefront-brand {
89
+ font-size: 1.35rem;
90
+ font-weight: 700;
91
+ text-decoration: none;
92
+ letter-spacing: -0.03em;
93
+ }
94
+ .storefront-brand span {
95
+ color: var(--store-accent);
96
+ }
97
+ .storefront-brand {
98
+ display: inline-flex;
99
+ align-items: center;
100
+ }
101
+ .storefront-logo {
102
+ display: block;
103
+ height: 2.5rem;
104
+ width: auto;
105
+ max-width: 11rem;
106
+ object-fit: contain;
107
+ }
108
+ .storefront-header nav {
109
+ display: flex;
110
+ align-items: center;
111
+ gap: 1.5rem;
112
+ font-size: 0.9rem;
113
+ }
114
+ .storefront-header nav a {
115
+ text-decoration: none;
116
+ }
117
+ .storefront-submenu {
118
+ position: relative;
119
+ }
120
+ .storefront-submenu > summary {
121
+ cursor: pointer;
122
+ list-style: none;
123
+ }
124
+ .storefront-submenu > summary::-webkit-details-marker {
125
+ display: none;
126
+ }
127
+ .storefront-submenu > summary::after {
128
+ content: " ▾";
129
+ font-size: 0.75em;
130
+ }
131
+ .storefront-submenu > div {
132
+ position: absolute;
133
+ inset-inline-start: 0;
134
+ top: calc(100% + 0.5rem);
135
+ z-index: 20;
136
+ display: grid;
137
+ gap: 0.5rem;
138
+ min-width: 12rem;
139
+ padding: 0.85rem 1rem;
140
+ background: var(--store-paper);
141
+ border: 1px solid var(--store-line);
142
+ border-radius: 0.75rem;
143
+ box-shadow: 0 12px 32px rgb(0 0 0 / 0.08);
144
+ }
145
+ .storefront-footer nav {
146
+ display: flex;
147
+ flex-wrap: wrap;
148
+ gap: 1rem 1.5rem;
149
+ }
150
+ /* Color schemes: a section opts in with data-scheme. Derived tokens are
151
+ redeclared here so they follow the scheme instead of the page root. */
152
+ [data-scheme="scheme-1"] {
153
+ --store-paper: var(--setting-scheme-1-background, #fff);
154
+ --store-ink: var(--setting-scheme-1-text, #241536);
155
+ --store-accent: var(
156
+ --setting-scheme-1-accent,
157
+ var(--setting-accent, #7042b0)
158
+ );
159
+ }
160
+ [data-scheme="scheme-2"] {
161
+ --store-paper: var(--setting-scheme-2-background, #1d1429);
162
+ --store-ink: var(--setting-scheme-2-text, #f6f2fb);
163
+ --store-accent: var(--setting-scheme-2-accent, #c9a7ff);
164
+ }
165
+ [data-scheme="scheme-3"] {
166
+ --store-paper: var(--setting-scheme-3-background, #f1e9fb);
167
+ --store-ink: var(--setting-scheme-3-text, #241536);
168
+ --store-accent: var(--setting-scheme-3-accent, #58308e);
169
+ }
170
+ [data-scheme] {
171
+ --store-accent-hover: color-mix(
172
+ in srgb,
173
+ var(--store-accent) 78%,
174
+ var(--store-ink)
175
+ );
176
+ --store-muted: color-mix(in srgb, var(--store-ink) 68%, var(--store-paper));
177
+ --store-line: color-mix(in srgb, var(--store-ink) 14%, var(--store-paper));
178
+ --store-ground: color-mix(in srgb, var(--store-ink) 5%, var(--store-paper));
179
+ --store-tint: color-mix(in srgb, var(--store-accent) 14%, var(--store-paper));
180
+ --store-on-accent: var(--store-paper);
181
+ background: var(--store-paper);
182
+ color: var(--store-ink);
183
+ }
184
+ /* Non-default schemes read as a distinct band inside the page width. */
185
+ .theme-products[data-scheme]:not([data-scheme="scheme-1"]),
186
+ .theme-introduction[data-scheme]:not([data-scheme="scheme-1"]) {
187
+ padding-inline: clamp(1.25rem, 4vw, 3rem);
188
+ border-radius: 1rem;
189
+ }
190
+ .theme-products[data-scheme]:not([data-scheme="scheme-1"]) {
191
+ padding-block: clamp(1.5rem, 4vw, 3rem);
192
+ }
193
+ .skip-link {
194
+ position: absolute;
195
+ inset-inline-start: 1rem;
196
+ top: -10rem;
197
+ z-index: 10;
198
+ padding: 0.75rem;
199
+ background: var(--store-paper);
200
+ }
201
+ .skip-link:focus {
202
+ top: 1rem;
203
+ }
204
+ .catalog-section {
205
+ padding-block: clamp(3rem, 7vw, 6rem);
206
+ }
207
+ .storefront-intro {
208
+ max-width: 65ch;
209
+ color: var(--store-muted);
210
+ margin-top: 1.5rem;
211
+ }
212
+ .product-grid {
213
+ display: grid;
214
+ grid-template-columns: repeat(3, minmax(0, 1fr));
215
+ gap: 2rem;
216
+ margin-top: 3.5rem;
217
+ }
218
+ .product-card h2 {
219
+ margin-top: 1.1rem;
220
+ }
221
+ .product-card h2 a {
222
+ text-decoration: none;
223
+ }
224
+ .product-image-empty {
225
+ aspect-ratio: 4 / 3;
226
+ display: grid;
227
+ place-items: center;
228
+ border-radius: 0.75rem;
229
+ background: var(--store-ground);
230
+ color: var(--store-muted);
231
+ font-size: 0.85rem;
232
+ }
233
+ .product-price {
234
+ margin-top: 0.65rem;
235
+ font-variant-numeric: tabular-nums;
236
+ }
237
+ .storefront-footer {
238
+ display: flex;
239
+ justify-content: space-between;
240
+ flex-wrap: wrap;
241
+ gap: 1rem;
242
+ border-top: 1px solid var(--store-line);
243
+ padding-block: 1.5rem;
244
+ font-size: 0.8rem;
245
+ color: var(--store-muted);
246
+ }
247
+ .product-detail {
248
+ padding-block: 2rem 5rem;
249
+ }
250
+ .back-link {
251
+ display: inline-block;
252
+ margin-bottom: 2rem;
253
+ font-size: 0.9rem;
254
+ }
255
+ .product-detail-grid {
256
+ display: grid;
257
+ grid-template-columns: 1fr 1fr;
258
+ align-items: start;
259
+ gap: 4rem;
260
+ }
261
+ .product-detail-grid h1 {
262
+ font-size: clamp(2rem, 4vw, 3rem);
263
+ }
264
+ .product-detail-grid button {
265
+ margin-block: 1.75rem 1rem;
266
+ }
267
+ .product-detail-image {
268
+ aspect-ratio: 1;
269
+ }
270
+ .sample-notice {
271
+ margin-top: 2rem;
272
+ font-size: 0.9rem;
273
+ color: var(--store-muted);
274
+ }
275
+ .reference-product-notes {
276
+ margin-top: 1rem;
277
+ color: var(--store-muted);
278
+ font-size: 0.9rem;
279
+ }
280
+ .theme-introduction {
281
+ padding-block: var(--section-padding, 32px);
282
+ }
283
+ .theme-introduction > [data-orunelle-node-id] + [data-orunelle-node-id] {
284
+ margin-top: 1.5rem;
285
+ }
286
+ .theme-copy {
287
+ max-width: 65ch;
288
+ color: var(--store-muted);
289
+ }
290
+ .theme-copy p + p {
291
+ margin-top: 1rem;
292
+ }
293
+ .theme-link-button {
294
+ display: inline-block;
295
+ padding: 0.75rem 1.2rem;
296
+ color: var(--store-paper);
297
+ background: var(--store-accent);
298
+ border-radius: 0.5rem;
299
+ text-decoration: none;
300
+ }
301
+ .theme-link-button:hover {
302
+ background: var(--store-accent-hover);
303
+ color: var(--store-paper);
304
+ }
305
+ .theme-products {
306
+ padding-block: 2rem 4rem;
307
+ }
308
+ .theme-products > h2 {
309
+ font-size: 1.6rem;
310
+ }
311
+ .theme-products .product-grid {
312
+ margin-top: 2rem;
313
+ }
314
+ .theme-products[data-hide-prices="true"] .product-price {
315
+ display: none;
316
+ }
317
+ .theme-section-image {
318
+ width: 100%;
319
+ max-height: 32rem;
320
+ object-fit: cover;
321
+ }
322
+ .theme-block-group {
323
+ display: grid;
324
+ gap: 1rem;
325
+ }
326
+ @media (min-width: 650px) {
327
+ .theme-introduction {
328
+ padding-block: var(--section-padding-sm, 32px);
329
+ }
330
+ }
331
+ @media (min-width: 1000px) {
332
+ .theme-introduction {
333
+ padding-block: var(--section-padding-lg, 64px);
334
+ }
335
+ }
336
+ .product-photo {
337
+ display: block;
338
+ width: 100%;
339
+ aspect-ratio: 4 / 3;
340
+ object-fit: cover;
341
+ border-radius: 0.75rem;
342
+ background: var(--store-ground);
343
+ }
344
+ .product-photo.product-detail-image {
345
+ aspect-ratio: 1;
346
+ }
347
+ .account-page,
348
+ .content-page {
349
+ padding-block: 3rem 5rem;
350
+ min-height: 55vh;
351
+ }
352
+ .account-page h1,
353
+ .content-page h1 {
354
+ margin-bottom: 2rem;
355
+ }
356
+ .content-page p {
357
+ max-width: 70ch;
358
+ margin-block: 1.5rem;
359
+ white-space: pre-line;
360
+ }
361
+ .store-form {
362
+ display: grid;
363
+ gap: 1.25rem;
364
+ max-width: 34rem;
365
+ margin-block: 2rem;
366
+ }
367
+ .form-field {
368
+ display: grid;
369
+ gap: 0.45rem;
370
+ min-width: 0;
371
+ }
372
+ input,
373
+ select {
374
+ font: inherit;
375
+ color: var(--store-ink);
376
+ background: var(--store-paper);
377
+ border: 1px solid var(--store-muted);
378
+ border-radius: 0.5rem;
379
+ padding: 0.65rem 0.8rem;
380
+ min-height: 2.75rem;
381
+ min-width: 0;
382
+ max-width: 100%;
383
+ caret-color: var(--store-accent);
384
+ }
385
+ input[type="checkbox"] {
386
+ accent-color: var(--store-accent);
387
+ min-height: auto;
388
+ }
389
+ .checkbox-field {
390
+ display: flex;
391
+ align-items: center;
392
+ gap: 0.75rem;
393
+ }
394
+ .button-secondary {
395
+ background: var(--store-paper);
396
+ color: var(--store-accent);
397
+ }
398
+ .button-secondary:hover {
399
+ background: var(--store-tint);
400
+ }
401
+ button:disabled {
402
+ cursor: not-allowed;
403
+ background: var(--store-ground);
404
+ color: var(--store-muted);
405
+ border-color: var(--store-line);
406
+ }
407
+ .action-row,
408
+ .account-links,
409
+ .pagination {
410
+ display: flex;
411
+ flex-wrap: wrap;
412
+ align-items: center;
413
+ gap: 1rem;
414
+ margin-block: 1.5rem;
415
+ }
416
+ .resource-list {
417
+ padding: 0;
418
+ list-style: none;
419
+ margin-block: 2rem;
420
+ }
421
+ .resource-list li {
422
+ padding-block: 1.5rem;
423
+ border-bottom: 1px solid var(--store-line);
424
+ }
425
+ .resource-list li p {
426
+ margin-top: 0.65rem;
427
+ }
428
+ .resource-list li > button {
429
+ margin-inline-start: 1rem;
430
+ }
431
+ .quantity-field {
432
+ display: flex;
433
+ align-items: center;
434
+ gap: 0.75rem;
435
+ margin-block: 1rem;
436
+ }
437
+ .quantity-field input {
438
+ width: 6rem;
439
+ }
440
+ .form-error {
441
+ color: var(--store-ink);
442
+ padding: 1rem;
443
+ background: var(--store-tint);
444
+ max-width: 65ch;
445
+ }
446
+ .request-reference {
447
+ display: block;
448
+ font-size: 0.85rem;
449
+ overflow-wrap: anywhere;
450
+ margin-top: 0.5rem;
451
+ }
452
+ .empty-state {
453
+ margin-block: 3rem;
454
+ max-width: 65ch;
455
+ }
456
+ .form-heading {
457
+ margin-top: 3rem;
458
+ }
459
+ .search-form {
460
+ display: flex;
461
+ align-items: end;
462
+ flex-wrap: wrap;
463
+ gap: 1rem;
464
+ max-width: 36rem;
465
+ margin-top: 2rem;
466
+ }
467
+ .search-form .form-field {
468
+ flex: 1;
469
+ }
470
+ .product-actions {
471
+ margin-top: 2rem;
472
+ max-width: 34rem;
473
+ }
474
+ .product-actions p {
475
+ margin-top: 1rem;
476
+ }
477
+ .product-actions .action-row button {
478
+ margin: 0;
479
+ }
480
+ .checkout-total {
481
+ font-size: 1.4rem;
482
+ font-weight: 700;
483
+ font-variant-numeric: tabular-nums;
484
+ }
485
+ .checkout-review {
486
+ margin-top: 1.5rem;
487
+ }
488
+ .totals-list {
489
+ margin-block: 1.5rem 0;
490
+ font-variant-numeric: tabular-nums;
491
+ }
492
+ .totals-list > div {
493
+ display: flex;
494
+ justify-content: space-between;
495
+ gap: 1rem;
496
+ padding-block: 0.5rem;
497
+ }
498
+ .totals-list dd {
499
+ margin: 0;
500
+ text-align: end;
501
+ }
502
+ .totals-list .checkout-total {
503
+ border-top: 1px solid var(--store-line);
504
+ margin-top: 0.5rem;
505
+ padding-top: 1rem;
506
+ }
507
+ .order-details {
508
+ margin-top: 2rem;
509
+ }
510
+ .order-details dl {
511
+ display: grid;
512
+ grid-template-columns: auto 1fr;
513
+ gap: 0.75rem 1.5rem;
514
+ max-width: 36rem;
515
+ }
516
+ .order-details dd {
517
+ margin: 0;
518
+ }
519
+ .storefront-header nav {
520
+ flex-wrap: wrap;
521
+ justify-content: flex-end;
522
+ }
523
+ .error-page {
524
+ padding-block: 4rem;
525
+ }
526
+ .error-page p {
527
+ margin-block: 1.5rem;
528
+ max-width: 65ch;
529
+ }
530
+ @media (max-width: 650px) {
531
+ .product-grid {
532
+ grid-template-columns: repeat(2, minmax(0, 1fr));
533
+ gap: 1.75rem 1rem;
534
+ }
535
+ .product-detail-grid {
536
+ grid-template-columns: 1fr;
537
+ gap: 2rem;
538
+ }
539
+ .storefront-header {
540
+ align-items: start;
541
+ flex-wrap: wrap;
542
+ }
543
+ .storefront-header nav {
544
+ gap: 1rem;
545
+ justify-content: flex-start;
546
+ }
547
+ }
548
+
549
+ /* ── Section library ─────────────────────────────────────────────────────── */
550
+ .theme-section {
551
+ margin-block: clamp(2rem, 5vw, 4rem);
552
+ }
553
+ .theme-section[data-scheme]:not([data-scheme="scheme-1"]) {
554
+ padding: clamp(1.5rem, 4vw, 3rem);
555
+ border-radius: 1rem;
556
+ }
557
+ .theme-section-title {
558
+ font-size: clamp(1.4rem, 2.6vw, 2rem);
559
+ margin-bottom: 1.5rem;
560
+ }
561
+ .theme-section-head {
562
+ display: flex;
563
+ align-items: baseline;
564
+ justify-content: space-between;
565
+ gap: 1rem;
566
+ margin-bottom: 1.5rem;
567
+ }
568
+ .theme-section-head .theme-section-title {
569
+ margin: 0;
570
+ }
571
+ .theme-grid {
572
+ display: grid;
573
+ gap: 1.5rem;
574
+ grid-template-columns: repeat(min(var(--columns, 3), 2), minmax(0, 1fr));
575
+ }
576
+ @media (min-width: 64rem) {
577
+ .theme-grid {
578
+ grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr));
579
+ }
580
+ }
581
+ .theme-narrow {
582
+ max-width: 46rem;
583
+ margin-inline: auto;
584
+ }
585
+ .theme-editor-hint {
586
+ padding: 1.5rem;
587
+ border: 1px dashed var(--store-line);
588
+ border-radius: 0.75rem;
589
+ color: var(--store-muted);
590
+ text-align: center;
591
+ }
592
+ .theme-media-empty {
593
+ background: linear-gradient(135deg, var(--store-ground), var(--store-tint));
594
+ }
595
+
596
+ /* Announcement bar */
597
+ .theme-announcement {
598
+ margin: 0;
599
+ padding: 0.6rem 1rem;
600
+ text-align: center;
601
+ font-size: 0.9rem;
602
+ }
603
+ .theme-announcement a {
604
+ text-decoration: none;
605
+ }
606
+
607
+ /* Image banner and slides share one layered layout. */
608
+ .theme-banner,
609
+ .theme-slide {
610
+ position: relative;
611
+ display: grid;
612
+ overflow: hidden;
613
+ border-radius: 1rem;
614
+ isolation: isolate;
615
+ }
616
+ .theme-height-small {
617
+ --banner-height: 18rem;
618
+ }
619
+ .theme-height-medium {
620
+ --banner-height: 28rem;
621
+ }
622
+ .theme-height-large {
623
+ --banner-height: 40rem;
624
+ }
625
+ .theme-banner,
626
+ .theme-slide {
627
+ min-height: min(var(--banner-height, 28rem), 85vh);
628
+ }
629
+ .theme-banner-media {
630
+ position: absolute;
631
+ inset: 0;
632
+ z-index: -2;
633
+ width: 100%;
634
+ height: 100%;
635
+ object-fit: cover;
636
+ }
637
+ .theme-banner::after,
638
+ .theme-slide::after {
639
+ content: "";
640
+ position: absolute;
641
+ inset: 0;
642
+ z-index: -1;
643
+ background: rgb(0 0 0 / var(--overlay, 0.3));
644
+ }
645
+ .theme-banner-content {
646
+ align-self: center;
647
+ display: grid;
648
+ gap: 1rem;
649
+ padding: clamp(1.5rem, 5vw, 4rem);
650
+ color: #fff;
651
+ }
652
+ .theme-align-center .theme-banner-content {
653
+ text-align: center;
654
+ justify-items: center;
655
+ }
656
+
657
+ /* Slideshow: native scroll snapping keeps it swipeable without a library. */
658
+ .theme-slideshow {
659
+ position: relative;
660
+ }
661
+ .theme-slides {
662
+ display: grid;
663
+ grid-auto-flow: column;
664
+ grid-auto-columns: 100%;
665
+ overflow-x: auto;
666
+ scroll-snap-type: x mandatory;
667
+ scrollbar-width: none;
668
+ border-radius: 1rem;
669
+ }
670
+ .theme-slides::-webkit-scrollbar {
671
+ display: none;
672
+ }
673
+ .theme-slides > * {
674
+ scroll-snap-align: start;
675
+ }
676
+ .theme-slide {
677
+ border-radius: 0;
678
+ }
679
+ .theme-slide-controls {
680
+ display: flex;
681
+ justify-content: center;
682
+ align-items: center;
683
+ gap: 0.5rem;
684
+ margin-top: 1rem;
685
+ }
686
+ .theme-slide-controls button {
687
+ padding: 0.3rem 0.75rem;
688
+ background: transparent;
689
+ color: var(--store-ink);
690
+ border-color: var(--store-line);
691
+ }
692
+ .theme-slide-controls .theme-slide-dot {
693
+ width: 0.65rem;
694
+ height: 0.65rem;
695
+ padding: 0;
696
+ border-radius: 50%;
697
+ background: var(--store-line);
698
+ }
699
+ .theme-slide-controls .theme-slide-dot[aria-current="true"] {
700
+ background: var(--store-accent);
701
+ border-color: var(--store-accent);
702
+ }
703
+
704
+ /* Rich text */
705
+ .theme-rich-text {
706
+ display: grid;
707
+ gap: 1rem;
708
+ }
709
+ .theme-rich-text.theme-align-center {
710
+ text-align: center;
711
+ justify-items: center;
712
+ }
713
+
714
+ /* Image with text */
715
+ .theme-image-with-text {
716
+ display: grid;
717
+ gap: clamp(1.5rem, 4vw, 3rem);
718
+ align-items: center;
719
+ }
720
+ @media (min-width: 48rem) {
721
+ .theme-image-with-text {
722
+ grid-template-columns: 1fr 1fr;
723
+ }
724
+ .theme-image-end .theme-split-media {
725
+ order: 2;
726
+ }
727
+ }
728
+ .theme-split-media {
729
+ width: 100%;
730
+ aspect-ratio: 4 / 3;
731
+ object-fit: cover;
732
+ border-radius: 1rem;
733
+ }
734
+ .theme-split-content {
735
+ display: grid;
736
+ gap: 1rem;
737
+ justify-items: start;
738
+ }
739
+
740
+ /* Columns, testimonials, collections */
741
+ .theme-column {
742
+ display: grid;
743
+ gap: 0.6rem;
744
+ align-content: start;
745
+ }
746
+ .theme-column h3 {
747
+ margin: 0;
748
+ font-size: 1.05rem;
749
+ }
750
+ .theme-column p {
751
+ color: var(--store-muted);
752
+ }
753
+ .theme-column-media {
754
+ width: 100%;
755
+ aspect-ratio: 3 / 2;
756
+ object-fit: cover;
757
+ border-radius: 0.75rem;
758
+ }
759
+ .theme-testimonial {
760
+ margin: 0;
761
+ display: grid;
762
+ gap: 0.75rem;
763
+ padding: 1.5rem;
764
+ border: 1px solid var(--store-line);
765
+ border-radius: 1rem;
766
+ }
767
+ .theme-testimonial blockquote {
768
+ margin: 0;
769
+ font-size: 1.05rem;
770
+ }
771
+ .theme-testimonial figcaption {
772
+ color: var(--store-muted);
773
+ font-size: 0.9rem;
774
+ }
775
+ .theme-rating {
776
+ color: var(--store-accent);
777
+ letter-spacing: 0.1em;
778
+ }
779
+ .theme-rating span {
780
+ opacity: 0.25;
781
+ }
782
+ .theme-collection-card {
783
+ display: grid;
784
+ gap: 0.4rem;
785
+ align-content: end;
786
+ min-height: 9rem;
787
+ padding: 1.25rem;
788
+ border-radius: 1rem;
789
+ background: var(--store-tint);
790
+ text-decoration: none;
791
+ }
792
+ .theme-collection-card span {
793
+ color: var(--store-muted);
794
+ font-size: 0.9rem;
795
+ }
796
+
797
+ /* FAQ */
798
+ .theme-faq-list {
799
+ display: grid;
800
+ border-top: 1px solid var(--store-line);
801
+ }
802
+ .theme-faq-item {
803
+ border-bottom: 1px solid var(--store-line);
804
+ padding-block: 1rem;
805
+ }
806
+ .theme-faq-item summary {
807
+ cursor: pointer;
808
+ font-weight: 600;
809
+ }
810
+ .theme-faq-item .theme-copy {
811
+ margin-top: 0.75rem;
812
+ color: var(--store-muted);
813
+ }
814
+
815
+ /* Video: a facade keeps third-party players off the page until clicked. */
816
+ .theme-video-frame {
817
+ position: relative;
818
+ aspect-ratio: 16 / 9;
819
+ overflow: hidden;
820
+ border-radius: 1rem;
821
+ background: #000;
822
+ }
823
+ .theme-video-frame iframe,
824
+ .theme-video-frame video,
825
+ .theme-video-facade,
826
+ .theme-video-facade img {
827
+ position: absolute;
828
+ inset: 0;
829
+ width: 100%;
830
+ height: 100%;
831
+ border: 0;
832
+ object-fit: cover;
833
+ }
834
+ .theme-video-facade {
835
+ padding: 0;
836
+ border-radius: 0;
837
+ background: #111;
838
+ }
839
+ .theme-video-facade span {
840
+ position: absolute;
841
+ inset: 50% auto auto 50%;
842
+ translate: -50% -50%;
843
+ display: grid;
844
+ place-items: center;
845
+ width: 4.5rem;
846
+ height: 4.5rem;
847
+ border-radius: 50%;
848
+ background: var(--store-accent);
849
+ color: var(--store-on-accent);
850
+ font-size: 1.5rem;
851
+ }
852
+
853
+ /* Logo list */
854
+ .theme-logos {
855
+ display: flex;
856
+ flex-wrap: wrap;
857
+ justify-content: center;
858
+ align-items: center;
859
+ gap: clamp(1.5rem, 4vw, 3rem);
860
+ }
861
+ .theme-logo {
862
+ max-height: 3rem;
863
+ max-width: 9rem;
864
+ object-fit: contain;
865
+ filter: grayscale(1);
866
+ opacity: 0.8;
867
+ }
868
+ .theme-logos a:hover .theme-logo {
869
+ filter: none;
870
+ opacity: 1;
871
+ }
872
+
873
+ /* Product custom fields */
874
+ .product-fields {
875
+ display: grid;
876
+ gap: 0;
877
+ margin: 1.5rem 0 0;
878
+ border-top: 1px solid var(--store-line);
879
+ }
880
+ .product-fields > div {
881
+ display: grid;
882
+ grid-template-columns: minmax(7rem, 35%) 1fr;
883
+ gap: 1rem;
884
+ padding-block: 0.7rem;
885
+ border-bottom: 1px solid var(--store-line);
886
+ }
887
+ .product-fields dt {
888
+ color: var(--store-muted);
889
+ }
890
+ .product-fields dd {
891
+ margin: 0;
892
+ }
893
+ .product-field-color {
894
+ display: inline-flex;
895
+ align-items: center;
896
+ gap: 0.5rem;
897
+ }
898
+ .product-field-color > span {
899
+ width: 1rem;
900
+ height: 1rem;
901
+ border-radius: 50%;
902
+ border: 1px solid var(--store-line);
903
+ }
904
+
905
+ /* ── Product page ─────────────────────────────────────────────────────────── */
906
+ .visually-hidden {
907
+ position: absolute;
908
+ width: 1px;
909
+ height: 1px;
910
+ overflow: hidden;
911
+ clip-path: inset(50%);
912
+ white-space: nowrap;
913
+ }
914
+ .product-main {
915
+ display: grid;
916
+ gap: clamp(1.5rem, 4vw, 3.5rem);
917
+ padding-block: 1.5rem 3rem;
918
+ align-items: start;
919
+ }
920
+ @media (min-width: 56rem) {
921
+ .product-main {
922
+ grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
923
+ }
924
+ .product-main-sticky .product-info {
925
+ position: sticky;
926
+ top: 1.5rem;
927
+ }
928
+ }
929
+ .product-info {
930
+ display: grid;
931
+ gap: 1.25rem;
932
+ align-content: start;
933
+ }
934
+ .product-title {
935
+ font-size: clamp(1.6rem, 3vw, 2.4rem);
936
+ max-width: none;
937
+ }
938
+
939
+ /* Gallery */
940
+ .product-gallery {
941
+ display: grid;
942
+ gap: 0.75rem;
943
+ min-width: 0;
944
+ }
945
+ .product-gallery .product-gallery-main {
946
+ min-height: 0;
947
+ display: block;
948
+ width: 100%;
949
+ padding: 0;
950
+ border: 0;
951
+ border-radius: 1rem;
952
+ overflow: hidden;
953
+ background: var(--store-ground);
954
+ cursor: zoom-in;
955
+ }
956
+ .product-gallery .product-gallery-main:disabled {
957
+ cursor: default;
958
+ }
959
+ .product-gallery-main img,
960
+ .product-gallery-grid img {
961
+ display: block;
962
+ width: 100%;
963
+ aspect-ratio: 1;
964
+ object-fit: cover;
965
+ }
966
+ .product-gallery-thumbs {
967
+ display: flex;
968
+ gap: 0.5rem;
969
+ overflow-x: auto;
970
+ scrollbar-width: thin;
971
+ }
972
+ .product-gallery .product-gallery-thumbs button {
973
+ min-height: 0;
974
+ flex: 0 0 4.5rem;
975
+ padding: 0;
976
+ border: 2px solid transparent;
977
+ border-radius: 0.6rem;
978
+ overflow: hidden;
979
+ background: var(--store-ground);
980
+ }
981
+ .product-gallery .product-gallery-thumbs button[aria-current="true"] {
982
+ border-color: var(--store-accent);
983
+ }
984
+ .product-gallery-thumbs img {
985
+ display: block;
986
+ width: 100%;
987
+ aspect-ratio: 1;
988
+ object-fit: cover;
989
+ }
990
+ .product-gallery-grid {
991
+ grid-template-columns: repeat(2, minmax(0, 1fr));
992
+ }
993
+ .product-gallery-grid img {
994
+ border-radius: 0.75rem;
995
+ }
996
+ .product-gallery-grid img:first-child {
997
+ grid-column: 1 / -1;
998
+ }
999
+ .product-zoom {
1000
+ width: min(96vw, 70rem);
1001
+ max-height: 94vh;
1002
+ padding: 0;
1003
+ border: 0;
1004
+ border-radius: 1rem;
1005
+ background: #fff;
1006
+ }
1007
+ .product-zoom::backdrop {
1008
+ background: rgb(0 0 0 / 0.75);
1009
+ }
1010
+ .product-zoom img {
1011
+ display: block;
1012
+ width: 100%;
1013
+ max-height: 94vh;
1014
+ object-fit: contain;
1015
+ cursor: zoom-out;
1016
+ }
1017
+ .product-gallery .product-zoom button {
1018
+ position: absolute;
1019
+ top: 0.75rem;
1020
+ inset-inline-end: 0.75rem;
1021
+ width: 2.5rem;
1022
+ height: 2.5rem;
1023
+ padding: 0;
1024
+ border-radius: 50%;
1025
+ font-size: 1.4rem;
1026
+ }
1027
+
1028
+ /* Price */
1029
+ .product-price-block {
1030
+ display: flex;
1031
+ flex-wrap: wrap;
1032
+ align-items: baseline;
1033
+ gap: 0.6rem;
1034
+ }
1035
+ .product-price-block .product-price {
1036
+ font-size: 1.4rem;
1037
+ font-weight: 700;
1038
+ }
1039
+ .product-compare-price {
1040
+ color: var(--store-muted);
1041
+ margin-inline-start: 0.5rem;
1042
+ }
1043
+ .product-price-block .product-compare-price {
1044
+ margin: 0;
1045
+ }
1046
+ .product-sale-badge {
1047
+ padding: 0.15rem 0.55rem;
1048
+ border-radius: 999px;
1049
+ background: var(--store-accent);
1050
+ color: var(--store-on-accent);
1051
+ font-size: 0.8rem;
1052
+ font-weight: 600;
1053
+ }
1054
+
1055
+ /* Options */
1056
+ .product-options {
1057
+ display: grid;
1058
+ gap: 1rem;
1059
+ }
1060
+ .product-option {
1061
+ margin: 0;
1062
+ padding: 0;
1063
+ border: 0;
1064
+ }
1065
+ .product-option legend {
1066
+ margin-bottom: 0.5rem;
1067
+ font-weight: 600;
1068
+ font-size: 0.95rem;
1069
+ }
1070
+ .product-option legend span {
1071
+ font-weight: 400;
1072
+ color: var(--store-muted);
1073
+ }
1074
+ .product-option-values {
1075
+ display: flex;
1076
+ flex-wrap: wrap;
1077
+ gap: 0.5rem;
1078
+ }
1079
+ .product-options .product-option-value {
1080
+ min-height: 0;
1081
+ min-width: 2.75rem;
1082
+ padding: 0.5rem 0.9rem;
1083
+ border: 1px solid var(--store-line);
1084
+ border-radius: 0.6rem;
1085
+ background: var(--store-paper);
1086
+ color: var(--store-ink);
1087
+ }
1088
+ .product-options .product-option-value:hover {
1089
+ background: var(--store-ground);
1090
+ }
1091
+ .product-options .product-option-value[aria-pressed="true"] {
1092
+ border-color: var(--store-ink);
1093
+ box-shadow: inset 0 0 0 1px var(--store-ink);
1094
+ }
1095
+ .product-options .product-option-value[data-unavailable="true"] {
1096
+ color: var(--store-muted);
1097
+ text-decoration: line-through;
1098
+ }
1099
+ .product-options .product-option-color .product-option-value,
1100
+ .product-options .product-option-image .product-option-value {
1101
+ min-width: 0;
1102
+ padding: 3px;
1103
+ border-radius: 50%;
1104
+ }
1105
+ .product-swatch {
1106
+ display: block;
1107
+ width: 2rem;
1108
+ height: 2rem;
1109
+ border-radius: 50%;
1110
+ border: 1px solid rgb(0 0 0 / 0.12);
1111
+ object-fit: cover;
1112
+ }
1113
+ .product-option-color [data-unavailable="true"] .product-swatch,
1114
+ .product-option-image [data-unavailable="true"] .product-swatch {
1115
+ opacity: 0.35;
1116
+ }
1117
+
1118
+ /* Buy buttons */
1119
+ .product-buy {
1120
+ display: grid;
1121
+ gap: 0.75rem;
1122
+ }
1123
+ .product-buy-row {
1124
+ display: flex;
1125
+ gap: 0.75rem;
1126
+ }
1127
+ .product-quantity {
1128
+ display: flex;
1129
+ align-items: stretch;
1130
+ border: 1px solid var(--store-line);
1131
+ border-radius: 0.6rem;
1132
+ overflow: hidden;
1133
+ }
1134
+ .product-buy .product-quantity button {
1135
+ min-height: 0;
1136
+ width: 2.6rem;
1137
+ padding: 0;
1138
+ border: 0;
1139
+ border-radius: 0;
1140
+ background: transparent;
1141
+ color: var(--store-ink);
1142
+ font-size: 1.1rem;
1143
+ }
1144
+ .product-quantity input {
1145
+ width: 3rem;
1146
+ border: 0;
1147
+ text-align: center;
1148
+ font: inherit;
1149
+ background: transparent;
1150
+ color: inherit;
1151
+ appearance: textfield;
1152
+ }
1153
+ .product-quantity input::-webkit-inner-spin-button {
1154
+ appearance: none;
1155
+ }
1156
+ .product-add {
1157
+ flex: 1;
1158
+ padding-block: 0.85rem;
1159
+ font-weight: 600;
1160
+ }
1161
+ .product-buy-now {
1162
+ width: 100%;
1163
+ padding-block: 0.85rem;
1164
+ background: var(--store-ink);
1165
+ border-color: var(--store-ink);
1166
+ color: var(--store-paper);
1167
+ font-weight: 600;
1168
+ }
1169
+ .product-buy button:disabled {
1170
+ opacity: 0.55;
1171
+ cursor: not-allowed;
1172
+ }
1173
+ .product-stock-low {
1174
+ color: #b45309;
1175
+ font-weight: 600;
1176
+ font-size: 0.9rem;
1177
+ }
1178
+ .form-notice {
1179
+ color: #15803d;
1180
+ }
1181
+
1182
+ /* Description, notes and tabs */
1183
+ .product-description {
1184
+ display: grid;
1185
+ gap: 0.75rem;
1186
+ color: var(--store-ink);
1187
+ }
1188
+ .product-note {
1189
+ font-size: 0.95rem;
1190
+ }
1191
+ .product-note-highlight {
1192
+ padding: 0.75rem 1rem;
1193
+ border-radius: 0.6rem;
1194
+ background: var(--store-tint);
1195
+ }
1196
+ .product-collapsible {
1197
+ border-block: 1px solid var(--store-line);
1198
+ padding-block: 0.9rem;
1199
+ }
1200
+ .product-collapsible + .product-collapsible {
1201
+ border-top: 0;
1202
+ }
1203
+ .product-collapsible summary {
1204
+ cursor: pointer;
1205
+ font-weight: 600;
1206
+ }
1207
+ .product-collapsible > :not(summary) {
1208
+ margin-top: 0.75rem;
1209
+ }
1210
+ .product-specs h2 {
1211
+ font-size: 1rem;
1212
+ margin-bottom: 0.25rem;
1213
+ }
1214
+ .product-specs .product-fields {
1215
+ margin-top: 0.5rem;
1216
+ }
1217
+
1218
+ /* Mobile: the gallery becomes a swipeable strip. */
1219
+ @media (max-width: 40rem) {
1220
+ .product-gallery .product-gallery-thumbs button {
1221
+ min-height: 0;
1222
+ flex-basis: 3.5rem;
1223
+ }
1224
+ .product-buy-row {
1225
+ flex-wrap: wrap;
1226
+ }
1227
+ .product-add {
1228
+ flex-basis: 100%;
1229
+ }
1230
+ }
1231
+
1232
+ /* Mobile header: navigation collapses behind a menu button. */
1233
+ .storefront-menu-toggle {
1234
+ display: none;
1235
+ }
1236
+ @media (max-width: 48rem) {
1237
+ .storefront-header {
1238
+ flex-wrap: wrap;
1239
+ position: relative;
1240
+ }
1241
+ .storefront-menu-toggle {
1242
+ display: inline-grid;
1243
+ place-items: center;
1244
+ width: 2.75rem;
1245
+ height: 2.75rem;
1246
+ padding: 0;
1247
+ border: 1px solid var(--store-line);
1248
+ background: var(--store-paper);
1249
+ color: var(--store-ink);
1250
+ font-size: 1.2rem;
1251
+ }
1252
+ .storefront-header nav {
1253
+ display: none;
1254
+ flex-basis: 100%;
1255
+ flex-direction: column;
1256
+ align-items: stretch;
1257
+ gap: 0;
1258
+ font-size: 1rem;
1259
+ }
1260
+ .storefront-header nav[data-open="true"] {
1261
+ display: flex;
1262
+ }
1263
+ .storefront-header nav > a,
1264
+ .storefront-header nav > details > summary {
1265
+ padding-block: 0.8rem;
1266
+ border-bottom: 1px solid var(--store-line);
1267
+ }
1268
+ .storefront-submenu > div {
1269
+ position: static;
1270
+ box-shadow: none;
1271
+ border: 0;
1272
+ padding: 0 1rem 0.5rem;
1273
+ }
1274
+ }