
/* =========================================
   MODERN PRODUCT CARD (Screenshot Design)
   ========================================= */
.product-card-modern {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-card-modern-img-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1;
}

.product-card-modern-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f9f9f9;
}

.product-card-modern-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-modern-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}

.badge-nouveau {
    background-color: #ffdde1; /* Pastel pink */
    color: #ff6f88;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-promo {
    background-color: #ff8fa3; /* Salmon/coral */
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 15px;
}

.product-card-modern-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-modern-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 39px; /* roughly 2 lines */
}

.product-card-modern-price {
    font-size: 16px;
    font-weight: 700;
    color: #244A73;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-card-modern-price del {
    font-size: 13px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

.product-card-modern-price ins {
    text-decoration: none;
}

.product-card-modern-actions {
    padding: 0 15px 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-ajouter, .btn-commander {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-ajouter {
    background-color: var(--secondary-color, #FF8FA3);
    color: white;
}

.btn-ajouter:hover {
    background-color: var(--secondary-hover, #FF6F88);
    color: white;
}

.btn-commander {
    background-color: #aeddf2; /* Light pastel blue matching the image */
    color: white;
}

.btn-commander:hover {
    background-color: var(--primary-color, #6FB8E9);
    color: white;
}

/* Mobile Adjustments for Product Card */
@media (max-width: 768px) {
    .product-card-modern-info {
        padding: 10px;
    }
    .product-card-modern-title {
        font-size: 13px;
        height: 36px;
    }
    .product-card-modern-price {
        font-size: 15px;
    }
    .product-card-modern-actions {
        padding: 0 10px 10px 10px;
        gap: 6px;
    }
    .btn-ajouter, .btn-commander {
        padding: 8px;
        font-size: 13px;
        border-radius: 6px;
    }
    .badge-nouveau, .badge-promo {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* Wishlist Button on Product Cards */
.product-card-wishlist-btn {
    position: absolute !important;
    top: 10px;
    right: 10px;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: white !important;
    border: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #9ca3af !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}
.product-card-wishlist-btn:hover {
    transform: scale(1.1);
    color: #ef4444 !important;
}
.product-card-wishlist-btn.active {
    background: #ef4444 !important;
    color: white !important;
}
.product-card-wishlist-btn i {
    font-size: 16px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
