.navbar .rechercher #place::placeholder {
    color: rgb(105, 112, 119);
}

.size-option.selected {
    background-color: rgb(17, 34, 59);
    color: #fff;
    border-color: rgb(17, 34, 59);
}

.product-detail {
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    transform: translateY(-7px);
}

.related-title {
    text-align: center;
    margin: 0;
    font-size: 24px;
    padding: 20px 0;
}

.product-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

/* Ordre par défaut : galerie à gauche, info à droite */
.product-gallery {
    flex: 1;
    min-width: 300px;
    position: relative;
    order: 1; /* Galerie en premier */
}

.product-info {
    flex: 1;
    min-width: 300px;
    padding: 0;
    order: 2; /* Info en second */
}

/* Sur mobile : inversion de l'ordre */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }
    
    .product-gallery {
        order: 1; /* Galerie en premier (en haut) */
        width: 100%;
    }
    
    .product-info {
        order: 2; /* Info en second (en bas) */
        width: 100%;
    }
}

.product-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
}

.favorie {
    position: absolute;
    top: 2px;
    right: 5px;
    width: 40px;
    height: 40px;
    display: inline-block;
    color: black;
    font-size: 30px;
    z-index: 2000;
}

.product-image.active {
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    height: 100%;
    align-items: center;
}

.gallery-nav button {
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.gallery-nav button i {
    background-color: transparent;
    width: 40px;
    height: 40px;
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
}

.product-title {
    font-size: 24px;
    margin-bottom: 15px;
    margin-top: 0;
    padding-top: 5px;
    color: rgb(17, 34, 59);
}

.product-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.product-category {
    color: #666;
    font-size: 15px;
}

.mon {
    width: 80%;
    margin: 20px auto;
    color: rgb(242, 244, 248);
}

.product-price {
    margin: 25px 0;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin: 0 10px;
}

.product-color h3,
.product-sizes h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.product-color p {
    margin-bottom: 20px;
}

.product-sizes p {
    color: #666;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.size-option {
    border: 1px solid #ddd;
    background: none;
    padding: 8px 15px;
    cursor: pointer;
    min-width: 40px;
    text-align: center;
}

.size-option:hover {
    border-color: rgb(17, 34, 59);
}

.add-to-cart {
    background: rgb(17, 34, 59);
    color: #fff;
    border: none;
    padding: 15px 30px;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
}

.product-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: rgb(17, 34, 59);
}

h3 {
    color: rgb(17, 34, 59);
}

.product-description p {
    line-height: 1.6;
}

.quantity-container {
    margin-bottom: 20px;
}

.quantity-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.quantity-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.stock-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stock-low {
    color: #e53935;
}

.product-state {
    margin-bottom: 20px;
}

.state-label {
    font-weight: bold;
    margin-right: 10px;
    color: rgb(17, 34, 59);
}

.state-value {
    color: #1f7724;
    font-weight: 500;
}

/* Styles spécifiques pour les produits similaires */
.related-products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.listProducts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 4px;
}

@media (max-width: 1024px) {
    .listProducts {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .listProducts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .customization-buttons {
        flex-direction: column;
    }
    
    .customization-btn {
        width: 100%;
    }
    .product-container {
        flex-direction: column;
        
    }

}

/* Styles pour les alertes */
.alert-quantity {
    display: none;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-quantity.show {
    display: block;
}

.navbar.scrolled-down {
    background-color: transparent !important;
}

.navbar.scrolled-down .rechercher input {
    background-color: rgba(255, 255, 255, 0) !important;
}

.navbar {
    margin: 0;
}

.reduction {
    padding: 5px 8px;
    font-size: 15px;
}

.navbar {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.favorie {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: inline-block;
    color: black;
    font-size: 30px;
    z-index: 2000;
}

main {
    margin-top: 0;
    padding-top: 0;
}

.product-detail {
    padding-top: 0;
    margin-top: 0;
}

.mon {
    width: 80%;
    margin: 20px auto;
    border: 0;
    background-color: rgba(128, 128, 128, 0.539);
    border-top: 1px solid rgba(128, 128, 128, 0.486);
    color: rgba(128, 128, 128, 0.591);
}

.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
    margin: 20px 0;
    width: 100%;
}

.no-products-message p {
    display: inline-block;
    padding: 15px 25px;
    background: white;
    border-radius: 4px;
    font-size: 16px;
    color: #555;
}