/* Styles pour les tableaux de disponibilité des stocks */
.stock-availability-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stock-availability-table th,
.stock-availability-table td {
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.stock-availability-table th {
    background-color: #343a40;
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
}

@media (max-width: 768px) {
    #product #description .product-description-orbea {
        overflow: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--thumbBG) var(--scrollbarBG);
    }
    
    #product .product-description-orbea table {
        max-width: 100% !important;
        overflow: visible;
        min-width: 0 !important;
        width: 100% !important;
    }
}

.stock-availability-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.stock-availability-table tr:hover {
    background-color: #e9ecef;
}

.color-cell {
    text-align: left !important;
    max-width: 300px;
}

.color-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    flex-shrink: 0;
}

.color-details {
    flex-grow: 1;
}

.color-code {
    font-weight: bold;
    color: #007bff;
}

.myo_colors {
    display: none;
}

.color-name {
    font-size: 0.9em;
    color: #666;
    margin-top: 2px;
}

/* Nouvelle version avec span dans td */
.status-cell-wrapper {
    padding: 0;
}

.status-cell-wrapper span {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 8px 4px;
    font-weight: bold;
    color: white;
    min-height: 40px;
}

/* Ancienne version avec div (rétrocompatibilité) */
.status-cell {
    font-weight: bold;
    color: white;
    border-radius: 4px;
    padding: 8px 4px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    background-color: #6c757d; /* Couleur par défaut */
}

/* Gestion des spans avec couleurs de fond dans les cellules de statut (ancienne version) */
.status-cell span {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 8px 4px;
    font-weight: bold;
    color: white;
}

/* Pour les cellules avec des spans colorés, on retire la couleur de fond de la div parent (ancienne version) */
.status-cell span[style*="background-color"] {
    border-radius: 4px;
    padding: 8px 4px;
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-header {
    text-align: center !important;
    font-weight: bold;
}

/* Couleurs pour les différents statuts */
.status-en-stock {
    background-color: #218e53 !important;
}

.status-appelez-nous {
    background-color: #ff8c00 !important;
}

.status-rupture {
    background-color: #d0121a !important;
}

.status-mois {
    background-color: #ff8c00 !important;
}

/* Styles pour l'index des vélos */
.bike-index-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bike-index-title {
    color: #333;
    text-align: center;
    border-bottom: 3px solid #007bff;
    padding-bottom: 20px;
}

.bike-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.bike-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #f8f9fa;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bike-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.bike-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.bike-ref {
    color: #666;
    margin-bottom: 10px;
}

.bike-info {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.bike-links {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-html {
    background-color: #007bff;
    color: white;
}

.btn-html:hover {
    background-color: #0056b3;
}

.btn-csv {
    background-color: #28a745;
    color: white;
}

.btn-csv:hover {
    background-color: #1e7e34;
} 