/* Cartes produit catalogue — partagé favoris + pages catégorie */
.products-grid--catalog .product-card,
.category-page .product-card {
    background: #fff;
    border: none;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.products-grid--catalog .product-image-link,
.category-page .product-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.products-grid--catalog .product-image-link:hover,
.category-page .product-image-link:hover {
    text-decoration: none;
    color: inherit;
}

.products-grid--catalog .product-info,
.category-page .product-info {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.products-grid--catalog .product-name-link,
.category-page .product-name-link {
    text-decoration: none;
    color: inherit;
    margin-top: 1.5rem;
    display: block;
}

.products-grid--catalog .product-name,
.category-page .product-name,
.product-card .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0;
}

.products-grid--catalog .product-subtitle,
.category-page .product-subtitle,
.product-card .product-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
    line-height: 1.25;
    margin: 0 0 8px;
    text-transform: none;
    letter-spacing: 0;
}

.product-card-reviews {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 12px;
    line-height: 1;
}

.product-card-reviews__stars i {
    color: #F77F77;
    font-size: 0.72rem;
}

.product-card-reviews__count {
    font-size: 0.8rem;
    font-weight: 500;
    color: #F77F77;
}

/* 4px entre titre et sous-titre (sous-titre en dehors du lien) */
.products-grid--catalog .product-name-link:has(+ .product-subtitle),
.category-page .product-name-link:has(+ .product-subtitle),
.product-card .product-name-link:has(+ .product-subtitle),
.product-card .product-info > a:has(+ .product-subtitle) {
    margin-bottom: 4px;
}

.products-grid--catalog .product-name-link:has(+ .product-subtitle) .product-name,
.category-page .product-name-link:has(+ .product-subtitle) .product-name,
.product-card .product-name-link:has(+ .product-subtitle) .product-name,
.product-card .product-info > a:has(+ .product-subtitle) .product-name {
    margin-bottom: 0;
}

/* Sous-titre dans le lien (accueil) : 4px sous le titre, 20px jusqu'au prix */
.product-card a .product-subtitle {
    margin-top: 0;
    margin-bottom: 0;
}

.product-card a:has(.product-subtitle) {
    display: block;
    margin-bottom: 20px;
}

.product-card a:has(.product-subtitle) .product-name {
    margin-bottom: 4px;
    line-height: 1.2;
}

/* Sans sous-titre : 20px entre titre et prix */
.products-grid--catalog .product-name-link:not(:has(+ .product-subtitle)),
.category-page .product-name-link:not(:has(+ .product-subtitle)),
.product-card .product-name-link:not(:has(+ .product-subtitle)),
.product-card .product-info > a:not(:has(.product-subtitle)):not(:has(+ .product-subtitle)) {
    margin-bottom: 20px;
    display: block;
}

.products-grid--catalog .product-name:not(:has(+ .product-subtitle)),
.category-page .product-name:not(:has(+ .product-subtitle)),
.product-card .product-name:not(:has(+ .product-subtitle)) {
    margin-bottom: 20px;
}

.products-grid--catalog .product-price,
.category-page .product-price,
.product-card .product-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
    padding: 0;
}

.products-grid--catalog .product-price .text-muted,
.products-grid--catalog .product-price .text-decoration-line-through,
.category-page .product-price .text-muted,
.category-page .product-price .text-decoration-line-through,
.product-card .product-price .text-muted,
.product-card .product-price .text-decoration-line-through {
    font-weight: 400;
}

.products-grid--catalog .product-price .fw-bold,
.category-page .product-price .fw-bold,
.product-card .product-price .fw-bold {
    font-weight: 700 !important;
}

.products-grid--catalog .product-actions,
.category-page .product-actions {
    display: flex;
    align-items: stretch;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.products-grid--catalog .add-to-cart-btn,
.category-page .add-to-cart-btn {
    background: #f8f8f8;
    color: #1a1a1a;
    border: none;
    padding: 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s ease;
    flex: 1;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    height: 40px;
    box-sizing: border-box;
}

.products-grid--catalog .add-to-cart-btn .fa-info-circle,
.category-page .add-to-cart-btn .fa-info-circle {
    font-size: 0.7em;
}

.products-grid--catalog .quantity-controls,
.category-page .quantity-controls {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-left: 1px solid #e0e0e0;
}

.products-grid--catalog .quantity-btn,
.category-page .quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    color: #1a1a1a;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

.products-grid--catalog .quantity-input,
.category-page .quantity-input {
    width: 40px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    font-size: 0.9rem;
    background: #f5f5f5;
    color: #1a1a1a;
    font-weight: 600;
    -moz-appearance: textfield;
}

.products-grid--catalog .quantity-input::-webkit-outer-spin-button,
.products-grid--catalog .quantity-input::-webkit-inner-spin-button,
.category-page .quantity-input::-webkit-outer-spin-button,
.category-page .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.products-grid--catalog .product-availability,
.category-page .product-availability {
    font-size: 0.8rem;
    color: #4a4a4a;
    margin-top: 0.35rem;
    margin-bottom: 1rem;
}

.products-grid--catalog .availability-available,
.category-page .availability-available {
    color: #28a745;
}

.products-grid--catalog .availability-limited,
.category-page .availability-limited {
    color: #ffc107;
}

.products-grid--catalog .availability-out,
.category-page .availability-out {
    color: #dc3545;
}

.products-grid--catalog .badge-nouveaute,
.category-page .badge-nouveaute {
    z-index: 2;
}
