/* ============================================================
   Produktattribut-Fahne — WoodMart Loop
   Gleitet von oben über das Produktbild beim Hover
   ============================================================ */

/* Thumb-Wrapper braucht position:relative als Anker */
.product-grid-item .wd-product-thumb {
    position: relative;
    overflow: hidden;
}

/* Die Fahne selbst — standardmäßig über dem oberen Rand versteckt */
.wd-attr-flag-a39255 {
    position: absolute;
    top: -80px;          /* Versteckt über dem Bild */
    left: 0;
    right: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.97);
    padding: 7px 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 6px 6px;
}

/* Attributwerte */
.wd-attr-flag-a39255 .wd-attr-flag-value {
    font-size: 11px;
    font-weight: 700;
    color: #333333;
    white-space: nowrap;
    line-height: 1.4;
}

/* Dezenter Trennbalken in Flieder */
.wd-attr-flag-a39255 .wd-attr-flag-sep {
    display: inline-block;
    width: 0;
    height: 14px;
    border-right: 2px dashed #9B72AA;
    margin: 0 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Hover: Fahne fällt ins Bild hinein */
.product-grid-item:hover .wd-attr-flag-a39255 {
    top: 0;
    opacity: 1;
}
