/* LAVRIELLE – Schaufenster: Startseite, Katalog, Produkt, Warenkorb, Wunschliste.
   Baut auf base.css auf (Farben, Schrift, Knöpfe, Produktkarte). */

/* ───────────── Gemeinsames ───────────── */
.page-head { padding: 56px 0 32px; text-align: center; }
.page-head h1 { margin-bottom: .2em; }
.page-head .eyebrow { margin-bottom: 10px; }
.section { padding-top: 88px; }
.section-head { margin-bottom: 36px; text-align: center; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-head h2 { margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: left; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--gold); white-space: nowrap; }
.more:hover { color: var(--gold); }
.loading { grid-column: 1 / -1; padding: 48px 0; text-align: center; }
[aria-busy="true"] { opacity: .55; transition: opacity .15s; }

.empty { grid-column: 1 / -1; max-width: 560px; margin: 0 auto; padding: 64px 0; text-align: center; }
.empty h1, .empty h2 { margin-bottom: .4em; }
.empty-page { padding: 104px 0; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0 0; }

/* Herz auf der Produktkarte: Tippfläche mindestens 44 px. */
.wish { width: 44px; height: 44px; }

/* Schrittzähler für Mengen */
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--ink); background: var(--paper); flex: none; }
.stepper button { width: 44px; min-height: 46px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.1rem; cursor: pointer; }
.stepper button:hover:not([disabled]) { background: var(--gold-soft); }
.stepper button[disabled] { opacity: .3; cursor: not-allowed; }
.stepper input[type=number] { width: 48px; min-height: 46px; padding: 0; border: 0; background: transparent; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.stepper input[type=number]::-webkit-outer-spin-button, .stepper input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-value { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; font-size: .95rem; }
.stepper-small { border-color: var(--line); }
.stepper-small button { min-height: 44px; }

/* Farbfläche: Farbe kommt per JS als --swatch */
.swatch { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--swatch, transparent); border: 1px solid rgba(23, 19, 15, .22); flex: none; }
.swatch-none { background: linear-gradient(135deg, transparent 46%, var(--ink-soft) 47%, var(--ink-soft) 53%, transparent 54%); }

/* Größenknöpfe (Filter und Produktseite) */
.size-list { display: flex; flex-wrap: wrap; gap: 8px; }
.size-btn { min-width: 48px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: .85rem; letter-spacing: .04em; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.size-btn:hover:not([disabled]) { border-color: var(--ink); }
.size-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.size-btn.is-out, .size-btn[disabled] { color: #a59c8f; background: transparent; cursor: not-allowed; text-decoration: line-through; }

/* ───────────── Startseite ───────────── */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero-text { max-width: 540px; }
.hero-text .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; margin-bottom: .45em; }
.hero-line { font-size: 1.1rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-media { position: relative; }
.hero-media img { width: 100%; max-height: 640px; object-fit: cover; object-position: center 35%; }
.hero-media::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(255, 253, 249, .6); pointer-events: none; }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.tile { display: block; text-decoration: none; text-align: center; }
.tile-media { display: block; aspect-ratio: 4 / 5; background: var(--gold-soft); overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-name { display: block; margin-top: 16px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.tile-cta { display: inline-block; margin-top: 4px; padding-bottom: 2px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid transparent; }
.tile:hover .tile-cta { border-bottom-color: var(--gold); }

.values { margin-top: 96px; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.values-list li { padding: 56px 40px; text-align: center; border-left: 1px solid var(--line); }
.values-list li:first-child { border-left: 0; }
.values-list .eyebrow { margin-bottom: 12px; }
.values-list h3 { font-size: 1.5rem; }
.values-list p:last-child { margin-bottom: 0; }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .section { padding-top: 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 0; padding-bottom: 44px; }
  .hero-media { order: -1; margin: 0 -16px; }
  .hero-media img { aspect-ratio: 5 / 4; max-height: none; }
  .hero-media::after { inset: 10px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .values { margin-top: 64px; }
  .values-list { grid-template-columns: 1fr; }
  .values-list li { padding: 40px 8px; border-left: 0; border-top: 1px solid var(--line); }
  .values-list li:first-child { border-top: 0; }
}
@media (max-width: 700px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .tile:first-child { grid-column: 1 / -1; }
  .tile:first-child .tile-media { aspect-ratio: 5 / 4; }
  .tile-name { font-size: 1.3rem; margin-top: 12px; }
  .section-head-row { align-items: center; }
}

/* ───────────── Katalog ───────────── */
.catalog { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; }
.filters { position: sticky; top: 124px; max-height: calc(100vh - 140px); overflow-y: auto; padding: 0 4px 8px 0; }
.filters-toggle { display: none; }
.filter-group { padding: 20px 0; border-top: 1px solid var(--line); }
.filters-body > .filter-group:first-child, .filter-search { border-top: 0; padding-top: 0; }
.filter-title { display: block; margin: 0 0 12px; font-family: var(--sans); font-size: .75rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); line-height: 1.6; }
.filter-title output { letter-spacing: .02em; color: var(--ink-soft); }
.filter-search .row { gap: 8px; }
.filter-search input { min-width: 0; }
.filter-search .btn { flex: none; min-height: 46px; }
.filter-cats { list-style: none; margin: 0; padding: 0; }
.filter-cats a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; }
.filter-cats a:hover { color: var(--gold); }
.filter-cats a[aria-current] { color: var(--gold); }
.filter-cats a[aria-current]::before { content: ''; width: 18px; height: 1px; margin-right: 10px; background: var(--gold); }
.color-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
.color-btn { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 2px; border: 0; background: none; color: var(--ink); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.color-btn .swatch { width: 22px; height: 22px; }
.color-btn:hover { color: var(--gold); }
.color-btn[aria-pressed="true"] { font-weight: 600; }
.color-btn[aria-pressed="true"] .swatch { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px var(--ink); }
.range { width: 100%; min-height: 44px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.check-row { align-items: center; min-height: 44px; margin: 0; cursor: pointer; }
.check-row input { margin-top: 0; }
.filter-reset { min-height: 44px; font-size: .85rem; color: var(--ink-soft); }
.filter-reset:hover { color: var(--ink); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.result-count { margin: 0; font-size: .9rem; }
.sort { display: flex; align-items: center; gap: 12px; }
.sort label { margin: 0; white-space: nowrap; }
.sort select { width: auto; min-width: 190px; }
.grid-catalog { grid-template-columns: repeat(3, 1fr); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 64px; }
.pagination:empty { display: none; }
.page { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid transparent; text-decoration: none; font-size: .9rem; }
a.page:hover { border-color: var(--line); }
.page[aria-current] { border-color: var(--ink); }
.page-step { padding: 0 16px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.page-gap { color: var(--ink-soft); }

@media (max-width: 960px) {
  .page-head { padding: 36px 0 24px; }
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .filters { position: static; max-height: none; overflow: visible; padding: 0; }
  .filters-toggle { display: inline-flex; }
  .filters-body { display: none; padding-top: 24px; }
  .filters-body.is-open { display: block; }
  .color-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .grid-catalog { grid-template-columns: repeat(2, 1fr); }
  .toolbar { flex-wrap: wrap; gap: 8px 16px; }
  .sort { flex: 1 1 100%; }
  .sort select { flex: 1; min-width: 0; }
  .color-list { grid-template-columns: 1fr 1fr; }
  .pagination { margin-top: 44px; }
}

/* ───────────── Produktseite ───────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; padding: 16px 0; font-size: .8rem; color: var(--ink-soft); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.gallery { position: sticky; top: 124px; }
.gallery-main { position: relative; background: var(--gold-soft); aspect-ratio: 4 / 5; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb { width: 76px; padding: 0; border: 1px solid transparent; background: var(--gold-soft); cursor: pointer; aspect-ratio: 4 / 5; overflow: hidden; opacity: .7; transition: opacity .15s, border-color .15s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-pressed="true"] { border-color: var(--ink); opacity: 1; }

.buy { max-width: 520px; padding-top: 8px; }
.buy .eyebrow { margin-bottom: 10px; }
.buy h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .35em; }
.price { margin: 0 0 4px; font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; }
.price s { font-size: 1.25rem; color: var(--ink-soft); margin-right: 6px; }
.price.is-sale > span { color: var(--sale); }
.tax-note { margin-bottom: 28px; }
.option { margin-bottom: 22px; }
.option-label { margin: 0 0 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.option-label span { color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: none; cursor: pointer; }
.swatch-btn .swatch { width: 30px; height: 30px; }
.swatch-btn:hover { border-color: var(--line); }
.swatch-btn[aria-pressed="true"] { border-color: var(--ink); }
.stock-hint { min-height: 1.6em; margin: 0 0 14px; font-size: .9rem; color: var(--ink-soft); }
.stock-hint.is-low { color: var(--sale); }
.stock-hint.is-ok { color: var(--ok); }
.buy-row { display: flex; gap: 12px; }
.buy-add { flex: 1; padding: 0 16px; }
.buy .form-error { margin: 8px 0 0; }
.buy .form-error:empty { min-height: 0; margin: 0; }
.added { margin: 10px 0 0; padding: 12px 16px; border: 1px solid var(--line); background: var(--paper); font-size: .92rem; }
.wish-toggle { margin-top: 12px; }
.wish-toggle[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.wish-toggle[aria-pressed="true"]:hover { background: var(--gold); color: #fff; }
.pdp-text { margin-top: 40px; }
.pdp-sub { margin-bottom: 10px; font-family: var(--sans); font-size: .75rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }
.pdp-text p { font-size: 1.02rem; }
.accordion { margin-top: 28px; border-bottom: 1px solid var(--line); }
.accordion details { border-top: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; list-style: none; cursor: pointer; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.2rem; letter-spacing: 0; color: var(--gold); }
.accordion details[open] summary::after { content: '–'; }
.detail-list { margin: 0 0 20px; padding: 0; list-style: none; }
.detail-list li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.detail-list li:first-child { border-top: 0; padding-top: 0; }
.detail-body { padding-bottom: 12px; font-size: .95rem; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gallery { position: static; margin: 0 -16px; }
  .thumbs { padding: 0 16px; }
  .thumb { width: 64px; }
  .buy { max-width: none; padding-top: 0; }
  .crumbs { padding: 6px 0; }
}

/* ───────────── Warenkorb ───────────── */
#warenkorb:focus { outline: none; }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.line-media { display: block; background: var(--gold-soft); aspect-ratio: 4 / 5; overflow: hidden; align-self: start; }
.line-media img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; text-decoration: none; }
.line-name:hover { color: var(--gold); }
.line-variant { margin: 4px 0 0; }
.line-unit { margin: 2px 0 0; color: var(--ink-soft); }
.line-warning { margin: 10px 0 0; padding: 8px 12px; border: 1px solid var(--sale); color: var(--sale); background: var(--paper); font-size: .88rem; }
.line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 14px; }
.line-remove { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; color: var(--ink-soft); }
.line-remove:hover { color: var(--ink); }
.line-total { margin: 0; font-size: 1rem; white-space: nowrap; text-align: right; }

.summary { position: sticky; top: 124px; }
.summary h2 { font-size: 1.6rem; margin-bottom: 20px; }
.coupon { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.coupon-row { gap: 8px; }
.coupon-row input { min-width: 0; text-transform: uppercase; }
.coupon-btn { flex: none; min-height: 46px; }
.coupon .form-error { margin: 6px 0 0; }
.coupon .form-error:empty { min-height: 0; margin: 0; }
.coupon-on { margin: 0; font-size: .92rem; }
.coupon-on .link { display: inline-flex; align-items: center; min-height: 44px; margin-left: 8px; color: var(--ink-soft); }
.totals { margin: 0; }
.totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; }
.totals dt { font-size: .95rem; }
.totals dd { margin: 0; white-space: nowrap; text-align: right; }
.totals-note { display: block; font-size: .78rem; color: var(--ink-soft); }
.totals-discount dd { color: var(--sale); }
.totals > .totals-sum { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--ink); }
.totals-sum dt, .totals-sum dd { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.totals-tax { margin: 0 0 20px; text-align: right; }
.ship-hint { margin: -8px 0 20px; padding: 10px 14px; background: var(--gold-soft); color: var(--ink); }
.summary .btn-block + .form-error { margin: 8px 0 0; }
.summary-more { margin: 16px 0 12px; text-align: center; font-size: .85rem; letter-spacing: .08em; }
.summary-more a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1000px) {
  .cart { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .line { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .line-total { grid-column: 2; text-align: left; font-weight: 600; }
  .line-name { font-size: 1.2rem; }
  .summary { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile-media img, .card-media img, .thumb, .size-btn { transition: none; }
}
