@import url('https://fonts.googleapis.com/css2?family=Gilda+Display&family=Outfit:wght@300;400;600&display=swap');

.modern-card {
    background: #FFFFFF;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modern-card-image-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.modern-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.modern-card:hover .modern-card-image-wrap img {
    transform: scale(1.1);
}

/* Star Overlay like the image */
.modern-card-image-wrap::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    font-family: serif;
}

.modern-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 15px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a4036;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modern-card-content {
    padding: 25px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modern-card-title {
    font-family: 'Gilda Display', serif;
    font-size: 1.4rem;
    color: #5d4e41;
    margin: 0;
    line-height: 1.2;
}

.modern-card-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #9c8b7c;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

.modern-card-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modern-card-price {
    font-family: 'Gilda Display', serif;
    font-size: 1.1rem;
    color: #ac7088;
    font-weight: 600;
}

.modern-card-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ac7088;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Category Specific Styles */
.category-modern-card .modern-card-image-wrap {
    height: 200px;
}

/* Masonry override if needed */
.grid-item.modern-card-wrapper {
    margin-bottom: 30px;
}