Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvuGvHpbAQ4syfuLuRvutL
87 lines
7 KiB
CSS
87 lines
7 KiB
CSS
/* Ergänzungen für den Shop, auf den Tokens des Design Systems. */
|
|
html { scroll-behavior: smooth; }
|
|
body { min-height: 100vh; display: flex; flex-direction: column; }
|
|
main { flex: 1; }
|
|
h1, h2, h3 { margin: 0; }
|
|
.sm-section { padding-top: var(--space-8); }
|
|
@media (min-width: 1024px) { .sm-section { padding-top: var(--space-9); } }
|
|
.sm-page { padding-top: var(--space-6); padding-bottom: var(--space-9); }
|
|
.sm-page__title { margin: 0 0 var(--space-2); }
|
|
.sm-page__lead { margin: 0 0 var(--space-6); color: var(--ink-muted); }
|
|
.sm-prose { max-width: var(--container-text); }
|
|
.sm-prose p, .sm-prose ul, .sm-prose ol { margin: 0 0 var(--space-4); }
|
|
.sm-prose h2 { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1.2; margin: var(--space-6) 0 var(--space-3); }
|
|
.sm-prose h3 { font-size: 18px; font-weight: 500; margin: var(--space-5) 0 var(--space-2); }
|
|
|
|
/* Bilder in Karten und Kacheln */
|
|
.sm-card__media img, .sm-tile img, .sm-pdp__gallery img, .sm-cartline__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
|
.sm-tile img { aspect-ratio: 3 / 4; }
|
|
.sm-pdp__main { aspect-ratio: var(--product-image-ratio); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunken); }
|
|
.sm-card__title a { color: inherit; text-decoration: none; }
|
|
.sm-card__title a::after { content: ""; position: absolute; inset: 0; }
|
|
.sm-card { position: relative; }
|
|
.sm-card__quick, .sm-card__wish { z-index: 2; }
|
|
|
|
/* Mobilmenü (details/summary, ohne JavaScript) */
|
|
.sm-mnav { position: relative; }
|
|
.sm-mnav > summary { list-style: none; }
|
|
.sm-mnav > summary::-webkit-details-marker { display: none; }
|
|
.sm-mnav__panel { position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(86vw, 360px); background: var(--surface-raised); box-shadow: var(--shadow-lg); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); overflow-y: auto; }
|
|
.sm-mnav__overlay { position: fixed; inset: 0; z-index: 29; background: var(--overlay); }
|
|
.sm-mnav__panel a { display: flex; align-items: center; min-height: var(--touch-target); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: var(--hairline) solid var(--line); }
|
|
.sm-mnav__panel a[aria-current="page"] { color: var(--gold-deep); }
|
|
.sm-mnav__close { align-self: flex-end; }
|
|
@media (min-width: 1024px) { .sm-mnav { display: none; } }
|
|
|
|
/* Suche im Header */
|
|
.sm-search { display: flex; gap: var(--space-2); max-width: 560px; }
|
|
|
|
/* Warenkorb und Kasse */
|
|
.sm-cart-layout { display: grid; gap: var(--space-6); align-items: start; }
|
|
@media (min-width: 1024px) { .sm-cart-layout { grid-template-columns: 1fr 400px; gap: var(--space-8); } }
|
|
.sm-checkout { display: grid; gap: var(--space-6); align-items: start; }
|
|
@media (min-width: 1024px) { .sm-checkout { grid-template-columns: 1fr 400px; gap: var(--space-8); } }
|
|
.sm-checkout__form { max-width: 640px; }
|
|
.sm-checkout__steps { margin: var(--space-5) 0 var(--space-7); }
|
|
.sm-steps__item a { color: inherit; text-decoration: none; }
|
|
.sm-option { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border: var(--hairline) solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-raised); cursor: pointer; }
|
|
.sm-option + .sm-option { margin-top: var(--space-3); }
|
|
.sm-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
|
|
.sm-option input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 2px 0 0; border: var(--hairline) solid var(--line-strong); border-radius: var(--radius-pill); display: grid; place-content: center; background: var(--surface-raised); }
|
|
.sm-option input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--on-noir); transform: scale(0); transition: transform 150ms; }
|
|
.sm-option input:checked { background: var(--noir); border-color: var(--noir); }
|
|
.sm-option input:checked::before { transform: scale(1); }
|
|
.sm-option__body { flex: 1; }
|
|
.sm-option__title { display: flex; justify-content: space-between; gap: var(--space-3); font-weight: 500; }
|
|
.sm-option__text { display: block; color: var(--ink-muted); font-size: 14px; line-height: 22px; }
|
|
.sm-summary__lines { margin-bottom: var(--space-4); }
|
|
.sm-summary__line { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 14px; line-height: 22px; padding: var(--space-2) 0; }
|
|
.sm-summary__line span:first-child { color: var(--ink-muted); }
|
|
.sm-review { display: grid; gap: var(--space-4); }
|
|
@media (min-width: 768px) { .sm-review { grid-template-columns: 1fr 1fr; } }
|
|
.sm-review__box { border: var(--hairline) solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); background: var(--surface-raised); }
|
|
.sm-review__box h3 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; margin-bottom: var(--space-2); display: flex; justify-content: space-between; }
|
|
.sm-review__box h3 a { text-transform: none; letter-spacing: 0; font-weight: 400; }
|
|
.sm-review__box p { margin: 0; }
|
|
|
|
/* Konto */
|
|
.sm-auth { max-width: 440px; margin: 0 auto; }
|
|
.sm-box { border: var(--hairline) solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); padding: var(--space-5); }
|
|
.sm-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; }
|
|
.sm-table th { text-align: left; font-weight: 500; color: var(--ink-muted); padding: var(--space-3); border-bottom: var(--hairline) solid var(--line); }
|
|
.sm-table td { padding: var(--space-3); border-bottom: var(--hairline) solid var(--line); font-variant-numeric: tabular-nums; }
|
|
|
|
/* Filter im Shop */
|
|
.sm-shop-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); }
|
|
.sm-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
|
|
.sm-chip { text-decoration: none; }
|
|
.sm-empty { text-align: center; padding: var(--space-8) var(--space-4); color: var(--ink-muted); }
|
|
.sm-empty h2 { color: var(--ink); margin-bottom: var(--space-3); }
|
|
.sm-maintenance { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: var(--space-5); }
|
|
.sm-pdp__sizes input { position: absolute; opacity: 0; pointer-events: none; }
|
|
.sm-pdp__sizes label.sm-pdp__size { display: inline-flex; align-items: center; justify-content: center; }
|
|
.sm-pdp__sizes input:checked + label.sm-pdp__size { border: 2px solid var(--noir); }
|
|
.sm-pdp__sizes input:focus-visible + label.sm-pdp__size { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
|
.sm-pdp__sizes input:disabled + label.sm-pdp__size { color: var(--ink-subtle); border-color: var(--line); text-decoration: line-through; cursor: not-allowed; background: var(--surface); }
|
|
.sm-pdp__thumb img { aspect-ratio: var(--product-image-ratio); object-fit: cover; width: 100%; }
|
|
@media (max-width: 1023px) { .sm-pdp__buy { position: static; } .sm-pdp__cta .sm-btn--primary { min-height: var(--control-height-lg); } }
|