﻿/* کارت‌های مدرن بهسرما — محصول، دسته‌بندی، مقاله */

.bmc-card.card {
    height: 490px;
}

.bmc-card--product.card,
.bmc-card--article.card {
    height: auto;
}

.bmc-card {
    display: flex;
    flex-direction: column;
    height: 490px;
    padding: 0 !important;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 24px rgba(3, 51, 91, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bmc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(3, 51, 91, 0.14);
}

.bmc-card--product,
.bmc-card--article {
    height: auto;
}

.bmc-card__media {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    background: #f4f7fa;
}

.bmc-card__media .productimg,
.bmc-card__media .card-img-top {
    width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    background: white;
    display: block;
}

.bmc-card__thumb {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

.bmc-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 12px;
    background: rgba(0, 110, 70, 0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bmc-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 18px 18px !important;
    direction: rtl;
}

.bmc-card__title {
    margin: 0 0 10px !important;
    font-size: 19px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
}

.bmc-card__title a {
    color: #03335b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bmc-card__title a:hover {
    color: #006e46;
}

.bmc-card__text {
    flex: 1 1 auto;
    margin: 0 0 14px !important;
    color: #5a6570;
    font-size: 14px;
    line-height: 1.75;
    overflow: hidden;
}

.bmc-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 13px;
}

.bmc-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bmc-card__meta a {
    color: #006e46;
    text-decoration: none;
}

.bmc-card__meta a:hover {
    text-decoration: underline;
}

.bmc-card__category {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    background: #eef8f3;
    color: #006e46;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
}

.bmc-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    flex-shrink: 0;
    padding-top: 10px;
}

.bmc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bmc-btn--primary {
    background: #006e46;
    color: #fff !important;
}

.bmc-btn--primary:hover {
    background: #005a39;
    color: #fff !important;
}

.bmc-btn--outline {
    background: #fff;
    color: #03335b !important;
    border: 1px solid #cfd8e3;
}

.bmc-btn--outline:hover {
    background: #f4f8fb;
    color: #006e46 !important;
    border-color: #006e46;
}

.bmc-card hr {
    display: none;
}

.bmc-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.bmc-grid-row > .col-md-4 {
    display: flex;
}

.bmc-grid-row > .col-md-4 > .bmc-card,
.bmc-grid-row > .col-md-4 > .single-blog {
    width: 100%;
}

.bmc-card--article .h2blog,
.bmc-card--article .bmc-card__title {
    font-size: 18px !important;
    line-height: 1.5 !important;
    margin: 0 0 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.bmc-card--article .leadtextblog {
    font-size: 14px;
    line-height: 1.7;
    color: #5a6570;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
    min-height: 0;
}

.bmc-card--article.single-blog {
    padding: 0 !important;
    margin-top: 0 !important;
    background: transparent;
}

.bmc-card--article .blog-post {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bmc-card--article .blog-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 18px 18px;
}

.bmc-card--article .bmc-card__meta {
    flex-shrink: 0;
}

.bmc-card--article .bmc-card__category {
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .bmc-card,
    .bmc-card--product,
    .bmc-card--article {
        height: auto;
        min-height: 420px;
    }

    .bmc-card__actions {
        flex-direction: column;
    }

    .bmc-btn {
        width: 100%;
    }
}
