.pd-sec-infos-details {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* ── Top row ───────────────────────────────────────── */
.pdid-top-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-sizing: border-box;
}

.pdid-chips-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

/* ── Chips ─────────────────────────────────────────── */
.pdid-chip {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.3;
}

.pdid-chip--category {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.13);
}

.pdid-chip--dark {
    color: #fff;
    background: #5b21b6;
}

/* Texte du chip visible seulement sur grand écran */
.pdid-chip-label {
    display: none;
}

@media (min-width: 769px) {
    .pdid-chip-label {
        display: inline;
    }
}

/* ── Bouton S'abonner ──────────────────────────────── */
.pdid-subscribe-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 12px;
    border: none;
    background: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}

.pdid-subscribe-btn:hover {
    background: #1d4ed8;
}

.pdid-subscribe-btn--active {
    background: #16a34a;
}

.pdid-subscribe-btn--active:hover {
    background: #15803d;
}

/* ── Label "Sélection :" ───────────────────────────── */
.pdid-selection-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    background: blueviolet;
    padding: 4px 8px;
    border-radius: 0;
    box-sizing: border-box;
    line-height: 1.5;
}

.pdid-sel-text {
    white-space: nowrap;
}

.pdid-sel-option {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Nom du produit ────────────────────────────────── */
.pdid-product-name {
    width: 100%;
    margin: 0;
    color: #111;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 0 2px;
    box-sizing: border-box;
}

/* ── Badge promo ───────────────────────────────────── */
.pdid-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Stock chips ───────────────────────────────────── */
.pdid-stock-chip {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    width: fit-content;
}

.pdid-stock-chip--low {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.12);
}

.pdid-stock-chip--almost {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.12);
}

.pdid-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 500;
    box-sizing: border-box;
}

/* ── Boutons panier ────────────────────────────────── */
.pdid-cart-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.pdid-cart-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 4px 8px;
    border-radius: 22px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    flex: 1 1 50%;
    min-width: 0;
    transition: background 0.15s, color 0.15s;
    box-sizing: border-box;
}
.pdid-cart-btn svg {
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.pdid-cart-btn:hover svg {
    transform: scale(1.25) rotate(-12deg);
}

.pdid-cart-btn.add-to-cart {
    border: 1.5px solid blueviolet;
    background: transparent;
    color: blueviolet;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    animation: pulse-border 2s infinite;
}

.pdid-cart-btn.add-to-cart:hover {
    background: blueviolet;
    color: #fff;
    transform: scale(1.03);
    border: none;
}

.pdid-cart-btn.buy-now {
    background: blueviolet;
    color: #fff;
    border: none;
    transform: scale(1);
    transition: background 0.15s, color 0.15s, transform 0.15s;
}   

.pdid-cart-btn.buy-now:hover {
    background: black;
    color: #fff;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .pdid-cart-row {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        background: #fff;
        padding: 10px 12px;
        z-index: 90;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .pdid-cart-row--hidden {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }
}

/* ── Lignes livraison / retour ─────────────────────── */
.pdid-delivery-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 0 0 12px 12px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.78rem;
    font-weight: 500;
}

.pdid-delivery-row--green {
    color: #16a34a;
    border-bottom: 1.5px solid rgba(22, 163, 74, 0.4);
}

.pdid-delivery-row--violet {
    color: blueviolet;
    border-bottom: 1.5px solid rgba(138, 43, 226, 0.4);
}

.pdid-delivery-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.pdid-delivery-left span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Quantity selector ─────────────────────────────── */
.pdid-qty-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.pdid-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #9ca3af;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s, transform 0.15s;
}

.pdid-qty-btn:hover {
    color: blueviolet;
    border-color: blueviolet;
    transform: scale(1.12);
}

.pdid-qty-btn--delete {
    color: #ef4444;
    border-color: #ef4444;
}

.pdid-qty-btn--delete:hover {
    color: #dc2626;
    border-color: #dc2626;
    background: rgba(239, 68, 68, 0.08);
    transform: scale(1.15);
}

/* ── Delete confirmation dialog ────────────────────── */
.pdid-del-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background 0.2s, backdrop-filter 0.2s;
}

.pdid-del-overlay--visible {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.pdid-del-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 28px 24px 22px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    max-width: 340px;
    width: 90vw;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    animation: pdid-del-in 0.22s 0.05s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pdid-del-in {
    to { transform: scale(1); opacity: 1; }
}

.pdid-del-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fef2f2;
}

.pdid-del-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.pdid-del-msg {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.45;
    margin: 0;
}

.pdid-del-btns {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
}

.pdid-del-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}

.pdid-del-btn--no {
    background: rgba(156, 163, 175, 0.4);
    color: #6b7280;
}

.pdid-del-btn--no:hover {
    background: rgba(156, 163, 175, 0.55);
    transform: scale(1.03);
}

.pdid-del-btn--yes {
    background: rgba(239, 68, 68, 0.4);
    color: #ffffff;
}

.pdid-del-btn--yes:hover {
    background: rgba(220, 38, 38, 0.6);
    transform: scale(1.03);
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.25);
}

.pdid-del-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pdid-qty-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1.5px solid #9ca3af;
    border-radius: 12px;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 600;
    background: transparent;
    outline: none;
    padding: 0 6px;
    box-sizing: border-box;
    transition: color 0.15s, border-color 0.15s, transform 0.15s;
    -moz-appearance: textfield;
}

.pdid-qty-input::-webkit-outer-spin-button,
.pdid-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pdid-qty-input:hover,
.pdid-qty-input:focus {
    color: blueviolet;
    border-color: blueviolet;
    transform: scale(1.04);
}

.pdid-qty-error {
    font-size: 0.75rem;
    font-weight: 500;
    color: #dc2626;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.pdid-qty-error--visible {
    opacity: 1;
}

/* ── Pricing row ───────────────────────────────────── */
.pdid-pricing-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 2px;
}

.pdid-price--selling {
    color: blueviolet;
    text-decoration: line-through;
    font-size: 1rem;
    font-weight: 600;
}

.pdid-price--base {
    color: #16a34a;
    font-size: 0.95rem;
    font-weight: 500;
}

.pdid-price--base--discounted {
    text-decoration: line-through;
}

.pdid-price--promo {
    color: #dc2626;
    font-size: 0.95rem;
    font-weight: 600;
}

.pdid-price--par-set {
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 400;
}

/* ── Stubs ─────────────────────────────────────────── */
.pdid-stub {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f5f3ff;
    color: #7c3aed;
    font-size: 0.78rem;
    text-align: center;
    box-sizing: border-box;
    border: 1px dashed rgba(124, 58, 237, 0.3);
}

/* ── Variant row ───────────────────────────────────── */
#pdid-variant-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    gap: 2px;
}

/* ── Variant unique chip ───────────────────────────── */
.pdid-variant-unique {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 6px;
    border-radius: 12px;
    border: 1.5px solid blueviolet;
    color: blueviolet;
    font-size: 0.82rem;
    font-weight: 600;
    width: fit-content;
    box-sizing: border-box;
}

/* ── Colors variant row ───────────────────────────── */
.pdid-colors-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    padding: 1px;
    border: 1.5px solid blueviolet;
    border-radius: 12px;
    box-sizing: border-box;
}

.pdid-colors-label {
    align-items: center;
    padding: 6px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    background: blueviolet;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.pdid-colors-badges {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
}

.pdid-color-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(138, 43, 226, 0.4);
    transition: border-color 0.15s, transform 0.15s;
    padding: 0;
    outline: none;
}

.pdid-color-badge:hover {
    transform: scale(1.05);
    border: 1.5px solid blueviolet;
}

.pdid-color-badge--active {
    border: 2px solid blueviolet;
    transform: scale(1.15);
}

/* ── Selection color dot ──────────────────────────── */
.pdid-sel-color-dot {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: #11111182 solid 1.5px;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ── Sizes variant row ─────────────────────────────── */
.pdid-sizes-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding: 1px;
    border: 1.5px solid blueviolet;
    border-radius: 12px;
    box-sizing: border-box;
}

.pdid-sizes-label {
    align-items: center;
    padding: 4px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    background: blueviolet;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.pdid-sizes-badges {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
}

.pdid-size-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border-radius: 12px;
    border: 1.5px solid blueviolet;
    background: transparent;
    color: blueviolet;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    outline: none;
}

.pdid-size-badge:hover {
    background: blueviolet;
    color: #fff;
    transform: scale(1.05);
}

.pdid-size-badge--active {
    background: blueviolet;
    color: #fff;
    transform: scale(1.1);
}

/* ── Sets variant row ──────────────────────────────────── */
.pdid-sets-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    width: 100%;
    padding: 1px;
    border: 1.5px solid blueviolet;
    border-radius: 12px;
    box-sizing: border-box;
}

.pdid-sets-label {
    align-items: center;
    padding: 4px 6px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    background: blueviolet;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.pdid-sets-badges {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
}

.pdid-set-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1.5px solid blueviolet;
    background: transparent;
    color: blueviolet;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    outline: none;
}

.pdid-set-badge:hover {
    background: blueviolet;
    color: #fff;
    transform: scale(1.05);
}

.pdid-set-badge:hover .pdid-set-dot {
    border-color: #fff;
}

.pdid-set-badge--active {
    background: blueviolet;
    color: #fff;
    transform: scale(1.1);
}

.pdid-set-badge--active .pdid-set-dot {
    border-color: #fff;
}

.pdid-set-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1.5px solid blueviolet;
    transition: border-color 0.15s;
}

/* ── Brand / original row ──────────────────────────────── */
.pdid-brand-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    padding: 2px 0;
}

.pdid-brand-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    width: 100%;
    flex-wrap: wrap;
}

.pdid-brand-store-icon {
    flex-shrink: 0;
}

.pdid-brand-store-logo {
    height: 20px;
    max-width: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.pdid-brand-store-logo--gray {
    filter: grayscale(1) opacity(0.55);
}

.pdid-brand-by {
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
}

.pdid-brand-logo-img {
    height: 20px;
    max-width: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.pdid-brand-name-text {
    color: #111;
    font-size: 0.82rem;
    font-weight: 500;
}

.pdid-original-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.pdid-original-text {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 400;
}
