/* Pastille stock : rond coloré + texte qui pulse très légèrement */
.my-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1;
    font-weight: 600;
    background: rgba(0,0,0,0.04);
    color: inherit;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

.my-stock-badge .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 10px;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06) inset;
}

.my-stock-badge .label {
    animation: gentle-pulse 1.8s ease-in-out infinite;
}

.my-stock-badge.is-in .dot {
    background: #16a34a;
}

.my-stock-badge.is-out .dot {
    background: #dc2626;
}

.my-stock-badge.is-in { background: rgba(22,163,74,0.06); }
.my-stock-badge.is-out { background: rgba(220,38,38,0.06); }

@keyframes gentle-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.85; }
    100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .my-stock-badge .label { animation: none; }
}

.single-product .summary .product_title + .my-stock-badge {
    margin-left: 0.5rem;
}

.my-stock-badge {
    margin: 0.25rem 0 0.9rem 0;
}

/* ========== LIGNE DE SÉPARATION SOUS LE PRIX ========== */
.single-product .summary .price {
    position: relative;
    display: block;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Ligne horizontale élégante sous le prix */
.single-product .summary .price::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.12); /* ligne discrète et moderne */
    border-radius: 2px;
}

/* Version adaptée pour le mode sombre */
@media (prefers-color-scheme: dark) {
    .single-product .summary .price::after {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Ajustement de l'espacement avec le texte suivant */
.single-product .summary .my-stock-badge {
    margin-bottom: 1rem;
}
