/* Creet Recommendations — Frontend Styles */

.creet-rec-widget {
    margin: 32px 0;
    direction: rtl;
}

.creet-rec-heading {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Grid */
.creet-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

@media (min-width: 600px) {
    .creet-rec-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

/* Card */
.creet-rec-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    background: #fff;
}

.creet-rec-card:hover {
    border-color: #C3FD73;
    box-shadow: 0 4px 20px rgba(195,253,115,.25);
    transform: translateY(-2px);
    text-decoration: none;
}

.creet-rec-card__img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8fafc;
}

.creet-rec-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.creet-rec-card:hover .creet-rec-card__img-wrap img {
    transform: scale(1.04);
}

.creet-rec-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.creet-rec-card__no-img svg {
    width: 40px;
    height: 40px;
}

.creet-rec-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #C3FD73;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.creet-rec-card__body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.creet-rec-card__name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.creet-rec-card__price {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.creet-rec-card__price del {
    color: #94a3b8;
    font-weight: 400;
    margin-left: 4px;
}

.creet-rec-card__price ins {
    text-decoration: none;
    color: #16a34a;
}
