/* =============================================================================
   ALTAY — product detail page (productdetails/*.tpl) and the „Artikel hinzugefügt"
   dialog (productdetails/pushed_success.tpl in JTL's modal). docs/03 · Artikelseite,
   docs/02 · dialog + lightbox + sticky bar, docs/05 · Product detail, docs/06.
   Every value is the rendered design „Altay A Product" (id=p17) and „Altay A Header"
   (dialog). Behaviour: js/altay-product.js. Classes: al-pdp*, al-lb*, al-sticky-buy*,
   al-added*.
   ========================================================================== */

/* ---- page frame ------------------------------------------------------------ */
.al-pdp { padding-top: 22px; }
.al-pdp__crumb { margin-bottom: 22px; }
.al-pdp__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* ---- gallery: 84px thumb rail + 4:5 stage (part product.images = .rz-gallery) ---- */
.al-pdp__gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; position: sticky; top: 140px; min-width: 0; }
.al-pdp__rail { position: relative; min-height: 0; --mt: 0px; --mb: 0px; }
.al-pdp__rail.has-up { --mt: 48px; }
.al-pdp__rail.has-down { --mb: 48px; }
.al-pdp__thumbs {
  position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(transparent 0, #000 var(--mt), #000 calc(100% - var(--mb)), transparent 100%);
  mask-image: linear-gradient(transparent 0, #000 var(--mt), #000 calc(100% - var(--mb)), transparent 100%);
}
.al-pdp__thumbs::-webkit-scrollbar { width: 0; height: 0; }
:where(.jtlw) .al-pdp__thumb, .al-pdp__thumb {
  position: relative; flex-shrink: 0; display: block; width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; border: none; padding: 0;
  overflow: hidden; cursor: pointer; background: var(--hover);
  outline: 0 solid var(--ink); outline-offset: -2px; opacity: .6; transition: opacity .2s;
}
.al-pdp__thumb:hover { opacity: .85; }
.al-pdp__thumb.is-active { outline-width: 2px; opacity: 1; }
.al-pdp__thumbimg { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.al-pdp__railbtn {
  position: absolute; left: 50%; margin-left: -17px; width: 34px; height: 34px; border-radius: 50%; border: none; padding: 1px 6px;
  background: var(--surface); box-shadow: 0 4px 14px -4px rgba(0,0,0,.3); cursor: pointer; font: 14px Arial, sans-serif; color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.al-pdp__railbtn--up { top: 4px; }
.al-pdp__railbtn--down { bottom: 4px; }
.al-pdp__rail.has-up .al-pdp__railbtn--up, .al-pdp__rail.has-down .al-pdp__railbtn--down { opacity: 1; pointer-events: auto; }

.al-pdp__stage { position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--hover); cursor: zoom-in; min-width: 0; }
.al-pdp__slides { position: absolute; inset: 0; }
.al-pdp__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block;
  opacity: 0; transform: scale(1); transform-origin: var(--ox, 50%) var(--oy, 50%);
  transition: opacity .5s, transform .45s var(--ease-out);
}
.al-pdp__slide.is-active { opacity: 1; }
.al-pdp__stage.is-zoom .al-pdp__slide.is-active { transform: scale(1.8); }
.al-pdp__badges { position: absolute; left: 18px; top: 18px; display: flex; gap: 6px; pointer-events: none; }
.al-pdp__badge { background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; }
.al-pdp__badge--sale { background: var(--accent); color: var(--on-accent); font-weight: 700; }
:where(.jtlw) .al-pdp__full, .al-pdp__full {
  position: absolute; right: 18px; top: 18px; height: 40px; padding: 0 14px; border-radius: 999px; border: none;
  background: var(--surface); cursor: pointer; display: flex; align-items: center; gap: 8px; font: 600 13px var(--font-body); color: var(--ink);
}
.al-pdp__arrows { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 6px; }
:where(.jtlw) .al-pdp__arrow, .al-pdp__arrow {
  width: 42px; height: 42px; border-radius: 50%; border: none; padding: 1px 6px; background: var(--surface); cursor: pointer;
  font: 16px Arial, sans-serif; color: var(--ink);
}
.al-pdp__count {
  position: absolute; left: 18px; bottom: 22px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 999px; padding: 6px 12px; pointer-events: none;
}
.al-pdp__countno { font-family: var(--font-mono); font-size: 12px; }
.al-pdp__countbar { width: 64px; height: 3px; border-radius: 3px; background: var(--track); overflow: hidden; }
.al-pdp__countfill { display: block; height: 100%; background: var(--ink); transition: width .4s; }
.al-pdp__dots { display: none; }

/* ---- buy column ------------------------------------------------------------- */
.al-pdp__buy { display: flex; flex-direction: column; gap: 22px; padding-top: 6px; min-width: 0; }
.al-pdp__form, .al-pdp__offer { display: contents; }
.al-pdp__brand {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
:where(.jtlw) .al-pdp__brand:hover, .al-pdp__brand:hover { color: var(--accent-ink); }
.al-pdp__title {
  margin: 10px 0 12px; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(36px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -.02em;
}
:where(.jtlw) .al-pdp__title { margin: 10px 0 12px; }
.al-pdp__rating { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.al-pdp__stars { color: var(--accent-ink); letter-spacing: 2px; }
.al-pdp__rcount { color: var(--muted); text-decoration: underline; }

.al-pdp__prices { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.al-pdp__price { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 40px; line-height: 1; }
.al-pdp__pricelabel { font-size: 14px; color: var(--muted); }
.al-pdp__was { color: var(--muted2); text-decoration: line-through; font-size: 18px; }
.al-pdp__save { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 4px 10px; }
.al-pdp__tax { font-size: 13px; color: var(--muted); margin-top: -14px; }
.al-pdp__tax a { color: var(--muted); text-decoration: underline; }
.al-pdp__pnote { font-size: 13px; color: var(--muted); margin-top: -14px; display: flex; flex-direction: column; gap: 6px; }
.al-pdp__pnote:empty { display: none; }
.al-pdp__pnote .bulk-prices table { width: 100%; font-size: 13px; }
.al-pdp__pnote .bulk-prices td, .al-pdp__pnote .bulk-prices th { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.al-pdp__pnote .bulk-prices tr.is-active td { color: var(--ink); font-weight: 600; }
.al-pdp__pnote .bulk-prices__h { color: var(--ink); font-size: 14px; margin-bottom: 4px; }

/* variations (variation.tpl): colours as 40px rings, everything else as a size grid */
.al-pdp__vars { display: flex; flex-direction: column; gap: 22px; }
.al-pdp__vars:empty { display: none; }
.al-pdp__var { margin: 0; display: block; }
.al-pdp__varhead { font-size: 14px; margin-bottom: 10px; }
.al-pdp__varhead--split { display: flex; justify-content: space-between; }
.al-pdp__sizechart { text-decoration: underline; }
.al-pdp__vars input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.al-pdp__swatches { display: flex; gap: 10px; flex-wrap: wrap; }
:where(.jtlw) .al-pdp-sw, .al-pdp-sw {
  position: relative; display: block; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink); cursor: pointer; transition: box-shadow .2s; margin: 0; overflow: hidden; background: var(--hover);
}
.al-pdp-sw.active, .al-pdp-sw:has(input:checked) { box-shadow: 0 0 0 2px var(--ink); }
.al-pdp-sw__dot { display: block; width: 100%; height: 100%; border-radius: 50%; background: center / cover no-repeat; }
.al-pdp-sw.not-available, .al-pdp-sw.swatches-sold-out { opacity: .45; cursor: not-allowed; }
.al-pdp__sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; transform: translateX(0); transition: transform .1s; }
:where(.jtlw) .al-pdp-size, .al-pdp-size {
  position: relative; display: flex; align-items: center; justify-content: center; height: 50px; margin: 0; padding: 0 6px;
  border-radius: 12px; border: 1px solid var(--line2); background: transparent; color: var(--ink);
  font: 600 15px var(--font-body); cursor: pointer; overflow: hidden; transition: all .2s; text-align: center;
}
.al-pdp-size:hover { border-color: var(--ink); }
.al-pdp-size.active, .al-pdp-size:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.al-pdp-size__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-pdp-size__strike {
  position: absolute; left: -10%; right: -10%; top: 50%; height: 1px; background: var(--muted2); transform: rotate(-20deg); opacity: 0;
}
.al-pdp-size.swatches-sold-out, .al-pdp-size.swatches-not-in-stock, .al-pdp-size.not-available { color: var(--muted2); cursor: not-allowed; }
.al-pdp-size.swatches-sold-out:hover, .al-pdp-size.swatches-not-in-stock:hover, .al-pdp-size.not-available:hover { border-color: var(--line2); }
.al-pdp-size.swatches-sold-out .al-pdp-size__strike, .al-pdp-size.swatches-not-in-stock .al-pdp-size__strike, .al-pdp-size.not-available .al-pdp-size__strike { opacity: 1; }
.al-pdp-size .badge-not-available { display: none; }
.al-pdp__sizes.is-shake { animation: al-pdp-shake .28s linear; }
/* values longer than a size („anthrazit 450g/m²", variation.tpl $rzLong): chips as wide as
   their name, wrapping onto more rows; a very long name wraps inside its chip */
.al-pdp__sizes--wide { display: flex; flex-wrap: wrap; }
:where(.jtlw) .al-pdp__sizes--wide .al-pdp-size, .al-pdp__sizes--wide .al-pdp-size {
  flex: 0 1 auto; min-width: 64px; max-width: 100%; height: auto; min-height: 50px; padding: 7px 16px; line-height: 1.25;
}
.al-pdp__sizes--wide .al-pdp-size__label { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
@keyframes al-pdp-shake { 0%, 50%, 100% { transform: translateX(0); } 25%, 75% { transform: translateX(6px); } }
.al-pdp__warn { font-size: 13px; color: var(--accent-ink); margin-top: 8px; height: 16px; opacity: 0; transition: opacity .2s; }
.al-pdp__warn.is-on { opacity: 1; }
.al-pdp__var--text .al-input { height: 50px; }
.al-pdp__var .updatingStockInfo { display: none; }

/* buy row (basket.tpl, part product.basket = .product-buy): stepper · CTA · heart */
.al-pdp__buyrow { display: flex; gap: 10px; flex-wrap: wrap; }
.al-pdp__qty { display: flex; align-items: center; border: 1px solid var(--line2); border-radius: 999px; height: 58px; flex-shrink: 0; }
:where(.jtlw) .al-pdp__qbtn, .al-pdp__qbtn {
  width: 46px; height: 100%; border: none; padding: 1px 6px; background: transparent; cursor: pointer; font: 18px Arial, sans-serif; color: var(--ink);
}
:where(.jtlw) .al-pdp__qin, .al-pdp__qin {
  width: 22px; min-width: 22px; field-sizing: content; height: auto; padding: 0; border: 0; background: transparent; color: var(--ink);
  font: 600 16px var(--font-body); text-align: center; -moz-appearance: textfield; appearance: textfield; outline: none; box-shadow: none;
}
.al-pdp__qin::-webkit-outer-spin-button, .al-pdp__qin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.al-pdp__qunit { font-size: 13px; color: var(--muted); margin-right: 4px; }
:where(.jtlw) .al-pdp__cta, .al-pdp__cta {
  flex: 1; min-width: 0; height: 58px; border-radius: 999px; border: none; padding: 1px 6px; background: var(--accent); color: var(--on-accent);
  font: 600 16px var(--font-body); cursor: pointer; position: relative; overflow: hidden; transition: background .3s;
}
.al-pdp__cta[disabled] { opacity: .5; cursor: not-allowed; }
.al-pdp__cta-a { display: block; transform: translateY(0); transition: transform .4s var(--ease-out); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-pdp__cta-b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: translateY(160%); transition: transform .4s var(--ease-out); }
.al-pdp__buyrow.is-added .al-pdp__cta { background: var(--success); }
.al-pdp__buyrow.is-added .al-pdp__cta-a { transform: translateY(-160%); }
.al-pdp__buyrow.is-added .al-pdp__cta-b { transform: translateY(0); }
.al-pdp__cta.is-busy .al-pdp__cta-a { opacity: .6; }
.al-pdp__wishwrap { display: contents; }
/* Whatever a JTL plugin puts into the buy row (express-checkout buttons such as PayPal,
   instalment notes, badges …) never squeezes stepper · CTA · heart: every child that is not
   ours takes its own full-width line under them. The CTA keeps a floor so it can't collapse. */
.al-pdp__buyrow > :not(.al-pdp__qty, .al-pdp__cta, .al-pdp__wishwrap, .al-pdp__hint, input, script, style, template, link, noscript) {
  flex: 1 0 100%; order: 10; min-width: 0; max-width: 100%; margin-left: 0; margin-right: 0;
}
:where(.jtlw) .al-pdp__cta, .al-pdp__cta { min-width: 180px; }
:where(.jtlw) .al-pdp__wish, .al-pdp__wish {
  width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--ink); padding: 1px 6px; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--ink); transform: scale(1); transition: transform .35s var(--ease-spring);
}
.al-pdp__wish svg { flex-shrink: 0; }
.al-pdp__wish.on-list { color: var(--accent-ink); }
.al-pdp__wish.on-list svg path { fill: var(--accent); stroke: var(--accent); }
.al-pdp__wish.is-pop, .al-pdp__wish.press { transform: scale(1.18); }
.al-pdp__hint { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.al-pdp__hint p { margin: 0; }

/* stock box (stock.tpl): availability + cut-off countdown, then three USPs */
.al-pdp__trust { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 14px; }
.al-pdp__stock { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.al-pdp__stock:last-child { border-bottom: 0; }
.al-pdp__dotok { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(59,138,74,.18); }
.al-pdp__dotok.is-warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(201,138,27,.18); }
.al-pdp__dotok.is-out { background: var(--danger); box-shadow: 0 0 0 4px rgba(181,68,58,.18); }
.al-pdp__avail .status-icon { display: none; }
.al-pdp__avail .status { font-weight: 700; color: inherit; }
.al-pdp__stocktxt .estimated-delivery-info { display: none; }
.al-pdp__usps { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.al-pdp__usp { padding: 14px 18px; border-right: 1px solid var(--line); }
.al-pdp__usp:last-child { border-right: 0; }
.al-pdp__uspnote { color: var(--muted); font-size: 13px; }
.al-pdp__extra { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 13px; color: var(--muted); margin-top: -10px; }
.al-pdp__extra:empty { display: none; }
:where(.jtlw) .al-pdp__ask, .al-pdp__ask { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* ---- accordions (tabs.tpl) + tablet tab bar --------------------------------- */
.al-pdp-tabs { display: none; }
.al-pdp-acc { border-top: 1px solid var(--line); }
.al-pdp-acc__item { border-bottom: 1px solid var(--line); }
:where(.jtlw) .al-pdp-acc__btn, .al-pdp-acc__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border: none; background: transparent;
  cursor: pointer; font: 600 16px var(--font-body); color: var(--ink); text-align: left; gap: 12px;
}
.al-pdp-acc__plus { font-size: 22px; font-weight: 400; transform: none; transition: transform .3s; }
.al-pdp-acc__item.is-open .al-pdp-acc__plus { transform: rotate(45deg); }
.al-pdp-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.al-pdp-acc__item.is-open .al-pdp-acc__panel { grid-template-rows: 1fr; }
.al-pdp-acc__clip { overflow: hidden; min-height: 0; }
.al-pdp-acc__item:not(.is-open) .al-pdp-acc__clip { visibility: hidden; transition: visibility 0s .4s; }
.al-pdp-acc__body { padding: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.al-pdp-acc__body p { margin: 0; }
.al-pdp-acc__body p + p { margin-top: 10px; }
.al-pdp-acc__body a { text-decoration: underline; }
.al-pdp-acc__list ul, .al-pdp-acc__text ul { display: flex; flex-direction: column; gap: 8px; }
.al-pdp-acc__list li, .al-pdp-acc__text li { display: flex; gap: 10px; }
.al-pdp-acc__list li::before, .al-pdp-acc__text li::before { content: '—'; color: var(--accent-ink); flex-shrink: 0; }
.al-pdp-acc__text img { max-width: 100%; height: auto; border-radius: 12px; }
.al-pdp__specs { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; }
.al-pdp__spk { color: var(--muted); }
.al-pdp__spv { min-width: 0; overflow-wrap: anywhere; }
.al-pdp__spv a { text-decoration: underline; }
.al-pdp-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #1A1814; }
.al-pdp-video + .al-pdp-video { margin-top: 12px; }
.al-pdp-video__poster, .al-pdp-video video, .al-pdp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: cover; background: center 40% / cover no-repeat; }
:where(.jtlw) .al-pdp-video__play, .al-pdp-video__play {
  position: absolute; inset: 0; border: none; padding: 1px 6px; background: rgba(20,18,15,.35); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-family: Arial, sans-serif;
}
.al-pdp-video__icon { width: 68px; height: 68px; border-radius: 50%; background: #FBF9F4; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #1A1814; padding-left: 4px; }
.al-pdp-video__label { position: absolute; left: 14px; top: 12px; font-size: 12px; color: #FBF9F4; font-family: var(--font-mono); pointer-events: none; }
.al-pdp-video.is-playing .al-pdp-video__play, .al-pdp-video.is-playing .al-pdp-video__label, .al-pdp-video.is-playing .al-pdp-video__poster { display: none; }
.al-pdp-acc__body .media-files, .al-pdp-acc__body .mediafiles { font-size: 14px; }
.al-pdp-acc__body .form-group { margin-bottom: 12px; }

/* ---- „Das könnte dir auch gefallen" (shared card, the design's plain variant) ---- */
.al-pdp-rel { padding-top: 110px; }
.al-pdp-rel__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.al-pdp-rel__more { font-weight: 600; border-bottom: 1px solid currentColor; white-space: nowrap; }
.al-pdp-rel + .al-pdp-rel { padding-top: 72px; }
.al-pdp-rel .al-card__badges, .al-pdp-rel .al-card__acts, .al-pdp-rel .al-card__rate,
.al-pdp-rel .al-card__was, .al-pdp-rel .al-card__dots, .al-pdp-rel .rz-countdown { display: none; }
.al-pdp-rel .al-card__name { margin: 2px 0; }
.al-pdp-rel .al-card:hover .al-card__img { transform: scale(1.06); }

/* ---- reviews (reviews.tpl, review_item.tpl) ---------------------------------- */
.al-pdp-rev { padding-top: 110px; }
.al-pdp-rev__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 56px; }
.al-pdp-rev__title { margin: 0 0 20px; }
.al-pdp-rev__score { display: flex; align-items: baseline; gap: 10px; }
.al-pdp-rev__avg { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 72px; line-height: 1; }
.al-pdp-rev__n { color: var(--muted); }
.al-pdp-rev__dist { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
:where(.jtlw) .al-pdp-rev__row, .al-pdp-rev__row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }
.al-pdp-rev__row.is-active { font-weight: 700; }
.al-pdp-rev__star { width: 20px; flex-shrink: 0; }
.al-pdp-rev__bar { flex: 1; height: 6px; background: var(--track); border-radius: 6px; overflow: hidden; }
.al-pdp-rev__fill { display: block; height: 100%; background: var(--ink); border-radius: 6px; }
.al-pdp-rev__pct { width: 34px; flex-shrink: 0; text-align: right; color: var(--muted); }
.al-pdp-rev__form { margin: 0; }
:where(.jtlw) .al-pdp-rev__write, .al-pdp-rev__write {
  margin-top: 24px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: transparent;
  font: 600 14px var(--font-body); cursor: pointer; color: var(--ink); transition: background .2s, color .2s;
}
.al-pdp-rev__write:hover { background: var(--ink); color: var(--paper); }
.al-pdp-rev__list { display: flex; flex-direction: column; min-width: 0; }
.al-pdp-rev__item { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
.al-pdp-rev__name { font-weight: 600; }
.al-pdp-rev__meta { font-size: 13px; color: var(--muted); }
.al-pdp-rev__ok { font-size: 12px; color: var(--success); margin-top: 6px; }
.al-pdp-rev__stars { color: var(--accent-ink); letter-spacing: 2px; font-size: 14px; }
.al-pdp-rev__head { font-weight: 600; margin: 6px 0; }
.al-pdp-rev__text { margin: 0; line-height: 1.55; color: var(--ink2); }
.al-pdp-rev__reply { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--hover); font-size: 14px; color: var(--ink2); }
.al-pdp-rev__helpful { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--muted); }
:where(.jtlw) .al-pdp-rev__helpful button, .al-pdp-rev__helpful button { border: 1px solid var(--line2); background: transparent; border-radius: 999px; height: 30px; padding: 0 12px; font: 500 12px var(--font-body); color: var(--ink); cursor: pointer; }
.al-pdp-rev__empty { color: var(--muted); padding: 24px 0; border-bottom: 1px solid var(--line); }
.al-pdp-rev .pagination, .al-pdp-rev .al-pager { margin-top: 28px; }

/* ---- sticky bar: up when the CTA has left the screen ------------------------- */
.al-sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -20px 40px -24px rgba(0,0,0,.25); transform: translateY(110%); transition: transform .45s var(--ease-out);
}
.al-sticky-buy.is-on { transform: translateY(0); }
.al-sticky-buy__in { max-width: var(--container); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 16px; }
.al-sticky-buy__img { width: 48px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--hover); }
.al-sticky-buy__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.al-sticky-buy__txt { flex: 1; min-width: 0; }
.al-sticky-buy__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-sticky-buy__var { font-size: 13px; color: var(--muted); }
.al-sticky-buy__price { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; }
.al-sticky-buy__wish { display: none; }
:where(.jtlw) .al-sticky-buy__btn, .al-sticky-buy__btn {
  height: 48px; padding: 0 28px; border-radius: 999px; border: none; background: var(--ink); color: var(--paper);
  font: 600 15px var(--font-body); cursor: pointer; transition: background .2s; white-space: nowrap;
}
.al-sticky-buy__btn:hover { background: var(--accent); color: var(--on-accent); }
.al-sticky-buy__sum { display: none; }

/* ---- lightbox (product_images_modal.tpl, part product.gallery = .rz-imgmodal) ---- */
.al-lb {
  position: fixed; inset: 0; z-index: 1060; background: #0E0D0B; color: #F3EFE6; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .35s, visibility 0s .35s;
}
.al-lb.is-open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .35s; }
.al-lb__bar { display: flex; align-items: center; gap: 16px; padding: 18px 28px; }
.al-lb__no { font-family: var(--font-mono); font-size: 13px; }
.al-lb__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; color: #B5AE9F; }
.al-lb__zoom { display: flex; align-items: center; gap: 4px; background: #24211C; border-radius: 999px; padding: 4px; }
:where(.jtlw) .al-lb__zbtn, .al-lb__zbtn { width: 36px; height: 36px; border-radius: 50%; border: none; padding: 1px 6px; background: transparent; color: #F3EFE6; font: 18px Arial, sans-serif; cursor: pointer; }
.al-lb__pct { min-width: 52px; text-align: center; font-family: var(--font-mono); font-size: 12px; }
:where(.jtlw) .al-lb__fit, .al-lb__fit { height: 36px; padding: 0 12px; border-radius: 999px; border: none; background: transparent; color: #B5AE9F; font: 500 12px var(--font-body); cursor: pointer; }
:where(.jtlw) .al-lb__close, .al-lb__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3A362F; padding: 1px 6px; background: transparent; color: #F3EFE6; font: 16px Arial, sans-serif; cursor: pointer; }
.al-lb__stage { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: zoom-in; user-select: none; min-height: 0; }
.al-lb__stage.is-zoomed { cursor: grab; }
.al-lb__stage.is-drag { cursor: grabbing; }
.al-lb__frame {
  height: calc(100% - 24px); aspect-ratio: 4 / 5; max-width: calc(100% - 160px); border-radius: 12px; overflow: hidden;
  transform: scale(.94); transition: transform .35s var(--ease-out); will-change: transform; background: #24211C;
}
.al-lb.is-open .al-lb__frame { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--z, 1)); }
.al-lb__stage.is-drag .al-lb__frame { transition: none; }
.al-lb__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; pointer-events: none; }
:where(.jtlw) .al-lb__nav, .al-lb__nav {
  position: absolute; top: 50%; margin-top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 1px solid #3A362F; padding: 1px 6px;
  background: rgba(14,13,11,.6); color: #F3EFE6; font: 20px Arial, sans-serif; cursor: pointer;
}
.al-lb__nav--prev { left: 24px; }
.al-lb__nav--next { right: 24px; }
.al-lb__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 12px; color: #8F887A; opacity: 1; transition: opacity .3s; pointer-events: none; white-space: nowrap; }
.al-lb__stage.is-zoomed .al-lb__hint { opacity: 0; }
.al-lb__strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 28px 22px; scroll-behavior: smooth; justify-content: center; }
.al-lb__strip.is-long { justify-content: flex-start; }
.al-lb__strip::-webkit-scrollbar { height: 0; }
:where(.jtlw) .al-lb__thumb, .al-lb__thumb {
  flex-shrink: 0; width: 60px; height: 76px; border-radius: 8px; border: none; padding: 0; overflow: hidden; cursor: pointer; background: #24211C;
  outline: 0 solid #F3EFE6; outline-offset: 2px; opacity: .5; transition: opacity .2s;
}
.al-lb__thumb.is-active { outline-width: 2px; opacity: 1; }
.al-lb__thumbimg { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
html.al-lb-on, html.al-lb-on body { overflow: hidden; }

/* ---- „Artikel hinzugefügt" (pushed_success.tpl in JTL's dialog, part product.added = .rz-added)
   720px, radius 28, ✓ springs in; scrim ink 45 % + 3px blur; closes on Esc / scrim (Bootstrap). */
.modal-dialog:has(.al-added) { max-width: min(720px, calc(100vw - 32px)); width: min(720px, calc(100vw - 32px)); margin-left: auto; margin-right: auto; }
.modal-content:has(.al-added) {
  background: var(--surface); color: var(--ink); border: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-dialog);
}
.modal-content:has(.al-added) > .modal-header, .modal-content:has(.al-added) .modal-footer { display: none; }
.modal-body:has(> .al-added) { padding: 0; }
body:has(.modal.show .al-added) .modal-backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
body:has(.modal.show .al-added) .modal-backdrop.show { opacity: 1; }
.modal:has(.al-added).fade .modal-dialog { transform: translateY(16px) scale(.96); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.modal:has(.al-added).show .modal-dialog { transform: none; }
.al-added { font-family: var(--font-body); color: var(--ink); text-align: left; line-height: normal; }
.al-added__head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.al-added__check {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; animation: al-added-pop .5s var(--ease-spring) .15s both;
}
@keyframes al-added-pop { from { transform: scale(0); } to { transform: scale(1); } }
.al-added__title { flex: 1; font-size: 16px; }
:where(.jtlw) .al-added__close, .al-added__close {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line2); padding: 1px 6px; background: transparent; cursor: pointer;
  color: var(--ink); font: 13.3333px Arial, sans-serif; position: static; opacity: 1; text-shadow: none;
}
.al-added__item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 22px 24px; }
.al-added__img { display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--hover); }
.al-added__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.al-added__info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.al-added__brand { font-size: 13px; color: var(--muted); }
:where(.jtlw) .al-added__name, .al-added__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 28px; line-height: 1.1; color: var(--ink); }
.al-added__name:hover { color: var(--ink); }
.al-added__var { font-size: 14px; color: var(--ink2); }
.al-added__price { font-size: 20px; font-weight: 600; }
.al-added__sum { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: var(--hover); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; }
.al-added__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 24px 22px; }
:where(.jtlw) .al-added__btn, .al-added__btn {
  height: 52px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center; font: 600 15px var(--font-body); text-decoration: none; transition: background .2s, color .2s;
}
.al-added__btn:hover { background: var(--ink); color: var(--paper); }
:where(.jtlw) .al-added__btn--go, .al-added__btn--go { border: 0; background: var(--accent); color: var(--on-accent); }
.al-added__btn--go:hover { background: var(--ink); color: var(--paper); }
.al-added__xsell { padding: 18px 24px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.al-added__xh { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-bottom: 12px; }
.al-added__xgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
:where(.jtlw) .al-added__x, .al-added__x { display: flex; gap: 10px; align-items: center; color: var(--ink); min-width: 0; }
.al-added__ximg { width: 44px; height: 54px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--hover); }
.al-added__ximg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.al-added__xt { min-width: 0; }
.al-added__xname { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-added__xprice { font-size: 13px; color: var(--muted); }

/* ---- smaller pieces the shop prints around the design ------------------------ */
.al-pdp-note { padding-top: 16px; }
.al-pdp__gallery--single { grid-template-columns: minmax(0, 1fr); }
.al-pdp__varpreview { position: absolute; top: 0 !important; right: 0; width: calc(100% - 98px); z-index: 4; pointer-events: none; border-radius: 24px; overflow: hidden; background: var(--hover); }
.al-pdp__gallery--single .al-pdp__varpreview { width: 100%; }
.al-pdp__varpreview img { display: block; width: 100%; height: auto; }
.al-pdp__varpreview .variation-image-preview-title { position: absolute; left: 18px; bottom: 18px; background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.al-pdp-size { flex-direction: column; gap: 1px; }
.al-pdp-size .variation-badge { font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.1; white-space: nowrap; }
.al-pdp-size.active .variation-badge { color: inherit; opacity: .75; }
.al-pdp-sw .variation-badge { display: none; }
.al-pdp__timer:empty { display: none; }
.al-pdp__timer { margin-top: -8px; }
.al-pdp__cfg { display: flex; flex-direction: column; gap: 10px; }
.al-pdp__configurator { margin-top: 56px; }
.al-pdp-rev__all { font-size: 13px; text-decoration: underline; margin-top: 4px; }
.al-pdp-video__desc { margin-top: 10px; font-size: 14px; }
.al-pdp-video--embed { background: var(--hover); }
.al-pdp-video--embed > * { position: absolute; inset: 0; }
.al-stockline { font-size: 13px; }

/* ---- tablet 768–1099 (docs/06, T2): 1.05fr / 1fr, four thumbs under the stage,
   underline tabs instead of accordions ------------------------------------------ */
@media (max-width: 1099px) {
  .al-pdp__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; }
  .al-pdp__gallery { grid-template-columns: minmax(0, 1fr); gap: 10px; top: 80px; }
  .al-pdp__stage { order: -1; border-radius: 20px; }
  .al-pdp__rail { --mt: 0px !important; --mb: 0px !important; }
  .al-pdp__thumbs { position: static; flex-direction: row; overflow-x: auto; overflow-y: hidden; gap: 10px; }
  .al-pdp__thumb { width: calc((100% - 30px) / 4); opacity: 1; }   /* the tablet row is not dimmed; the active one has the outline */
  /* tablet type (design T2): title 42/1, price 34 on Gloock's own line, a quieter brand line */
  .al-pdp__title { font-size: 42px; line-height: 1; }
  .al-pdp__prices .al-pdp__price { font-size: 34px; line-height: normal; }
  .al-pdp__brand { font-size: 11px; font-weight: 500; }
  .al-pdp__railbtn { display: none; }
  .al-pdp__count { left: 14px; bottom: 14px; }
  .al-pdp__arrows { right: 14px; bottom: 14px; }
  .al-pdp__full { right: 14px; top: 14px; }
  .al-pdp__badges { left: 14px; top: 14px; }
  .al-pdp__varpreview { width: 100%; }
  .al-pdp__buy { gap: 18px; padding-top: 0; }
  .al-pdp__cta-sum { display: none; }
  .al-pdp__qty, .al-pdp__cta, .al-pdp__wish { height: 52px; }
  .al-pdp__wish { width: 52px; }
  .al-pdp__usp { padding: 12px 12px; }
  .al-pdp__stock { padding: 12px 14px; }
  /* the accordions become underline tabs */
  .al-pdp-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  :where(.jtlw) .al-pdp-tabs__btn, .al-pdp-tabs__btn {
    flex-shrink: 0; padding: 0 0 10px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none;
    font: 600 14px var(--font-body); color: var(--muted); cursor: pointer; white-space: nowrap;
  }
  .al-pdp-tabs__btn.is-active { color: var(--ink); border-bottom-color: var(--ink); }
  .al-pdp-acc { border-top: 0; margin-top: -4px; }
  .al-pdp-acc__item { border-bottom: 0; display: none; }
  .al-pdp-acc__item.is-open { display: block; }
  .al-pdp-acc__btn { display: none; }
  .al-pdp-acc__body { padding: 0 0 8px; font-size: 14px; }
  .al-pdp-rel { padding-top: 80px; }
  .al-pdp-rel__grid > :nth-child(n+4) { display: none; }
  .al-pdp-rev { padding-top: 80px; }
  .al-pdp-rev__grid { gap: 32px; }
  .al-pdp-rev__item { grid-template-columns: 140px minmax(0, 1fr); gap: 18px; }
  .al-sticky-buy__in { padding: 10px var(--gutter); }
  .al-lb__bar { padding: 14px 18px; }
  .al-lb__frame { max-width: calc(100% - 120px); }
  .al-lb__nav--prev { left: 12px; }
  .al-lb__nav--next { right: 12px; }
}

/* ---- phone < 768 (docs/06, M4 / M4b): swipe gallery 480px with dots and a counter
   pill, one column, accordions, a sticky bar (heart + accent CTA with price), and
   „Artikel hinzugefügt" as a bottom sheet ------------------------------------------ */
@media (max-width: 767px) {
  .al-pdp { padding-top: 0; }
  .al-pdp__crumb { display: none; }
  .al-pdp__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .al-pdp__gallery { position: relative; top: auto; margin: 0 calc(-1 * var(--gutter)); display: block; }
  .al-pdp__rail { display: none; }
  .al-pdp__stage { aspect-ratio: auto; height: 480px; border-radius: 0; cursor: default; }
  .al-pdp__slides { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .al-pdp__slides::-webkit-scrollbar { height: 0; }
  .al-pdp__slide { position: static; flex: 0 0 100%; opacity: 1; scroll-snap-align: start; transition: none; }
  .al-pdp__stage.is-zoom .al-pdp__slide.is-active { transform: none; }
  .al-pdp__full, .al-pdp__arrows { display: none; }
  .al-pdp__badges { left: 14px; top: 14px; }
  .al-pdp__badge { padding: 4px 10px; }
  .al-pdp__count { left: auto; right: 14px; top: 14px; bottom: auto; padding: 4px 10px; gap: 0; }
  .al-pdp__countno { font-weight: 500; }
  .al-pdp__countbar { display: none; }
  .al-pdp__dots { display: flex; position: absolute; left: 0; right: 0; bottom: 14px; justify-content: center; gap: 5px; pointer-events: none; }
  .al-pdp__dot { height: 6px; width: 6px; border-radius: 6px; background: rgba(251,249,244,.55); transition: width .3s; }
  .al-pdp__dot.is-active { width: 18px; background: #FBF9F4; }
  .al-pdp__varpreview { display: none !important; }

  .al-pdp__buy { padding: 18px 0 0; gap: 12px; }
  .al-pdp__brand { font-size: 11px; font-weight: 500; display: block; }   /* its own 11px line, not a 16px line box */
  .al-pdp__title { font-size: 34px; line-height: 1.02; margin: 12px 0; }
  .al-pdp__rating { font-size: 13px; }
  .al-pdp__stars { letter-spacing: 0; }
  .al-pdp__rcount { text-decoration: none; }
  .al-pdp__prices { gap: 10px; }
  .al-pdp__price, .al-pdp__prices .al-pdp__price { font-size: 32px; line-height: normal; }   /* phone: the price row is as tall as Gloock's own line */
  .al-pdp__was { font-size: 16px; }
  .al-pdp__save, .al-pdp__rates { display: none; }
  .al-pdp__tax { font-size: 12px; margin-top: -8px; }
  .al-pdp__vars { gap: 12px; }
  .al-pdp__varhead { margin-bottom: 8px; }
  .al-pdp__swatches { gap: 8px; }
  .al-pdp-sw { width: 36px; height: 36px; border: 0; box-shadow: 0 0 0 1px var(--line2); }
  .al-pdp-sw.active, .al-pdp-sw:has(input:checked) { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
  .al-pdp__sizes { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
  .al-pdp-size { height: 46px; font-size: 14px; }
  .al-pdp__sizes--wide .al-pdp-size { min-height: 46px; padding: 6px 14px; }
  .al-pdp-size__strike { display: none; }
  .al-pdp-size.swatches-sold-out .al-pdp-size__label, .al-pdp-size.swatches-not-in-stock .al-pdp-size__label, .al-pdp-size.not-available .al-pdp-size__label { text-decoration: line-through; }
  .al-pdp__warn { margin-top: 6px; }
  /* the in-page buy row hands over to the sticky bar */
  .al-pdp__buyrow > .al-pdp__qty, .al-pdp__buyrow > .al-pdp__cta, .al-pdp__buyrow > .al-pdp__wishwrap { display: none; }
  /* …but a hint or anything a plugin added (PayPal …) stays in the page */
  .al-pdp__buyrow:not(:has(> .al-pdp__hint, > :not(.al-pdp__qty, .al-pdp__cta, .al-pdp__wishwrap, input, script, style, template, link, noscript))) { display: none; }
  .al-pdp__trust { border-radius: 14px; background: var(--surface); font-size: 13px; }
  .al-pdp__stock { padding: 12px 14px; gap: 10px; border-bottom: 0; }
  .al-pdp__dotok { width: 8px; height: 8px; box-shadow: none; }
  .al-pdp__avail, .al-pdp__avail .status { font-weight: 400; }
  [data-al-cutoff-wrap] { display: none; }
  .al-pdp__stocktxt b[data-al-deliver] { font-weight: 400; }
  .al-pdp__usps { display: none; }
  .al-pdp__extra { margin-top: 0; }
  .al-pdp-acc { border-top: 0; }
  .al-pdp-acc__btn { height: 52px; padding: 0; font-size: 15px; }
  .al-pdp-acc__plus { font-size: 20px; }
  .al-pdp-acc__body { padding: 0 0 14px; font-size: 14px; }
  .al-pdp__specs { grid-template-columns: 110px 1fr; gap: 6px 12px; }

  .al-pdp-rel { padding-top: 40px; }
  .al-pdp-rel__head { margin-bottom: 16px; }
  .al-pdp-rel__title { font-size: 26px; }
  .al-pdp-rel__more { font-size: 14px; }
  .al-pdp-rel__grid > :nth-child(n+4) { display: block; }
  .al-pdp-rev { padding-top: 48px; }
  .al-pdp-rev__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .al-pdp-rev__avg { font-size: 56px; }
  .al-pdp-rev__item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0; }

  /* sticky bar: always there on the phone — heart + accent CTA with the price */
  .al-sticky-buy { transform: none; box-shadow: none; }
  .al-sticky-buy__in { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .al-sticky-buy__img, .al-sticky-buy__txt, .al-sticky-buy__price { display: none; }
  .al-sticky-buy__wish { display: contents; }
  .al-sticky-buy__wish .al-pdp__wish { width: 52px; height: 52px; }
  .al-sticky-buy__btn { flex: 1; height: 52px; padding: 0 16px; background: var(--accent); color: var(--on-accent); }
  .al-sticky-buy__sum { display: inline; }
  body:has(.al-sticky-buy) { padding-bottom: 77px; }

  .al-lb__bar { padding: 10px 12px; gap: 10px; }
  .al-lb__name, .al-lb__fit { display: none; }
  .al-lb__frame { max-width: 100%; height: auto; width: 100%; }
  .al-lb__nav { display: none; }
  .al-lb__strip { padding: 10px 12px 16px; justify-content: flex-start; }
  .al-lb__hint { display: none; }

  /* M4b: the confirmation slides up as a bottom sheet */
  .modal-dialog:has(.al-added) { margin: 0; width: 100%; max-width: none; min-height: 100%; display: flex; align-items: flex-end; }
  .modal-content:has(.al-added) { border-radius: 28px 28px 0 0; background: var(--paper); }
  .modal:has(.al-added).fade .modal-dialog { transform: translateY(102%); }
  .modal:has(.al-added).show .modal-dialog { transform: none; }
  .al-added { padding: 12px 20px calc(30px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
  .al-added::before { content: ''; width: 44px; height: 5px; border-radius: 5px; background: var(--line2); margin: 0 auto; }
  .al-added__head { padding: 0; border: 0; gap: 10px; }
  .al-added__check { width: 28px; height: 28px; font-size: 13px; }
  .al-added__title { font-size: 16px; }
  .al-added__close { display: none; }
  .al-added__item { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 0; align-items: center; }
  .al-added__img { aspect-ratio: auto; height: 86px; border-radius: 12px; }
  .al-added__info { gap: 2px; }
  .al-added__brand { display: none; }
  .al-added__name { font-size: 22px; line-height: 1.15; }
  .al-added__var { font-size: 13px; color: var(--muted); }
  .al-added__price { font-size: 16px; font-weight: 700; }
  .al-added__sum { display: none; }
  .al-added__btns { gap: 8px; padding: 0; }
  .al-added__btn { height: 50px; font-size: 14px; }
  .al-added__xsell { display: none; }
}

/* „Alle n Bewertungen ansehen ›" under „Bewertung schreiben" on the product page */
:where(.jtlw) .al-pdp-rev__allpage, .al-pdp-rev__allpage { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.al-pdp-rev__allpage:hover { color: var(--ink); }

/* ==========================================================================
   Bewertungsseite (productdetails/reviews_page.tpl, ?bewertungen=1) — design: review_pages
   „Altay A Reviews" / „Altay B Reviews": product card + summary, sticky filter bar, cards
   in glass, write dialog. Bento takes its colours and display font from its own tokens.
   ========================================================================== */
.al-rv {
  --al-rv-glass: color-mix(in oklab, var(--paper) 84%, transparent);
  --al-rv-field: color-mix(in oklab, var(--ink) 4%, var(--paper));
  --al-rv-star: #FF9F0A; --al-rv-ok: #34C759;
}
.al-rv__headwrap { padding-top: 20px; }
.al-rv__headwrap .al-crumb { gap: 6px; margin-bottom: 18px; }
.al-rv__head { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: stretch; }
:where(.jtlw) .al-rv__prod, .al-rv__prod {
  display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px;
  color: var(--ink); transition: transform .35s var(--ease-spring);
}
.al-rv__prod:hover { transform: translateY(-2px); color: var(--ink); }
.al-rv__pic { width: 96px; height: 118px; border-radius: 14px; background: var(--track); flex-shrink: 0; overflow: hidden; }
.al-rv__pic img, .al-rv__wpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-rv__pinfo { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.al-rv__brand { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.al-rv__pname { font: var(--display-weight) 21px/1.15 var(--font-display); letter-spacing: -.01em; }
.al-rv__price { font-size: 16px; }
.al-rv__to { font-size: 13px; color: var(--accent-ink); }
.al-rv__sum {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) 220px; gap: 24px; align-items: center;
}
.al-rv__score { display: flex; flex-direction: column; gap: 6px; }
.al-rv__h { margin: 0; font: 600 15px var(--font-body); color: var(--accent-ink); letter-spacing: 0; }
.al-rv__avgrow { display: flex; align-items: baseline; gap: 8px; }
.al-rv__avg { font: var(--display-weight) 64px/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.al-rv__of { color: var(--muted); }
.al-rv__stars { display: flex; gap: 2px; font-size: 18px; color: var(--line2); }
.al-rv__stars .is-on { color: var(--al-rv-star); }
.al-rv__count { font-size: 13px; color: var(--muted); }
.al-rv__dist { display: flex; flex-direction: column; gap: 6px; }
:where(.jtlw) .al-rv__drow, .al-rv__drow {
  display: flex; align-items: center; gap: 10px; height: 24px; border-radius: 6px; padding: 0 6px; color: var(--ink); font-size: 12px; transition: background .2s;
}
.al-rv__drow:hover { background: var(--hover); color: var(--ink); }
.al-rv__drow.is-on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.al-rv__dstar { width: 22px; flex-shrink: 0; }
.al-rv__dbar { flex: 1; height: 7px; border-radius: 7px; background: var(--hover); overflow: hidden; }
.al-rv__dbar > span { display: block; height: 100%; border-radius: 7px; background: var(--al-rv-star); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.al-rv__dn { width: 26px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.al-rv__act { display: flex; flex-direction: column; gap: 10px; }
:where(.jtlw) .al-rv__write, .al-rv__write, :where(.jtlw) .al-rv__send, .al-rv__send {
  height: 44px; padding: 0 22px; border-radius: 999px; border: none; background: var(--accent); color: var(--on-accent);
  font: 600 15px var(--font-body); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 8px 20px -10px var(--accent); transition: transform .25s var(--ease-spring);
}
.al-rv__write:hover, .al-rv__send:hover { color: var(--on-accent); }
.al-rv__write:active, .al-rv__send:active { transform: scale(.95); }

.al-rv__listwrap { padding-top: 28px; padding-bottom: 60px; }
.al-rv__bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; position: sticky; top: var(--al-rv-top, 132px); z-index: 5;
  padding: 8px; border-radius: 14px; background: var(--al-rv-glass); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid var(--line);
}
.al-rv__tabs { display: flex; padding: 3px; border-radius: 9px; background: var(--hover); gap: 2px; }
:where(.jtlw) .al-rv__tab, .al-rv__tab {
  height: 28px; padding: 0 11px; border-radius: 7px; display: inline-flex; align-items: center; color: var(--ink); font-size: 13px; font-weight: 400; transition: background .2s;
}
.al-rv__tab:hover { color: var(--ink); }
.al-rv__tab.is-on { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.15); font-weight: 600; }
:where(.jtlw) .al-rv__tog, .al-rv__tog {
  height: 30px; padding: 0 12px; border-radius: 999px; border: none; background: var(--hover); color: var(--ink); font: 13px var(--font-body); cursor: pointer; transition: background .2s;
}
.al-rv__tog[hidden] { display: none; }
.al-rv__tog[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.al-rv__side { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.al-rv__side[hidden] { display: none; }
:where(.jtlw) .al-rv__sort, .al-rv__sort {
  height: 30px; border-radius: 7px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font: 13px var(--font-body); padding: 0 8px; width: auto;
}
.al-rv__list { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.al-rv__item {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 18px; border: 1px solid var(--line);
  background: color-mix(in oklab, var(--surface) 86%, transparent); -webkit-backdrop-filter: saturate(180%) blur(40px); backdrop-filter: saturate(180%) blur(40px);
  box-shadow: 0 12px 30px -20px rgba(0,0,0,.3);
}
.al-rv__item[hidden] { display: none; }
.al-rv__av { width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.al-rv__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.al-rv__top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.al-rv__when, .al-rv__muted { color: var(--muted); }
.al-rv__muted { font-size: 12px; }
.al-rv__line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.al-rv__istars { color: var(--al-rv-star); font-size: 14px; letter-spacing: 1px; }
.al-rv__ok { font-size: 12px; color: var(--al-rv-ok); }
.al-rv__title { font-size: 16px; letter-spacing: -.01em; }
.al-rv__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); text-wrap: pretty; overflow-wrap: anywhere; }
.al-rv__reply { margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: var(--hover); border: 1px solid var(--line); display: flex; gap: 10px; font-size: 14px; line-height: 1.5; }
.al-rv__shop { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.al-rv__rtext { color: var(--ink2); }
.al-rv__foot { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
:where(.jtlw) .al-rv__help, .al-rv__help {
  height: 30px; padding: 0 12px; border-radius: 999px; border: none; background: var(--hover); color: var(--ink); font: 500 12px var(--font-body);
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; transition: background .2s, transform .3s cubic-bezier(.3,1.8,.4,1);
}
.al-rv__help.on-list { background: var(--accent); color: var(--on-accent); }
.al-rv__help:active { transform: scale(1.08); }
.al-rv__help.is-static { cursor: default; }
.al-rv__empty { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 48px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.al-rv__empty[hidden] { display: none; }
.al-rv__empty b { font-size: 18px; }
.al-rv__emoji { font-size: 40px; }
:where(.jtlw) .al-rv__btn, .al-rv__btn {
  height: 44px; padding: 0 20px; border-radius: 999px; border: none; background: var(--hover); color: var(--ink); font: 500 15px var(--font-body);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .25s var(--ease-spring);
}
.al-rv__btn:active { transform: scale(.95); }
.al-rv__empty .al-rv__btn, .al-rv__btn--sm { height: 38px; font-size: 14px; }
.al-rv__more { display: flex; margin: 20px auto 0; }
.al-rv__more[hidden] { display: none; }

/* the write dialog */
.al-rv__scrim { position: fixed; inset: 0; z-index: 90; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.al-rv__dlg {
  position: fixed; left: 50%; top: 50%; z-index: 91; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto;
  transform: translate(-50%, -50%); background: var(--surface); border: 1px solid var(--line2); border-radius: 16px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.35), 0 0 0 .5px rgba(0,0,0,.04); animation: al-rv-in .45s cubic-bezier(.2,1,.3,1.1);
}
.al-rv__scrim[hidden], .al-rv__dlg[hidden] { display: none; }
@keyframes al-rv-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.al-rv__dlgbar {
  position: sticky; top: 0; z-index: 1; height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line);
  background: var(--al-rv-glass); -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
}
.al-rv__dlgbar span { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink2); }
:where(.jtlw) .al-rv__x, .al-rv__x { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: none; background: var(--hover); color: var(--ink); font-size: 10px; cursor: pointer; }
.al-rv__wform { padding: 22px; display: flex; flex-direction: column; gap: 16px; margin: 0; }
.al-rv__wprod { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.al-rv__wpic { width: 48px; height: 58px; border-radius: 9px; background: var(--track); flex-shrink: 0; overflow: hidden; }
.al-rv__pick { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.al-rv__pick.is-shake { animation: al-rv-shake .35s; }
@keyframes al-rv-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.al-rv__pstars { display: flex; gap: 4px; }
.al-rv__pstar {
  width: 44px; height: 44px; margin: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; line-height: 1; cursor: pointer;
  color: var(--line2); transition: color .15s, transform .3s cubic-bezier(.3,1.8,.4,1);
}
.al-rv__pstar.is-on { color: var(--al-rv-star); transform: scale(1.12); }
.al-rv__pstars input:focus-visible + .al-rv__pstar { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.al-rv__plbl { font-size: 14px; font-weight: 600; color: var(--muted); min-height: 18px; }
.al-rv__plbl.is-set { color: var(--ink); }
.al-rv__fld { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.al-rv__flbl { font-size: 13px; font-weight: 600; color: var(--ink2); }
.al-rv__flbl--row { display: flex; justify-content: space-between; }
.al-rv__cnt { font-size: 12px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
:where(.jtlw) .al-rv__fld input, .al-rv__fld input, :where(.jtlw) .al-rv__fld textarea, .al-rv__fld textarea {
  width: 100%; height: 42px; border-radius: 10px; border: 1px solid var(--line2); background: var(--al-rv-field); padding: 0 12px;
  font: 15px var(--font-body); color: var(--ink); outline: none; box-shadow: none; transition: box-shadow .2s, border-color .2s;
}
.al-rv__fld textarea { height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.al-rv__fld input:focus, .al-rv__fld textarea:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.al-rv__note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.al-rv__note a { color: var(--accent-ink); }
.al-rv__err { font-size: 13px; color: #FF3B30; min-height: 16px; margin-top: -8px; }
.al-rv__wbtns { display: flex; justify-content: flex-end; gap: 8px; margin-top: -6px; }
.al-rv__send { height: 38px; font-size: 14px; }
.al-rv__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 999px) {
  .al-rv__head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .al-rv__sum { grid-template-columns: 1fr; }
  .al-rv__bar { position: static; }
  .al-rv__side { margin-left: 0; width: 100%; justify-content: flex-end; }
  .al-rv__item { padding: 14px; gap: 12px; }
}
