/**
 * Styles pour WooCommerce Auction
 */

/* Container principal */
.wc-auction-info {
    background: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

/* Statuts des enchères */
.auction-status h3 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
    margin-bottom: 20px;
}

/* Enchère non démarrée */
.auction-not-started {
    text-align: center;
    padding: 40px 20px;
}

.auction-not-started p {
    font-size: 16px;
    margin: 10px 0;
}

.auction-start-price {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 20px;
}

/* Enchère active */
.auction-active {
    position: relative;
}

.auction-current-bid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.auction-current-bid .label {
    font-size: 16px;
    font-weight: 500;
}

.auction-current-bid .amount {
    font-size: 32px;
    font-weight: 700;
}

/* Métadonnées de l'enchère */
.auction-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.auction-meta > div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #555;
}

.auction-meta .dashicons {
    color: #667eea;
    font-size: 20px;
}

/* Compte à rebours */
.auction-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    margin-bottom: 25px;
}

.auction-countdown .dashicons {
    color: #667eea;
    font-size: 22px;
}

.auction-countdown .label {
    font-weight: 600;
    color: #333;
}

.countdown-timer {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
    margin-left: auto;
}

.countdown-timer.urgent {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Formulaire d'enchère */
.auction-bid-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    margin-bottom: 25px;
}

.auction-bid-form h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

/* Prochaine mise - style mis en évidence */
.next-bid-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.next-bid-label {
    font-size: 17px;
    font-weight: 600;
    color: #0c4a6e;
}

.next-bid-amount {
    font-size: 26px;
    font-weight: 700;
    color: #0284c7;
}

.bid-input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.currency-symbol-after {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: #555;
    pointer-events: none;
    z-index: 1;
}

.bid-amount-input {
    width: 100%;
    padding: 15px 60px 15px 15px;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.bid-amount-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.place-bid-button {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.place-bid-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.place-bid-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.bid-message {
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.bid-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.bid-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Login requis */
.auction-login-required {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.auction-login-required p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* Historique des enchères */
.auction-history {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.auction-history h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.auction-history ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auction-history li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.auction-history li:last-child {
    border-bottom: none;
}

.bid-user {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.bid-amount {
    font-weight: 700;
    color: #667eea;
    margin: 0 15px;
}

.bid-date {
    font-size: 13px;
    color: #999;
}

/* Enchère terminée */
.auction-ended {
    text-align: center;
    padding: 40px 20px;
}

.final-price {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 20px 0;
}

.reserve-not-met {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ffeaa7;
    margin: 20px 0;
}

.auction-winner-info {
    background: #d4edda;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #c3e6cb;
    margin-top: 20px;
}

.auction-winner-info h4 {
    color: #155724;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-auction-info {
        padding: 20px;
    }
    
    .auction-current-bid {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .auction-current-bid .amount {
        font-size: 28px;
    }
    
    .auction-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .auction-countdown {
        flex-wrap: wrap;
    }
    
    .countdown-timer {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .next-bid-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .next-bid-amount {
        font-size: 22px;
    }
    
    .auction-history li {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .bid-amount {
        margin-left: auto;
    }
    
    .bid-date {
        width: 100%;
        text-align: left;
    }
}

/* Onglets Enchère manuelle/automatique */
.auction-bid-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #667eea;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.bid-tab-content {
    display: none;
}

.bid-tab-content.active {
    display: block;
}

/* Explication enchère automatique */
.proxy-bid-explanation {
    background: #e0f2fe;
    border-left: 4px solid #0ea5e9;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #0c4a6e;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.proxy-bid-explanation .dashicons {
    color: #0ea5e9;
    flex-shrink: 0;
    margin-top: 2px;
}

.proxy-bid-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin: 10px 0 15px 0;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
}

/* Compteur avant le début */
.auction-countdown-start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #f59e0b;
    margin-bottom: 25px;
}

.auction-countdown-start .dashicons {
    color: #f59e0b;
    font-size: 24px;
}

.auction-countdown-start .label {
    font-weight: 600;
    color: #92400e;
    font-size: 16px;
}

.countdown-timer-start {
    font-size: 20px;
    font-weight: 700;
    color: #b45309;
}

.auction-dates-info {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 10px;
}

/* Historique des enchères */
.bid-history-wrapper {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 2px solid #e0e0e0;
}

.bid-history-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bid-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bid-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.bid-history-item:last-child {
    border-bottom: none;
}

.bid-history-item:hover {
    background: #f9f9f9;
}

.bid-history-bidder {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #555;
}

.bid-history-bidder .dashicons {
    color: #667eea;
}

.bid-history-amount {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.bid-history-date {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.bid-history-empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .auction-bid-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-button {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .tab-button.active {
        border-left: 3px solid #667eea;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .auction-countdown-start {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .countdown-timer-start {
        width: 100%;
        margin-top: 10px;
    }
}


.auction-archive-price .auction-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.auction-archive-price .amount {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 6px 0;
    line-height: 1.2;
}

.auction-archive-price.auction-active .amount {
    color: #27ae60;
}

.auction-archive-price.auction-ended .amount {
    color: #95a5a6;
}

.auction-bid-count {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 400;
    margin: 6px 0 10px 0;
    font-style: italic;
}

.auction-archive-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #e74c3c;
    font-weight: 600;
    margin: 10px 0;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 4px;
    border-left: 3px solid #e74c3c;
}

.auction-archive-countdown .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.auction-archive-countdown .countdown-text {
    display: inline-block;
    min-width: 80px;
    text-align: center;
}

.auction-archive-countdown.urgent {
    background: #ffe5e5;
    animation: pulse-archive 2s infinite;
}

@keyframes pulse-archive {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive */
@media (max-width: 768px) {
    .auction-archive-price {
        font-size: 16px;
    }
    
    .auction-archive-countdown {
        font-size: 12px;
    }
}

/* ============================================
   STYLES POUR LE WIDGET SIDEBAR - v3.4.15 HORIZONTAL ULTRA-FORCÉ
   ============================================ */

.wc-auction-widget-list,
.wc-auction-recent-bids-list {
    margin: 0;
    padding: 0;
}

/* ULTRA-SPÉCIFIQUE - Cibler TOUS les contextes possibles */
.wc-auction-widget-item.wc-auction-widget-item-horizontal,
.wc-auction-widget-item-horizontal,
.wc-auction-widget-item,
.wc-auction-recent-bid-item,
.widget .wc-auction-widget-item,
.sidebar .wc-auction-widget-item,
aside .wc-auction-widget-item,
#secondary .wc-auction-widget-item,
.widget-area .wc-auction-widget-item,
body .wc-auction-widget-item,
html body .wc-auction-widget-item {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #eee !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
}

.wc-auction-widget-item:last-child {
    border-bottom: none !important;
}

/* Image TOUJOURS petite et à gauche */
.wc-auction-widget-image.wc-auction-widget-image-horizontal,
.wc-auction-widget-image-horizontal,
.wc-auction-widget-image,
.widget .wc-auction-widget-image,
.sidebar .wc-auction-widget-image,
aside .wc-auction-widget-image,
body .wc-auction-widget-image,
html body .wc-auction-widget-image {
    display: block !important;
    flex-shrink: 0 !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    max-width: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
    flex-basis: 80px !important;
    order: 1 !important;
}

.wc-auction-widget-image img,
.wc-auction-widget-image a,
.widget .wc-auction-widget-image img,
body .wc-auction-widget-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    display: block !important;
}

/* Contenu prend le reste de l'espace */
.wc-auction-widget-content,
.widget .wc-auction-widget-content,
.sidebar .wc-auction-widget-content,
body .wc-auction-widget-content {
    flex: 1 !important;
    min-width: 0 !important;
    order: 2 !important;
}

.wc-auction-widget-title {
    margin: 0 0 8px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.wc-auction-widget-title a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.wc-auction-widget-title a:hover {
    color: #e74c3c !important;
}

.wc-auction-widget-price,
.wc-auction-recent-bid-amount {
    font-size: 13px !important;
    margin: 6px 0 !important;
}

.wc-auction-widget-price .label {
    color: #7f8c8d !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

.wc-auction-widget-price .amount,
.wc-auction-recent-bid-amount .amount {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #27ae60 !important;
}

.wc-auction-widget-countdown {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12px !important;
    color: #e74c3c !important;
    font-weight: 600 !important;
    margin-top: 6px !important;
}

.wc-auction-widget-countdown .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

.wc-auction-widget-countdown .countdown-text {
    display: inline-block !important;
}

/* Meta info widget dernières enchères */
.wc-auction-widget-meta,
.wc-auction-recent-bid-meta {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    font-size: 11px !important;
    color: #7f8c8d !important;
    margin-top: 6px !important;
}

.wc-auction-widget-meta span,
.wc-auction-recent-bid-meta span {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.wc-auction-widget-meta .dashicons,
.wc-auction-recent-bid-meta .dashicons {
    font-size: 12px !important;
    width: 12px !important;
    height: 12px !important;
}

/* Forcer horizontal à TOUS les breakpoints - Media queries ultra-larges */
@media (min-width: 1px) and (max-width: 9999px) {
    .wc-auction-widget-item,
    .wc-auction-recent-bid-item,
    .widget .wc-auction-widget-item,
    body .wc-auction-widget-item {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .wc-auction-widget-image,
    .widget .wc-auction-widget-image,
    body .wc-auction-widget-image {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
        flex-basis: 80px !important;
    }
}

/* Mobile - Garder horizontal mais plus petit */
@media (max-width: 768px) {
    .wc-auction-widget-item,
    .wc-auction-recent-bid-item {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .wc-auction-widget-image {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        flex-basis: 60px !important;
    }
    
    .wc-auction-widget-title {
        font-size: 13px !important;
    }
    
    .wc-auction-widget-price .amount {
        font-size: 14px !important;
    }
}
/* ============================================
   STYLES POUR LES VIGNETTES PRODUITS (ARCHIVES) - v3.4.8 GRID OPTIMISÉ
   ============================================ */

/* GRID CSS pour alignement parfait en bas SANS espace blanc en haut */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product,
.products li.product,
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product,
body ul.products li.product {
    display: grid !important;
    grid-template-rows: 220px auto 1fr auto auto !important;
    min-height: 400px !important;
    gap: 0 !important;
    align-content: start !important;
    padding: 0 !important;
}

/* Rangée 1 : Image (220px fixe) - S'assurer qu'elle est en premier */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    grid-row: 1 !important;
    display: contents !important;
}

.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail,
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img,
ul.products li.product img,
.products li.product img,
body.woocommerce ul.products li.product img,
body ul.products li.product img {
    height: 220px !important;
    max-height: 220px !important;
    min-height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
    width: 100% !important;
    grid-row: 1 !important;
    margin: 0 !important;
}

/* Rangée 2 : Titre (auto) */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    grid-row: 2 !important;
    margin: 10px 0 !important;
}

/* Rangée 3 : Prix (1fr = prend l'espace restant pour pousser le reste en bas) */
.woocommerce ul.products li.product .auction-archive-price,
.woocommerce-page ul.products li.product .auction-archive-price,
ul.products li.product .auction-archive-price,
.products li.product .auction-archive-price,
body.woocommerce ul.products li.product .auction-archive-price {
    grid-row: 3 !important;
    align-self: end !important;
    margin-bottom: 8px !important;
}

/* Rangée 4 : Countdown (collé en bas) */
.woocommerce ul.products li.product .auction-archive-countdown,
.woocommerce-page ul.products li.product .auction-archive-countdown,
ul.products li.product .auction-archive-countdown,
.products li.product .auction-archive-countdown,
body.woocommerce ul.products li.product .auction-archive-countdown {
    grid-row: 4 !important;
    margin-bottom: 12px !important;
}

/* Rangée 5 : Bouton (tout en bas) */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product .button,
ul.products li.product .button,
.products li.product .button,
body.woocommerce ul.products li.product .button {
    grid-row: 5 !important;
    margin: 0 !important;
}

.auction-archive-price {
    display: block !important;
    margin: 8px 0;
    line-height: 1.3;
}


/* ============================================
   TABLEAU DES ENCHÈRES EN DIRECT - v3.4.16
   ============================================ */

/* Wrapper principal */
.wc-auction-live-table-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Contrôles */
.wc-auction-live-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e5e5;
}

.wc-auction-live-sort label {
    margin-right: 10px;
    font-weight: 600;
    color: #333;
}

.wc-auction-sort-btn {
    padding: 8px 16px;
    margin: 0 5px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wc-auction-sort-btn:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.wc-auction-sort-btn.active {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.wc-auction-sort-btn .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.wc-auction-live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    animation: none;
}

.status-indicator.active {
    background: #27ae60;
    animation: pulse 2s infinite;
}

.status-indicator.error {
    background: #e74c3c;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.last-update {
    font-size: 11px;
    color: #999;
}

/* Container du tableau */
.wc-auction-live-table-container {
    overflow-x: auto;
    margin-bottom: 15px;
}

/* Tableau */
.wc-auction-live-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.wc-auction-live-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.wc-auction-live-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    white-space: nowrap;
}

.wc-auction-live-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    vertical-align: middle;
}

.wc-auction-live-table tbody tr {
    transition: background-color 0.3s, transform 0.3s;
}

.wc-auction-live-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Colonne image */
.col-image {
    width: 60px;
}

.col-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* Colonne titre */
.col-title {
    min-width: 200px;
}

.auction-title {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.auction-title:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* Enchère actuelle */
.col-current-bid {
    min-width: 120px;
}

.bid-amount {
    font-weight: 700;
    font-size: 16px;
    color: #27ae60;
}

/* Nombre d'enchères */
.col-bid-count {
    text-align: center;
    width: 80px;
}

.bid-count-number {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #27ae60;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

/* Dernière enchère */
.col-last-bid-time {
    min-width: 130px;
}

.time-ago {
    color: #6c757d;
    font-size: 13px;
}

/* Enchérisseur */
.col-leading-bidder {
    min-width: 120px;
}

.bidder-name {
    font-weight: 500;
    color: #495057;
}

.no-bidder {
    color: #adb5bd;
}

/* Temps restant */
.col-time-left {
    min-width: 100px;
}

.time-remaining {
    font-weight: 600;
    color: #e74c3c;
}

/* Bouton enchérir */
.col-action {
    text-align: center;
    width: 100px;
}

.btn-bid {
    padding: 8px 16px;
    background: #e74c3c;
    color: white !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}

.btn-bid:hover {
    background: #c0392b;
}

/* Animation nouvelle enchère */
@keyframes flashRed {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(231, 76, 60, 0.2); }
}

.new-bid-flash {
    animation: flashRed 0.5s ease-in-out 3;
}

.new-bid-highlight {
    background-color: rgba(231, 76, 60, 0.1) !important;
    transition: background-color 3s;
}

/* Enchère se terminant bientôt */
.ending-soon {
    background-color: rgba(255, 193, 7, 0.05);
}

.ending-soon .time-remaining {
    color: #ff9800;
    font-weight: 700;
}

/* Loading */
.wc-auction-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.wc-auction-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: #27ae60;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Légende */
.wc-auction-live-legend {
    display: flex;
    gap: 20px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}

.legend-color.new-bid {
    background: rgba(231, 76, 60, 0.3);
}

.legend-color.ending-soon {
    background: rgba(255, 193, 7, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .col-image {
        display: none;
    }
    
    .col-last-bid-time,
    .col-leading-bidder {
        display: none;
    }
}

@media (max-width: 768px) {
    .wc-auction-live-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .wc-auction-live-sort {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .wc-auction-sort-btn {
        width: 100%;
        justify-content: center;
    }
    
    .col-bid-count {
        display: none;
    }
    
    .btn-bid {
        padding: 6px 12px;
        font-size: 12px;
    }
}
