
/* Product Card */
.product-card {
    direction: rtl;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 190px;
    gap: 22px;
    align-items: center;
    width: 100%;
    padding: 20px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,.045);
    transition: all .25s ease;
    box-sizing: border-box;
}

.product-card:hover {
    border-color: #cbd9e8;
    box-shadow: 0 7px 22px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

/* Image */
.product-image {
    width: 100%;
    text-align: center;
}

.product-image img {
    width: 100%;
    max-width: 155px;
    height: 155px;
    object-fit: contain;
    border-radius: 9px;
    background: #f7f9fb;
}

/* Content */
.product-content {
    min-width: 0;
}

.product-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.9;
    margin: 0 0 12px;
    color: #25364a;
}

.product-title a {
    color: inherit;
    text-decoration: none;
}

.product-title a:hover {
    color: #16834a;
}

/* Info Table */
.product-info {
    width: 100%;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 13px;
    line-height: 1.9;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    flex: 0 0 105px;
    color: #718096;
    font-weight: 600;
}

.info-value {
    color: #38485b;
}

/* Purchase */
.product-purchase {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    padding-right: 18px;
    border-right: 1px solid #edf0f3;
}

.price-label {
    color: #7b8794;
    font-size: 13px;
    margin-bottom: 6px;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: #17834c;
    margin-bottom: 16px;
    line-height: 1.8;
}

.product-buy-btn,
.product-detail-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 8px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: .2s;
}

.product-buy-btn {
    background: #16834b;
    color: #fff !important;
    margin-bottom: 9px;
}

.product-buy-btn:hover {
    background: #106b3c;
    color: #fff !important;
}

.product-detail-btn {
    background: #f0f4f8;
    color: #40536a !important;
}

.product-detail-btn:hover {
    background: #e3eaf1;
}

/* Tablet */
@media (max-width: 991px) {
    .product-card {
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 16px;
    }

    .product-image img {
        max-width: 125px;
        height: 135px;
    }

    .product-purchase {
        grid-column: 1 / -1;
        border-right: none;
        border-top: 1px solid #edf0f3;
        padding: 15px 0 0;
    }

    .product-purchase {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        align-items: center;
    }

    .price-label {
        display: none;
    }

    .product-price {
        margin: 0;
        text-align: right;
    }

    .product-buy-btn {
        margin: 0;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .product-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 14px;
        margin-bottom: 14px;
        gap: 12px;
        border-radius: 10px;
    }

    .product-image {
        width: 100%;
        text-align: center;
    }

    .product-image img {
        width: 100%;
        max-width: 100%;
        height: 190px;
        object-fit: contain;
    }

    .product-title {
        font-size: 15px;
        line-height: 2;
        margin-bottom: 10px;
        text-align: right;
    }

    .info-row {
        display: grid;
        grid-template-columns: 95px minmax(0, 1fr);
        gap: 8px;
        padding: 9px 0;
        font-size: 12px;
        line-height: 2;
    }

    .info-label {
        flex: none;
        font-weight: 700;
        color: #65758a;
    }

    .info-value {
        min-width: 0;
    }

    .product-purchase {
        display: flex;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        border-right: none;
        border-top: 1px solid #e9edf2;
        padding: 14px 0 0;
        gap: 9px;
    }

    .price-label {
        display: block;
        font-size: 12px;
        margin: 0;
    }

    .product-price {
        font-size: 21px;
        text-align: center;
        margin: 0 0 4px;
    }

    .product-buy-btn,
    .product-detail-btn {
        width: 100%;
        padding: 13px 10px;
        font-size: 14px;
    }
}
