/* Styles discrets pour les prix des produits */

/* Section des prix */
.price-section {
    margin: 15px 0;
    padding: 12px;
    background: #fafafa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

/* Prix actuel - plus visible */
.current-price {
    font-size: 1.6em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

/* Ancien prix - barré et discret */
.old-price {
    font-size: 1.1em;
    color: #7f8c8d;
    text-decoration: line-through;
    margin-bottom: 5px;
    opacity: 0.8;
}

/* Badge de réduction - discret */
.discount-info {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Prix sur demande */
.price-on-demand {
    font-size: 1.2em;
    color: #3498db;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 10px;
}

/* Bouton d'action */
.price-action {
    margin-top: 10px;
}

.price-action .button {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.price-action .button:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* Styles pour les listes de produits */
.product-details .current-price {
    font-size: 1.3em;
    margin-bottom: 3px;
}

.product-details .old-price {
    font-size: 0.9em;
    margin-bottom: 3px;
}

.product-details .discount-info {
    font-size: 0.7em;
    padding: 2px 6px;
    margin-bottom: 8px;
}

/* Alignement des hauteurs des cartes */
.row.block-margin {
    display: flex;
    align-items: stretch;
}

.block-sale {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.block-sale .col-xs-7 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.block-sale .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.block-sale .bh-button {
    margin-top: auto;
}

/* Pour les cartes de la page product.php */
.container .row {
    display: flex;
    align-items: stretch;
}

.box1 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.box1 .content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.box1 .bh-button,
.box1 .bh-button-outline {
    margin-top: auto;
}

/* Styles pour les boutons de produits */
.product-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

.product-buttons .btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    flex: 1;
    min-width: 100px;
}

.product-buttons .btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.product-buttons .btn-primary:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.product-buttons .btn-outline {
    background-color: transparent;
    color: #007bff;
    border-color: #007bff;
}

.product-buttons .btn-outline:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

.product-buttons .btn-checkout {
    background-color: #8B4513;
    color: white;
    border-color: #8B4513;
}

.product-buttons .btn-checkout:hover {
    background-color: #A0522D;
}

.checkout-form {
    flex: 1;
    min-width: 100px;
}

.checkout-form button {
    width: 100%;
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .current-price {
        font-size: 1.4em;
    }

    .old-price {
        font-size: 1em;
    }

    .discount-info {
        font-size: 0.75em;
    }

    /* Désactiver l'alignement sur mobile */
    .row.block-margin,
    .container .row {
        display: block;
    }

    .block-sale,
    .box1 {
        height: auto;
    }

    /* Boutons responsives sur mobile */
    .product-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .product-buttons .btn,
    .checkout-form {
        width: 100%;
        min-width: auto;
        flex: none;
    }
}

@media (max-width: 480px) {
    .product-buttons .btn {
        padding: 10px 12px;
        font-size: 0.9em;
    }
}