/*
 * Produktseite, neues Layout der rechten Spalte (Vorschau seit 2026-11-08, ?neu=1).
 * Markup: templates/storefront/_product_buybox_neu.php. Nur hier geladen.
 */
.pdn {
    --pdn-ink: var(--shop-ink, #16202c);
    --pdn-muted: #6b7684;
    --pdn-line: #e6e9ee;
    --pdn-soft: #f6f8fa;
    --pdn-brand: var(--shop-brand, #2b8fd6);
    --pdn-radius: 14px;
    display: flex; flex-direction: column; gap: 22px; color: var(--pdn-ink);
}
.pdn-muted { color: var(--pdn-muted); font-size: 13px; margin: 0; }
.pdn-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pdn-muted); }
.pdn-link { font-size: 13px; text-decoration: underline; color: var(--pdn-ink); margin-left: auto; }

/* Kopf */
.pdn-head__row { display: flex; align-items: flex-start; gap: 12px; }
.pdn-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; margin: 0; flex: 1; font-weight: 800; }
.pdn-fav { margin: 0; }
.pdn-fav__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--pdn-line); background: #fff; color: #9aa3ae; cursor: pointer; }
.pdn-fav__btn[data-favorited="1"] { color: #e0245e; border-color: #f3c1d0; }
.pdn-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0 0; font-size: 13px; color: var(--pdn-muted); }
.pdn-rating { color: var(--pdn-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pdn-rating ul, .pdn-rating .product-rating { margin: 0; }
.pdn-short { margin: 10px 0 0; font-size: 15px; color: #3c4652; }

/* Farbe & Groesse */
.pdn-axes { display: flex; flex-direction: column; gap: 18px; }
.pdn-axis { border: 0; padding: 0; margin: 0; }
.pdn-axis__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pdn-axis__current { font-size: 14px; font-weight: 600; color: var(--pdn-ink); }
.pdn-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pdn .pdn-opt {
    min-width: 46px; height: 42px; padding: 0 14px; border: 1px solid var(--pdn-line); border-radius: 10px; background: #fff;
    font-size: 14px; font-weight: 600; color: var(--pdn-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: border-color .15s, box-shadow .15s;
}
.pdn .pdn-opt:hover { border-color: var(--pdn-ink); }
.pdn .pdn-opt.is-selected { border-color: var(--pdn-ink); box-shadow: inset 0 0 0 1px var(--pdn-ink); }
.pdn .pdn-opt.is-oos, .pdn .pdn-opt:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.pdn .pdn-opt--swatch { width: 38px; min-width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 0; background: transparent; }
.pdn .pdn-swatch { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); margin: 0; }
.pdn .pdn-opt--swatch.is-selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pdn-ink); }
.pdn .pdn-opt--swatch.is-oos, .pdn .pdn-opt--swatch:disabled { text-decoration: none; opacity: .25; }
.pdn .pdn-opt--radio { gap: 8px; }

/* Karten */
.pdn-card { border: 1px solid var(--pdn-line); border-radius: var(--pdn-radius); padding: 18px; background: #fff; }
.pdn-card__head { margin-bottom: 12px; }
.pdn-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: filter .15s, background .15s;
}
.pdn-btn--primary { background: var(--pdn-brand); color: #fff; }
.pdn-btn--primary:hover { filter: brightness(.95); color: #fff; }
.pdn-btn--primary:disabled { background: #b9c3cd; cursor: not-allowed; }
.pdn-btn--ghost { background: #fff; color: var(--pdn-ink); border-color: var(--pdn-line); }
.pdn-btn--ghost:hover { border-color: var(--pdn-ink); }
.pdn-btn--block { width: 100%; }
.pdn-design__invite { display: flex; flex-direction: column; gap: 12px; }
.pdn-design__buttons { display: flex; gap: 10px; }
.pdn-design__buttons .sf-design-start { flex: 1; }
.pdn-design__summary { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: #1e7b4a; }
.pdn .sf-zone-controls:not([hidden]) { margin-top: 12px; }
.pdn .sf-save-status:empty { display: none; }

/* Preis-Kasten */
.pdn-buy { background: var(--pdn-soft); border-color: transparent; }
.pdn-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pdn-qty__label { font-weight: 600; margin: 0; }
.pdn-stepper { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--pdn-line); border-radius: 12px; overflow: hidden; }
.pdn-stepper__btn { width: 42px; height: 44px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--pdn-ink); }
.pdn-stepper__btn:hover { background: var(--pdn-soft); }
.pdn-stepper__input { width: 70px; height: 44px; border: 0; text-align: center; font-size: 16px; font-weight: 700; -moz-appearance: textfield; }
.pdn-stepper__input::-webkit-outer-spin-button, .pdn-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdn-minqty { margin: -6px 0 12px; }

/* Kassenzettel */
.pdn-receipt { margin: 0 0 10px; padding: 0; border: 0; font-size: 14px; }
.pdn-r__row { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 14px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed #dde2e8; }
.pdn-r__label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pdn-r__detail { color: var(--pdn-muted); font-size: 13px; white-space: nowrap; }
.pdn-r__amount { font-weight: 600; white-space: nowrap; text-align: right; min-width: 72px; }
.pdn-r__badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #fff3d6; color: #8a5a00; cursor: help; }
.pdn-r__total { padding-top: 12px; }
.pdn-r__totalrow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; }
.pdn-r__sum { font-size: 28px; font-weight: 800; color: var(--pdn-ink); }
.pdn-r__each { text-align: right; font-size: 13px; color: var(--pdn-muted); }
.pdn-r__from { margin: 0; font-size: 15px; }
.pdn-r__info { margin: 8px 0 0; font-size: 12px; color: var(--pdn-muted); }
.pdn-taxnote { margin: 0 0 14px; }
.pdn-cartform { margin: 0; }
.pdn-paused { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff3d6; color: #8a5a00; font-weight: 600; text-align: center; }
.pdn-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: #3c4652; }
.pdn-facts li { display: flex; gap: 8px; align-items: baseline; }
.pdn-facts i { color: var(--pdn-muted); width: 16px; text-align: center; }

/* Aufklappbare Details */
.pdn-details { border-top: 1px solid var(--pdn-line); }
.pdn-acc { border-bottom: 1px solid var(--pdn-line); }
.pdn-acc > summary { list-style: none; cursor: pointer; padding: 15px 2px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.pdn-acc > summary::-webkit-details-marker { display: none; }
.pdn-acc > summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--pdn-muted); }
.pdn-acc[open] > summary::after { content: '−'; }
.pdn-acc > *:not(summary) { margin-bottom: 14px; }
.pdn-acc .information-heading, .pdn-acc h6:first-child { display: none; }
.pdn-acc--inner { border-bottom: 0; margin-top: 8px; }
.pdn-acc--inner > summary { padding: 8px 0; font-size: 13px; }
.pdn-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.pdn-table td, .pdn-table th { padding: 6px 4px; border-bottom: 1px solid var(--pdn-line); text-align: left; }
.pdn-table td:not(:first-child), .pdn-table th:not(:first-child) { text-align: right; }

/* Leiste unten */
.pdn-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--pdn-line, #e6e9ee); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
}
.pdn-bar[hidden] { display: none; }
.pdn-bar__label { font-size: 12px; color: #6b7684; display: block; }
.pdn-bar__price strong { font-size: 20px; }
.pdn-bar .pdn-btn { height: 44px; }
/* Nur auf dem Handy; rechts Platz fuer den Chat-Knopf lassen. */
.pdn-bar { padding-right: 88px; }
@media (min-width: 992px) { .pdn-bar, .pdn-bar:not([hidden]) { display: none; } }
@media (max-width: 480px) {
    .pdn-card { padding: 14px; }
    .pdn-r__detail { display: none; }
}

/* Altes Theme ueberstimmen (Knopf-Breiten, Kasten um die Einladung, Rahmen im Mengenfeld) */
body.sf-modern .pdn #sf-design-invite, .pdn .sf-design-invite, body.sf-modern .pdn .sf-design-invite { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
.pdn .pdn-design__buttons .sf-design-start { flex: 1 1 auto; width: auto; height: 48px; margin: 0; }
.pdn .pdn-design__buttons .sf-3d-open { flex: 0 0 auto; width: auto; height: 48px; margin: 0; padding: 0 18px; }
.pdn .pdn-stepper__input, .pdn .pdn-stepper__input:focus { border: 0 !important; border-radius: 0; box-shadow: none !important; background: transparent; padding: 0; margin: 0; outline: none; }
.pdn .pdn-stepper:focus-within { border-color: var(--pdn-ink); }
body.sf-modern .pdn #sf-design-start { box-shadow: none; }
body.sf-modern .pdn #sf-design-start:hover { transform: none; }

/* Preis inkl. Druck (seit 15.11.2026) */
.pdn-from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 14px; }
.pdn-from small { font-size: 14px; color: var(--pdn-muted); }
.pdn-from__price { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pdn-from__note { font-size: 14px; color: var(--pdn-muted); }
.pdn-from__link { flex-basis: 100%; font-size: 13px; color: var(--pdn-ink); text-decoration: underline; }
.pdn-table tr.is-ref td { font-weight: 700; background: var(--pdn-soft); }
