/* =========================================
   BD SINGLE-PRODUCT
   - Galerie (Thumbnails seitlich) + Info-Card
   - Produkttyp-Varianten: yarn / workshop / pattern / voucher
   ========================================= */


/* ─────────────────────────────────────────
   1. WRAPPER & LAYOUT
   ───────────────────────────────────────── */
.bd-single {
    margin-block: var(--space-xl) var(--space-3xl);
}

.bd-single__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: start;
}

@media (min-width: 900px) {
    .bd-single__layout {
        /* 1.1 / 1 — Galerie leicht prominent, Card hat 45% Breite,
           genug Platz für Cart-Button + Quantity-Stepper auf 1 Zeile. */
        grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr);
        gap: var(--space-2xl);
    }
}

@media (min-width: 1200px) {
    .bd-single__layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(460px, 1fr);
    }
}

/* Grid-Children sollen nicht über ihre Spalte hinauslaufen */
.bd-single__gallery,
.bd-single__card {
    min-width: 0;
    width: 100%;
}

/* Mobile (unter Desktop-Breakpoint):
   Card oben (mit Title, Pills, Preis, Variants), darunter die Galerie.
   So weiß der User sofort was er anschaut, bevor er die Bilder
   scrollt. */
@media (max-width: 899px) {
    .bd-single__layout {
        display: flex;
        flex-direction: column;
    }
    .bd-single__card    { order: 1; }
    .bd-single__gallery { order: 2; }
}


/* ─────────────────────────────────────────
   2. GALERIE  (Spalten-Layout — Hauptbild oben, Thumbs darunter)
   ───────────────────────────────────────── */
.bd-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
}

/* Thumbnail-Reihe unter dem Hauptbild */
.bd-gallery__thumbs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: var(--space-sm);
    width: 100%;
    order: 2; /* Hauptbild oben (order 1 by default), Thumbs unten */
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: var(--space-xs);
}

.bd-gallery__thumb-item {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.bd-gallery__thumb {
    display: block;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-base);
    background: var(--color-bg);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    flex-shrink: 0;
}

.bd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bd-gallery__thumb:hover {
    border-color: var(--color-sand-300);
}

.bd-gallery__thumb.is-active {
    border-color: var(--color-heading);
}

/* Hauptbild (immer oben) */
.bd-gallery__main {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    order: 1;
}

/* Galerie-Trigger ist ein <button> — globale button-Defaults aus
   basics.css (padding, border-radius pill) müssen hier neutralisiert
   werden, sonst wird der Button als Pill mit dickem Padding gerendert
   und ein focus-Outline erscheint als grüner Ring um's ganze Bild. */
.bd-gallery .bd-gallery__zoom {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: zoom-in;
    text-decoration: none;
    appearance: none;
    -webkit-appearance: none;
}

.bd-gallery .bd-gallery__zoom:focus-visible {
    outline: var(--focus-ring);
    outline-offset: -4px;
    border-radius: var(--radius-lg);
}

/* Thumbnails sind auch <button>s — gleiche Neutralisierung */
.bd-gallery .bd-gallery__thumb {
    padding: 0;
    margin: 0;
}

.bd-gallery__image,
.bd-gallery__main img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.6s var(--ease-ui);
}

.bd-gallery__zoom:hover .bd-gallery__image {
    transform: scale(1.03);
}

/* Counter "1 / 5" */
.bd-gallery__counter {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    padding: 0.3rem 0.7rem;
    background: var(--color-heading);
    color: var(--color-bg);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    line-height: 1;
}

/* Zoom-Hint */
.bd-gallery__zoom-hint {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-heading);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    backdrop-filter: blur(6px);
    pointer-events: none;
}


/* ─────────────────────────────────────────
   3. INFO CARD (Container)
   ───────────────────────────────────────── */
.bd-single__card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
    box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
    .bd-single__card {
        position: static;
    }
}

@media (max-width: 640px) {
    .bd-single__card {
        padding: var(--space-lg);
    }
}

.bd-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}


/* ─────────────────────────────────────────
   4. CARD – TOPLINE / PILLS
   ───────────────────────────────────────── */
.bd-card__topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.bd-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    background: var(--color-bg-light);
    color: var(--color-primary);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    line-height: 1;
}

.bd-card__pill--brand   { background: color-mix(in srgb, var(--color-primary) 12%, transparent); color: var(--color-primary); }
.bd-card__pill--accent  { background: color-mix(in srgb, var(--color-accent) 18%, transparent);  color: var(--color-accent-hover); }
.bd-card__pill--info    { background: color-mix(in srgb, var(--color-info) 12%, transparent);    color: var(--color-info); }
.bd-card__pill--sale    { background: var(--color-error); color: var(--color-white); }

.bd-card__meta {
    color: var(--color-muted);
    font-size: var(--text-sm);
    font-style: italic;
}


/* ─────────────────────────────────────────
   4b. CARD – RATING (klickbar zu #reviews)
   ───────────────────────────────────────── */
.bd-card__rating {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: 1;
    transition: var(--transition);
    align-self: flex-start;
}

.bd-card__rating:hover {
    color: var(--color-heading);
    opacity: 1;
}

.bd-card__rating .bd-stars__icon {
    font-size: 1rem;
}

.bd-card__rating-num {
    color: var(--color-heading);
    font-weight: var(--weight-semibold);
    font-size: var(--text-body);
    margin-left: 0.2rem;
}

.bd-card__rating-sep {
    color: var(--color-muted);
    margin: 0 0.1rem;
}

.bd-card__rating-count {
    color: var(--color-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bd-card__rating--empty .bd-card__rating-count {
    text-decoration: none;
    font-style: italic;
}


/* ─────────────────────────────────────────
   5. CARD – TITEL & SUBLINE
   ───────────────────────────────────────── */
.bd-card__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-h2);
    margin: 0 !important;
    color: var(--color-heading);
}

.bd-card__subline {
    margin: 0;
    color: var(--color-muted);
    font-size: var(--text-sm);
    font-style: italic;
}


/* ─────────────────────────────────────────
   6. CARD – PREIS
   ───────────────────────────────────────── */
.bd-card__price {
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: var(--weight-bold);
    color: var(--color-heading);
    font-family: var(--font-heading);
    line-height: 1.1;
    letter-spacing: var(--tracking-h2);
}

.bd-card__price .woocommerce-Price-amount {
    color: var(--color-heading);
}

/* Streichpreis: WC verschachtelt del > span.amount > bdi.
   text-decoration wird nicht zuverlässig vererbt, deshalb
   explizit auf alle Ebenen setzen. */
.bd-card__price del,
.bd-card__price del bdi,
.bd-card__price del .woocommerce-Price-amount {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    color: var(--color-muted);
    font-weight: var(--weight-regular);
    font-size: 0.9em;
    margin-right: var(--space-xs);
}

.bd-card__price ins {
    text-decoration: none;
    background: transparent;
}

.bd-card__price .woocommerce-price-suffix {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-muted);
    font-weight: var(--weight-regular);
    margin-top: var(--space-xxs);
    letter-spacing: 0;
    font-family: var(--font-base);
}

/* Wrapper für Preis + Germanized-Suffix */
.bd-card__price-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxs);
}

/* Germanized-Suffix (Grundpreis · MwSt · Versand) */
.bd-price__suffix {
    font-size: var(--text-xs);
    color: var(--color-muted);
    font-weight: var(--weight-regular);
    line-height: var(--leading-base);
    font-family: var(--font-base);
    letter-spacing: 0;
}

.bd-price__suffix a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bd-price__suffix a:hover {
    color: var(--color-heading);
    opacity: 1;
}

.bd-price__unit {
    font-style: italic;
}

/* Germanized eigene Klassen tarnen, damit sie zu uns passen */
.bd-card__price .price,
.bd-card__price .amount,
.bd-card__price .woocommerce-Price-amount {
    display: inline-block;
}

/* Germanized-Inhalte (Grundpreis-Container) im Card-Bereich */
.bd-card__price-wrap .wc-gzd-additional-info,
.bd-card__price-wrap .price-unit-price,
.bd-card__price-wrap .unit-price,
.bd-card__price-wrap .delivery-time-info,
.bd-card__price-wrap small.includes_tax,
.bd-card__price-wrap small.shipping_de {
    font-size: var(--text-xs);
    color: var(--color-muted);
    font-weight: var(--weight-regular);
    font-family: var(--font-base);
    letter-spacing: 0;
    display: inline;
}


/* ─────────────────────────────────────────
   7. CARD – LEAD-TEXT
   ───────────────────────────────────────── */
.bd-card__lead {
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.bd-card__lead p:last-child {
    margin-bottom: 0;
}


/* ─────────────────────────────────────────
   8. COLOR-PICKER (Variations)
   ───────────────────────────────────────── */
.bd-variations {
    margin: 0;
}

.bd-variations__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.bd-variations__row {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.bd-variations__label {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
}

.bd-variations__selected {
    color: var(--color-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
}

.bd-variations__selected::before {
    content: "·";
    margin-right: 0.4rem;
    opacity: 0.5;
}

.bd-variations__selected:empty::before {
    display: none;
}

/* Original-Select offscreen halten – display:none kann WC-jQuery-Events stören */
.bd-variations__hidden-select {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    clip: rect(0, 0, 0, 0);
}

/* Color-Picker (dot grid) */
.bd-color-picker {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bd-color-picker__dot {
    --dot-color: var(--color-bg-alt);
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition);
    position: relative;
}

.bd-color-picker__swatch {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dot-color);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.bd-color-picker__dot:hover {
    transform: scale(1.05);
}

.bd-color-picker__dot:hover .bd-color-picker__swatch {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.bd-color-picker__dot.is-active {
    border-color: var(--color-heading);
}

.bd-color-picker__dot.is-active .bd-color-picker__swatch {
    box-shadow: 0 0 0 1px var(--color-bg);
    transform: scale(0.85);
}

/* Standard-Dropdown (für nicht-color-Attribute) */
.bd-variations__row select {
    width: 100%;
    padding: 0.65rem var(--space-md);
    background: var(--color-bg);
    border: var(--input-border);
    border-radius: var(--radius-base);
    font-family: var(--font-base);
    font-size: var(--text-body);
    color: var(--color-heading);
    cursor: pointer;
}

.bd-variations__reset {
    align-self: flex-start;
    color: var(--color-muted);
    font-size: var(--text-xs);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: var(--space-xs);
}

.bd-variations__reset:hover {
    color: var(--color-heading);
    opacity: 1;
}

.bd-variations__reset[style*="display: none"],
.bd-variations__reset[style*="visibility: hidden"] {
    display: none !important;
}

/* WC Variation-Display (Preis pro Variation) */
.single_variation_wrap .woocommerce-variation-price {
    display: none; /* Preis bleibt im Card-Header sichtbar */
}

.single_variation_wrap .woocommerce-variation-availability {
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-muted);
}

.single_variation_wrap .woocommerce-variation-description {
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text);
}


/* ─────────────────────────────────────────
   9. CART (Quantity + Button)
   ───────────────────────────────────────── */
.bd-card__cart .cart,
.bd-card__cart form.cart,
.bd-card__cart .single_variation_wrap > .woocommerce-variation-add-to-cart,
.bd-card__cart .quantity + .single_add_to_cart_button,
.woocommerce-variation-add-to-cart {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin: 0 !important;
}

/* Quantity in der Card — etwas größer als Default, sonst nutzt
   das den globalen .bd-qty-stepper aus woocommerce.css */
.bd-card__cart .quantity.bd-qty-stepper {
    height: 48px;
    padding: 0.3rem 0.4rem;
}

.bd-card__cart .quantity.bd-qty-stepper input.qty {
    width: 48px;
    font-size: var(--text-body);
}

.bd-card__cart .quantity.bd-qty-stepper .bd-qty-stepper__btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

/* Add-to-Cart Button */
.bd-card__cart .single_add_to_cart_button,
.bd-card__cart button.single_add_to_cart_button {
    flex: 1 1 200px;
    min-height: 48px;
    padding: 0 var(--space-xl);
    background: var(--color-primary);
    color: var(--color-primary-text);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font-base);
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: var(--transition);
    /* Text + Icon bleiben auf einer Zeile */
    white-space: nowrap;
    line-height: 1.2;
}

.bd-card__cart .single_add_to_cart_button > i {
    flex-shrink: 0;
}

.bd-card__cart .single_add_to_cart_button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn-primary);
    opacity: 1;
}

.bd-card__cart .single_add_to_cart_button:disabled,
.bd-card__cart .single_add_to_cart_button.disabled,
.bd-card__cart .single_add_to_cart_button.wc-variation-selection-needed {
    background: var(--color-border);
    color: var(--color-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Icon im Cart-Button wird via JS injiziert (siehe main.js → initCartIcon) */
.bd-card__cart .single_add_to_cart_button .fa-light {
    font-size: 1.05em;
    margin-right: 0.15rem;
}


/* ─────────────────────────────────────────
   10. STOCK-INDIKATOR (mit Bar)
   ───────────────────────────────────────── */
.bd-stock {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

.bd-stock.is-hidden {
    display: none;
}

.bd-stock__row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.bd-stock__bar {
    height: 4px;
    background: var(--color-border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.bd-stock__bar-fill {
    height: 100%;
    width: 0;
    background: currentColor;
    border-radius: var(--radius-pill);
    transition: width var(--transition);
}

.bd-stock--instock      { color: var(--color-success); }
.bd-stock--onbackorder  { color: var(--color-warning); }
.bd-stock--outofstock   { color: var(--color-error); }

.bd-stock--outofstock .bd-stock__bar-fill {
    background: var(--color-error);
    opacity: 0.4;
}


/* Lieferzeit (Germanized) */
.bd-card__delivery-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--text-sm);
    color: var(--color-muted);
}

.bd-card__delivery-wrap .delivery-time-info,
.bd-card__delivery-wrap .delivery-time {
    font-weight: var(--weight-medium);
    color: var(--color-text);
}


/* ─────────────────────────────────────────
   11. EVENT-BOX (Workshop)
   ───────────────────────────────────────── */
.bd-card__event {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    background: var(--color-bg-light);
    border-radius: var(--radius-base);
    padding: var(--space-md);
}

.bd-card__event-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

.bd-card__event-row > i {
    color: var(--color-primary);
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
}


/* ─────────────────────────────────────────
   12. CHIPS (Anleitung)
   ───────────────────────────────────────── */
.bd-card__chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.bd-card__chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--color-heading);
}

.bd-card__chips li i {
    color: var(--color-primary);
}


/* ─────────────────────────────────────────
   13. VOUCHER-CARD (Gutschein-Hero)
   ───────────────────────────────────────── */
.bd-voucher-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-primary-text);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    box-shadow: var(--shadow-md);
}

.bd-voucher-card__topline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    font-weight: var(--weight-semibold);
    opacity: 0.9;
}

.bd-voucher-card__value {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: var(--weight-bold);
    line-height: 1.1;
    letter-spacing: var(--tracking-h2);
}

.bd-voucher-card__value .woocommerce-Price-amount {
    color: inherit;
}

.bd-voucher-card__hint {
    font-size: var(--text-xs);
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}


/* ─────────────────────────────────────────
   14. TRUST-BADGES
   ───────────────────────────────────────── */
.bd-card__trust {
    list-style: none;
    margin: 0;
    padding: var(--space-md) 0 0;
    border-top: 1px dashed var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.bd-card__trust li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text);
}

.bd-card__trust li i {
    color: var(--color-primary);
    font-size: 1.1rem;
    width: 1.4rem;
    text-align: center;
}


/* ─────────────────────────────────────────
   15. META-FOOT (SKU / Kategorien / Tags)
   ───────────────────────────────────────── */
.bd-card__meta-foot {
    margin-top: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--color-muted);
}

.bd-card__meta-foot .product_meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxs);
}

.bd-card__meta-foot .sku_wrapper,
.bd-card__meta-foot .posted_in,
.bd-card__meta-foot .tagged_as {
    display: block;
}

.bd-card__meta-foot a {
    color: var(--color-text);
    text-decoration: none;
}

.bd-card__meta-foot a:hover {
    color: var(--color-heading);
}


/* ─────────────────────────────────────────
   16. DETAILS / TABS unter dem Hero
   ───────────────────────────────────────── */
.bd-single__details {
    margin-top: var(--space-3xl);
}

.bd-single__details .woocommerce-tabs {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.bd-single__details .wc-tabs {
    list-style: none;
    margin: 0 0 var(--space-lg);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}

.bd-single__details .wc-tabs li {
    list-style: none;
}

.bd-single__details .wc-tabs li::before {
    display: none;
}

.bd-single__details .wc-tabs li a {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition);
}

.bd-single__details .wc-tabs li.active a {
    color: var(--color-heading);
    border-bottom-color: var(--color-primary);
}

.bd-single__details .wc-tabs li a:hover {
    color: var(--color-heading);
    opacity: 1;
}

.bd-single__details .panel {
    color: var(--color-text);
}


/* ─────────────────────────────────────────
   17. BREADCRUMBS (falls vom Theme/Plugin)
   ───────────────────────────────────────── */
.woocommerce-breadcrumb,
.bd-breadcrumbs {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin-bottom: var(--space-lg);
}

.woocommerce-breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: var(--color-heading);
    opacity: 1;
}


/* Inline-Stern in der Headline (avg-Rating) */
.bd-section-header__title-star {
    color: var(--color-primary);
    font-size: 0.85em;
    margin-left: 0.15em;
    vertical-align: -0.05em;
}

.bd-section-header__sub {
    color: var(--color-muted);
    font-size: var(--text-sm);
    font-style: italic;
    margin: var(--space-xs) 0 0;
}


/* ─────────────────────────────────────────
   18c. PRODUCT LEAD (Beschreibungstext als Magazin-Lead)
   ───────────────────────────────────────── */
.bd-single__lead {
    margin-top: var(--space-3xl);
    max-width: 75ch;
}

.bd-single__lead-header {
    margin-bottom: var(--space-md);
}

.bd-single__lead-body {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--color-text);
}

.bd-single__lead-body > *:first-child {
    /* Erstes Element hat einen größeren, edleren Auftakt */
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    line-height: var(--leading-relaxed);
    color: var(--color-heading);
    font-weight: var(--weight-medium);
}

.bd-single__lead-body p {
    margin-bottom: var(--space-md);
}

.bd-single__lead-body p:last-child {
    margin-bottom: 0;
}

.bd-single__lead-body h2,
.bd-single__lead-body h3,
.bd-single__lead-body h4 {
    margin-top: var(--space-lg);
}


/* ─────────────────────────────────────────
   19. YARN EXTRAS
   - Produktinfo-Tabelle (links)
   - Pflegehinweise    (rechts oben)
   - Hinweis-Box       (rechts unten)
   ───────────────────────────────────────── */
.bd-yarn-extras {
    margin-top: var(--space-3xl);
}

.bd-yarn-extras__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 900px) {
    .bd-yarn-extras__grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: var(--space-3xl);
    }
}

.bd-yarn-extras__heading {
    font-size: var(--text-h3);
    margin-bottom: var(--space-md);
}

.bd-yarn-extras__col--side {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* — Produktinfo-Tabelle ——————————————————————— */
.bd-yarn-table {
    margin: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
}

.bd-yarn-table__row {
    display: grid;
    grid-template-columns: minmax(150px, 200px) 1fr;
    gap: var(--space-lg);
    align-items: baseline;
    padding: var(--space-sm) 0;
    border-bottom: 1px dashed var(--color-border);
}

.bd-yarn-table__row:last-child {
    border-bottom: none;
}

@media (max-width: 480px) {
    .bd-yarn-table__row {
        grid-template-columns: 1fr;
        gap: var(--space-xxs);
    }
}

.bd-yarn-table__label {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin: 0;
}

.bd-yarn-table__value {
    font-size: var(--text-body);
    color: var(--color-heading);
    font-weight: var(--weight-medium);
    margin: 0;
}

/* — Pflegehinweise ——————————————————————— */
.bd-pflege-icons {
    list-style: none;
    margin: 0;
    padding: var(--space-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: var(--space-md);
}

.bd-pflege-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    list-style: none;
}

.bd-pflege-icon__symbol {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-base);
    background: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.bd-pflege-icon__title {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    line-height: var(--leading-tight);
}

.bd-pflege-icon__desc {
    font-size: var(--text-xs);
    color: var(--color-muted);
    font-style: italic;
    line-height: var(--leading-snug);
}

/* — Hinweis-Box ——————————————————————— */
.bd-hinweis {
    background: var(--color-heading);
    color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
    align-items: start;
}

.bd-hinweis__label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    font-weight: var(--weight-semibold);
    opacity: 0.7;
    grid-column: 1 / -1;
}

.bd-hinweis__body {
    grid-column: 1 / -1;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    font-style: italic;
}

.bd-hinweis__body p {
    margin-bottom: var(--space-sm);
}

.bd-hinweis__body p:last-child {
    margin-bottom: 0;
}

.bd-hinweis__body strong {
    font-style: normal;
    font-weight: var(--weight-bold);
}


/* ─────────────────────────────────────────
   20. YARN COLORS  (Ähnliche Farben + Passt gut zu)
   ───────────────────────────────────────── */
.bd-yarn-colors {
    margin-top: var(--space-3xl);
}

.bd-yarn-colors__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.bd-yarn-colors__header--mt {
    margin-top: var(--space-3xl);
}

.bd-yarn-colors__heading {
    margin: 0;
    font-size: var(--text-h3);
}

.bd-yarn-colors__heading em {
    font-style: italic;
    font-weight: var(--weight-regular);
}

.bd-yarn-colors__sub {
    color: var(--color-muted);
    font-style: italic;
    font-weight: var(--weight-regular);
    font-size: 0.85em;
}

.bd-yarn-colors__all {
    color: var(--color-primary);
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.bd-yarn-colors__all:hover {
    color: var(--color-primary-hover);
    gap: 0.6rem;
    opacity: 1;
}

.bd-yarn-colors__lead {
    color: var(--color-muted);
    font-style: italic;
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
}

/* Color-Cards (Ähnliche Farben) */
.bd-color-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
}

.bd-color-card {
    list-style: none;
}

.bd-color-card__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: var(--space-md) var(--space-sm);
    background: var(--color-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-heading);
    transition: var(--transition);
    position: relative;
}

.bd-color-card__link:hover {
    border-color: var(--color-sand-300);
    transform: translateY(-2px);
    opacity: 1;
}

.bd-color-card.is-active .bd-color-card__link {
    border-color: var(--color-heading);
}

.bd-color-card__badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--color-heading);
    color: var(--color-bg);
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 9px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    line-height: 1;
}

.bd-color-card__dot {
    --dot-color: var(--color-bg-alt);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--dot-color);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
    margin-bottom: var(--space-xs);
}

.bd-color-card__name {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    line-height: var(--leading-tight);
}

.bd-color-card__id {
    font-size: var(--text-xs);
    color: var(--color-muted);
    font-style: italic;
}


/* Color-Pairs (Passt gut zu) */
.bd-color-pairs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-md);
}

.bd-color-pair {
    list-style: none;
}

.bd-color-pair__link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-heading);
    transition: var(--transition);
}

.bd-color-pair__link:hover {
    border-color: var(--color-heading);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    opacity: 1;
}

.bd-color-pair__dots {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.bd-color-pair__dot {
    --dot-color: var(--color-bg-alt);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dot-color);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.bd-color-pair__dot:nth-child(2) {
    margin-left: -12px;
}

.bd-color-pair__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bd-color-pair__name {
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    font-size: var(--text-body);
    line-height: var(--leading-tight);
}

.bd-color-pair__hint {
    font-size: var(--text-xs);
    color: var(--color-muted);
    font-style: italic;
}

.bd-color-pair__cta {
    color: var(--color-primary);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.bd-color-pair__link:hover .bd-color-pair__cta {
    gap: 0.5rem;
    color: var(--color-primary-hover);
}


/* ─────────────────────────────────────────
   20b. REZENSIONEN
   - eigenes Markup (kein WC-Default-Pseudoelement-Hack)
   - Sterne sind echte FA-Light <i> Tags
   ───────────────────────────────────────── */
.bd-single__reviews {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px dashed var(--color-border);
}

.bd-single__reviews-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 900px) {
    .bd-single__reviews-body {
        grid-template-columns: minmax(0, 1fr) minmax(380px, 420px);
        gap: var(--space-3xl);
        align-items: start;
    }
}

/* WC injizierte Default-Header verstecken (wir haben eigenen) */
.bd-reviews .woocommerce-Reviews-title { display: none; }

.bd-reviews { width: 100%; min-width: 0; }

.bd-reviews__list-wrap { min-width: 0; }

.bd-wine-tabs__panel .bd-reviews {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

@media (min-width: 900px) {
    .bd-wine-tabs__panel .bd-reviews {
        grid-template-columns: minmax(0, 1fr);
    }

    .bd-wine-tabs__panel .bd-reviews--empty,
    .bd-wine-tabs__panel .bd-reviews--submitted {
        max-width: none;
        grid-template-columns: minmax(0, 1fr);
    }
}

.bd-wine-tabs__panel .bd-reviews__form-wrap {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.bd-wine-tabs__panel .bd-reviews__empty,
.bd-wine-tabs__panel .bd-reviews__verify-required {
    min-height: 0;
}


/* ─────────────────────────────────────────
   STARS — Display (echte fa-light Icons)
   - Leer: muted Sand-Ton, klar sichtbar auf Cards
   - Voll: Primary-Purple (Marken-Hervorhebung)
   ───────────────────────────────────────── */
.bd-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.bd-stars__icon {
    font-size: 1.1rem;
    color: var(--color-muted);
}

.bd-stars__icon.is-full {
    color: var(--color-primary);
}

.bd-stars__icon.is-half {
    color: var(--color-primary);
    opacity: 0.55;
}


/* ─────────────────────────────────────────
   REVIEW CARDS
   ───────────────────────────────────────── */
.bd-reviews__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.bd-review {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bd-review__card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
}

.bd-review__head {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-sm);
}

@media (max-width: 480px) {
    .bd-review__head {
        grid-template-columns: 40px 1fr;
        grid-template-areas:
            "avatar meta"
            "rating rating";
        row-gap: var(--space-xs);
    }
    .bd-review__avatar { grid-area: avatar; }
    .bd-review__meta   { grid-area: meta; }
    .bd-review__rating { grid-area: rating; }
}

.bd-review__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: 1.1rem;
}

.bd-review__meta { min-width: 0; }

.bd-review__byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.bd-review__author {
    color: var(--color-heading);
    font-weight: var(--weight-semibold);
    font-size: var(--text-body);
}

.bd-review__verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: var(--text-xs);
    color: var(--color-success);
    font-weight: var(--weight-medium);
    background: color-mix(in srgb, var(--color-success) 10%, transparent);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.bd-review__date {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-muted);
    margin-top: 2px;
}

.bd-review__body {
    color: var(--color-text);
    line-height: var(--leading-relaxed);
}

.bd-review__body p {
    margin-bottom: var(--space-sm);
}

.bd-review__body p:last-child {
    margin-bottom: 0;
}

.bd-review__pending {
    background: color-mix(in srgb, var(--color-warning) 12%, transparent);
    border-radius: var(--radius-base);
    padding: var(--space-xs) var(--space-sm);
    color: var(--color-warning);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}


/* ─────────────────────────────────────────
   EMPTY STATE / VERIFY-REQUIRED
   ───────────────────────────────────────── */
.bd-reviews__empty,
.bd-reviews__verify-required {
    width: fit-content;
    max-width: 100%;
    background: transparent;
    border-radius: 0;
    padding: 0;
    color: var(--color-muted);
    font-style: normal;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    margin: 0;
}

.bd-reviews__empty i,
.bd-reviews__verify-required i {
    color: var(--color-primary);
    font-style: normal;
    font-size: 1rem;
    transform: translateY(-1px);
}

.bd-reviews__empty-title {
    color: var(--color-heading);
    font-weight: var(--weight-semibold);
}

.bd-reviews__empty-text {
    color: var(--color-muted);
}


/* ─────────────────────────────────────────
   PAGINATION
   ───────────────────────────────────────── */
.bd-reviews__pagination {
    margin-top: var(--space-lg);
}

.bd-reviews__pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
}

.bd-reviews__pagination ul li a,
.bd-reviews__pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--space-sm);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    color: var(--color-text);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: var(--transition);
}

.bd-reviews__pagination ul li span.current,
.bd-reviews__pagination ul li a:hover {
    background: var(--color-heading);
    color: var(--color-bg);
    border-color: var(--color-heading);
}


/* ─────────────────────────────────────────
   REVIEW FORM
   ───────────────────────────────────────── */
.bd-reviews__form-wrap {
    border-radius: 0;
    padding: 0;
}

.bd-reviews--submitted .bd-reviews__form-wrap {
    order: -1;
}

.bd-reviews__form-title {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    margin: 0 0 var(--space-lg);
    line-height: var(--leading-tight);
}

.bd-reviews__form-wrap .comment-form,
.bd-reviews__form-wrap #commentform {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin: 0;
}

.bd-reviews__form-wrap.is-submitting {
    opacity: 0.78;
    pointer-events: none;
}

.bd-reviews__notice,
.bd-reviews__thanks {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 var(--space-md);
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--color-green-600);
    background: #f8faf3;
    color: var(--color-heading);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.bd-reviews__notice i,
.bd-reviews__thanks i {
    margin-top: 0.15em;
    color: var(--color-green-700);
}

.bd-reviews__notice--error {
    border-left-color: var(--color-error);
    background: color-mix(in srgb, var(--color-error) 8%, var(--color-bg));
}

.bd-reviews__thanks {
    margin-bottom: 0;
}

.bd-reviews__thanks > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.bd-reviews__thanks strong {
    font-weight: var(--weight-semibold);
}

.bd-reviews__thanks span {
    color: var(--color-muted);
}

.bd-reviews__form-note,
.bd-reviews__form-wrap .comment-notes {
    margin: calc(-1 * var(--space-xs)) 0 0;
    color: var(--color-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
}

.bd-reviews__form-wrap .comment-notes .required-field-message {
    display: none;
}

.bd-reviews__form-wrap .bd-form-row {
    margin: 0;
}

.bd-reviews__form-wrap label {
    display: block;
    font-weight: var(--weight-medium);
    color: var(--color-heading);
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
}

.bd-reviews__form-wrap .required {
    color: var(--color-error);
    margin-left: 2px;
}

.bd-reviews__form-wrap .bd-input,
.bd-reviews__form-wrap .bd-textarea,
.bd-reviews__form-wrap input[type="text"],
.bd-reviews__form-wrap input[type="email"],
.bd-reviews__form-wrap textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: var(--input-border);
    border-radius: 4px;
    background: var(--color-bg);
    font-family: var(--font-base);
    font-size: var(--text-sm);
    color: var(--color-text);
    transition: var(--transition);
}

.bd-reviews__form-wrap textarea,
.bd-reviews__form-wrap .bd-textarea {
    min-height: 128px;
    resize: vertical;
}

.bd-reviews__form-wrap input:focus-visible,
.bd-reviews__form-wrap textarea:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
    border-color: var(--input-border-focus);
}

/* WC versteckt das #rating Select sobald es initialisiert ist – wir auch */
.bd-reviews__form-wrap select#rating {
    display: none;
}


/* Stars im Form (nach JS-Decoration)
   - Leer: muted (sand-500) — deutlich sichtbar auf bg-light
   - Hover/Selected: primary purple
*/
.bd-stars-input {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 var(--space-xs);
    padding: 0;
}

.bd-stars-input a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    text-decoration: none !important;
    text-indent: 0;
    transition: var(--transition);
    border-radius: var(--radius-base);
    cursor: pointer;
}

.bd-stars-input a > i {
    font-size: 1.35rem;
    color: var(--color-muted);
    transition: transform var(--transition);
}

.bd-stars-input a:hover > i {
    transform: scale(1.15);
}

/* Selected-Zustand (Klick) */
.bd-stars-input a.is-selected-fill {
    color: var(--color-primary);
}

.bd-stars-input a.is-selected-fill > i,
.bd-stars-input a.is-hovered-fill > i {
    color: var(--color-green-700);
}

.bd-stars-input a.is-selected-current,
.bd-stars-input a.is-hovered-current {
    background: #eef3df;
    border: 1px solid #d8e3c4;
}

.bd-stars-input a.is-selected-current > i,
.bd-stars-input a.is-hovered-current > i {
    transform: scale(1.08);
}

.bd-stars-input__value {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    margin-left: 0.55rem;
    padding: 0.2rem 0.58rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: var(--weight-semibold);
    line-height: 1;
    vertical-align: middle;
    transform: translateY(-0.2rem);
}

.bd-stars-input__value.is-selected {
    border-color: #d8e3c4;
    background: #f8faf3;
    color: var(--color-green-700);
}

/* Hover-Zustand: Sterne bis zum gehoverten in Primary,
   selected darunter wird visuell „überlagert" */
.bd-stars-input:hover a.is-selected-fill:not(.is-hovered-fill) {
    color: var(--color-muted);
}

.bd-stars-input a.is-hovered-fill {
    color: var(--color-primary);
}

.bd-reviews .wpa-test-msg {
    display: none !important;
}

@media (max-width: 520px) {
    .bd-stars-input__value {
        width: fit-content;
        margin: 0.35rem 0 0;
        transform: none;
    }
}


/* Submit-Button — explizit gegen WC- und globale .submit-Defaults */
.bd-reviews__form-wrap .form-submit {
    margin: var(--space-xs) 0 0;
}

#review_form_wrapper.bd-reviews__form-wrap input.submit,
#review_form_wrapper.bd-reviews__form-wrap input[type="submit"],
#review_form_wrapper.bd-reviews__form-wrap button[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: auto;
    min-height: 2.9rem;
    padding: 0.82rem 1.6rem;
    background: var(--color-accent) !important;
    color: var(--color-accent-text) !important;
    border-radius: 0 !important;
    border: none !important;
    font-family: var(--font-base);
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    text-shadow: none;
    line-height: 1.2;
}

#review_form_wrapper.bd-reviews__form-wrap input.submit:hover,
#review_form_wrapper.bd-reviews__form-wrap input[type="submit"]:hover,
#review_form_wrapper.bd-reviews__form-wrap button[type="submit"]:hover {
    background: var(--color-accent-hover) !important;
    color: var(--color-accent-text) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn-primary);
}

#review_form_wrapper.bd-reviews__form-wrap input.submit:disabled,
#review_form_wrapper.bd-reviews__form-wrap input[type="submit"]:disabled,
#review_form_wrapper.bd-reviews__form-wrap button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

.bd-reviews__form-wrap .logged-in-as {
    color: var(--color-muted);
    font-size: var(--text-sm);
    margin: 0;
}

.bd-reviews__must-login {
    background: var(--color-bg);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-base);
    padding: var(--space-md);
    color: var(--color-muted);
    font-size: var(--text-sm);
    margin: 0;
}

.bd-reviews__must-login a {
    color: var(--color-primary);
    font-weight: var(--weight-medium);
    text-decoration: none;
}

.bd-reviews__must-login a:hover {
    color: var(--color-primary-hover);
    opacity: 1;
}


/* ─────────────────────────────────────────
   20c. COOKIE-CONSENT (Reviews-Form)
   - Checkbox top-aligned, Text fließt rechts daneben
   ───────────────────────────────────────── */
.bd-reviews__form-wrap .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin: 0;
    padding: 0;
}

.bd-reviews__form-wrap .comment-form-cookies-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.15em 0 0; /* leichter Top-Versatz an die Baseline der ersten Zeile */
    accent-color: var(--color-primary);
    cursor: pointer;
}

.bd-reviews__form-wrap .comment-form-cookies-consent label {
    margin: 0;
    padding: 0;
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: var(--weight-regular);
    line-height: var(--leading-base);
    cursor: pointer;
}


/* ─────────────────────────────────────────
   20d. LIGHTBOX (Galerie-Zoom)
   ───────────────────────────────────────── */
.bd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(50, 41, 20, 0.94); /* --color-brown-900 mit Alpha */
    backdrop-filter: blur(8px);
    padding: var(--space-2xl);
}

.bd-lightbox[hidden] {
    display: none;
}

body.bd-lightbox-open {
    overflow: hidden;
}

.bd-lightbox__stage {
    position: relative;
    max-width: min(90vw, 1400px);
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
    user-select: none;
}

.bd-lightbox__image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-base);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s var(--ease-ui);
}

/* Höhere Spezifität (.bd-lightbox als Parent) damit basics.css
   button-Defaults (padding, border-radius pill) nicht durchschlagen. */
.bd-lightbox .bd-lightbox__close,
.bd-lightbox .bd-lightbox__nav {
    position: absolute;
    width: 48px;
    height: 48px;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: background var(--transition), transform var(--transition);
    backdrop-filter: blur(8px);
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    gap: 0;
}

.bd-lightbox .bd-lightbox__close:hover,
.bd-lightbox .bd-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
    box-shadow: none;
}

.bd-lightbox .bd-lightbox__close > i,
.bd-lightbox .bd-lightbox__nav > i {
    font-size: inherit;
    line-height: 1;
}

.bd-lightbox .bd-lightbox__close {
    top: var(--space-lg);
    right: var(--space-lg);
}

.bd-lightbox .bd-lightbox__nav--prev {
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
}

.bd-lightbox .bd-lightbox__nav--prev:hover {
    transform: translateY(-50%) scale(1.05);
}

.bd-lightbox .bd-lightbox__nav--next {
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
}

.bd-lightbox .bd-lightbox__nav--next:hover {
    transform: translateY(-50%) scale(1.05);
}

.bd-lightbox__counter {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    line-height: 1;
    backdrop-filter: blur(8px);
    letter-spacing: var(--tracking-wide);
}

.bd-lightbox__close:focus-visible,
.bd-lightbox__nav:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .bd-lightbox {
        padding: var(--space-md);
    }
    .bd-lightbox .bd-lightbox__close,
    .bd-lightbox .bd-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .bd-lightbox .bd-lightbox__close {
        top: var(--space-sm);
        right: var(--space-sm);
    }
    .bd-lightbox .bd-lightbox__nav--prev { left: var(--space-sm); }
    .bd-lightbox .bd-lightbox__nav--next { right: var(--space-sm); }
}


/* ─────────────────────────────────────────
   21. WC-NOTICES (Add-to-cart-Bestätigung)
   ───────────────────────────────────────── */
.bd-single .woocommerce-notices-wrapper .woocommerce-message,
.bd-single .woocommerce-notices-wrapper .woocommerce-info,
.bd-single .woocommerce-notices-wrapper .woocommerce-error {
    border-radius: var(--radius-base);
    padding: var(--space-sm) var(--space-md);
    border-left: 3px solid var(--color-success);
    background: var(--color-bg-light);
    color: var(--color-heading);
    font-size: var(--text-sm);
    list-style: none;
    margin-bottom: var(--space-md);
}

.bd-single .woocommerce-notices-wrapper .woocommerce-error {
    border-left-color: var(--color-error);
    color: var(--color-error);
}

/* =========================================
   BD WINE SINGLE – Concept Layout Override
   Uses tokens from basics.css only.
   ========================================= */

.bd-single--wine-concept {
    margin-block: var(--space-lg) var(--space-3xl);
}

.bd-product-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: start;
}

@media (min-width: 960px) {
    .bd-product-hero {
        grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
        gap: var(--space-2xl);
    }
}

@media (min-width: 1280px) {
    .bd-product-hero {
        grid-template-columns: minmax(0, 1.12fr) minmax(460px, 0.88fr);
    }
}

.bd-product-hero__gallery,
.bd-product-hero__summary {
    min-width: 0;
}

.bd-single--wine-concept .bd-gallery__main {
    background: var(--color-bg-light);
    border-radius: var(--radius-4);
    border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
    box-shadow: var(--shadow-sm);
}

.bd-single--wine-concept .bd-gallery__thumb {
    width: 86px;
    height: 86px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-light);
    border-color: color-mix(in srgb, var(--color-border) 75%, transparent);
}

.bd-single--wine-concept .bd-gallery__thumb.is-active,
.bd-single--wine-concept .bd-gallery__thumb:hover {
    border-color: var(--color-accent);
}

.bd-product-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-block: var(--space-sm);
}

.bd-product-summary__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.bd-product-summary__eyebrow {
    color: var(--color-accent-hover);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.bd-product-summary__title {
    font-size: clamp(2.2rem, 4.4vw, 4rem) !important;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-h2);
    margin: 0 !important;
    color: var(--color-heading);
}

.bd-product-summary__meta {
    margin: 0;
    color: var(--color-text);
    font-size: var(--text-body);
}

.bd-product-summary__rating {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    width: fit-content;
    color: var(--color-heading);
    font-size: var(--text-sm);
    text-decoration: none;
}

.bd-product-summary__rating:hover {
    opacity: 1;
    color: var(--color-accent-hover);
}

.bd-product-summary__rating .star-rating {
    margin: 0;
    color: var(--color-accent);
}

.bd-product-summary__rating span:not(.star-rating) {
    color: var(--color-muted);
}

.bd-product-summary__intro {
    max-width: 60ch;
    color: var(--color-text);
    font-size: var(--text-body);
    line-height: var(--leading-relaxed);
}

.bd-product-summary__intro p {
    margin-bottom: var(--space-sm);
}

.bd-product-summary__usps {
    list-style: none;
    margin: var(--space-sm) 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
}

.bd-product-summary__usps li {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: var(--space-xs);
    color: var(--color-text);
    font-size: var(--text-xs);
    line-height: var(--leading-snug);
}

.bd-product-summary__usps i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--color-accent-hover);
    font-size: 1.45rem;
}

.bd-product-summary__usps strong {
    color: var(--color-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.bd-product-summary__usps span {
    color: var(--color-muted);
}

.bd-product-summary__purchase {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.bd-product-summary__price-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-xxs);
}

.bd-product-summary__price {
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: var(--weight-bold);
    line-height: 1;
}

.bd-product-summary__price .price,
.bd-product-summary__price .amount,
.bd-product-summary__price .woocommerce-Price-amount {
    color: inherit;
}

.bd-product-summary__price del,
.bd-product-summary__price del .amount {
    color: var(--color-muted);
    font-size: 0.78em;
    font-weight: var(--weight-regular);
}

.bd-product-summary__price ins {
    text-decoration: none;
    background: transparent;
    color: var(--color-primary);
}

.bd-product-summary .bd-price__suffix,
.bd-product-card__unit-price .bd-price__suffix {
    display: block;
    color: var(--color-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-regular);
    line-height: var(--leading-base);
}

.bd-product-summary .bd-price__suffix a,
.bd-product-card__unit-price .bd-price__suffix a {
    color: var(--color-accent-hover);
    text-decoration: none;
}

.bd-product-summary__availability {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-heading);
    font-size: var(--text-sm);
}

.bd-product-summary__availability i {
    color: var(--color-success);
    font-size: 0.8rem;
}

.bd-product-summary__availability--out i {
    color: var(--color-error);
}

.bd-product-summary__cart .cart,
.bd-product-summary__cart form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: stretch;
    margin: 0;
}

.bd-product-summary__cart .quantity,
.bd-product-summary__cart .quantity.bd-qty-stepper {
    min-width: 132px;
    height: 56px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    background: var(--color-bg);
}

.bd-product-summary__cart input.qty {
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--color-heading);
    font-weight: var(--weight-semibold);
}

.bd-product-summary__cart .single_add_to_cart_button,
.bd-product-summary__cart button.single_add_to_cart_button {
    min-height: 56px;
    flex: 1 1 240px;
    border-radius: var(--radius-base);
    background: var(--color-primary);
    color: var(--color-primary-text);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: none;
}

.bd-product-summary__cart .single_add_to_cart_button:hover,
.bd-product-summary__cart button.single_add_to_cart_button:hover {
    background: var(--color-primary-hover);
    color: var(--color-primary-text);
    transform: translateY(var(--btn-translate-hover));
    box-shadow: var(--btn-shadow-primary);
}

.bd-product-summary__trust {
    list-style: none;
    margin: var(--space-sm) 0 0;
    padding: 0;
    display: grid;
    gap: var(--space-sm);
    color: var(--color-text);
    font-size: var(--text-sm);
}

.bd-product-summary__trust li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.bd-product-summary__trust i {
    width: 1.3rem;
    color: var(--color-heading);
    text-align: center;
}

.bd-product-summary__meta-foot {
    margin-top: var(--space-sm);
    color: var(--color-muted);
    font-size: var(--text-xs);
}

.bd-wine-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

@media (min-width: 960px) {
    .bd-wine-panel {
        grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.75fr);
        align-items: start;
        gap: var(--space-2xl);
    }
}

.bd-wine-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.bd-wine-tabs__tab {
    position: relative;
    padding: 0 0 var(--space-sm);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-muted);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bd-wine-tabs__tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--color-accent-hover);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition);
}

.bd-wine-tabs__tab:hover,
.bd-wine-tabs__tab.is-active {
    color: var(--color-heading);
}

.bd-wine-tabs__tab.is-active::after {
    transform: scaleX(1);
}

.bd-wine-tabs__panel {
    padding-top: var(--space-xl);
}

.bd-wine-tab-content__copy {
    max-width: 70ch;
    color: var(--color-text);
    line-height: var(--leading-relaxed);
}

.bd-wine-tab-content__copy > *:first-child {
    margin-top: 0;
}

.bd-wine-facts {
    list-style: none;
    margin: var(--space-xl) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: var(--space-lg);
}

.bd-wine-facts__item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--space-sm);
    row-gap: var(--space-xxs);
    align-items: start;
}

.bd-wine-facts__item i {
    grid-row: span 2;
    color: var(--color-accent-hover);
    font-size: 1.35rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.bd-wine-facts__label {
    color: var(--color-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
}

.bd-wine-facts__value {
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
}

/* Jana: Icons oberhalb der Sensorikwerte, ruhig und mittig gesetzt. */
.bd-wine-facts__item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.bd-wine-facts__item i {
    grid-row: auto;
    margin-top: 0;
}

.bd-wine-legal__copy {
    max-width: 70ch;
    margin-top: var(--space-xl);
    color: var(--color-text);
    line-height: var(--leading-relaxed);
}

.bd-wine-detail-list,
.bd-wine-legal-list,
.bd-wine-origin__facts {
    margin: 0;
    display: grid;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
}

.bd-wine-detail-list__row,
.bd-wine-legal-list__row,
.bd-wine-origin__facts > div {
    display: grid;
    grid-template-columns: minmax(150px, 0.42fr) 1fr;
    gap: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.bd-wine-detail-list__row:last-child,
.bd-wine-legal-list__row:last-child,
.bd-wine-origin__facts > div:last-child {
    border-bottom: 0;
}

.bd-wine-detail-list dt,
.bd-wine-legal-list dt,
.bd-wine-origin__facts dt {
    color: var(--color-muted);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

.bd-wine-detail-list dd,
.bd-wine-legal-list dd,
.bd-wine-origin__facts dd {
    margin: 0;
    color: var(--color-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
}

.bd-wine-origin {
    display: grid;
    gap: var(--space-lg);
}

.bd-wine-origin__copy {
    max-width: 70ch;
    line-height: var(--leading-relaxed);
}

.bd-wine-legal-note {
    margin-top: var(--space-md);
    color: var(--color-muted);
    font-size: var(--text-sm);
}

.bd-wine-promise {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-md);
    align-items: end;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
    color: var(--color-text);
    min-height: 210px;
}

.bd-wine-promise__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.bd-wine-promise__kicker {
    color: var(--color-accent-hover);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.bd-wine-promise__title {
    font-size: var(--text-h4);
    margin: 0;
}

.bd-wine-promise p {
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.bd-wine-promise__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    color: var(--color-accent-hover);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    text-decoration: none;
}

.bd-wine-promise__link:hover {
    opacity: 1;
    color: var(--color-heading);
}

.bd-wine-promise__icon {
    color: var(--color-accent-hover);
    font-size: clamp(3rem, 6vw, 5rem);
    opacity: 0.5;
}

.bd-related-products {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.bd-related-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.bd-product-card--wine {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.bd-product-card__badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding-inline: var(--space-sm);
    border-radius: var(--radius-pill);
    background: var(--color-bg-alt);
    color: var(--color-accent-hover);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
}

.bd-product-card--wine .bd-product-card__image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.bd-product-card--wine .bd-product-card__image-link,
.bd-product-card--wine .bd-product-card__image-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.bd-product-card--wine .bd-product-card__image-link img {
    object-fit: contain;
    padding: var(--space-md);
}

.bd-product-card--wine .bd-product-card__body {
    padding: var(--space-md) var(--space-xs) 0;
}

.bd-product-card--wine .bd-product-card__title {
    margin: 0;
    color: var(--color-heading);
    font-size: var(--text-body);
    line-height: var(--leading-tight);
}

.bd-product-card--wine .bd-product-card__title-link {
    text-decoration: none;
}

.bd-product-card--wine .bd-product-card__meta {
    margin: var(--space-xs) 0 0;
    color: var(--color-muted);
    font-size: var(--text-sm);
}

.bd-product-card__price-row {
    margin-top: var(--space-sm);
    display: grid;
    gap: var(--space-xxs);
}

.bd-product-card--wine .bd-product-card__price {
    color: var(--color-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
}

.bd-product-card--wine .bd-product-card__price ins {
    color: var(--color-primary);
    text-decoration: none;
    background: transparent;
}

.bd-product-card--wine .bd-product-card__price del {
    color: var(--color-muted);
    margin-right: var(--space-xs);
}

.bd-product-card--wine .bd-product-card__cta {
    position: absolute;
    left: var(--space-sm);
    right: var(--space-sm);
    bottom: var(--space-sm);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-base);
    background: var(--color-primary);
    color: var(--color-primary-text);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition);
}

.bd-product-card--wine .bd-product-card__image-wrap:hover .bd-product-card__cta,
.bd-product-card--wine .bd-product-card__cta:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .bd-product-summary__usps {
        grid-template-columns: 1fr;
    }

    .bd-wine-detail-list__row,
    .bd-wine-legal-list__row,
    .bd-wine-origin__facts > div {
        grid-template-columns: 1fr;
        gap: var(--space-xxs);
    }

    .bd-wine-promise {
        grid-template-columns: 1fr;
    }

    .bd-wine-promise__icon {
        display: block;
        justify-self: end;
    }

    .bd-product-card--wine .bd-product-card__cta {
        opacity: 1;
        transform: none;
    }
}

/* =========================================
   WINE SINGLE – CTA OVERRIDE
   WooCommerce 10 uses :where() button styles with a purple fallback.
   This keeps the single-product cart CTA on the tokenized orange primary.
   ========================================= */
body.single-product .bd-product-summary__cart form.cart .single_add_to_cart_button,
body.single-product .bd-product-summary__cart form.cart button.single_add_to_cart_button,
body.single-product .bd-product-summary__cart form.cart .single_add_to_cart_button.button,
body.single-product .bd-product-summary__cart form.cart .single_add_to_cart_button.button.alt,
body.single-product .bd-product-summary__cart form.cart button.single_add_to_cart_button.button,
body.single-product .bd-product-summary__cart form.cart button.single_add_to_cart_button.button.alt,
.woocommerce div.product .bd-product-summary__cart form.cart .single_add_to_cart_button.button.alt {
    background: var(--color-primary) !important;
    background-color: var(--color-primary) !important;
    color: var(--color-primary-text) !important;
    border-color: var(--color-primary) !important;
}

body.single-product .bd-product-summary__cart form.cart .single_add_to_cart_button,
body.single-product .bd-product-summary__cart form.cart button.single_add_to_cart_button {
    color: var(--color-white) !important;
}

body.single-product .bd-product-summary__cart .quantity.bd-qty-stepper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

body.single-product .bd-product-summary__cart .quantity.bd-qty-stepper > * {
    width: 100%;
    min-width: 0;
}

/* Das Raster verteilt die Zellen; die Mengenbuttons bleiben kreisrund. */
body.single-product .bd-product-summary__cart .quantity.bd-qty-stepper > button.bd-qty-stepper__btn {
    width: min(100%, calc(var(--space-md) * 2));
    height: auto;
    aspect-ratio: 1;
    justify-self: center;
}

body.single-product .bd-product-summary__cart form.cart .single_add_to_cart_button:hover,
body.single-product .bd-product-summary__cart form.cart button.single_add_to_cart_button:hover,
body.single-product .bd-product-summary__cart form.cart .single_add_to_cart_button.button:hover,
body.single-product .bd-product-summary__cart form.cart .single_add_to_cart_button.button.alt:hover,
body.single-product .bd-product-summary__cart form.cart button.single_add_to_cart_button.button:hover,
body.single-product .bd-product-summary__cart form.cart button.single_add_to_cart_button.button.alt:hover,
.woocommerce div.product .bd-product-summary__cart form.cart .single_add_to_cart_button.button.alt:hover {
    background: var(--color-primary-hover) !important;
    background-color: var(--color-primary-hover) !important;
    color: var(--color-primary-text) !important;
    border-color: var(--color-primary-hover) !important;
    box-shadow: var(--btn-shadow-primary);
}

/* =========================================
   WINE SINGLE – MODERN SPEC CARDS + RELATED
   V3: Cleaner tabs, spec cards, safe related fallback.
   ========================================= */
.bd-section-header {
    margin-bottom: var(--space-lg);
}

.bd-section-header__title {
    margin: 0;
    color: var(--color-heading);
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
    font-weight: var(--weight-bold);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.bd-wine-tabs__nav {
    gap: var(--space-md) var(--space-lg);
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: var(--space-xs);
}

.bd-wine-tabs__tab {
    padding: 0.25rem 0 0.8rem;
    white-space: nowrap;
}

.bd-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    align-items: stretch;
}

.bd-spec-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
    align-items: start;
    min-height: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: unset;
    box-shadow: var(--shadow-xs, 0 4px 16px rgba(0, 0, 0, 0.04));
}

.bd-spec-card.is-wide {
    grid-column: 1 / -1;
}

.bd-spec-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(var(--color-primary-rgb, 216, 125, 26), 0.1);
    color: var(--color-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.bd-spec-card__body {
    min-width: 0;
}

.bd-spec-card__label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--color-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    line-height: 1.3;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.bd-spec-card__value,
.bd-spec-card__value a {
    color: var(--color-heading);
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    text-decoration: none;
    word-break: break-word;
}

.bd-spec-card__value a:hover {
    color: var(--color-primary);
}

.bd-spec-grid--origin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bd-spec-grid--legal .bd-spec-card__value {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

.bd-wine-origin {
    display: grid;
    gap: var(--space-lg);
}

.bd-wine-origin__copy {
    max-width: 68ch;
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

.bd-wine-origin__copy p:last-child {
    margin-bottom: 0;
}

.bd-wine-legal {
    display: grid;
    gap: var(--space-md);
}

.bd-wine-legal-note {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-base);
    background: var(--color-bg-light);
    color: var(--color-text);
    font-size: var(--text-sm);
}

.bd-wine-legal-note i {
    color: var(--color-primary);
}

.bd-related-products {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.bd-related-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
}

.bd-product-card--wine {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    box-shadow: var(--shadow-xs, 0 4px 16px rgba(0, 0, 0, 0.04));
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.bd-product-card--wine:hover {
    transform: translateY(-2px);
    border-color: var(--color-sand-300);
    box-shadow: var(--shadow-sm);
}

.bd-product-card--wine .bd-product-card__body {
    padding: var(--space-md);
}

.bd-product-card--wine .bd-product-card__meta {
    min-height: 2.4em;
}

.bd-product-card__unit-price .bd-price__suffix {
    display: block;
    color: var(--color-muted);
    font-size: var(--text-xs);
    line-height: var(--leading-snug);
}

@media (max-width: 1199px) {
    .bd-related-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 959px) {
    .bd-spec-grid,
    .bd-spec-grid--origin {
        grid-template-columns: 1fr;
    }

    .bd-spec-card.is-wide {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .bd-spec-card {
        padding: var(--space-md);
    }

    .bd-related-products__grid {
        grid-template-columns: 1fr;
    }
}


.bd-product-summary__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.bd-product-summary__actions .bd-wishlist-button {
    align-self: flex-start;
}

.bd-product-summary__actions .bd-product-summary__cart {
    width: 100%;
}


/* =========================================
   JANA WINE SINGLE – CONVERSION POLISH
   Focus: faster buying path, calmer wine-shop rhythm, tighter mobile.
   ========================================= */

body.single-product .bd-single--wine-concept {
    margin-block: clamp(1.25rem, 3vw, 2.5rem) clamp(4rem, 7vw, 6.5rem);
}

body.single-product .bd-product-hero {
    gap: clamp(1.75rem, 4vw, 4.25rem);
}

@media (min-width: 960px) {
    body.single-product .bd-product-hero {
        grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.86fr);
    }
}

@media (min-width: 960px) and (min-height: 1100px) {
    body.single-product .bd-product-hero__summary {
        position: sticky;
        top: calc(var(--header-height, 88px) + 1.25rem);
        align-self: start;
    }
}

body.single-product .bd-single--wine-concept .bd-gallery {
    gap: clamp(.85rem, 1.4vw, 1.2rem);
}

body.single-product .bd-single--wine-concept .bd-gallery__main {
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .9) 0 22%, rgba(255, 255, 255, 0) 52%),
        linear-gradient(145deg, var(--color-bg-light), color-mix(in srgb, var(--color-bg-light) 78%, var(--color-primary) 22%));
}

body.single-product .bd-single--wine-concept .bd-gallery__image {
    padding: clamp(1rem, 2vw, 2rem);
}

body.single-product .bd-single--wine-concept .bd-gallery__thumb {
    width: 78px;
    height: 78px;
    border-radius: 8px;
}

body.single-product .bd-gallery__counter,
body.single-product .bd-gallery__zoom-hint {
    border-radius: 999px;
}

body.single-product .bd-product-summary {
    gap: clamp(1rem, 1.8vw, 1.35rem);
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 1px solid color-mix(in srgb, var(--color-border) 76%, transparent);
    border-radius: 8px;
    background-color: var(--color-bg-light);
    background-image:
        linear-gradient(180deg, color-mix(in srgb, var(--color-bg-light) 82%, var(--color-bg) 18%) 0%, var(--color-bg) 100%);
}

body.single-product .bd-product-summary__head {
    gap: .45rem;
}

body.single-product .bd-product-summary__head::after {
    display: block;
    width: 5rem;
    height: 3px;
    margin-top: .55rem;
    background: var(--color-red-500);
    content: "";
}

body.single-product .bd-product-summary__eyebrow {
    color: var(--color-red-500);
    letter-spacing: .06em;
}

body.single-product .bd-product-summary__title {
    max-width: 12ch;
    font-size: clamp(2.1rem, 3.5vw, 3.45rem) !important;
}

body.single-product .bd-product-summary__meta {
    color: var(--color-muted);
    font-size: clamp(.98rem, 1vw, 1.05rem);
}

body.single-product .bd-product-summary__purchase {
    gap: var(--space-sm);
    margin-top: 0;
    padding-block: clamp(1rem, 1.7vw, 1.35rem);
    border-block: 1px solid color-mix(in srgb, var(--color-border) 80%, transparent);
}

body.single-product .bd-product-summary__price {
    font-size: clamp(2rem, 3vw, 2.65rem);
}

body.single-product .bd-product-summary__availability {
    width: fit-content;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--color-success) 9%, var(--color-bg) 91%);
    color: var(--color-heading);
    line-height: 1.25;
}

/* Quiet personal action within the stock/purchase row, using the text variant. */
.bd-product-summary__availability-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs) var(--space-sm);
}
.bd-product-summary__availability-row .bd-cellar-product-favorite { display: contents; }
.bd-cellar-product-favorite .bd-cellar__favorite { margin: 0; }
.bd-cellar-product-favorite .btn-link {
    padding-inline: var(--space-xs);
    color: var(--color-muted);
}
.bd-cellar-product-favorite .btn-link:is(:hover, :focus-visible, .is-saved),
.bd-cellar-product-favorite .btn-link i { color: var(--color-red-500); }
.bd-cellar-product-favorite .bd-cellar__notice {
    flex-basis: 100%;
    order: 1;
    margin: 0;
    font-size: var(--text-sm);
    color: var(--color-heading);
}

body.single-product .bd-product-summary__actions {
    gap: var(--space-sm);
}

body.single-product .bd-product-summary__cart form.cart {
    display: grid;
    grid-template-columns: minmax(7.25rem, auto) minmax(0, 1fr);
    gap: var(--space-sm);
}

body.single-product .bd-product-summary__cart .quantity,
body.single-product .bd-product-summary__cart .quantity.bd-qty-stepper,
body.single-product .bd-product-summary__cart .single_add_to_cart_button,
body.single-product .bd-product-summary__cart button.single_add_to_cart_button {
    border-radius: 8px;
}

body.single-product .bd-product-summary__cart .single_add_to_cart_button,
body.single-product .bd-product-summary__cart button.single_add_to_cart_button {
    min-width: 0;
    padding-inline: clamp(1rem, 2vw, 1.65rem);
}

body.single-product .bd-product-summary__intro {
    max-width: none;
    font-size: clamp(1rem, 1vw, 1.075rem);
}

body.single-product .bd-product-summary__quickfacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    margin: 0;
}

body.single-product .bd-product-summary__quickfact {
    display: grid;
    gap: .35rem;
    min-width: 0;
    padding: .8rem .85rem;
    border: 1px solid color-mix(in srgb, var(--color-border) 82%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-bg) 86%, var(--color-bg-light) 14%);
}

body.single-product .bd-product-summary__quickfact dt {
    display: grid;
    justify-items: center;
    align-items: center;
    gap: .4rem;
    color: var(--color-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

body.single-product .bd-product-summary__quickfact dt i {
    color: var(--color-red-500);
    font-size: 1.15rem;
}

body.single-product .bd-product-summary__quickfact dd {
    margin: 0;
    color: var(--color-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-regular);
    line-height: var(--leading-snug);
    text-align: center;
}

body.single-product .bd-product-summary__usps {
    gap: .65rem;
    margin: 0;
}

body.single-product .bd-product-summary__usps li {
    padding: .85rem .65rem;
    border: 1px solid color-mix(in srgb, var(--color-border) 78%, transparent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-bg) 78%, var(--color-bg-light) 22%);
}

body.single-product .bd-product-summary__usps i {
    width: 2rem;
    height: 2rem;
    color: var(--color-red-500);
    font-size: 1.1rem;
}

body.single-product .bd-product-summary__trust {
    margin-top: 0;
    padding-top: var(--space-sm);
    border-top: 1px solid color-mix(in srgb, var(--color-border) 76%, transparent);
}

body.single-product .bd-wine-panel {
    gap: clamp(1.5rem, 3vw, 3rem);
    margin-top: clamp(3rem, 6vw, 5.5rem);
    padding-top: clamp(2rem, 4vw, 3rem);
}

body.single-product .bd-wine-tabs {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    border: 1px solid color-mix(in srgb, var(--color-border) 74%, transparent);
    border-radius: 8px;
    background: var(--color-bg);
}

body.single-product .bd-wine-tabs__nav {
    gap: .75rem 1.35rem;
}

body.single-product .bd-wine-tabs__tab {
    letter-spacing: .04em;
}

body.single-product .bd-spec-card {
    border-radius: 8px;
    background: color-mix(in srgb, var(--color-bg) 88%, var(--color-bg-light) 12%);
    box-shadow: none;
}

body.single-product .bd-wine-promise {
    position: sticky;
    top: calc(var(--header-height, 88px) + 1.25rem);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--color-bg-light) 78%, var(--color-primary) 22%), var(--color-bg-light));
}

body.single-product .bd-related-products {
    margin-top: clamp(3rem, 6vw, 5.5rem);
    padding-top: clamp(2rem, 4vw, 3rem);
}

body.single-product .bd-related-products__grid {
    gap: clamp(1rem, 2vw, 1.5rem);
}

body.single-product .bd-product-card--wine {
    border-radius: 8px;
    box-shadow: none;
}

body.single-product .bd-product-card--wine .bd-product-card__image-wrap {
    border-radius: 8px;
}

@media (max-width: 959px) {
    body.single-product .bd-product-hero__summary,
    body.single-product .bd-wine-promise {
        position: static;
    }

    body.single-product .bd-product-summary {
        padding: clamp(1.05rem, 5vw, 1.45rem);
    }
}

@media (max-width: 640px) {
    body.single-product .bd-single--wine-concept {
        margin-block: 1rem 4rem;
    }

    body.single-product .bd-product-hero {
        gap: var(--space-lg);
    }

    body.single-product .bd-single--wine-concept .bd-gallery__main {
        height: min(78vw, 20rem);
        aspect-ratio: auto;
    }

    body.single-product .bd-single--wine-concept .bd-gallery__thumb {
        width: 68px;
        height: 68px;
    }

    body.single-product .bd-product-summary__title {
        max-width: 100%;
        font-size: clamp(2rem, 9vw, 2.45rem) !important;
    }

    body.single-product .bd-product-summary__purchase {
        padding-block: .85rem;
    }

    body.single-product .bd-product-summary__cart form.cart {
        grid-template-columns: minmax(6.75rem, .36fr) minmax(0, 1fr);
        align-items: stretch;
    }

    body.single-product .bd-product-summary__cart .quantity,
    body.single-product .bd-product-summary__cart .quantity.bd-qty-stepper,
    body.single-product .bd-product-summary__cart .single_add_to_cart_button,
    body.single-product .bd-product-summary__cart button.single_add_to_cart_button {
        width: 100%;
        min-height: 52px;
    }

    body.single-product .bd-product-summary__quickfacts,
    body.single-product .bd-product-summary__usps {
        grid-template-columns: 1fr;
    }

    body.single-product .bd-wine-tabs {
        padding: var(--space-md);
    }

    body.single-product .bd-wine-tabs__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-xs);
        padding-bottom: 0;
        border-bottom: 0;
        overflow-x: visible;
    }

    body.single-product .bd-wine-tabs__tab {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: var(--btn-height);
        padding: var(--space-sm) var(--space-xs);
        border: var(--btn-border-width) solid var(--color-border);
        background: var(--color-bg-light);
        color: var(--color-heading);
        font-size: var(--font-size-3);
        font-weight: var(--weight-medium);
        line-height: var(--leading-base);
        letter-spacing: normal;
        text-transform: none;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
        transition: var(--transition);
    }

    body.single-product .bd-wine-tabs__tab:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    body.single-product .bd-wine-tabs__tab.is-active {
        border-color: var(--btn-accent-bg);
        background: var(--btn-accent-bg);
        color: var(--btn-accent-color);
    }

    body.single-product .bd-wine-tabs__tab:hover {
        border-color: var(--btn-outline-accent);
        background: var(--btn-outline-accent);
        color: var(--btn-accent-color);
        transform: translateY(var(--btn-translate-hover));
    }

    body.single-product .bd-wine-tabs__tab.is-active:hover {
        border-color: var(--btn-accent-hover);
        background: var(--btn-accent-hover);
    }

    body.single-product .bd-wine-tabs__tab:focus-visible {
        outline: var(--focus-ring);
        outline-offset: var(--focus-offset);
    }

    body.single-product .bd-wine-tabs__tab::after {
        display: none;
    }
}

@media (max-width: 360px) {
    body.single-product .bd-wine-tabs__nav {
        grid-template-columns: minmax(0, 1fr);
    }
}
.bd-wanderpaket-options,
.bd-wanderpaket-options__group,
.bd-wanderpaket-options__row,
.bd-wanderpaket-options__row > label {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.bd-wanderpaket-options__row input[type="date"],
.bd-wanderpaket-options__row input[type="time"] {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.bd-wanderpaket-options__row input::-webkit-date-and-time-value {
    min-width: 0;
    text-align: center;
}
