@charset "UTF-8";

/* ═══════════════════════════════════════════════════════════════
   FLASCHENFINDER | detail.css (Produkt-Detailseite)
   Mobile-first: 320px → 480px → 640px (sm) → 768px (md) → 1024px (lg) → 1280px (xl)
   Nutzt die Design-Tokens aus components.css (:root --ff-*).
   Klassen-Präfix: .pdp- (product detail page)
   ═══════════════════════════════════════════════════════════════ */


/* ── ERGÄNZENDE TOKENS ──────────────────────────────────────── */
:root {
    --pdp-accent-text:   #9C5700;   /* Akzent als Schrift (#ff9d00 hat auf Weiß nur 2,1:1) */
    --pdp-wine:          #72243E;
    --pdp-success:       #1E6B3A;
    --pdp-danger:        #A3262A;
    --pdp-best-bg:       #E4F0F0;
    --pdp-coupon-bg:     #FBF3E4;
    --pdp-coupon-text:   #7A4A00;
    --pdp-sticky-height: 72px;
}


/* ═══════════════════════════════════════════════════════════════
   1. GRUNDGERÜST
   ═══════════════════════════════════════════════════════════════ */
.pdp {
    padding-bottom: calc(var(--pdp-sticky-height) + 24px);
}

@media (min-width: 1024px) {
    .pdp { padding-bottom: 56px; }
}

.pdp :focus-visible {
    outline: 3px solid var(--ff-primary);
    outline-offset: 2px;
    border-radius: var(--ff-radius-sm);
}

.pdp-h2 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ff-text);
    margin: 0;
}

@media (min-width: 768px) { .pdp-h2 { font-size: 24px; } }

.pdp-sub {
    font-size: 13px;
    color: var(--ff-text-light);
    margin: 2px 0 0;
    line-height: 1.5;
}

.pdp-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pdp-accent-text);
    margin: 0 0 4px;
}

.pdp-card {
    background: var(--ff-bg);
    border: 1px solid var(--ff-border-light);
    border-radius: var(--ff-radius-lg);
}

.pdp-section {
    margin-top: 32px;
}

@media (min-width: 768px) { .pdp-section { margin-top: 48px; } }

.pdp-card.pdp-section {
    padding: 18px;
    display: grid;
    gap: 16px;
    align-content: start;
}

@media (min-width: 768px) { .pdp-card.pdp-section { padding: 24px 28px; gap: 18px; } }

.pdp-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

@media (min-width: 768px) { .pdp-section__head { margin-bottom: 18px; } }

.pdp-section__title { margin-bottom: 14px; }

.pdp-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ff-primary);
    font-weight: 600;
    font-size: 14px;
}

.pdp-link:hover { color: var(--ff-primary-dark); }

/* Fliesstext-Links bekommen den Unterstrich zurueck; die Linkfarbe allein
   hat gegen den grauen Text zu wenig Kontrast. Brotkrumen sind Navigation
   und bleiben ausgenommen - sonst gewinnt diese Regel dort gegen
   .pdp-breadcrumb a (hoehere Spezifitaet durch :not([class])). */
.pdp :where(p, li:not(.pdp-breadcrumb li), dd, td) a:not([class]) {
    color: var(--ff-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ── Buttons ── */
.pdp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--ff-radius-pill);
    background: var(--ff-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background var(--ff-transition), transform var(--ff-transition);
}

.pdp-btn:hover { background: var(--ff-primary-dark); color: #fff; }
.pdp-btn:active { transform: scale(.98); }

.pdp-btn--block { display: flex; width: 100%; }
.pdp-btn--lg { min-height: 54px; font-size: 16px; }

.pdp-btn--ghost {
    background: var(--ff-bg);
    color: var(--ff-text);
    border-color: var(--ff-border);
}

.pdp-btn--ghost:hover { background: var(--ff-bg-subtle); color: var(--ff-primary); }

/* Merken. Der Knopf liegt unter dem Kauf-Button und bleibt zurueckhaltend:
   er konkurriert nicht mit dem Weg zum Shop, sondern ist der zweite Ausgang. */
.pdp-merk { margin-top: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }

.pdp-merk[hidden] { display: none; }

.pdp-merk[aria-pressed="true"] {
    background: #e4f0f0;
    border-color: var(--ff-primary);
    color: var(--ff-primary-dark);
}

.pdp-merk[aria-pressed="true"] svg { fill: currentColor; }

/* Langer Button-Text erst, wenn Platz ist */
.pdp-btn__long { display: none; }
@media (min-width: 400px) {
    .pdp-btn__long { display: inline; }
    .pdp-btn__short { display: none; }
}


/* ── Badges & Status ── */
.pdp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--ff-bg-subtle);
    color: var(--ff-text);
    white-space: nowrap;
}

.pdp-badge--discount { background: var(--pdp-wine); color: #fff; }
.pdp-badge--best { background: var(--pdp-best-bg); color: var(--ff-primary-dark); }

.pdp-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.pdp-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.pdp-status--ok { color: var(--pdp-success); }
.pdp-status--no { color: var(--pdp-danger); }


/* ═══════════════════════════════════════════════════════════════
   2. BROTKRUMEN
   ═══════════════════════════════════════════════════════════════ */
.pdp-breadcrumb {
    padding: 12px 0 10px;
    font-size: 13px;
    color: var(--ff-text-muted);
    overflow: hidden;
}

@media (min-width: 768px) { .pdp-breadcrumb { padding: 20px 0 16px; } }

.pdp-breadcrumb ol {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.pdp-breadcrumb ol::-webkit-scrollbar { display: none; }

.pdp-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.pdp-breadcrumb li + li::before { content: "/"; color: #b5b1a9; }

.pdp-breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}

.pdp-breadcrumb [aria-current] {
    color: var(--ff-text);
    font-weight: 500;
    max-width: 55vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) { .pdp-breadcrumb [aria-current] { max-width: 40ch; } }


/* ═══════════════════════════════════════════════════════════════
   3. PRODUKTKOPF: Bild + Titel + Kaufbox
   ═══════════════════════════════════════════════════════════════ */
.pdp-top {
    display: grid;
    gap: 18px;
}

@media (min-width: 900px) {
    .pdp-top {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 40px;
        align-items: start;
    }
}

@media (min-width: 1200px) { .pdp-top { gap: 48px; } }

/* ── Bild ── */
.pdp-gallery {
    position: relative;
    margin: 0;
    height: 300px;
    background: var(--ff-bg);
    border: 1px solid var(--ff-border-light);
    border-radius: var(--ff-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@media (min-width: 640px) { .pdp-gallery { height: 380px; } }
@media (min-width: 900px) { .pdp-gallery { height: 560px; position: sticky; top: 116px; } }

.pdp-gallery__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.pdp-gallery .bottle-placeholder { height: 88%; width: auto; }

.pdp-gallery__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Teilen: Knopf oben rechts im Bild, darunter das Menue (Desktop). */
.pdp-share { position: absolute; top: 6px; right: 6px; z-index: 5; }
.pdp-share__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-lg, 14px);
    background: #fff;
    box-shadow: var(--ff-shadow-lg, 0 12px 32px rgba(0,0,0,.12));
}
.pdp-share__menu[hidden] { display: none; }
.pdp-share__title { margin: 4px 10px 6px; font-size: 12px; font-weight: 700; color: var(--ff-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.pdp-share__item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ff-text);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}
.pdp-share__item:hover, .pdp-share__item:focus-visible { background: var(--ff-bg-subtle); }
.pdp-share__status { margin: 4px 10px 0; font-size: 13px; color: var(--ff-success, #1f7a4d); }
.pdp-share__status:empty { display: none; }

.pdp-gallery__share {
    position: relative;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: var(--ff-radius-pill);
    color: var(--ff-text);
    font-size: 14px;
    font-weight: 600;
}

.pdp-gallery__share:hover { background: var(--ff-bg-subtle); }
.pdp-gallery__share-text { display: none; }
@media (min-width: 640px) { .pdp-gallery__share-text { display: inline; } }

/* Kaufrelevanter Chip im Kopf */
.pdp-chip--sale { background: #fdf0f2; border-color: #f3c9d1; color: #8a1f3a; font-weight: 600; }
.pdp-chip--good { background: #eef7f1; border-color: #cfe7d7; color: #1f6b43; font-weight: 600; }

/* Geschmacksprofil als Text */
.pdp-taste__summary { margin: 4px 0 14px; font-size: 16px; line-height: 1.6; color: var(--ff-text); }
.pdp-taste__words { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pdp-taste__word-row { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border-radius: 999px; background: var(--ff-bg-subtle, #f4f2ee); font-size: 14px; }
.pdp-taste__word-row dt { color: var(--ff-text-muted); font-weight: 500; }
.pdp-taste__word-row dd { margin: 0; font-weight: 600; }

/* ── Titel ── */
.pdp-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--ff-text);
    margin: 4px 0 4px;
    overflow-wrap: anywhere;
}

@media (min-width: 640px) { .pdp-title { font-size: 28px; } }
@media (min-width: 1200px) { .pdp-title { font-size: 32px; } }

.pdp-subtitle {
    font-size: 14px;
    color: var(--ff-text-muted);
    margin: 0;
}

.pdp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.pdp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--ff-radius-pill);
    background: var(--ff-bg);
    border: 1px solid var(--ff-border);
    font-size: 13px;
    font-weight: 500;
}

.pdp-chip .icon { color: var(--ff-text-light); }


/* ═══════════════════════════════════════════════════════════════
   4. KAUFBOX
   ═══════════════════════════════════════════════════════════════ */
.pdp-buybox {
    margin-top: 18px;
    background: var(--ff-bg);
    border: 1px solid var(--ff-border-light);
    border-radius: var(--ff-radius-lg);
    box-shadow: var(--ff-shadow-md);
    padding: 18px;
    display: grid;
    gap: 16px;
}

@media (min-width: 768px) { .pdp-buybox { padding: 24px; gap: 18px; margin-top: 22px; } }

.pdp-buybox__hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: -2px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ff-primary-dark);
}

.pdp-buybox__hint a { color: var(--ff-primary); text-decoration: underline; text-underline-offset: 2px; }
.pdp-buybox__hint .icon { color: var(--ff-primary); }

.pdp-price {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    color: var(--ff-primary);
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
    margin: 0;
}

@media (min-width: 768px) { .pdp-price { font-size: 40px; } }

.pdp-price-old {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--ff-text-light);
}

.pdp-price-meta {
    font-size: 13px;
    color: var(--ff-text-light);
    margin: 6px 0 0;
}

.pdp-breakdown {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 8px;
    margin: 0;
    font-size: 14px;
}

.pdp-breakdown dt { color: var(--ff-text-muted); }
.pdp-breakdown dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }

.pdp-breakdown__total {
    padding-top: 10px;
    border-top: 1px solid var(--ff-border-light);
    font-size: 16px;
    font-weight: 700 !important;
    color: var(--ff-text) !important;
}

.pdp-shop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--ff-radius-md);
    background: var(--ff-bg-subtle);
}

.pdp-shop__who {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    min-width: 0;
}

.pdp-shop__label { display: block; width: 100%; font-size: 12px; color: var(--ff-text-light); }
.pdp-shop__name { font-size: 15px; }

.pdp-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 14px;
}

.pdp-facts li { display: flex; gap: 10px; align-items: flex-start; }
.pdp-facts .icon { color: var(--ff-primary); flex-shrink: 0; margin-top: 2px; }

.pdp-payments__label { font-size: 12px; color: var(--ff-text-light); margin: 0 0 6px; }

.pdp-payments__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pdp-payments__list li {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: var(--ff-radius-sm);
    background: var(--ff-bg-subtle);
    border: 1px solid var(--ff-border-light);
    color: var(--ff-text-muted);
}

.pdp-fineprint {
    font-size: 12px;
    line-height: 1.55;
    color: var(--ff-text-light);
    margin: 0;
}

.pdp-fineprint a { color: var(--ff-primary); text-decoration: underline; text-underline-offset: 2px; }


/* ── Gutschein ── */
.pdp-coupon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--ff-radius-md);
    background: var(--pdp-coupon-bg);
    border: 1px dashed #e2c68f;
}

.pdp-coupon__text { display: grid; gap: 2px; min-width: 0; }

.pdp-coupon__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pdp-coupon-text);
}

.pdp-coupon__title { font-size: 14px; font-weight: 600; }
.pdp-coupon__meta { font-size: 12px; color: var(--ff-text-muted); }

.pdp-coupon__code {
    display: inline-flex;
    align-items: stretch;
    min-height: 44px;
    border-radius: var(--ff-radius-sm);
    border: 1.5px solid var(--pdp-coupon-text);
    background: #fff;
    overflow: hidden;
    font: inherit;
    cursor: pointer;
}

.pdp-coupon__code-value {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ff-text);
}

.pdp-coupon__code-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: var(--pdp-coupon-text);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.pdp-coupon__code.is-copied .pdp-coupon__code-action { background: var(--pdp-success); }


/* ═══════════════════════════════════════════════════════════════
   5. SPRUNGNAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.pdp-anchors {
    margin: 28px -16px 0;
    position: sticky;
    top: 86px;
    z-index: 20;
    background: var(--ff-bg-warm);
}

@media (min-width: 640px) { .pdp-anchors { top: 90px; margin: 36px 0 0; background: transparent; } }
@media (min-width: 768px) { .pdp-anchors { top: 100px; margin-top: 48px; } }

.pdp-anchors ul {
    list-style: none;
    margin: 0;
    padding: 6px 16px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--ff-border-light);
}

@media (min-width: 640px) {
    .pdp-anchors ul {
        padding: 6px;
        background: var(--ff-bg);
        border: 1px solid var(--ff-border-light);
        border-radius: 12px;
    }
}

.pdp-anchors ul::-webkit-scrollbar { display: none; }

.pdp-anchors__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ff-text-muted);
    white-space: nowrap;
    text-decoration: none;
}

.pdp-anchors__link:hover,
.pdp-anchors__link[aria-current="true"] {
    background: var(--ff-bg-subtle);
    color: var(--ff-primary);
}

/* Sprungziele nicht unter Header + Leiste verstecken */
.pdp [id] { scroll-margin-top: 150px; }
@media (min-width: 768px) { .pdp [id] { scroll-margin-top: 170px; } }


/* ═══════════════════════════════════════════════════════════════
   6. BESCHREIBUNG · GESCHMACK · STECKBRIEF
   ═══════════════════════════════════════════════════════════════ */
.pdp-main {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 900px) {
    .pdp-main {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 24px 40px;
        align-items: start;
        margin-top: 28px;
    }
}

@media (min-width: 1200px) { .pdp-main { column-gap: 48px; } }

.pdp-main__col { display: grid; gap: 16px; }
@media (min-width: 900px) { .pdp-main__col { gap: 24px; } }
.pdp-main .pdp-section { margin-top: 0; }

.pdp-prose {
    font-size: 15px;
    line-height: 1.75;
    max-width: 68ch;
    position: relative;
}

@media (min-width: 768px) { .pdp-prose { font-size: 16px; } }

.pdp-prose p { margin: 0; }

.pdp-prose.is-collapsed {
    max-height: 9.5em;
    overflow: hidden;
}

.pdp-prose.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

.pdp-more {
    justify-self: start;
    min-height: 44px;
    padding: 0;
    color: var(--ff-primary);
    font-weight: 600;
    font-size: 14px;
}

/* ── Geschmack ── */
.pdp-taste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.pdp-taste__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    margin-bottom: 6px;
}

.pdp-taste__name { font-weight: 600; }
.pdp-taste__word { font-size: 13px; color: var(--ff-text-muted); }

.pdp-taste__bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
}

.pdp-taste__bar i {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: var(--ff-border);
}

.pdp-taste__bar i.is-on { background: var(--ff-primary); }

.pdp-taste__ends {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 12px;
    color: var(--ff-text-light);
}

.pdp-serve {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.pdp-serve div { background: var(--ff-bg-subtle); border-radius: var(--ff-radius-md); padding: 12px 14px; }
.pdp-serve dt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ff-text-muted); }
.pdp-serve dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }

/* ── Steckbrief ── */
.pdp-spec {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pdp-spec th {
    width: 40%;
    padding: 11px 16px 11px 0;
    text-align: left;
    vertical-align: top;
    font-weight: 500;
    color: var(--ff-text-muted);
    border-bottom: 1px solid var(--ff-border-light);
}

.pdp-spec td {
    padding: 11px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--ff-border-light);
    overflow-wrap: anywhere;
}

.pdp-spec tr:last-child th,
.pdp-spec tr:last-child td { border-bottom: 0; }


/* ═══════════════════════════════════════════════════════════════
   7. ANGEBOTE VERGLEICHEN
   Mobil: Karten · ab 1024px: Tabellenzeilen mit gemeinsamem Kopf
   ═══════════════════════════════════════════════════════════════ */
.pdp-compare__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pdp-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.pdp-select__label { color: var(--ff-text-muted); }

.pdp-select select {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-md);
    background: var(--ff-bg);
    color: var(--ff-text);
    font: inherit;
    font-size: 14px;
}

.pdp-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-pill);
    background: var(--ff-bg);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.pdp-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ff-primary); }

.pdp-offers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.pdp-offers-head { display: none; }

.pdp-offer {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 16px;
    background: var(--ff-bg);
    border: 1px solid var(--ff-border-light);
    border-radius: 12px;
}

.pdp-offer--best { border: 2px solid var(--ff-primary); }
.pdp-offer--unavailable { background: var(--ff-bg-subtle); }
.pdp-offer--unavailable .pdp-offer__cell--total dd { color: var(--ff-text-muted); }

.pdp-offer[hidden] { display: none; }

.pdp-offer__shop { display: grid; gap: 4px; align-content: start; }
.pdp-offer__flags { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-offer__flags:empty { display: none; }

.pdp-offer__name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

/* Mobil: Gesamtpreis groß, Rest als kompakte Zeile */
.pdp-offer__data {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin: 0;
    font-size: 13px;
    color: var(--ff-text-muted);
}

.pdp-offer__cell { display: flex; gap: 4px; align-items: baseline; }
.pdp-offer__cell dt { color: var(--ff-text-light); }
.pdp-offer__cell dt::after { content: ":"; }
.pdp-offer__cell dd { margin: 0; font-weight: 500; color: var(--ff-text); font-variant-numeric: tabular-nums; }

.pdp-offer__cell--total {
    order: -1;
    flex-basis: 100%;
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--ff-border-light);
}

.pdp-offer__cell--total dt { font-size: 13px; color: var(--ff-text-muted); }
.pdp-offer__cell--total dd { font-size: 22px; font-weight: 700; color: var(--ff-primary); }

.pdp-offer__cell--pay { flex-basis: 100%; }

.pdp-offers-more { margin-top: 10px; }

.pdp-offer__old { color: var(--ff-text-light); font-weight: 400; margin-right: 2px; }

.pdp-offer__actions { display: flex; gap: 8px; align-items: center; }
.pdp-offer__cta { width: 100%; flex: 1 1 auto; }
.pdp-offer__merk {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-pill, 999px);
    background: #fff;
    color: var(--ff-text);
    cursor: pointer;
}
.pdp-offer__merk:hover { border-color: var(--ff-primary); color: var(--ff-primary); }
.pdp-offer__merk[aria-pressed="true"] { background: var(--ff-primary); border-color: var(--ff-primary); color: #fff; }
.pdp-offer__merk[aria-pressed="true"] svg { fill: currentColor; }

.pdp-offers-empty {
    padding: 20px;
    text-align: center;
    color: var(--ff-text-muted);
    background: var(--ff-bg);
    border-radius: 12px;
}

.pdp-compare__note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 12px;
}

.pdp-compare__note .icon { flex-shrink: 0; margin-top: 1px; }

@media (min-width: 640px) {
    .pdp-offer { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .pdp-offer__shop,
    .pdp-offer__data,
    .pdp-offer .pdp-coupon { grid-column: 1 / -1; }
    .pdp-offer__cta { grid-column: 1 / -1; }
    .pdp-offer__actions { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
    /* Kopf und Zeilen teilen sich dasselbe 8-Spalten-Raster (Subgrid) */
    .pdp-offers-head,
    .pdp-offer {
        grid-template-columns: minmax(0, 2.4fr) repeat(6, minmax(0, 1fr)) 196px;
        column-gap: 16px;
    }

    .pdp-offers-head {
        display: grid;
        padding: 10px 20px;
        font-size: 12px;
        font-weight: 600;
        color: var(--ff-text-muted);
    }

    .pdp-offers-head span:nth-child(n+2):nth-child(-n+5) { text-align: right; }

    .pdp-offers {
        gap: 0;
        background: var(--ff-bg);
        border: 1px solid var(--ff-border-light);
        border-radius: var(--ff-radius-lg);
        overflow: hidden;
    }

    .pdp-offer {
        row-gap: 12px;
        padding: 16px 20px;
        border: 0;
        border-bottom: 1px solid var(--ff-border-light);
        border-radius: 0;
        align-items: center;
    }

    .pdp-offer:last-child { border-bottom: 0; }

    .pdp-offer--best {
        border: 0;
        border-bottom: 1px solid var(--ff-border-light);
        background: #F2F8F8;
        box-shadow: inset 4px 0 0 var(--ff-primary);
    }

    .pdp-offer__shop { grid-column: 1; grid-row: 1; }

    .pdp-offer__data {
        grid-column: 2 / 8;
        grid-row: 1;
        display: grid;
        grid-template-columns: subgrid;
        align-items: center;
    }

    .pdp-offer__cell dt {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .pdp-offer__cell { display: block; text-align: right; font-size: 14px; }
    .pdp-offer__cell dt::after { content: none; }
    .pdp-offer__cell:nth-child(n+5) { text-align: left; }

    .pdp-offer__cell--total {
        order: 0;
        display: block;
        padding: 0;
        margin: 0;
        border: 0;
    }

    .pdp-offer__cell--total dd { font-size: 18px; }
    .pdp-offer__cell--pay { font-size: 13px; }
    .pdp-offers-more { display: none; }

    .pdp-offer .pdp-coupon { grid-column: 1 / 8; grid-row: 2; }
    .pdp-offer__actions { grid-column: 8; grid-row: 1; }
    .pdp-offer__cta { width: 100%; padding: 0 16px; }
}


/* ═══════════════════════════════════════════════════════════════
   8. PREISINFOS
   ═══════════════════════════════════════════════════════════════ */
.pdp-infogrid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

@media (min-width: 640px) { .pdp-infogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .pdp-infogrid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

.pdp-info {
    padding: 18px 20px;
    display: grid;
    gap: 6px;
    align-content: start;
}

.pdp-info__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ff-text-muted);
}

.pdp-info__title .icon { color: var(--ff-primary); }

.pdp-info__value { margin: 0; font-size: 20px; font-weight: 700; }
.pdp-info__value--sm { font-size: 15px; }


/* ═══════════════════════════════════════════════════════════════
   9. REBSORTE · REGION · WEINTYP
   ═══════════════════════════════════════════════════════════════ */
.pdp-knowledge {
    display: grid;
    gap: 10px;
}

@media (min-width: 768px) { .pdp-knowledge { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; } }

.pdp-kcard {
    padding: 20px;
    display: grid;
    gap: 8px;
    align-content: start;
    border-top: 3px solid var(--ff-border);
}

@media (min-width: 768px) { .pdp-kcard { padding: 24px; } }

.pdp-kcard--grape { border-top-color: var(--pdp-wine); }
.pdp-kcard--region { border-top-color: var(--ff-primary); }
.pdp-kcard--type { border-top-color: var(--pdp-accent-text); }

.pdp-kcard__title { margin: 0; font-size: 18px; font-weight: 600; }

.pdp-kcard__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--ff-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ═══════════════════════════════════════════════════════════════
   10. ÄHNLICHE WEINE (nutzt .cat-tile aus tile.css)
   Mobil: horizontal wischen · ab 768px: Raster
   ═══════════════════════════════════════════════════════════════ */
.pdp-related {
    list-style: none;
    margin: 0 -16px;
    padding: 0 16px 4px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
}

.pdp-related::-webkit-scrollbar { display: none; }

.pdp-related__item {
    flex: 0 0 72%;
    max-width: 260px;
    scroll-snap-align: start;
    display: flex;
}

.pdp-related__item > .cat-tile { width: 100%; }

@media (min-width: 480px) { .pdp-related__item { flex-basis: 46%; } }

@media (min-width: 768px) {
    .pdp-related {
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        overflow: visible;
    }
    .pdp-related__item { max-width: none; }
}

@media (min-width: 1030px) { .pdp-related { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


/* ═══════════════════════════════════════════════════════════════
   11. HINWEISE
   ═══════════════════════════════════════════════════════════════ */
.pdp-note {
    margin-top: 32px;
    padding: 16px 18px;
    background: var(--ff-bg-subtle);
    border: 1px solid var(--ff-border-light);
    border-radius: var(--ff-radius-md);
    font-size: 13px;
    line-height: 1.6;
    color: var(--ff-text-muted);
}

@media (min-width: 768px) { .pdp-note { margin-top: 48px; } }

.pdp-note p { margin: 0; }
.pdp-note p + p { margin-top: 6px; }
.pdp-note strong { color: var(--ff-text); }


/* ═══════════════════════════════════════════════════════════════
   12. MOBILE KAUFLEISTE
   ═══════════════════════════════════════════════════════════════ */
.pdp-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    min-height: var(--pdp-sticky-height);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ff-bg);
    border-top: 1px solid var(--ff-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .08);
    transform: translateY(110%);
    transition: transform .25s ease;
}

.pdp-sticky.is-visible { transform: translateY(0); }
.pdp-sticky[hidden] { display: none; }

.pdp-sticky__price { display: grid; line-height: 1.2; min-width: 0; }
.pdp-sticky__amount { font-size: 20px; font-weight: 700; color: var(--ff-primary); }
.pdp-sticky__meta { font-size: 12px; color: var(--ff-text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-sticky .pdp-btn { margin-left: auto; }

/* Merken in der festen Leiste: nur das Symbol, damit der Weg zum Shop
   die breiteste Flaeche behaelt. 44 px bleiben als Tippziel erhalten. */
.pdp-sticky__merk {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-md);
    background: #fff;
    color: var(--ff-text-muted);
    cursor: pointer;
    transition: border-color var(--ff-transition), color var(--ff-transition);
}

.pdp-sticky__merk[hidden] { display: none; }
.pdp-sticky__merk:hover { border-color: var(--ff-primary); color: var(--ff-primary); }

.pdp-sticky__merk[aria-pressed="true"] {
    border-color: var(--ff-primary);
    background: #e4f0f0;
    color: var(--ff-primary-dark);
}

.pdp-sticky__merk[aria-pressed="true"] svg { fill: currentColor; }

/* Der Kauf-Button wird jetzt vom Merken-Knopf nach rechts geschoben. */
.pdp-sticky__merk ~ .pdp-btn { margin-left: 0; }

@media (min-width: 1024px) {
    .pdp-sticky { display: none !important; }
}


/* ── Bewegung reduzieren ── */
@media (prefers-reduced-motion: reduce) {
    .pdp-btn,
    .pdp-sticky { transition: none; }
}


/* ── Über diesen Wein: passende Kategorien ─────────────────── */
.pdp-prose p.pdp-pairing { margin-top: 10px; }
.pdp-explore__title { margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--ff-text); }
.pdp-explore { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pdp-explore a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ff-border);
    border-radius: var(--ff-radius-pill);
    background: #fff;
    color: var(--ff-text);
    font-size: 13.5px;
    text-decoration: none;
}
.pdp-explore a:hover { border-color: var(--ff-primary); color: var(--ff-primary-dark); }
