/* Styles Front-End Custom Preorders */
.cpo-progress-card {
    background: #ffffff;
    border: 1px solid #e8ebed;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 18px 0 24px -4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.cpo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
}

.cpo-count strong {
    color: #1a202c;
    font-size: 17px;
}

.cpo-badge {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
}

.cpo-badge.cpo-badge-success {
    background: #dcfce7;
    color: #15803d;
}

/* Jauge Fiche Produit avec Animation */
.cpo-bar-wrapper {
    background: #edf2f7;
    height: 16px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cpo-bar-fill {
    height: 100%;
    border-radius: 10px;
    width: 0%;
    position: relative;
    background-size: 30px 30px;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    animation: cpo-stripe-move 2s linear infinite;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.cpo-bar-fill.cpo-bar-success {
    background-color: #10b981 !important;
}

@keyframes cpo-stripe-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 0;
    }
}

.cpo-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    font-size: 13px;
    color: #64748b;
}

.cpo-status-ended {
    color: #dc2626;
    font-weight: 600;
}

.cpo-status-open {
    color: #16a34a;
    font-weight: 600;
}

/* Bouton Catalogue */
.products .product a.button.cpo-loop-btn,
.products .product .cpo-loop-btn,
ul.products li.product .button.cpo-loop-btn {
    font-weight: 700 !important;
    text-shadow: none !important;
    transition: transform 0.15s ease, filter 0.2s ease !important;
}

.products .product a.button.cpo-loop-btn:hover,
.products .product .cpo-loop-btn:hover,
ul.products li.product .button.cpo-loop-btn:hover {
    filter: brightness(1.1) !important;
    transform: translateY(-1px);
}

/* Badge & Jauge Catalogue */
.cpo-archive-card {
    margin: 10px 0 12px 0;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.cpo-archive-top-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.cpo-archive-tag {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cpo-archive-bar {
    background: #e2e8f0 !important;
    height: 8px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    position: relative !important;
}

.cpo-archive-fill {
    height: 100% !important;
    border-radius: 4px !important;
    transition: width 0.8s ease-in-out;
    display: block !important;
}

.cpo-archive-meta {
    font-size: 11px;
    color: #475569;
}